Worksheets#include <\c>
Total questions: 13
Worksheet time: 17mins
Which of the following is not a valid C variable name?
int num1;
int num_1;
int $num1;
int num;
What is an example of iteration in C?
for
while
do-while
all of these
scanf() is a predefined function in______header file.
stdlib. h
ctype. h
stdio. h
stdarg. h
what is the output of the following code snippet?
10
20
Error
None of these
Which of the following is the characteristics of an algorithm?
Feasibility
Finiteness
Unambiguous
All of these
what is the output of the following code snippet?
4 6 2
2 4 6
2 2 4
4 6 6
what is the output of the following code snippet?
10
0
10 10 10 10....(infinity loop)
error
Which of the following is not a keyword?
break
void
name
while
' >= ' is type of _________ operator
logical operator
relational operator
arithmetic operator
none of these
What is the output of the following code snippet?
0 5 1 4 2 3
0 5 1 4
0 1 2 3 4 5
5 4 3 2 1 0
what is the output of the following code snippet?
MBCET
CET
SCT
ERROR
what is the output of the following code snippet?
oops
0
I got you
0I got you
what is the output of the following code snippet?
25
0
25 0
compiler error
