Selection, String Slicing and Input in Python 3
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
Vernon Leigh
Used 12+ times
FREE Resource
Enhance your content in a minute
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to make a decision in Python?
if
else
for
while
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to get user input in Python?
read_input()
get_input()
user_input()
input()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? name = 'Python' print(name[2:4])
th
on
tho
yt
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? x = 5 if x > 3: if x < 7: print('Yes') else: print('No')
Yes
Error
Maybe
No
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to check if a value is present in a string?
for
not
with
in
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? name = 'Python' print(name[-3:])
on
hon
Pyt
tho
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to convert a string to uppercase in Python?
title()
upper()
capitalize()
lower()
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
20 questions
IPST_SE
Quiz
•
9th - 10th Grade
15 questions
INFORMATIKA_8
Quiz
•
7th - 9th Grade
18 questions
IP, Router_UD
Quiz
•
9th Grade
15 questions
J808 LO1 and LO2 planning project keywords / terms
Quiz
•
9th - 11th Grade
22 questions
TIN HỌC 7
Quiz
•
9th Grade - University
20 questions
ÔN TẬP KIỂM TRA GIỮA KỲ 1 NĂM HỌC 2024 - 2025
Quiz
•
9th Grade
19 questions
GCSE 3.4 Computer systems - Hardware & Software
Quiz
•
9th - 11th Grade
20 questions
End of year quiz: Python
Quiz
•
9th 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
