
Basic Data Structures Quiz
Quiz
•
Computers
•
•
Practice Problem
•
Medium
Rachel Anthony
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Create a free account and access millions of resources
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
15 questions
Arduino
Quiz
•
7th - 9th Grade
10 questions
TIN HỌC 10 - BÀI 21
Quiz
•
10th Grade
15 questions
HTML
Quiz
•
8th - 12th Grade
10 questions
4Q Week3 Review Quiz (Who missed the Quiz ONLY))
Quiz
•
9th Grade
10 questions
Tes Awal Modul 5 CC
Quiz
•
University
17 questions
Traffic Light Project Quiz
Quiz
•
9th Grade
15 questions
Prueba Objetiva, Segundo grado. Escribe el nombre completo
Quiz
•
2nd Grade
15 questions
Networking Quiz
Quiz
•
8th - 9th Grade
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Computers
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
20 questions
Disney Characters
Quiz
•
KG
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
The Best Christmas Pageant Ever Chapters 5 & 6
Quiz
•
KG
13 questions
Skip counting by 5's and 10's
Quiz
•
KG - 3rd Grade
22 questions
Holiday Trivia
Quiz
•
KG - 5th Grade
12 questions
Alliteration Practice
Quiz
•
KG - 5th Grade
15 questions
Pronouns
Quiz
•
KG - 3rd Grade
