Consider the following code snippet
while (a != 0)
{
if (a == 1)
continue;
else
a++;
}
What will be the role of the continue keyword in the above code snippet?
The continue keyword restarts the loop
The continue keyword skips the next iteration
The continue keyword skips the rest of the statements in that iteration
None of the mentioned
Answer : C
View More Related Question
1) What will be the step of the interpreter in a jump statement when an exception is thrown?
The interpreter stops its work
The interpreter throws another exception
The interpreter jumps to the nearest enclosing exception handler
None of the mentioned
View Answer
2) One of the special feature of an interpreter in reference with the for loop is that
Before each iteration, the interpreter evaluates the variable expression and assigns the name of the property
The iterations can be infinite when an interpreter is used
The body of the loop is executed only once
All of the mentioned
View Answer
3) Among the keywords below, which one is not a statement?
4) Consider the following code snippet
while (a != 0)
{
if (a == 1)
continue;
else
a++;
}
What will be the role of the continue keyword in the above code snippet?
The continue keyword restarts the loop
The continue keyword skips the next iteration
The continue keyword skips the rest of the statements in that iteration
None of the mentioned
View Answer
5) What are the three important manipulations done in a for loop on a loop variable?
Updation, Incrementation, Initialization
Initialization,Testing, Updation
Testing, Updation, Testing
Initialization,Testing, Incrementation
View Answer