
L5 LinkedLists, Vector and Stacks Quiz

Quiz
•
Computers
•
University
•
Hard
Coder Warman
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the time complexity of inserting an element at the head of a linked list?
O(n)
O(log n)
O(1)
O(n²)
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is true about linked lists?
Fixed size
Requires additional memory for pointers
Cannot store integers
Supports only one data type
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which method adds an element to the end of the linked list?
addFirst()
addLast()
insert()
prepend()
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does the head node in a linked list store?
Data and a link to the next node
Only a link to the next node
Cannot store data
Data and a link to the previous node
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is true about a vector?
Vector is synchronized
Vector is not thread-safe
Vector can only store primitive types
Vector does not allow null elements
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following statements is true about a vector?
Vectors do not allow resizing
Vectors are synchronized
Vectors are immutable
Vectors cannot store strings
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which principle does a stack follow?
LIFO
FIFO
Random Access
Binary Search Tree
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
COMP177 Module 3 Quiz

Quiz
•
University
20 questions
Latihan PSAS Kelas 9

Quiz
•
9th Grade - University
17 questions
Data Structures and Algorithms Quiz

Quiz
•
University
10 questions
Python Sets

Quiz
•
University
15 questions
DSA Day 1

Quiz
•
University
15 questions
8051-MCQ

Quiz
•
University
20 questions
L73_118 Prep for Test

Quiz
•
12th Grade - University
20 questions
Buffer Overflow and ROP Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University