MCQ PracticeSingle Best AnswerTopic: Javascript loops MCQ
Q
What are the three most important manipulations performed on a loop variable in a for loop?
Question ID
#5063
Subchapter
Javascript loops MCQ
Action
Choose one option below
Choose Your Answer
Click an option to check whether your answer is correct.
A
Updation, Incrementation, Initialization ✔✖
B
Initialization,Testing, Updation ✔✖
C
Testing, Updation, Testing ✔✖
D
Initialization,Testing, Incrementation ✔✖
B
Correct Answer: B
Explanation
The three critical manipulations of a loop variable in a for loop are initialization, testing, and updating.
The loop first initialises the variable, then tests the condition, and finally increments its value after executing the statement.