Introduction
to C++
Flow
of Control
Evaluation
Part – I
Choose the correct answer
1. What is the alternate name of
null statement?
(A)
No statement
(B) Empty statement
(C)
Void statement
(D)
Zero statement
2. In C++, the group of statements
should enclosed within:
(A){}
(B)[]
(C)()
(D)<>
3. The set of statements that are
executed again and again in iteration is called as:
(A)
condition
(B) loop
(C)
statement
(D)
body of loop
4. The multi way branching
statement:
(A)
if
(B)
if … else
(C) switch
(D)
for
5. How many types of iteration
statements?
(A)
2
(B) 3
(C)
4
(D)
5
6. How many times the following
loop will execute? for (int i=0; i<10; i++)
(A)
0
(B) 10
(C)
9
(D)
11
7. Which of the following is the
exit control loop?
(A)
for
(B)
while
(C) do…while
(D)
if…else
8. Identify the odd one from the
keywords of jump statements:
(A)
break
(B) switch
(C)
goto
(D)
continue
9. Which of the following is the
exit control loop?
(A) do-while
(B)
for
(C)
while
(D)
if-else
10. A loop that contains another
loop inside its body:
(A) Nested loop
(B)
Inner loop
(C)
Inline loop
(D)
Nesting of loop
Related Topics
Privacy Policy, Terms and Conditions, DMCA Policy and Compliant
Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.