Data Structure Questions and Answers-Singly Linked List Operations

 

 Buy/Download all MCQ Ebook   >>>Click Here<<<

Data Structure Questions and Answers-Singly Linked List Operations

Click on any option to know the CORRECT ANSWERS

Question 1
A linear collection of data elements where the linear node is given by means of pointer is called?
A
Linked list
B
Node list
C
Primitive list
D
None of the mentioned
Home science Questions answers

Question 2
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

A
I and II
B
I and III
C
I, II and III
D
I, II and IV
Civics Test Questions answers

Question 3
In linked list each node contain minimum of two fields. One field is data field to store the data second field is?
A
Pointer to character
B
Pointer to integer
C
Pointer to node
D
Node
English grammar Questions answers

Question 4
What would be the asymptotic time complexity to add a node at the end of singly linked list, if the pointer is initially pointing to the head of the list?
A
O(1)
B
O(n)
C
θ(n)
D
θ(1)
UPSC test Questions answers

Question 5
What would be the asymptotic time complexity to add an element in the linked list?
A
O(1)
B
O(n)
C
O(n2)
D
None of the mentioned
Management Questions answers

There are 5 questions to complete.

 

 Buy/Download all MCQ Ebook >>>CLICK HERE<<<