The first character in a string is at index 0.
Their Python Exam

Quiz
•
Computers
•
9th Grade - Professional Development
•
Hard
Thomas Martinez
FREE Resource
31 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
T
F
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement Does Not describes a String in Python/Computer Science?
a sequence of characters
a series of 1's and 0's
a set of characters which are represented in/from the ASCII table by holding hte Alt- plus 4 digit decimal number
object existing in four dimensions
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the statement that will print the letter "s", given the variable declaration word = "windows"
print(word[-2])
print(word[-1])
print(word[2])
print(word[3])
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which print output is the result of the following code?
"w"
"s"
"o"
""(empty string)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following code will print "act".
word = "characteristics"
print(word[4:6])
T
F
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which choice will print the second half of the word "Consequences" (uences), given the following variable declaration?
word = "Consequences"
print(word[6:])
print(word[:6])
print(word[1:7])
print(word[7:1])
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Choose the correct print output for the following code:
name = "Alton"
print(name[::4]
"Atn"
"lo"
"on"
"An"
Create a free account and access millions of resources
Similar Resources on Quizizz
27 questions
python string

Quiz
•
9th - 12th Grade
30 questions
Programming Techniques

Quiz
•
8th - 10th Grade
30 questions
NRIT_Python_Quiz-01

Quiz
•
University
26 questions
Chapter 8 - cs1

Quiz
•
9th Grade
30 questions
PYTHON AI

Quiz
•
9th Grade
30 questions
T-Level DPDD: List Concepts Quiz

Quiz
•
11th Grade
30 questions
PYTHON

Quiz
•
University
30 questions
Programming Q3 Review - Data Structures

Quiz
•
9th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University