Computer Science · Programming Languages
Which of the following options represents a syntax error rather than a logical error in a program?
- 1Using '=' instead of '' to determine if two values are equal
- 2Allowing a divide-by-zero condition to occur during execution
- 3Failing to initialize counter and total variables before entering a loop
- 4Using commas instead of the two required semicolons in a standard 'for' loop header✓
Correct answer
Using commas instead of the two required semicolons in a standard 'for' loop header
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Programming Languages?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Programming Languages