Pages

Thursday, November 3, 2016

MCQs with answer - 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
ANSWER: D

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

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

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

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

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

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

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

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
ANSWER: A

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

5 comments:

  1. The multiple branching statement is....

    ReplyDelete
  2. switch-case statement is the example of multiple branching statement.

    ReplyDelete
  3. In Java script, which is a two way branching
    statement?
    a) if..else b) simple if
    c) Nested if d) switch..case

    ReplyDelete
  4. Please give the explanation some answers


    ReplyDelete
    Replies
    1. Thank you for your inputs. We will do the needful.

      Delete