What is ‘Syntax’ in programming?
AThe style of the code
BThe logic of the program
CThe set of rules for writing code
DThe speed of the program
Explanation
• Syntax errors occur when code violates the language’s grammar rules.
• The compiler/interpreter will reject syntactically incorrect code.
• It is the ‘language’ of the programming language.
Exam Relevance
- Topic: Competitive Exams
- Subtopic: FPSC/PPSC/NTS Past Papers

No Comments