wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Programming Concepts in C - Quiz-II

Total questions: 20

Worksheet time: 20mins

Name
Class
Date
1.

Every line in a C program should end with a -----------------------

a)

colon (:)

b)

semicolon(;)

c)

comma(,)

d)

fullstop(.)

2.

Switch statement is a -----------------------------

a)

multi-way decision

b)

one-way-decision

c)

two-way decision

d)

all above

3.

Commonly used input function is ----------

a)

scanf()

b)

printf()

c)

total()

d)

above all

4.

In switch() statement, the case labels must end with ----------

a)

colon(:)

b)

semicolon(;)

c)

dot(.)

d)

none

5.

switch() statement should have at most ------------------ label

(a)  

6.

---------------- statement should be the last statement in each case in switch() statement

(a)  

7.

while() loop is a ---------------------------- control loop

a)

entry

b)

exit

c)

all above

d)

none

8.

-------------- loop performs the test at the bottom of the loop

a)

while()

b)

do-while()

c)

above all

d)

none

9.

In ------------- loop, the initialization step declares & initialize the value of the variable

(a)  

10.

each variable has a storage class in -------

(a)  

11.

Automatic variables are allocated memory automatically at ------------------------.

(a)  

12.

the default value of the automatic variable is -------

a)

1

b)

garbage

c)

0

d)

all above

13.

the keyword of the external variable is --------

(a)  

14.

Every C program must contain at least one function named as ------------------.

a)

main()

b)

scanf()

c)

printf()

d)

above all

15.

------------------ is the actual name of the function

(a)  

16.

The Parameter list in main function represent ------- parameter

a)

formal parameter

b)

argument list

c)

actual parameter

d)

above all

17.

The function name and the parameter list together constitute the -----------------------

a)

function signature

b)

main function

c)

input function

d)

above all

18.

The process in which a function calls itself directly or indirectly is called --------

(a)  

19.

The method copies the address of an argument into the formal parameter ----------------

(a)  

20.

A function declaration is also known as function ----------

a)

prototype

b)

call

c)

definition

d)

above all