Python Practice Test #1

Python Practice Test #1

Assessment

Flashcard

Other

Professional Development

Easy

Created by

Wayground Content

Used 20+ times

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?

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'

Back

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

3.

FLASHCARD QUESTION

Front

How many times will it print "#"?

Back

3

4.

FLASHCARD QUESTION

Front

What is the output of this code when "robert" is entered by the user when prompted? Options: True, error, Robert, False

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

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)

Back

('Python', 'Tuple')

7.

FLASHCARD QUESTION

Front

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

Back

Groceries trip pending

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?