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
KELAS 7 1
Quiz
•
9th - 12th Grade
20 questions
Network topologies
Quiz
•
8th Grade - University
16 questions
Secondary Storage
Quiz
•
8th - 9th Grade
20 questions
2324tx6
Quiz
•
9th - 12th Grade
20 questions
QUIZ BAB 4: SISTEM OPERASI
Quiz
•
8th Grade - University
20 questions
Perangkat lunak quiz
Quiz
•
7th - 9th Grade
13 questions
Copyrights and Wrongs Assessment
Quiz
•
9th - 12th Grade
19 questions
QUIZ INFORMATIKA
Quiz
•
1st - 10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
