python data structure 1

Quiz
•
Computers, Science
•
KG - 12th Grade
•
Hard
guanxiong sun
Used 23+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
computer science

Quiz
•
11th Grade
10 questions
Python Object Types - Numbers

Quiz
•
9th - 12th Grade
10 questions
Means of communication

Quiz
•
2nd - 3rd Grade
10 questions
Week 6 Homework - Python Revision

Quiz
•
8th Grade
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
10 questions
E-Safety

Quiz
•
8th Grade
10 questions
DATA STRUCTURES ACTIVITY OF THE WEEK

Quiz
•
University
15 questions
list in python

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

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

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

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

Interactive video
•
6th - 10th Grade
11 questions
Upstander or Bystander?

Quiz
•
6th - 8th Grade
4 questions
Chromebook Expectations 2025-26

Lesson
•
1st - 5th Grade
8 questions
Time Management

Quiz
•
6th Grade
10 questions
WALL FRAMING TERMS

Quiz
•
9th - 12th Grade
18 questions
Digital Footprint

Quiz
•
6th Grade