Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C Programming Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Format specifier used for integer type of data.

a)

a.%f

b)

b.%c

c)

c.%o

d)

d.%d

2.

Space required in memory for float in bytes

a)

a.2

b)

b. 4

c)

c. 6

d)

d.8

3.

++ name the operator

a)

a.decrement

b)

b.increment

c)

c.unary pius

d)

d.logical not

4.

== name the operator

a)

a.equality operator

b)

b.less than

c)

c.greater than

d)

d.equal to

5.

Which is the following is not a header file?

a)

a.stdio.h

b)

b.conio.h

c)

c.time.h

d)

d.helio.h

6.

Which of the following operator returns the address of the variable associated with it.

a)

a.&

b)

b.!

c)

c.*

d)

d.\

7.

Basic structure of c programing starts form

a)

a.Documentation section

b)

b.Include section

c)

c.Defination section

d)

d.main section

8.

\n is used for

a)

a.Horizontal tab

b)

b.Vertical tab

c)

c. Backspace

d)

d. Newline

9.

which of the following is a keyword?

a)

a.red

b)

b.flag

c)

c.ind

d)

d.case

10.

which of the following is not a valid identifier?

a)

a.Void

b)

b.void

c)

c._4desk

d)

d.low_temp