
Linked List MCQ
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Rejimoan R
Used 5+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 2 pts
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 and II
I, II and III
I, II and IV
I and III
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Given pointer to a node X in a singly linked list. Only one pointer is given, pointer to head node is not given, can we delete the node X from given linked list?
Possible if X is not first node
Possible if size of linked list is even
Possible if size of linked list is odd
Possible if X is not last node
3.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Linked list is considered as an example of ___________ type of memory allocation.
Heap
Static
Compile time
Dynamic
4.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Linked list data structure offers considerable saving in _____________
Computational Time
Space Utilization
Space Utilization
Speed Utilization and Computational Time
5.
MULTIPLE SELECT QUESTION
30 sec • 2 pts
Which of the following points is/are not true about Linked List data structure when it is compared with an array?
Arrays have better cache locality that can make them better in terms of performance
It is easy to insert and delete elements in Linked List
Random access is not allowed in a typical implementation of Linked Lists
Access of elements in linked list takes less time than compared to arrays
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What does the following function do for a given Linked List with first node as head?
void fun1(struct node* head)
{ if(head == NULL) return;
fun1(head->next);
printf("%d ", head->data); }
Prints all nodes of linked lists
Prints alternate nodes in reverse order
Prints alternate nodes of Linked List
Prints all nodes of linked list in reverse order
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of the following function to start pointing to the first node of the following linked list? 1->2->3->4->5->6
void fun(struct node* start)
{ if(start == NULL) return;
printf("%d ", start->data);
if(start->next != NULL )
fun(start->next->next);
printf("%d ", start->data); }
1 4 6 6 4 1
1 3 5 1 3 5
1 2 3 5
1 3 5 5 3 1
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
10 questions
Information systems concepts
Quiz
•
University
8 questions
Overview of IT
Quiz
•
6th Grade - University
12 questions
Porcentajes
Quiz
•
University
13 questions
L1 - Computer Networks
Quiz
•
University
10 questions
Web-II-Loop and Function
Quiz
•
University
11 questions
Workshop_1
Quiz
•
University
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
