
Data Structures Quiz
Quiz
•
Computers
•
11th - 12th Grade
•
Practice Problem
•
Medium
Comp Sci
Used 32+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What kind of data structure is user_data in the following declaration?
user_data = ("TJ", 24, "artLover123")
Tuple
List
String
2d List
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What kind of data structure is user_data in the following declaration?
user_data = ["TJ", 24, "artLover123"]
Tuple
List
String
2d List
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
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
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What does this code snippet print?
fruit = ["b", "n", "n"]
print ("a".join(fruit))
bnn
ba na na
banan
banana
fruit
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the value of num after this code runs?
shapes = ["triangle", "square", "hexagon", "circle", "pentagon"]
num = len(shapes)
0
4
5
35
None
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What does this program print?
sentence = "My favorite animal is a dog or chipmunk"
sentence_list = sentence.split()
sentence_list[-3] = "penguin"
sentence = " ".join(sentence_list)
print (sentence)
My favorite animal is a dog or penguin
My favorite animal is a penguin or chipmunk
My favorite animal is a dog penguin chipmunk
My favorite animal is a dog or chipmunk
😥
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following data structures is immutable?
Tuple
List
String
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
0 questions
Basic Data Structures Quiz
Quiz
•
0 questions
Creating and Altering Data Structure
Quiz
•
0 questions
7.6.1 Basic Data Structures Quiz
Quiz
•
0 questions
data structure
Quiz
•
0 questions
CodeHS Python Unit 8 Review
Quiz
•
0 questions
Unit 8
Quiz
•
0 questions
8525 AQA GCSE 3.2.6 Data Structures
Quiz
•
0 questions
Altering Data Structures module review
Quiz
•
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
