python data structure 1
Quiz
•
Computers, Science
•
KG - 12th Grade
•
Practice Problem
•
Hard
guanxiong sun
Used 23+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the colors[2] expression?
'burnt sienna'
'green'
It causes a run-time error.
'red'
'blue'
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
How would you access the element 'red' from the above list?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the "yellow in colors" expression?
False
True
3
Errors
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
x = [10, [3.141, 20, [30, 'baz', 2.718]], 'foo']
What is the expression that returns the 2.718?
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
x = [10, [3.141, 20, [30, 'baz', 2.718]], 'foo']
What is the expression that returns the 'z' in 'baz'?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What’s the main difference between Python lists and tuples?
Lists are faster and tuples are slower.
Lists are immutable and tuples are mutable.
Lists are mutable and tuples are immutable.
Correct
Lists can hold any data type and tuples can only contain int and str objects.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Create a variable to store some information of James. We need to store his name "James", his email "james@google.com", his mobile 07746330330.
What data structure would you like to use?
List
Dictionary
Tuple
Set
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
13 questions
GIT COURSE
Quiz
•
University
10 questions
GUESS THAT WORD IN CYBER!
Quiz
•
Professional Development
10 questions
Let's Play Together
Quiz
•
University - Professi...
17 questions
IPA kelas VI tema 3
Quiz
•
6th Grade
10 questions
Mobile Offline Sync - OutSystems
Quiz
•
Professional Development
15 questions
Life On Land
Quiz
•
1st - 2nd Grade
15 questions
Quiz 1
Quiz
•
1st - 12th Grade
10 questions
PUNCTUATION SPACING RULES
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
