HCL Technical Paper 2

# HCL Technical Paper 2

Test Description

## 15 Questions MCQ Test | HCL Technical Paper 2

HCL Technical Paper 2 for Quant 2023 is part of Quant preparation. The HCL Technical Paper 2 questions and answers have been prepared according to the Quant exam syllabus.The HCL Technical Paper 2 MCQs are made for Quant 2023 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for HCL Technical Paper 2 below.
Solutions of HCL Technical Paper 2 questions in English are available as part of our course for Quant & HCL Technical Paper 2 solutions in Hindi for Quant course. Download more important topics, notes, lectures and mock test series for Quant Exam by signing up for free. Attempt HCL Technical Paper 2 | 15 questions in 30 minutes | Mock test for Quant preparation | Free important questions MCQ to study for Quant Exam | Download free PDF with solutions
 1 Crore+ students have signed up on EduRev. Have you?
HCL Technical Paper 2 - Question 1

### Which of the following about the following two declaration is true? i ) int *F() ii) int (*F)()

HCL Technical Paper 2 - Question 2

### 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); }

HCL Technical Paper 2 - Question 3

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

HCL Technical Paper 2 - Question 4

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

HCL Technical Paper 2 - Question 5

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

HCL Technical Paper 2 - Question 6

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

HCL Technical Paper 2 - 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;

HCL Technical Paper 2 - 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;

HCL Technical Paper 2 - Question 9

Which is the output produced by the following program

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

HCL Technical Paper 2 - 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++);
}

HCL Technical Paper 2 - 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");
}
}

HCL Technical Paper 2 - Question 12

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++;
}

HCL Technical Paper 2 - 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);
}

HCL Technical Paper 2 - 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;
}

HCL Technical Paper 2 - Question 15

What is the output of the following problem ?

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

 Use Code STAYHOME200 and get INR 200 additional OFF Use Coupon Code
Information about HCL Technical Paper 2 Page
In this test you can find the Exam questions for HCL Technical Paper 2 solved & explained in the simplest way possible. Besides giving Questions and answers for HCL Technical Paper 2, EduRev gives you an ample number of Online tests for practice