1. What will be the final values of x and y?
void main ()
{
int x = 1, y = 1;
clrscr();
do while (x<=7)
{
x++. y++;
}
while (y<=5);
printf(’\n x = %d y = %d', x, y);
}
(A) x = 6 y = 6 (B)x=8y=6
(C ) x = 8y = 8 (D)none of the above
50. What will be the output of the following program? void main()
{
char x = ‘d’;
clrscr( );
switch (x)
{
case 'b’
puts( “01001”);
break;
default:
puts (“321');
break;
case 'R’:
puts ('l II II');
}
What will be the final values of x and y?
void main ()
{
int x = 1, y = 1;
clrscr();
do while (x<=7)
{
x++. y++;
}
while (y<=5);
printf(’\n x = %d y = %d', x, y);
}
(A) x = 6 y = 6 (B)x=8y=6
(C ) x = 8y = 8 (D)none of the above
50. What will be the output of the following program? void main()
{
char x = ‘d’;
clrscr( );
switch (x)
{
case 'b’
puts( “01001”);
break;
default:
puts (“321');
break;
case 'R’:
puts ('l II II');
}
}
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use