- 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 below program?
#include<stdio.h>
int main()
{
int i = 0;
i++;
if(i <= 5)
{
printf('AptitudeCrack\n');
exit(0);
main();
}
return 0;
}
A The program prints 'AptitudeCrack' 5 times
B The program prints 'AptitudeCrack' one time
C The call to main() after exit() doesn't materialize. D The compiler reports an error since main() cannot call itself. ANS:A - The program prints 'AptitudeCrack' 5 times Step 1: int i = 0; here variable i is declared as an integer type and initialized to '0'(zero). |


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.