Selection, String Slicing and Input in Python 3

Quiz
•
Computers
•
9th Grade
•
Medium
Vernon Leigh
Used 12+ times
FREE Resource
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()
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
№5.2. Типи даних. Величини (16 q)

Quiz
•
5th - 11th Grade
20 questions
Контрольная работа

Quiz
•
9th Grade
15 questions
Iteration

Quiz
•
9th - 12th Grade
20 questions
Python - lists,loops,basics

Quiz
•
9th - 11th Grade
15 questions
Pętla for i while

Quiz
•
9th - 12th Grade
15 questions
Python

Quiz
•
6th Grade - University
20 questions
SST Yr8 - NCCE - Algorithmic Thinking

Quiz
•
9th Grade
20 questions
9-Класс ТЕСТ 30-34

Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade