NEW
Font size
WorksheetsGEEKME
Total questions: 15
Worksheet time: 6mins
What will be the output of the following?
int ch=20;
printf(“%d %d %d”,ch,++ch,ch);
20 21 21
21 21 21
21 21 20
20 20 21
Which amongst both is used in a conditional statement?
val=20 or val==20
val==20
val=20
Both
None
How many errors are there in the following code?
2
5
3
4
What will be the output of the following code?
Compilation error
12345
Infinite Loop
Debugging error
What will be the output of the following?
10 20 30
10 30 20
Error
Garbage Value
How many times the iteration in the loop be executed?
14
15
16
None of these
What will be output of the following code?
3
4
Undefined
Error
What will be the output of the following code?
9
5
4
Undefined
What will be the output of the following code?
Runtime Error
Compilation error
o
none of these
Which of the following is a user defined function?
printf()
scanf()
main()
none
Is it possible to run a program without main?
Yes
No
Can't say
Error
Which amongst the following is the significance of algorithm in C programming?
I and III
I and II
I,II,III
II and III
What will be the output of the C program?
Function in C is awesome
no output
Runtime error
Compilation error
How many parameters does a function prototype contain?
1
2
3
4
What will be the output of the code:
Error
case 1 executed
case 1 executed case 2 executed
Default block executed
