NEW
Font size
WorksheetsProgramming in C Test-1
Total questions: 10
Worksheet time: 8mins
Who is the father of C language?
Steve Jobs
Rasmus Lerdorf
Dennis Ritchie
James Gosling
All keywords in C are in ____________
UpperCase letters
LowerCase letters
CamelCase letters
None of the mentioned
Which is valid C expression?
int my_num = 100000;
int my_num = 100,000;
int my num = 1000;
int $my_num = 10000;
What is the sizeof(char) in a 32-bit C compiler?
1 bit
2 bits
1 Byte
2 Bytes
scanf() is a predefined function in______header file.
stdarg. h
iostream.h
conio.h
stdio.h
What will be the output of the following C code?
Hello World! 34
Hello World! 1000
Hello World! followed by a junk value
Compile time error
What will be the output of the following C code? (Input values: x= 7.5, y = 12.8)
7.500000, 12.800000
Run time error
7.500000, 12.8
7.500000, junk
How many times i value is checked in the following C program?
1
2
3
4
What is the output of the following code?
2
15
18
16
What is the range of values that can be stored by int datatype in C?
-(2^31) to (2^31) - 1
-256 to 255
0 to (2^31) - 1
-(2^8) to (2^8) - 1
