
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
Access all questions and much more by creating a free account
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
15 questions
IT quiz class 7 E-commerce and blogging
Quiz
•
6th - 7th Grade
10 questions
Ստանդարտ ֆունկցիաներ - Python
Quiz
•
7th Grade
14 questions
LA7.C7: Turtle Graphics
Quiz
•
9th Grade - University
13 questions
Networks
Quiz
•
7th - 9th Grade
10 questions
ICT Java programming workshop
Quiz
•
9th Grade
10 questions
1.1 - System Architecture - CPU [OCR] [GCSE]
Quiz
•
9th - 12th Grade
12 questions
Revision quiz on Access
Quiz
•
8th Grade
13 questions
CODING QUIZZ
Quiz
•
8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
