
Data Structures Quiz
Authored by Comp Sci
Computers
11th - 12th Grade
Used 33+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
18 questions
TRAC NGHIEM 12
Quiz
•
12th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
10 questions
Trắc nghiệm bài 12 tin học 11
Quiz
•
11th Grade
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
11 questions
Programming basics
Quiz
•
10th - 11th Grade
11 questions
Programming Quiz 1
Quiz
•
11th Grade
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
10 questions
PERFORMING COMPUTER OPERATIONS
Quiz
•
11th Grade
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