T/F: The first character of a string is at index 1
Python Review 5/23

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

9 questions
Show all answers
1.
FLASHCARD QUESTION
Front
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.
8.
FLASHCARD QUESTION
Front
What is the output of the following code? Options: UZE, PZL, PZE, ZLE
Back
PZL
9.
FLASHCARD QUESTION
Front
Which code would output "tac", given that the variable word="cat"? Options: print(word[2:1:0]), print(word[::-1]), print(word[0:1:2]), print(word[::1])
Back
print(word[::-1])
Similar Resources on Quizizz
6 questions
Code.org CSP Unit 4 Review

Flashcard
•
9th - 12th Grade
6 questions
Code.org CSP Unit 4 Review

Flashcard
•
9th - 12th Grade
6 questions
More Python Conditionals

Flashcard
•
9th - 12th Grade
6 questions
lists/tuples

Flashcard
•
9th - 12th Grade
8 questions
AP CS A Flashcard 4 Practice

Flashcard
•
9th - 12th Grade
6 questions
Python -- Inputs

Flashcard
•
9th - 12th Grade
10 questions
CS Python Fundamentals Flashcard 4 Practice

Flashcard
•
9th - 12th Grade
3 questions
Untitled Flashcards

Flashcard
•
9th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade