
Basic Data Structures Quiz
Authored by Rachel Anthony
Computers
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
OPEN ENDED QUESTION
3 mins • 1 pt
Which of the following lines of code will cause an error? Use the following definition of ages: ages = (12, 5, 8) ages = ages + (1, 3, 5) print (ages[2]) ages = ages[2:] ages[0] = 3
Evaluate responses using AI:
OFF
2.
OPEN ENDED QUESTION
3 mins • 1 pt
What would the following program print to the screen when run? my_list = [7, 0, 0, "d", "n", "o", "B"] my_list.reverse() for thing in my_list: print (thing)
Evaluate responses using AI:
OFF
3.
OPEN ENDED QUESTION
3 mins • 1 pt
Given the following list: my_list = ["s", "Z", "e", "c", "c", "e", "r", "h", "e", "p", "t"] which program below would give the following output: s e c r e t for index in range(len(my_list)): print (str(index) + ". " + my_list)
Evaluate responses using AI:
OFF
4.
OPEN ENDED QUESTION
3 mins • 1 pt
Which of the following programs would produce the following output: 1. honey 2. bread 3. jelly 4. plates my_list = ["honey", "bread", "jelly", "plates"] for index in range(len(my_list)): print (str(index+1) + ". " + my_list[index])
Evaluate responses using AI:
OFF
5.
OPEN ENDED QUESTION
3 mins • 1 pt
Which of the following programs would alter my_list to consist of the following: [‘red’, ‘green’, ‘blue’, ‘orange’, ‘yellow’] my_list = ['red', 'green', 'blue', 'orange'] my_list.append('yellow')
Evaluate responses using AI:
OFF
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of num after this code runs? shapes = ["triangle", "square", "hexagon", "circle", "pentagon"] num = len(shapes)
0
4
5
35
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data structures is immutable?
Tuple
List
Dictionary
2d List
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
16 questions
E-Commerce
Quiz
•
University - Professi...
10 questions
Pre-Test: Search Engine
Quiz
•
7th Grade
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
12 questions
ສອບເສັງປະຈຳເດືອນ ເດືອນ (10) ວິຊາ ຄອມພິວເຕີ ຂັ້ນ ປ.5
Quiz
•
5th Grade
16 questions
Parlez vous PAO? :)
Quiz
•
KG
15 questions
LA1.C1: Introduction to Small Basic
Quiz
•
9th Grade
13 questions
WJEC GCSE ICT Unit 1 E-Mail
Quiz
•
9th - 10th Grade
12 questions
Adventure game project
Quiz
•
7th - 8th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Place Value
Quiz
•
KG - 3rd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
10 questions
Subject Verb Agreement
Quiz
•
KG - 2nd Grade
22 questions
Oh, Canada (Test Review)
Quiz
•
KG
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
16 questions
CHARACTERIZATION
Quiz
•
KG - 8th Grade
18 questions
Great Lakes States
Quiz
•
KG - University