2.12 Errors
10 Computer Science · Chapter 2: Computational Thinking & Algorithms · Federal Board (FBISE)
2.12 Errors from Federal Board 10 Computer Science (10th Class) Chapter 2, Computational Thinking & Algorithms: 1 short and long question and 2 MCQs with answers.
Errors MCQs
- Q1
A mistake related to the structure of an expression or statement, similar to a grammatical error, is called a:
Show answer
Correct answer: B. Syntax error
Syntax errors relate to incorrect structure, like grammatical mistakes in writing.
- Q2
A mistake in reasoning or planning that leads to an incorrect result, even though the code runs without crashing, is called a:
Show answer
Correct answer: B. Logical error
Logical errors occur due to flawed reasoning, producing incorrect results despite correct syntax.
Errors short questions
What are errors and their types?
Important