Python Essentials 1 - Exam

Python Essentials 1 - Exam

Assessment

Flashcard

Computers

Professional Development

Practice Problem

Medium

Created by

Wayground Content

Used 2+ times

FREE Resource

Student preview

quiz-placeholder

36 questions

Show all answers

1.

FLASHCARD QUESTION

Front

How many element does the lst list contain?

Media Image

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?

Media Image

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:

Media Image

Back

is illegal

5.

FLASHCARD QUESTION

Front

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

Media Image

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

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?