What are the three important manipulations done in a for loop on a loop variable?

What are the three important manipulations done in a for loop on a loop variable?
A. Updation, Incrementation, Initialization
B. Initialization, Testing, Updation
C. Testing, Updation, Testing
D. Initialization, Testing, Incrementation
 
Answer: B
Explanation: In a for loop, the initialization, the test, and the update are the three crucial manipulations of a loop variable. Firstly the loop initialiases the variable then test the condition and then after executing the statement increments its value.
 

Tìm kiếm

Back
Top