Error Handling "A1" 1 / 50 string[100] causes? dict error RuntimeError ValueError IndexError 2 / 50 open("a.txt") error on missing file? FileNotFoundError ValueError OSError TypeError 3 / 50 assert statement failure gives? AssertionError LogicError MemoryError SystemError 4 / 50 raise बिना except के? proper continue ignore error 5 / 50 try के बाद क्या आ सकता है? except finally else उपरोक्त सभी 6 / 50 Multi-exceptions in single except? (ValueError, ZeroDivisionError) { } [ ] 7 / 50 Most generic class? RuntimeError BaseException OSError ValueError 8 / 50 Which is most specific? Error BaseException ValueError Exception 9 / 50 कौन सा except all errors को पकड़ता है? except ValueError except Warning except Exception except IOError 10 / 50 try-block में error न हो तो except? चलेगा always कभी-कभी नहीं चलेगा 11 / 50 infinite while loop का error? ValueError FileError कभी error नहीं, बस infinite चलता है TypeError 12 / 50 int + str leads to OSError TypeError IndexError KeyError 13 / 50 Wrong dict key? NameError TypeError KeyError IndexError 14 / 50 Wrong list index? KeyError ValueError AttributeError IndexError 15 / 50 Unhandled exception का effect? ignore skip continue program crash 16 / 50 कौन सा block try के साथ mandatory है? except या finally एक जरूरी कोई नहीं finally else 17 / 50 try-except का purpose? remove errors prevent crash memory free slow code 18 / 50 int("ABC") क्या देगा? ImportError ValueError IndexError TypeError 19 / 50 Which Error for wrong arithmetic type? IndexError ValueError TypeError NameError 20 / 50 गलत indentation level? IndentationError ExceptError TypeError RuntimeError 21 / 50 Which Error occurs in infinite recursion? NameError ValueError ZeroDivisionError RecursionError 22 / 50 SystemExit कौन उठाता है? except sys.exit() function print 23 / 50 Which raises custom error message? error() raise Exception("msg") except try 24 / 50 Python में exception chaining किस keyword से? except join into from 25 / 50 Finally block का मुख्य use? loop close return data cleanup operations debugging 26 / 50 import गलत होने पर? ImportError NameError SystemError IOError 27 / 50 File not found results in? AttributeError ImportError FileNotFoundError RuntimeError 28 / 50 Wrong input type in function leads to? TypeError IOError NameError KeyError 29 / 50 कौन सी exception unmatched indentation पर आती है? ValueError SystemError EOFError IndentationError 30 / 50 raise ValueError का मतलब? error ignore fix error print error manual ValueError raise करना 31 / 50 कौन सा block हमेशा चलेगा? else finally except try 32 / 50 else block कब चलता है? finally के साथ try पहले error न हो error हो 33 / 50 कौन सा block optional है? except else finally (optional-but-mostly-used) try 34 / 50 except के बिना try use करने पर? Restart SyntaxError Warning चलेगा 35 / 50 IOError का modern नाम? OSError FileError SystemError InputOutError 36 / 50 IndexError किसमें आता है? dictionary tuple size variable mismatch list index out of range 37 / 50 KeyError कब आता है? file न मिले dict में key न मिले program crash list में index गलत 38 / 50 TypeError कब आता है? file missing loop missing गलत datatype operations variable missing 39 / 50 IndentationError किसमें होता है? spaces/tabs गलत हों string function class 40 / 50 AttributeError कब आता है? file missing string missing object में attribute missing हो variable missing 41 / 50 Which handles any error? except ValueError except ZeroDivisionError try Exception except Exception 42 / 50 Base class of all Exceptions? ValueError Exception Warning OSError 43 / 50 Multiple exceptions handle करने के लिए? multiple except blocks except-all trytry multi-error 44 / 50 try के बाद कौन आता है? continue except loop if 45 / 50 कौन सा keyword exception को manually raise करता है? final raise except throw 46 / 50 finally block कब execute होता है? सिर्फ error न हो कभी नहीं हमेशा सिर्फ error हो 47 / 50 SyntaxError कब आता है? runtime internet error file पढ़ते समय गलत Python code लिखने पर 48 / 50 NameError किसमें आता है? wrong loop wrong class undefined variable गलत file 49 / 50 ZeroDivisionError कब आता है? 0/5 5/0 1/1 5/2 50 / 50 Python में errors को handle करने के लिए क्या use होता है? try-except print conditions loops Your score isThe average score is 0% 0% Restart quiz