Podcast
Questions and Answers
type of errors in which the program executes but gives incorrect result is
type of errors in which the program executes but gives incorrect result is
- syntax
- logic (correct)
- exception
- compiler
exception is generated by
exception is generated by
- raise (correct)
- throw
- generate
- try
the block to handle all the exception is
the block to handle all the exception is
- try:
- catch:
- except: (correct)
- except Exception:
which block is executed when no exception is raised from the try block?
which block is executed when no exception is raised from the try block?
try block is immediately followed by _____ block to handle an exception.
try block is immediately followed by _____ block to handle an exception.
which exception is raised when two or more data types are mixed without coercion?
which exception is raised when two or more data types are mixed without coercion?
when you accept string instead of integer value,____ is raised.
when you accept string instead of integer value,____ is raised.
which statement raises exception if the expression is false?
which statement raises exception if the expression is false?
what will be the output of the following code?
x=[1,2,3,4]
print(x[4])
what will be the output of the following code? x=[1,2,3,4] print(x[4])
'1'==1 will result in
'1'==1 will result in