Font size
WorksheetsProgramming Concepts in C - Quiz-II
Total questions: 20
Worksheet time: 20mins
Every line in a C program should end with a -----------------------
colon (:)
semicolon(;)
comma(,)
fullstop(.)
Switch statement is a -----------------------------
multi-way decision
one-way-decision
two-way decision
all above
Commonly used input function is ----------
scanf()
printf()
total()
above all
In switch() statement, the case labels must end with ----------
colon(:)
semicolon(;)
dot(.)
none
switch() statement should have at most ------------------ label
(a)
---------------- statement should be the last statement in each case in switch() statement
(a)
while() loop is a ---------------------------- control loop
entry
exit
all above
none
-------------- loop performs the test at the bottom of the loop
while()
do-while()
above all
none
In ------------- loop, the initialization step declares & initialize the value of the variable
(a)
each variable has a storage class in -------
(a)
Automatic variables are allocated memory automatically at ------------------------.
(a)
the default value of the automatic variable is -------
1
garbage
0
all above
the keyword of the external variable is --------
(a)
Every C program must contain at least one function named as ------------------.
main()
scanf()
printf()
above all
------------------ is the actual name of the function
(a)
The Parameter list in main function represent ------- parameter
formal parameter
argument list
actual parameter
above all
The function name and the parameter list together constitute the -----------------------
function signature
main function
input function
above all
The process in which a function calls itself directly or indirectly is called --------
(a)
The method copies the address of an argument into the formal parameter ----------------
(a)
A function declaration is also known as function ----------
prototype
call
definition
above all
