Self Studies

Computer Scienc...

TIME LEFT -
  • Question 1
    5 / -1

    When is the finally block executed?

  • Question 2
    5 / -1

    How many except statements can a try-except block have to handle any exception?

  • Question 3
    5 / -1

    When will the else part of try-except-else be executed? 

  • Question 4
    5 / -1

    Can one block of except statements handle multiple exception?

  • Question 5
    5 / -1

    What will be the output of the following Python code:

    a = [4, 5, 6, 7]
    try:
        print ("First element is %d" %(a[2]))
        print ("Fifth element is %d" %(a[5]))
     
    except:
        print ("Error")

  • Question 6
    5 / -1

    The process of executing a suitable handler is known as _______________.

  • Question 7
    5 / -1

    If the file specified in a program statement of a Python code is unable to be opened then the interpreter raise which type of error?

  • Question 8
    5 / -1

    The exceptions are need to be handled by ______________.

  • Question 9
    5 / -1

    Which of the following is the right syntax to write try-except clause.

  • Question 10
    5 / -1

    When mismatched or inappropriate values but of the right data type are passed to a built-in method or operation as an argument, it can create which kind of exception?

Submit Test
Self Studies
User
Question Analysis
  • Answered - 0

  • Unanswered - 10

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Submit Test
Self Studies Get latest Exam Updates
& Study Material Alerts!
No, Thanks
Self Studies
Click on Allow to receive notifications
Allow Notification
Self Studies
Self Studies Self Studies
To enable notifications follow this 2 steps:
  • First Click on Secure Icon Self Studies
  • Second click on the toggle icon
Allow Notification
Get latest Exam Updates & FREE Study Material Alerts!
Self Studies ×
Open Now