Programming Q3 Review - Data Structures
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
Clyde Santes
Used 2+ times
FREE Resource
Enhance your content in a minute
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
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
25 questions
Introduction to IT
Quiz
•
5th - 10th Grade
25 questions
Common Algorithms
Quiz
•
9th - 12th Grade
25 questions
Latihan Soal Informatika kelas 7 bab 1
Quiz
•
7th Grade - University
25 questions
Journey Inside
Quiz
•
9th - 11th Grade
25 questions
Introducción a las Presentaciones Digitales
Quiz
•
7th - 10th Grade
25 questions
Inteledge'22 - First Round
Quiz
•
9th - 12th Grade
25 questions
Understanding Input, Selection and Loops in Python
Quiz
•
7th Grade - University
25 questions
ÔN THI TIN 4 HKI - THVTS 24-25
Quiz
•
4th Grade - University
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
