CBSE Class 12 Computer Science Question 13 of 42

Solved 2024 Sample Question Paper CBSE Class 12 Computer Science (083) — Question 13

Back to all questions
13
Question

Question 13

State whether the following statement is True or False:

An exception may be raised even if the program is syntactically correct.

Answer

True

Reason — An exception can be raised even if the program is syntactically correct. This can happen due to various runtime errors such as division by zero, accessing an index out of range, trying to perform an operation on incompatible data types, etc. These types of errors are detected during the execution of the program and can lead to exceptions being raised, even if the program's syntax is correct.