Quiz: Loops
In this lesson, your understanding of the loop will be tested.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
var values = 10;
var i = 0;
while ( i < values ) {
i += 1;
values = values - 1;
}
Consider the above code snippet and select the option when while
loop gets terminated?
A.
when i
becomes 5
B.
when values
becomes 5
C.
when both i
and values
become 5
1 / 5