wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Basic Printf

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.
a)

variable! x

b)

variable! followed by a junk value

c)

Compile time error

d)

variable!

2.

a)

3

b)

Compile time error

c)

Run time error

d)

give garbage value

3.

a)

1

b)

2

c)

Runtime Error

d)

Compile time error

4.

a)

hello

helloworld

b)

world

heworld

c)

helloworld

hellold

d)

None of the mentioned

5.

a)

letsfindcourse 15 3

b)

letsfindcourse 14 2

c)

letsfindcourse 14 3

d)

Compilation Error

6.

a)

Syntax Error

b)

hello5

c)

gives garbage value

d)

print hello and terminates

7.

a)

%s Find best course Find best course

b)

%s Find best course %s Find best course

c)

Invalid Syntax

d)

Run time error

8.

a)

Goes in infinite loop

b)

Gives Address of function main.

c)

Gives garbage value

d)

Compilation Error

9.

a)

1

b)

2

c)

3

d)

Invalid Syntax

10.

a)

Will execute without any error

b)

Will give Segmentation fault

c)

Will give Compilation Error

d)

None of the above