Python Day 10

Python Day 10

University

7 Qs

quiz-placeholder

Similar activities

Python

Python

University - Professional Development

10 Qs

Python Conditional Statements

Python Conditional Statements

University

8 Qs

exception

exception

University

10 Qs

Python

Python

University

9 Qs

Advance Python

Advance Python

KG - Professional Development

10 Qs

Python-quiz2

Python-quiz2

University - Professional Development

11 Qs

Debugging-Duel-CodeUp'25

Debugging-Duel-CodeUp'25

University

10 Qs

Python Quiz

Python Quiz

University

10 Qs

Python Day 10

Python Day 10

Assessment

Quiz

Computers

University

Hard

Created by

Ninitha C

FREE Resource

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

Discover more resources for Computers