Machine-translated by Google. Questions are authored in English.
Top

Discussion

Grammatical rules which do not involve the meaning of words are called ______

  • A.Semantics
  • B.Syntactic
  • C.Both (a) and (b)
  • D.None of the given above

Answer: B

Such rules are called Syntactic rules.

Syntax concerns the form and arrangement of words and symbols, the grammatical structure of a sentence or program, regardless of what it means. A sentence can be syntactically correct and still meaningless.

Semantics is the study of meaning, which is exactly what these rules leave out, so 'Semantics' and 'Both (a) and (b)' are wrong.

In a compiler, the parser checks syntax, while meaning, such as type correctness, is checked in the separate semantic analysis phase.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.