
Python review

Quiz
•
Computers
•
8th Grade
•
Easy
Thanh Lê
Used 4+ times
FREE Resource
33 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
Which of these pieces of code would return the name "Harry" from the following list?
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList()
nameList[1]
NameList(4)
nameList["4"]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This list contains items of what data type?
String
Boolean
Float
Integer
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
20 sec • 1 pt
variable.sort() will do what?
Sort the list into alphabetical order
Sort the list into reverse order
Create a new list
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the resulting value of x?
double x;
x = 2.3
2
2.3
Error
Create a free account and access millions of resources
Similar Resources on Wayground
29 questions
Python Y10

Quiz
•
4th - 12th Grade
31 questions
Python Basics

Quiz
•
8th Grade
30 questions
Python oraliq nazorat

Quiz
•
6th - 8th Grade
35 questions
الصف الثامن للشعب ( أ+ ب )

Quiz
•
8th Grade
30 questions
Python järjend

Quiz
•
7th - 9th Grade
34 questions
Python Unit 4 - Loops & Error Handling

Quiz
•
6th - 9th Grade
30 questions
Python L1 Programming Challenge

Quiz
•
1st - 12th Grade
30 questions
Programming Techniques

Quiz
•
8th - 10th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade