
Python Strings
Quiz
•
Computers
•
7th - 9th Grade
•
Practice Problem
•
Hard
Ben Redmond
Used 19+ times
FREE Resource
Enhance your content in a minute
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
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
13 questions
5.3. Запис математичних виразів на мові Python
Quiz
•
8th Grade
14 questions
Linux: Users and Groups
Quiz
•
9th Grade - University
13 questions
Spreadsheets
Quiz
•
6th - 8th Grade
10 questions
App Development lesson 1
Quiz
•
8th - 9th Grade
10 questions
Cyber Security
Quiz
•
1st - 10th Grade
9 questions
Animal Rescue Centre Names
Quiz
•
7th Grade
10 questions
Emerging technologies
Quiz
•
6th Grade - University
10 questions
Layers Palette
Quiz
•
7th Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving Trivia!
Quiz
•
6th - 8th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
12 questions
Thanksgiving Trivia
Quiz
•
3rd - 8th Grade
