Programming Q3 Review - Data Structures

Quiz
•
Computers
•
9th Grade
•
Hard
Clyde Santes
Used 2+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What method would you use to add an item to the end of a list?
insert()
append()
add()
extend()
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
How do you create a dictionary?
<key: value, ...>
[key: value, ...]
(key: value, ...)
{key: value, ...}
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of the following code:
list1 = [1, 2, 3]
print(list1[1])
2
4
3
1
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
How do you define a tuple in Python?
Using parentheses ( )
Using curly braces { }
Using angle brackets <>
Using square brackets [ ]
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the main difference between a set and a list?
Sets do not allow duplicates and is unordered, while lists allows duplicates and is ordered.
Lists are faster than sets for searching elements.
A set is a type of list that allows duplicates and is ordered.
Sets can contain any data type, while lists can only contain numbers.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How do you iterate over a list using a for loop?
for each_item in my_list:
print(item)
for item in range(len(my_list)): print(my_list[item])
for item in my_list: print(item)
for item: print(item) in my_list
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the purpose of the break statement in a while loop?
To pause the execution of the loop temporarily
To continue the while loop indefinitely
To skip the current iteration of the loop
To exit the while loop prematurely
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Python Recap

Quiz
•
12th Grade
25 questions
IT Specialist Exam Prep 1

Quiz
•
9th Grade
32 questions
CS 1: Big Idea #3 Practice

Quiz
•
9th Grade - University
29 questions
Python Quiz

Quiz
•
10th Grade
27 questions
Data Structures Midterm Exam WRI

Quiz
•
University
25 questions
Sort and Search Algorithms

Quiz
•
9th Grade
25 questions
Keyboard Shortcuts Quiz M1:U2 prac

Quiz
•
12th Grade
25 questions
Do Now Quiz - Coding I

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade