RBSE Class 12 Computer Science Chapter 1 Question and Answers

Chapter 1 Exception Handling in Python Questions and Answers Question 1. “Every syntax error is an exception but every exception cannot be a syntax error.” Justify the statement.( " हर सिंटैक्स त्रुटि एक अपवाद है लेकिन हर अपवाद सिंटैक्स त्रुटि नहीं हो सकता है। " कथन का औचित्य सिद्ध कीजिए। ) A. Syntax error ar e errors which occurs by not following the proper structure which leads to exception, while exceptions are IOError (Input Output Error), ImportError, ValueError. उत्तर - ( सिंटैक्स त्रुटि वे त्रुटियां हैं जो उचित संरचना का पालन न करने से होती हैं जो अपवाद की ओर ले जाती हैं , जबकि अपवाद IOError (Input Output Error), ImportError, ValueError हैं। ) Exception :- An exception is an occurrence during the execution of a program that causes the usual flow of the program's instructions to be disrupted. अपवाद :- ( एक अपवाद एक प्रोग्राम के निष्पादन के दौरान एक घटना है जो प्रोग्राम के निर्देशों के सामान...