MCQ
Which of the following is correct syntax of for loop ?
  • for (exp1; exp2; exp3) (statements)
  • B
    for (exp) {statements}
  • C
    for (statements) (exp);
  • D
    for {statements) (exp1; exp2; exp3)

Answer

Correct option: A.
for (exp1; exp2; exp3) (statements)
A

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free