Python Day 10

Python Day 10

University

7 Qs

quiz-placeholder

Similar activities

exception

exception

University

10 Qs

Array in C

Array in C

University

10 Qs

Java Quiz1

Java Quiz1

University

10 Qs

JRB2 Quiz 4

JRB2 Quiz 4

University

10 Qs

Java Juggling

Java Juggling

University

10 Qs

java quiz based on interface

java quiz based on interface

University

10 Qs

Python-Quiz-Basic-Datatypes

Python-Quiz-Basic-Datatypes

12th Grade - Professional Development

10 Qs

Testing

Testing

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