What is a linked list?

Linked List Quiz

Quiz
•
Computers
•
University
•
Medium
mukilan selvaraj
Used 1+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A data structure consisting of nodes where each node contains data and a reference to the next node
A linear data structure with a fixed size
A collection of elements stored at contiguous memory locations
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a node in a singly linked list in Python?
class Node: def **init**(self, data, next): self.data = data self.next = next
class Node: def **init**(self, data): self.data = data self.next = None
class Node: def **init**(self, data, prev, next): self.data = data self.prev = prev self.next = next
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main advantage of a linked list over an array?
Fixed size
Dynamic size and efficient insertion/deletion
Faster access to elements
Uses less memory
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to traverse a linked list in Python?
While loop
For loop
Recursion
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you check if a linked list is empty?
if head is None:
if head == "":
if head.next is None:
if head == []:
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of inserting a node at the beginning of a singly linked list?
O(1)
O(n)
O(log n)
O(n log n)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a singly linked list, each node has:
Data and a reference to the previous node
Data and a reference to the next node
Data and references to both previous and next nodes
Only data
Create a free account and access millions of resources
Similar Resources on Quizizz
30 questions
Data Structure & Algorithm-Quiz-1

Quiz
•
University
30 questions
Data Structures and Algorithm

Quiz
•
11th Grade - Professi...
25 questions
Exploring Linked Lists

Quiz
•
University
30 questions
Struktur data Tree

Quiz
•
University
25 questions
Quiz on Data Structures Unit I

Quiz
•
University
25 questions
Final Examination in Data Structure.

Quiz
•
University
26 questions
221 quiz questions exam 2 prep

Quiz
•
University
25 questions
Stack and Queue

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade