Top 350+ Solved Data Structure and Algorithms (DSA) MCQ Questions Answer

From 46 to 60 of 305

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

  • c. pointer to node

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

  • c. circular doubly linked list

Q. Consider the following definition in c programming languagestruct node{int data;struct node * next;}typedef struct node NODE;NODE *ptr;Which of the following c code is used to create new node?

a. ptr=(node*)malloc(sizeof(node));

b. ptr=(node*)malloc(node);

c. ptr=(node*)malloc(sizeof(node*));

d. ptr=(node)malloc(sizeof(node));

  • a. ptr=(node*)malloc(sizeof(node));

Q. A variant of linked list in which last node of the list points to the first node of the list is?

a. singly linked list

b. doubly linked list

c. circular linked list

d. multiply linked list

  • c. circular linked list

Q. In doubly linked lists, traversal can be performed?

a. only in forward direction

b. only in reverse direction

c. in both directions

d. none

  • c. in both directions

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

  • d. array implementation of linked list

Q. A variation of linked list is circular linked list, in which the last node in the list points to first node of the list. One problem with this type of list is?

a. it waste memory space since the pointer head already points to the first node and thus the list node does not need to point to the first node.

b. it is not possible to add a node at the end of the list.

c. it is difficult to traverse the list as the pointer of the last node is now not null

d. all of above

  • c. it is difficult to traverse the list as the pointer of the last node is now not null

Q. A variant of the linked list in which none of the node contains NULL pointer is?

a. singly linked list

b. doubly linked list

c. circular linked list

d. none

  • c. circular linked list

Q. In circular linked list, insertion of node requires modification of?

a. one pointer

b. two pointer

c. three pointer

d. none

  • b. two pointer

Q. Which of the following statements about linked list data structure is/are TRUE?

a. addition and deletion of an item to/ from the linked list require modification of the existing pointers

b. the linked list pointers do not provide an efficient way to search an item in the linked list

c. linked list pointers always maintain the list in ascending order

d. the linked list data structure provides an efficient way to find kth element in the list

  • b. the linked list pointers do not provide an efficient way to search an item in the linked list
Subscribe Now

Get All Updates & News