1. Home
  2. Engineering
  3. Computer Engineering
  4. Which statement is correct? A syntax error

Added 28 Nov 2026

Which statement is correct? A syntax error

  1. Allows the same function name to perform different tasks
  2. Is a violation of the grammatical rules of the language Correct answer
  3. Is called when an object is destroyed
  4. Is an example of compile-time polymorphism

Correct answer

B. Is a violation of the grammatical rules of the language

MCQSEXAM

Explanation

A syntax error is a violation of the grammatical rules of the language.

Reference

Asked in: Engineering Computer Engineering Practice

https://en.wikipedia.org/wiki/Object-oriented_programming

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Engineering MCQs

Practise all Computer Engineering MCQs

Similar MCQs