wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Embedded C_NBKR

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.
Find the output of the following Program
a)
5
b)
Compiler error: Cannot modify a constant value.
c)
NULL
d)
No output
2.
Find the output of the following Program
a)
Option 1
b)
Error
c)
No output
d)
man
3.
What will be the output for the following program?
a)
I Like You
b)
I Hate You
c)
Error
d)
No output
4.
What will be the output for the below program.
a)
5 4 3 2 1
b)
5 4 3 2 1 0
c)
5 5 5 5 5
d)
5
5.
What is the output for the given program?
a)
2 2 2 2 2 2 3 4 6 5
b)
2.8 3.4 4 4 6.7 5
c)
Error
d)
2 3 4 6 5
6.
What will be the output of the following program?
a)
20
b)
0
c)
Null
d)
Linker Error - undefined reference to `i'
7.
Find out the correct output of the given program.
a)
-1 -1 0 2 0
b)
-1 -1 0 2 1
c)
0 0 1 3 0
d)
0 0 1 3 1
8.
Find out the correct output of the given program.
a)
1 8
b)
1 4
c)
1 2
d)
1 1
9.
Find out the compiled output of the given program.
a)
zero
b)
one
c)
tw
d)
three
10.
What will be the output of the following code?
a)
fff0
b)
ff80
c)
80
d)
08
11.
What is the output of the given program?
a)
Hello World
b)
Error
c)
No output
d)
Output: Hello world with warning
12.
What will be the output of the given code?
a)
c=-2
b)
c=2
c)
c=-1
d)
error
13.
Find the correct output of the given code.
a)
sizeof(i)=1
b)
sizeof(i)=4
c)
error
d)
sizeof(i)=8
14.
Find the right output of the given program.
a)
i=1
b)
i=0
c)
Error
d)
No output
15.
What will be the output of the following program?
a)
77
b)
M
c)
Error
16.
Find out the output of the program.
a)
Error
b)
Some Garbage value
17.
What will be the output of the following program?
a)
3 hello
b)
Compile time Error
c)
No output
18.
What will be the output of the following program?
a)
Compiler Error
b)
Random address of p and q - compiler dependent
c)
Garbage values
19.
Find the output.
a)
bsi
b)
absiha
c)
siha
d)
hai
20.
What will be the output of the program below?
a)
45545
b)
65655
c)
54545
d)
44554
21.
What will be the value of i after the execution the given code?
a)
4
b)
64
c)
16
d)
1
22.
What will be the output of the given program?
a)
ibj!gsjfoet
b)
Error
c)
No output
23.
What will be the output?
a)
10
b)
50
c)
error
24.
Find the correct output.
a)
100
b)
clrscr()
c)
error
25.
What will be the outcome of the given code?
a)
random address
b)
Error
c)
Null
d)
Option 4
26.
What is the output of the given code?
a)
No output/error
b)
Random value
27.
Find the output of the program given.
a)
error
b)
0..1..2
c)
0..0..1
d)
0..1..1
28.
Find the output of the following program.
a)
Error
b)
4..2
c)
2..2
d)
4..4
29.
What will be the output of the given program?
a)
400..300
b)
Garbage Values
c)
Error
30.
Find the correct output of the given code.
a)
Hello
b)
6422356 [Random address]
c)
H
31.
Find out the output of the following program.
a)
1 2 PP
b)
Error
c)
1 PP
d)
NUll
32.
Find the output.
a)
pascal ada cobol fortran perl
b)
pascal ada cobol
c)
Compiler Error
33.
What will be the output of the following program?
a)
11
b)
12
c)
Error
d)
10
34.
Find the output of the program.
a)
11
b)
12
c)
Compiler error - illegal use of operators
35.
What will be the output of the given code?
a)
GOOD
b)
Compiler Error - case label does not reduce to an integer constant
c)
BAD
36.
Find the output value of the given code.
a)
10
b)
1
c)
Random address
d)
NuLL
37.
What will be the output of the following code?
a)
100
b)
Error
c)
12
d)
No output
38.
What will be the output of the given program?
a)
Error
b)
1
c)
0
d)
Option 4
39.
Predict the correct output of the given program.
a)
M
b)
Error
c)
77
d)
Address value
40.
What will be the output of the program given?
a)
Compiler Error
b)
3 hello
c)
Garbage values
41.
What will be the output of the program given?
a)
Compiler Error
b)
Garbage Value
c)
Proper Addresses - as per compiler usage
42.
What will be the output of the program given?
a)
4
b)
Compiler error
c)
Linker error
d)
Garbage value
43.
What will be the output of the program given?
a)
100
b)
0
c)
Garbage value
d)
Error
44.
What will be the output of the program below?
a)
Garbage value
b)
100
c)
0
d)
Compiler error
45.
Find the output of the given program.
a)
Error
b)
I'm the greatest
c)
I'm the greatest with declaration mismatch warning
d)
No output
46.
What will be the output of the given program?
a)
Option 1
b)
Option 2
c)
Both are correct as addressing style varies from system to system
d)
Error
47.
What will be the output of the given program?
a)
error: lvalue required
b)
NULL
c)
Garbage values
48.
Find out the correct output for the given program.
a)
Option 1
b)
Error
c)
Random address values
d)
No output
49.
What will be the outcome of the given program?
a)
Compiled successfully
b)
Compiler error
50.
What will be the output of the following program?
a)
g20fy
b)
g 20 goofy
c)
g goofy 20
d)
Error