What type of memory is considered for linked list Mcq?

Linked list is considered as an example of ___________ type of memory allocation. Data Structure

  • Dynamic
  • Static
  • Compile time
  • None of the mentioned
Answer: Dynamic
1373 students attemted this question.
  • Bookmark
  • Add Comment
  • Share With Friends
  • Report

MCQ - Linked List in Data Structure

11. 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

View Answer

Ans : B

Explanation: None.


12. 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

View Answer

Ans : C

Explanation: None.


13. What would be the asymptotic time complexity to find an element in the linked list?

A. O(1)
B. O(n)
C. O(n2)
D. None of the mentioned

View Answer

Ans : B

Explanation: None.


14. The concatenation of two list can performed in O(1) time. Which of the following variation of linked list can be used?

A. Singly linked list
B. Doubly linked list
C. Circular doubly linked list
D. Array implementation of list

View Answer

Ans : C

Explanation: None.


15. Consider the following definition in c programming language.Which of the following c code is used to create new node?

struct node { int data; struct node * next; } typedef struct node NODE; NODE *ptr;

A. ptr = (NODE*)malloc(sizeof(NODE));
B. ptr = (NODE*)malloc(NODE);
C. ptr = (NODE*)malloc(sizeof(NODE*));
D. ptr = (NODE)malloc(sizeof(NODE));

View Answer

Ans :A

Explanation: As it represents the right way to create a node.


16. What kind of linked list is best to answer question like "What is the item at position n"?

A. Singly linked list
B. Doubly linked list
C. Circular linked list
D. Array implementation of linked list

View Answer

Ans : D

Explanation: None.


17. Linked lists are not suitable to for the implementation of?

A. Insertion sort
B. Radix sort
C. Polynomial manipulation
D. Binary search

View Answer

Ans : D

Explanation: It cannot be implemented using linked lists.


18. Linked list is considered as an example of ___________ type of memory allocation.

A. Dynamic
B. Static
C. Compile time
D. None of the mentioned

View Answer

Ans : A

Explanation: As memory is allocated at the run time.


19. In Linked List implementation, a node carries information regarding

A. Data
B. Link
C. Data and Link
D. None of the mentioned

View Answer

Ans : B

Explanation: None.


20. Linked list data structure offers considerable saving in

A. Computational Time
B. Space Utilization
C. Space Utilization and Computational Time
D. None of the mentioned

View Answer

Ans : C

Explanation: Linked lists saves both space and time.


« Prev Next »




Also check :

  • Solidity Tutorials
  • Xml Tutorials

Discussion


* You must be logged in to add comment.

Linked List MCQ : General Questions (Multiple Choice Questions)

admin2013-05-30T04:24:38+00:00