Python Essentials 1 - Exam

Python Essentials 1 - Exam

Assessment

Flashcard

Computers

Professional Development

Hard

Created by

Quizizz Content

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

36 questions

Show all answers

1.

FLASHCARD QUESTION

Front

How many element does the lst list contain?

Back

zero

2.

FLASHCARD QUESTION

Front

What is the output of the following piece of code if the user enters two lines containing 3 and 2 respectively?

Back

0

3.

FLASHCARD QUESTION

Front

Which of the following snippet shows the correct way of handling multiple exceptions in a single except clause?

Back

Media Image

4.

FLASHCARD QUESTION

Front

Assuming that my_tuple is a correctly created tuple, the fact that tuples are immutable means that the following instructions:

Back

is illegal

5.

FLASHCARD QUESTION

Front

What is the output of the following snippet? Options: (4,), 44, (4), 4

Back

4

6.

FLASHCARD QUESTION

Front

Which of the following is the correct extension of the Python file? a) .python, b) .pl, c) .py, d) .p

Back

.py

7.

FLASHCARD QUESTION

Front

Which character is used to give single-line comments in Python? Options: a) //, b) #, c) !, d) /*

Back

#

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?