Python Flashcard Week 2

Python Flashcard Week 2

Assessment

Flashcard

Computers

10th Grade

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])

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"]

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

Back

List contains mixed data types

4.

FLASHCARD QUESTION

Front

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

Back

None

5.

FLASHCARD QUESTION

Front

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

Back

0

6.

FLASHCARD QUESTION

Front

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

Back

"Hl tn"

7.

FLASHCARD QUESTION

Front

What will be the result of this?

Back

ython

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?