Python Practice Test #1

Python Practice Test #1

Assessment

Flashcard

Other

Professional Development

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

30 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What will the output be after executing the following code snippet?

Media Image

Back

9

2.

FLASHCARD QUESTION

Front

What will the output be, if we run the following code? Options: Monday, Tuesday, Wednesday, Thursday, Friday, None, AttributeError: 'tuple' object has no attribute 'append'

Media Image

Back

AttributeError: 'tuple' object has no attribute 'append'.

3.

FLASHCARD QUESTION

Front

How many times will it print "#"?

Media Image

Back

3

4.

FLASHCARD QUESTION

Front

What is the output of this code when "robert" is entered by the user when prompted?

Media Image

Back

False

5.

FLASHCARD QUESTION

Front

What would be printed to the console after the following code is executed? Options: Hello, "Hello", World, Hello World, Hello, World

Media Image

Back

Hello, World

6.

FLASHCARD QUESTION

Front

What will the output be after executing the following code? Options: ('Python', 'Tuple'), [Python, Tuple], ['Python', 'Tuple'], (Python, Tuple)

Media Image

Back

('Python', 'Tuple')

7.

FLASHCARD QUESTION

Front

What is the output when the following code snippet is ran?

Media Image

Back

Groceries trip pending

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?