adplus-dvertising
frame-decoration

Question

Consider the following code snippet. What will be the role of the continue keyword in the above code snippet?
while (a != 0)
{
   if (spam>a == 1) 
       continue;
   else 
       a++;
}

a.

The continue keyword restarts the loop

b.

The continue keyword skips the next iteration

c.

The continue keyword skips the rest of the statements in that iteration

d.

None of the mentioned

Answer: (c).The continue keyword skips the rest of the statements in that iteration

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Consider the following code snippet. What will be the role of the continue keyword in the above code snippet?

Similar Questions

Discover Related MCQs

Q. Consider the following code snippet

function f(o)
{
if (o === undefined) debugger;
}

What could be the task of the statement debugger?

Q. Among the keywords below, which one is not a statement?

Q. The unordered collection of properties, each of which has a name and a value is called

Q. The object has three object attributes namely

Q. A linkage of series of prototype objects is called as :

Q. Consider the below given syntax:

book[datatype]=assignment_value;

In the above syntax, the datatype within the square brackets must be

Q. To determine whether one object is the prototype of (or is part of the prototype chain of) another object, one should use the

Q. Consider the following code snippet
function f() {};

The above prototype represents a

Q. The purpose of extensible attribute is to

Q. The basic purpose of the toLocaleString() is to

Q. JavaScript is designed for following purpose

Q. We can embed JS code inside HTML directly ?

Q. JavaScript Code can be called by using _________.

Q. JS code included inside head section is loaded before loading page.

Q. It is good to include JS code inside footer section in order to speed up the Page loading time of Webpage.

Q. Which attribute is used to specifies that the script is executed when the page has finished parsing (only for external scripts)

Q. JavaScript was invented at _______ Lab.

Q. Java Script Variable should be Case ___________.

Q. Underscore can be used as first letter while declaring variable in JavaScript.

Q. Variable declared inside JavaScript Function will be called as ____________.