NEW
Font size
WorksheetsQuiz
Total questions: 35
Worksheet time: 35mins
Who is the father of C?
Steve jobs
James Gosling
Dennis Ritchie
Rasmus Lerdorf
Which of the following is not a valid C variable name?
int number;
float rate;
int variable_count;
int $main;
All keywords in C are in
Lower Case letters
Upper Case letters
Camel Case letters
None of the above
Which loop is guaranteed to execute at least once?
for
while
do-while
None
Which keyword is used to prevent any changes in the variable with in a C program?
immutable
mutable
constant
volatile
What is an example of iteration in C?
for
while
do-while
all above
Which datatype is not used in Switch case in C?
int
float
char
double
Which operator is used to compare two values in C?
=
==
:=
None of the above
What does the & operator do in C?
Bitwise AND
Returns address of a variable
Logical AND
None
What is the correct syntax to print "Hello World" in C?
printf("Hello World");
printf("Hello World")
print("Hello World");
print("Hello World")
ALU means
Arithmetic Logic unit
Array Logic Unit
Application Logic Unit
Arithmetic Level Unit
&& is which operator?
Bitwise AND operator
Logical AND operator
Relational operator
Conditional operator
What is the max value of unsigned int?
2,147,483,647
4,294,967,295
4,294,967,296
65,535
How many times will the following loop execute?
for(i=1;i<=99;i++);
98
99
100
0
(6<=10) || (10<=6) in the condition?
0(False)
1(True)
6
10
(10!=5) && (5!=10) in the condition?
True
False
5
10
What is the binary equivalent of the decimal number 0111?
1101110
1101111
1110000
1010111
What is the decimal equivalent of the binary number 11111111?
254
255
256
128
What is the output value of k=19/4 ?
4.75
5
4
3
What will happen in this loop?
for(i = 1;i<=5;i--)
Runs 5 times
Infinite loop
Error
Prints nothing
How many bytes will occupy Double?
4
1
2
8
Fourth generation period is?
1945-1955
1955-1965
1975-1990
1990-till now
The third generation of computers used which technology?
Vacuum tubes
Transistors
Microprocessors
Integrated Circuits
What is the output of
do{
print 10
}
while(10<=9)
9
Error
Nothing
10
for(i=2;i<=100;i+2)
print(i)
odd number
natural number
even number
integer
Which statement will come out of entire loop?
Continue
for
do-while
Break
C program language is_____
High level language
low level language
middle level language
machine language
Which datatype occupies least memory in C?
int
float
double
char
Represents
Decision/Condition
Input/output
processing
Start/End
Stands for
Start/End
Processing
Decision/Condition
Input/Output
B,D,F,H,___
K
l
H
J
B,D,H,___
L
N
P
R
2,3,6,18,___
36
108
9
64
0001,0010,0011,___
0100
1100
1111
1010
3,9,27,81,___
244
243
245
246
