
Basics of Python Strings and Lists
Authored by Isaiah Mercado
Computers
9th Grade
Used 26+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first character in a Python string?
0
1
-1
2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method would you use to convert a string to all uppercase letters in Python?
upper()
lower()
capitalize()
title()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet?
World
Hello
, Wor
World!
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to create a list in Python?
list = [1, 2, 3]
list = (1, 2, 3)
list = {1, 2, 3}
list = <1, 2, 3>
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
0 1 2
1 2 3
0 1 2 3
1 2
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct syntax for a while loop in Python?
while (condition) { }
while condition:
while condition { }
while (condition):
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following expression?
Error
n
Python
Pytho
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
Ôn tập kỳ 2 tin 6
Quiz
•
1st - 12th Grade
19 questions
Python Year 9 Quiz
Quiz
•
8th - 10th Grade
15 questions
HTML Quiz
Quiz
•
9th - 12th Grade
15 questions
Algorithms
Quiz
•
7th - 10th Grade
20 questions
Keyboard Quiz
Quiz
•
9th Grade
15 questions
cmd and terminal
Quiz
•
7th Grade - University
21 questions
CPA MS-Office Hotkeys Quiz
Quiz
•
8th Grade - Professio...
15 questions
Disk Management and Boot Sequence Vocab
Quiz
•
9th - 12th 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