Search Header Logo

Python Day 10

Authored by Ninitha C

Computers

University

Python Day 10
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The unexpected event happened during program execution should be handled by

EXCEPTION
EXPERIMENT
ASSERTION
EXTRAORDINARY

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Output if a=10, b =5?

5.0
Something Went Wrong
Arithmetic Error
2.0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many except statements can a try-except block have?

zero
one
more than one
more than zero

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

always
when an exception occurs
when no exception occurs
when an exception occurs in to except block

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code? lst = [1, 2, 3] lst[3]

NameError
ValueError
IndexError
TypeError

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code? lst = [1, 2, 3] print(t[5])

NameError
ValueError
IndexError
TypeError

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code print(4 + '3')

NameError
ValueError
IndexError
TypeError

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers