When the rules of the programming language are not followed it gives ____…

2021

When the rules of the programming language are not followed it gives ____ errors.

  1. A.

    Syntax

  2. B.

    Logical

  3. C.

    Run time

  4. D.

    Printing

Attempted by 419 students.

Show answer & explanation

Correct answer: A

Every programming language has a set of grammatical rules called syntax.
If a programmer writes code that violates these rules, the compiler/interpreter generates a syntax error.

Example:

printf("Hello")

Missing semicolon (;) causes a syntax error in C language.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs