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
The multiple branching statement is....
ReplyDeleteswitch-case statement is the example of multiple branching statement.
ReplyDeleteIn Java script, which is a two way branching
ReplyDeletestatement?
a) if..else b) simple if
c) Nested if d) switch..case
Please give the explanation some answers
ReplyDeleteThank you for your inputs. We will do the needful.
Delete