No student devices needed. Know more
20 questions
What will be the output of the C code?
Hello World! x;
Hello World! followed by a junk value
Compile time error
Hello World!
The format identifier ‘%i’ is also used for _____ data type.
char
int
float
double
What will be the output of the following C code?
2
8
9
10
What will be the output of the following C code?
3 2 3
2 2 3
3 2 2
2 3 3
What will be the output of the following C code?
Run time error
7
8
Depends on compiler
What will be the output of the following C code?
True
False
True False
No Output
Assuming, integer is 2 byte, What will be the output of the program?
ffff
0
8fff
Error
What will be the output of the following C code? (Assuming that we have entered the value 1 in the standard input)
1
2
1 2
Run Time Error
What will be the output of the following C code?
Hi is printed 9 times
Hi is printed 8 times
Hi is printed 7 times
Hi is printed 6 times
What will be the output of the following C code?
H
H is printed infinite times
Compile time error
Varies
What will be the output of the following C code?
hello 5
Error
Nothing
Junk value
What will be the output of the following C code?
Run time error
h h
h e
h l
Which of the following cannot be a structure member?
Another structure
Function
Array
None of the mentioned
What would be the size of the following union declaration? (Assuming size of double = 8, size of int = 4, size of char = 1)
4
8
40
80
What is the default return type if it is not specified in function definition?
void
int
double
short int
What will be the output of the following C code?
Its not zero
Its zero
Run time error
None
What will be the output of the following C code
6 -6 0 0
6 -5 0 1
-6 -6 0 1
6 -6 0 1
What will be the output of the following C code?
Undefined behavior
Output will be 3
Output will be 6
Output will be 5
#include statement must be written __________
Before main()
Before any scanf() / printf()
After main()
It can be written anywhere
Which type of variables can have the same name in a different function?
Global variables
Static variables
Function arguments
Both static variables and Function arguments
Explore all questions with a free account