1 |
The break statement is used to exit from which part of a loop? |
Beginning
Middle
End
None of the above
|
2 |
The initialize expression and increment expression are contained in the loop expression in a |
While loop
For loop
Do-while loop
Mathematical while loop
|
3 |
A multiple statement while loop is terminated with a |
Right brace
Right bracket
Coma
Semicolon
|
4 |
,,,,,,,,,,,,,,is used to separate the three parts of the loop expression in a for loop |
:
;
"
|
|
5 |
The Ionc variable is initialized |
Inside the loop
Outside the loop
Either inside or outside the loop
At the end of loop
|
6 |
The condition being tested may use which of the following operations? |
Relational operators
Assignment operators
Logical operator
Both A and B
|
7 |
To associate a group of statements with the while statement enclose them between a pair of |
{ .}
{}
( )
" "
|
8 |
The statement associated with the while statement can be a ........... |
Unary statement
Compound statement
Binary statement
Ternary statement
|
9 |
In case of programing when you want to do something a fixed number of times then which of the following statement is used? |
For statement
While statement
Do-while statement
Continue statement
|
10 |
The method by way of which we can repeat a part of program is |
Using a for statement
Using a do-while statement
Using a while statement
Using a if-then-else statement
|