Control Structure Questions and Answers
Practice ModeShowing 10 of 97 questions
Q41
Find the output
void main ( )
{
int i=1;
if (i<=5)
{
printf("%d", i);
if (i==3)
continue;
i++;
}
}
Answer: Option D
Q42
Find the output
void main ( )
{
if (true && false)
printf("TRUE");
else
printf("FALSE");
}
Answer: Option C
Q43
Find the output.
void main ( )
{
int x=5;
if (x<4);
{
printf("%d", x++);
printf ("5d", x*=2);
}
else
printf("do it again");
}
Answer: Option D
Q44
Find the output
void main ( )
{
int x=1;
if ("%d=hallo", x);
}
Answer: Option D
Q45
If there are more than one sdtatements present in a 'if' expression then order of evaluation is
Answer: Option B
Q46
Find the output
void main ( )
{
int i=100, j=100, k=-100;
if (!i>=k)
j+=j;
k+=kl
printf("%d %d %d", i,j, k);
}
Answer: Option C
Q47
Find the output
void main ( )
{
int a=2, b=0, c=-2;
if (b, a, c)
printf("Lack of C knowledge");
else
printf("Begineer");
}
Answer: Option A
Q48
what happens when 'break' statement is omitted from a particular case ?
Answer: Option C
Q49
Find the output
void main ( )
{
int x=5;
if (x=0)
printf("%d", x);
printf('%d, ++x);
}
Answer: Option C
Q50
The 'continue' statement is used to
Answer: Option A