
Linked List Question Set 1

Quiz
•
Computers
•
University
•
Hard

Chong May
Used 9+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What is the operation of the below statements?
Insert a new node to the front of a linked list
Create a new node for a linked list
Insert a new node to the end of the linked list
Calculate the size of a linked list
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What advantage does a linked list have over an array?
Size of the list doesn't need to be mentioned at the beginning of the program
You can add or remove elements from the middle of the list.
The linked list doesn't have a size limit
All of these are true.
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider an implementation of unsorted singly linked list. Suppose it has its representation with a head pointer only. Given the representation, which of the following operation can be implemented in O(1) time?
i) Insertion at the front of the linked list
ii) Insertion at the end of the linked list
iii) Deletion of the front node of the linked list
iv) Deletion of the last node of the linked list
i, ii
i, iv
ii, iv
i, iii
ii, iii
4.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
How to insert a node after a position P in singly linked list?
Newnode -> data = P ;
Newnode -> next = p ->next ;
P -> next = newnode ;
Newnode -> data = x ;
Newnode -> next = p ->next ;
P -> next = L ;
Newnode -> data = x ;
Newnode -> next = p ->node ;
P -> nextnode = next ;
Newnode -> data = x ;
Newnode -> next = p ->next ;
P -> next = newnode ;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A linked list contains a list pointer variable _____that stores the address of the first node of the list.
Head
NULL
NEXT
LAST
6.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
How to insert a new node in the beginning of the linked list
Previous node -> new node, new node -> next node
Head -> new node, new node -> previous node
Previous tail -> new node, new node -> null
Head -> previous node, previous node -> new node
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which one of these pictures is the insertion in the middle of linked list
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
UTS - Struktur Data

Quiz
•
University
20 questions
Latihan Soal Struktur Data

Quiz
•
University
20 questions
TECH FUED ROUND-1

Quiz
•
University
20 questions
Final Komputasi Awan

Quiz
•
University
10 questions
Web Object Identification

Quiz
•
University
18 questions
Linked List

Quiz
•
KG - University
20 questions
data structures1

Quiz
•
University
10 questions
LINKED LIST

Quiz
•
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
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

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

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University