
String & List in Python
Authored by Tamil Selvi
Computers
11th - 12th Grade
Used 7+ 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
Which of these is the correct code for creating a list of names?
nameList = John, Harry, Jesse, John, Harry, Harry
nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList = [John, Harry, Jesse, John, Harry, Harry]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
List items have an index number. In the following list, which item has the index number of 3?
["JOHN", "Harry", "Jesse", "John", "Harry", "Harry"]
"John"
"Harry"
"Jesse"
"JOHN"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To print a list called fruitList we use
print(fruitList)
list(print)
fruitList.print()
fruitList(print)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which colour will be replaced with yellow?
red
green
blue
none, yellow will be added to the list
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbols are used to open and close a list?
( ) round brackets
( ) curly brackets
[ ] square brackets
" " speech marks
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Each item in a list has an "address" or index. The first index in a Python list is what?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What output will this code produce?
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
Jaringan Komputer
Quiz
•
9th - 12th Grade
16 questions
Computer Hardware--Outside
Quiz
•
9th - 12th Grade
15 questions
Problem Solving : Design Solution
Quiz
•
12th Grade
20 questions
ข้อสอบวิชาการสร้างภาพเคลื่อนไหว ม.6
Quiz
•
12th Grade
20 questions
Web design
Quiz
•
11th Grade
15 questions
Class XI Basics
Quiz
•
11th - 12th Grade
17 questions
Security and Ethics
Quiz
•
9th - 12th Grade
21 questions
Computer System
Quiz
•
9th - 11th 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