Question 126

A missing semicolon in a C program is detected at:

  1. ARun time
  2. BIt is never detected
  3. CCompile time (syntax error)
  4. DLink time
Show answerHide answer

Correct answer: (C) Compile time (syntax error)

Explanation

Grammar violations are syntax errors caught by the compiler.

From DSSSB TGT Computer Science Full Mock Test 2

This is question 126 of DSSSB TGT Computer Science Full Mock Test 2. 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.