You can prepare effectively for Campus Placement Placement Papers - Technical & HR Questions with this dedicated MCQ Practice Test (available with solutions) on the important topic of "HCL Technical Paper 2". These 15 questions have been designed by the experts with the latest curriculum of Campus Placement 2026, to help you master the concept.
Test Highlights:
Sign up on EduRev for free to attempt this test and track your preparation progress.
Which of the following about the following two declaration is true?
i ) int *F()
ii) int (*F)()
What are the values printed by the following program?
#define dprint(expr) printf(#expr “=%dn",expr)
main()
{
int x=7;
int y=3;
dprintf(x/y);
}
When an array is passed as parameter to a function, which of the following statement is correct choice:
The type of the controlling expression of a switch statement cannot be of the type
What is the value assigned to the variable X if b is 7 ?
X = b>8 ? b < <3 : b>4 ? b>>1:b;
What is the value assigned to the variable X if b is 7 ?
X = b>8 ? b < <3 : b>4 ? b>>1:b;
Which is the output produced by the following program
main()
{
int n=2;
printf("%d %dn", ++n, n*n);
}
What is the output of the following program
main()
{
int a=10;
int b=6;
if(a=3)
b++;
printf("%d %dn",a,b++);
}
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");
}
}
What is the output of the following program?
main()
{
char *src = Hello World";
char dst[100];
strcpy(src,dst);
printf("%s",dst);
}strcpy(char *dst,char *src)
{while(*src) *dst++ = *src++;
}
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);
}
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;
}
What is the output of the following problem ?
#define INC(X) X++
main()
{
int X=4;
printf("%d",INC(X++));
}
85 docs|57 tests |