Celebrate Engineer's Day with this C & Circuit Debugging quiz! Test your skills in understanding and predicting the outputs of C programs, enhancing your debugging capabilities. Perfect for those looking to sharpen their programming acumen.
10
11
12
9
Rate this question:
10
12
11
9
Rate this question:
103
101
13
11
Rate this question:
10987654321
12345678910
1086420
109876543210
Rate this question:
10
0
-1
1
Rate this question:
65 A
A 65
65 65
A A
Compile time error
Run time error
Rate this question:
130
120
135
Compile time error
Runtime error
Rate this question:
Hello
Infinite Hello
Runtime error
Nothing
Rate this question:
1 2
1 2 4 5 6
0 1 2
0 1
Rate this question:
Compile time error
2 4.000000
2 3.000000
Undefined behaviour
Rate this question:
False
True
Compile time error
Runtime error
Rate this question:
0
1
Compile time error
Undefined behaviour
Rate this question:
True
False
Compile time error
Undefined behaviour
Rate this question:
Compile time error
4
4.000000
4.400000
Rate this question:
True
False
True if it is declared static
None of the mentioned
Rate this question:
0
1
Undefined behaviour
Compile time error
Rate this question:
Float
Short int
Undefined behaviour
Compile time error
Rate this question:
1
Compile time error
2
Undefined behaviour
Rate this question:
Returns 1
Returns 2
Varies
Compile time error
Rate this question:
Do
DoFirst
DoSecond
DoDefault
Rate this question:
No error, output is 1111
No error, output is 1
Compile time error, no break statement
Compile time error, case label outside switch statement
Rate this question:
Int
Char
Long
All of the mentioned
Rate this question:
Output: Case A
Output: Default
Output: Case A Default
Compile time Error
Rate this question:
1
0
Runtime error
Compile time error
Rate this question:
Char
Int
Double
Multiple type-casting in return is illegal
Rate this question:
1 2
Compile time error
1 2 1 2
Depends on the compiler
Rate this question:
Compile time error as foo is local to main
1 2
2 1
Compile time error due to declaration of function inside main
Rate this question:
Hi
Runtime error
Nothing
Varies
Rate this question:
True
False
No output will be printed
D. Run time error
Rate this question:
True
False
Rate this question:
It will print a
It will print 0
Compile time error
Runtime error
Rate this question:
Sizeof
-
++
All of the mentioned
Rate this question:
5 = a = b = c = d;
A = b = c = d = 5;
A = b = 5 = c = d;
None of the mentioned
Rate this question:
!=
&&
?:
,
Rate this question:
Output will be 3
Undefined behavior
Output will be 6
Output will be 5
Rate this question:
0, 4, 2, 1
0, 5, 2, 1
-1, 4, 1, 1
0, 5, 1, 0
Rate this question:
1
10
20
No output
Rate this question:
Runtime Error
Nothing
Compile time error
Hello is printed infinite times
Rate this question:
For
While
Do-while
All of the mentioned
Rate this question:
N, n
N, n + 1
N + 1, n
N + 1, n + 1
Rate this question:
True(infinite times)
True (1 time) False
False
Compile time error
Rate this question:
For loop
While loop
Do-while loop
None of the mentioned
Rate this question:
Inside if
Inside elseif
Inside if inside else if
Compile time Error
Rate this question:
True
False
Compile time error
Undefined behaviour
Rate this question:
Inside else if
Inside else
Compile time error
Inside if
Rate this question:
False, 0
True, 10
True, 0
Compile time error
Rate this question:
If(a == 1) if(b == 2) {}
If(a == 1) {} if(b == 2) {}
If(a == 1) {} else if(b == 2){}
None of the mentioned
If(if(a == 1)){}
If(func1(a)){}
If(a) {}
If((char) a){}
Rate this question:
Quiz Review Timeline (Updated): Mar 14, 2024 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.