Python Flashcard Week 2

Python Flashcard Week 2

Assessment

Flashcard

Computers

10th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

14 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following will correctly print the second-to-last item from this list?
Options: print(items[-1]), print(items[1]), print(items[-2]), print(items[3])

Media Image

Back

print(items[-2])

2.

FLASHCARD QUESTION

Front

What is the result of this code? Options: ["blue", "green", "black", "red"], ["blue", "green", "yellow", "red"], ["blue", "green", "yellow", "black"], ["Error"]

Media Image

Back

blue

3.

FLASHCARD QUESTION

Front

Which statement is true about the list below? Options: All elements are integers, List contains only numeric types, List contains mixed data types, List contains only strings

Media Image

Back

List contains mixed data types

4.

FLASHCARD QUESTION

Front

What will be the output? Options: ["red", "green", "blue", "yellow"]

Media Image

Back

None

5.

FLASHCARD QUESTION

Front

What is the output of this code? Options: 3, 0, Error, None

Media Image

Back

0

6.

FLASHCARD QUESTION

Front

What will this output? Options: "HlPh!", "Hl tn", "HlPh", "Hl ,y!"

Media Image

Back

"Hl tn"

7.

FLASHCARD QUESTION

Front

What will be the result of this?

Media Image

Back

ython

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?

Discover more resources for Computers