What will this line of code display in the shell window if name holds the value "Fred"?
print(name[2])
Python Strings
Quiz
•
Computers
•
7th - 9th Grade
•
Hard
Ben Redmond
Used 19+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will this line of code display in the shell window if name holds the value "Fred"?
print(name[2])
F
r
e
d
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will this line of code display in the shell window if name holds the value "Fred"?
print(name[1:3])
Fre
re
red
Fr
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will this line of code display in the shell window if name holds the value "Fred"?
print(name[1:])
Fre
re
red
Fr
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will this line of code display in the shell window if name holds the value "Fred"?
print(name[:3])
Fre
re
red
Fr
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will this line of code display in the shell window if name holds the value "Fred"?
print(name.upper())
Fred
fred
FRED
fRED
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will this line of code display in the shell window if name holds the value "Fred"?
print(name.lower())
Fred
fred
FRED
fRED
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will this line of code display in the shell window if name holds the value "Fred"?
print(name[0].lower())
f
F
fred
fRED
10 questions
Python Lists
Quiz
•
8th - 9th Grade
14 questions
Python Basics - Year 8
Quiz
•
7th - 9th Grade
12 questions
Python Loops
Quiz
•
9th - 11th Grade
12 questions
Python Programming Basics
Quiz
•
7th - 11th Grade
15 questions
Python programming language Quiz - Week 9
Quiz
•
9th Grade
10 questions
Y9 Intro to Python
Quiz
•
8th Grade
12 questions
Year 7 Python
Quiz
•
7th Grade
12 questions
N5 SDD - Python input and output
Quiz
•
7th - 11th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz
Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
15 questions
June Review Quiz
Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles
Quiz
•
8th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade
25 questions
SS Combined Advisory Quiz
Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
20 questions
Congruent and Similar Triangles
Quiz
•
8th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
24 questions
LSO - Virus, Bacteria, Classification - sol review 2025
Quiz
•
9th Grade
65 questions
MegaQuiz v2 2025
Quiz
•
9th - 12th Grade