
Lists and Linked Lists

Quiz
•
Computers
•
12th Grade
•
Hard
Mr Applewhaite
FREE Resource
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a list in computer science?
A static data structure with fixed size
An abstract data type consisting of a number of items
A type of database management system
A programming language
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operation would you use to add a new item to the end of a list?
remove(item)
append(item)
index(item)
pop()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the operation isEmpty() check for in a list?
If the list contains a specific item
If the list is sorted
If the list is empty
If the list has more than one item
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you remove and return the last item in a list?
pop()
remove(item)
index(item)
append(item)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the example list [45, 13, 19, 13, 8], what is the return value of a.length()?
4
5
6
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assume that list names holds the values James, Paul, Sophie, Holly, Nathan. What does the list hold after each of the following consecutive operations? (i) names.append("Tom") (ii) names.pop(3) (iii) names.insert(1, "Melissa")
['James', 'Melissa', 'Paul', 'Sophie', 'Tom', 'Nathan']
['James', 'Paul', 'Melissa', 'Sophie', 'Holly', 'Tom']
['James', 'Melissa', 'Paul', 'Sophie', 'Holly', 'Tom', 'Nathan']
['James', 'Paul', 'Sophie', 'Holly', 'Melissa', 'Tom']
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suggest a different algorithm for adding a new element to a sequenced list.
Use a stack to add the element
Use a queue to add the element
Use binary search to find the position and insert
Use a hash table to add the element
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Digging for Sales LAP Test

Quiz
•
9th - 12th Grade
22 questions
AP CSA Unit 8 Review: 2D Arrays

Quiz
•
9th - 12th Grade
21 questions
Quiz B1 về Mảng trong Python

Quiz
•
12th Grade
30 questions
PowerPoint Modules 1-3 Review

Quiz
•
9th - 12th Grade
25 questions
AP CSP Exam Reference Sheet Practie

Quiz
•
12th Grade
31 questions
Year 7 Computer Science Baseline

Quiz
•
KG - Professional Dev...
30 questions
1.3.4 Web Technologies

Quiz
•
12th Grade
23 questions
H446 Networks and Web Technologies

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade