Search Header Logo
Python Review 5/23

Python Review 5/23

Assessment

Flashcard

•

Computers

•

9th - 12th Grade

•

Practice Problem

•

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

9 questions

Show all answers

1.

FLASHCARD QUESTION

Front

T/F: The first character of a string is at index 1

Back

False

2.

FLASHCARD QUESTION

Front

Choose the code that will print the letter "n" in word="windows". Options: print(word[3]), print(word[2]), print(word[4]), print(word[0])

Back

print(word[2])

3.

FLASHCARD QUESTION

Front

If word = "windows", what is the output of the code: print(word[-1])?

Back

"s"

4.

FLASHCARD QUESTION

Front

If word="windows", what is the result of the code: print(word[-1] + word[0] + word[4])?

Back

swo

5.

FLASHCARD QUESTION

Front

T/F, when a string is sliced with a start and stop index (ex: print(word[0:5]), the stop index is included in the slice.

Back

False

6.

FLASHCARD QUESTION

Front

If the variable word="characteristics", what will the code: print(word[4:7]) output?

Back

"act"

7.

FLASHCARD QUESTION

Front

When given the code: print(word[0:6:2]), what does the 2 mean?

Back

Print every 2nd letter.

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

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

Already have an account?