CPP For Loop MCQ

Cpp MCQ
  1. Home
  2. Tutorials
  3. Cpp
  4. For Loop
  5. Multiple Choice Question

(1) Which of the following is first expression in C++ for loop ?

A) increment/decrement
B) initialization
C) condition
D) None

(2) Which of the following operator is used to separate expressions in C++ for loop statement?

A) Semicolon ;
B) Colon :
C) Comma ,
D) Ampersand &

(3) Which of the following is optional in C++ for loop statement?

A) initialization
B) condition
C) increment/decrement
D) All of these
Comments
Login to TRACK of Comments.