# HCL Technical Paper 2

## 15 Questions MCQ Test Placement Papers - Technical & HR Questions | HCL Technical Paper 2

Description
Attempt HCL Technical Paper 2 | 15 questions in 30 minutes | Mock test for Quant preparation | Free important questions MCQ to study Placement Papers - Technical & HR Questions for Quant Exam | Download free PDF with solutions
QUESTION: 1

Solution:
QUESTION: 2

Solution:
QUESTION: 3

### Which of the following is not a ANSI C language keyword?

Solution:
QUESTION: 4

When an array is passed as parameter to a function, which of the following statement is correct choice:

Solution:
QUESTION: 5

The type of the controlling expression of a switch statement cannot be of the type

Solution:
QUESTION: 6

What is the value of the expression (36) + (aa)?

Solution:
QUESTION: 7

What is the value assigned to the variable X if b is 7 ?

X = b>8 ? b < <3 : b>4 ? b>>1:b;

Solution:
QUESTION: 8

What is the value assigned to the variable X if b is 7 ?

X = b>8 ? b < <3 : b>4 ? b>>1:b;

Solution:
QUESTION: 9

Which is the output produced by the following program

main()
{
int n=2;
printf("%d %dn", ++n, n*n);
}

Solution:
QUESTION: 10

What is the output of the following program

main()
{
int a=10;
int b=6;
if(a=3)
b++;
printf("%d %dn",a,b++);
}

Solution:
QUESTION: 11

What can be said of the following program?

main()
{
enum Months {JAN =1,FEB,MAR,APR};
Months X = JAN;
if(X==1)
{
printf("Jan is the first month");
}
}

Solution:
QUESTION: 12

What is the output of the following program?

main()
{
char *src = Hello World";
char dst;
strcpy(src,dst);
printf("%s",dst);
}strcpy(char *dst,char *src)
{while(*src) *dst++ = *src++;
}

Solution:
QUESTION: 13

What is the output of the following program?

main()
{

int l=6;
switch(l)
{ default : l+=2;
case 4: l=4;
case 5: l++;
break;
}
printf("%d",l);
}

Solution:
QUESTION: 14

What is the output of the following program?

main()
{
int x=20;
int y=10;
swap(x,y);
printf("%d %d",y,x+2);
}
swap(int x,int y)
{
int temp;
temp =x;
x=y;
y=temp;
}

Solution:
QUESTION: 15

What is the output of the following problem ?

#define INC(X) X++
main()
{
int X=4;
printf("%d",INC(X++));
}

Solution: Use Code STAYHOME200 and get INR 200 additional OFF Use Coupon Code