Question 48Asked in BPSC TRE 1.0 (2023) Computer Science Class 11-12

If a semicolon is not used at the end of the statement, what message will be displayed by C++?

  1. ASemicolon missing
  2. BStatement missing
  3. CError in statements
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (E) None of the above

Explanation

Turbo C++ reports "Statement missing ;" and modern compilers say "expected ';'". None of the listed messages matches exactly.

From BPSC TRE 1.0 (2023) Computer Science Class 11-12 — Previous Year Paper

This is question 48 of BPSC TRE 1.0 (2023) Computer Science Class 11-12 — Previous Year Paper. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.