Pages

Thursday, November 3, 2016

MCQs based on Branching Statements of C Programming Language


Which of the following is branching statement of C language?
A. if statement
B. if…else statement
C. switch statement
D. All of these

____________ is the built in multiway decision statement in C.
A. for
B. switch
C. if
D. while

The default case is compulsory in the switch case statement.
A. True
B. False
C. None of these

if and switch statements are examples of control statements in C.
A. True
B. False
C. None of these

Case label in switch statement must be constants only.
A. True
B. False

The break statement is optional in the switch-case statement
A. True
B. False
C. None of these

It is not permitted to nest a switch statement
A. True
B. False
C. None of these

A program stops its execution when break statement is encountered.
A. True
B. False
C. None of these

If the Boolean expression of if statement evaluates to ________, then the block of code inside the if statement will be executed.
A. True
B.  False
C.  None of these

C programming language assumes any non-zero and non-null values as true.
A. Statement is True
B.  Statement is False


No comments:

Post a Comment