
Lists and Linked Lists
Authored by Mr Applewhaite
Computers
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
22 questions
11 AIT - project management / impacts of technology (U2)
Quiz
•
11th - 12th Grade
24 questions
2.1.1 & 2.1.2 Cyber CIA and Passive Analysis
Quiz
•
10th - 12th Grade
22 questions
representing numbers (lesson 1 plenary)
Quiz
•
6th Grade - University
25 questions
Visual Programming
Quiz
•
5th - 12th Grade
25 questions
Common Algorithms
Quiz
•
9th - 12th Grade
21 questions
Google Sheets
Quiz
•
12th Grade
22 questions
Managing Edits and Document Layouts
Quiz
•
9th - 12th Grade
22 questions
Анимација 1
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade