- Control Instructions - General Questions
- Control Instructions - Find Output of Program
- Control Instructions - Point Out Errors
- Control Instructions - Point Out Correct Statements
- Control Instructions - True / False Questions
- Control Instructions - Yes / No Questions


Control Instructions - Programming
Q1: Which of the following statements are correct about the program?
#include<stdio.h>
int main()
{
int x = 30, y = 40;
if(x == y)
printf('x is equal to y\n');
else if(x > y)
printf('x is greater than y\n');
else if(x < y)
printf('x is less than y\n')
return 0;
}
A Error: Statement missing
B Error: Expression syntax
C Error: Lvalue required
D Error: Rvalue required
ANS:A - Error: Statement missing This program will result in error 'Statement missing ;' printf('x is less than y\n') here ; should be added to the end of this statement. |


For help Students Orientation
Mcqs Questions
One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.