C++ linked lists
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Albert Gorup
Used 25+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a linked list, each node contains a pointer to:
The previous node
The next node
Both the previous and next nodes
None of the other answers
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an advantage of using a linked list over an array?
Constant-time access to elements
Easy to resize
Cache-friendly
All of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you add a new node to the end of a linked list?
Set the next pointer of the last node to the new node
Set the next pointer of the new node to the last node
Set the previous pointer of the last node to the new node
Set the previous pointer of the new node to the last node
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a disadvantage of using a linked list?
Requires more memory than an array
Accessing elements is slower than an array
Cannot be sorted
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a characteristic of a doubly linked list?
Each node has two pointers: one to the previous node and one to the next node
Each node has one pointer to the next node
Each node has one pointer to the next node
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a characteristic of a circular linked list?
The last node points to NULL
The first node points to NULL
The last node points to the first node
The first node points to the last node
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you delete a node from a linked list?
Set the next pointer of the previous node to the next node
Set the previous pointer of the next node to the previous node
Set the next pointer of the current node to the previous node
Set the previous pointer of the current node to the next node
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of searching for an element in a linked list?
O(1)
O(log n)
O(n)
O(n^2)
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a common use case for linked lists?
Storing a small number of elements
Storing a large number of elements that require random access
Storing a large number of elements that do not require random access
None of the above
Similar Resources on Wayground
10 questions
Tree and Planar Graph
Quiz
•
University
10 questions
CodeMonkey for B.Ed IT
Quiz
•
University
10 questions
Android
Quiz
•
University
10 questions
TOOLS FOR AD & TECHNOLOGY DEVELOPMENT (W4-W6)
Quiz
•
University
10 questions
Unguided transmission media
Quiz
•
University
10 questions
Understanding Email, Contacts and Calendaring
Quiz
•
University
12 questions
Python Quiz 1.4
Quiz
•
University
10 questions
Tes Awal Modul 5 CC
Quiz
•
University
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
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
34 questions
Unit 5 Review - The Middle Ages in Europe-B
Quiz
•
9th Grade - University
26 questions
Day2 classwork: Permutation and combination
Quiz
•
2nd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
