Computer Science, asked by shakirainapure2784, 9 months ago

Which of the following loop statement is used to iterate a specified variable over all the properties of an object? (i) for (ii) do…while (iii) for/in (iv) none of these

Answers

Answered by imspidey123
2

Answer:

Conditional loops continue executing until a controlling condition ... It is quite unusual to keep track of the number of times a particular instruction is executed in a loop. It is far more common to keep track of the times the set of instructions in the body of a loop are executed.

PLEASE MARK ME AS THE BRAINLIEST PLEASE!!!

Answered by shilpa85475
2

The for/in loop statement is used to iterate a specified variable over all the properties of an object. Option (iii) is the right answer.

Explanation:

The for/in loop is a special case of the for loop. It is used in case the object length is unknown. The in statement is presented as the parameter for loop. The in keyword has on the left the property to be iterated while the object is on the right. The for loop takes only a single argument in each iteration and increments by 1 after every iteration by default. Consider an array. The for/in loop allows for iteration over all the items in the specified array.

Similar questions