Top 150+ Solved Data Structure (DS) MCQ Questions Answer

From 91 to 105 of 137

Q. Which of the following option is not correct?

a. if the queue is implemented with a linked list, keeping track of a front pointer, only rear pointer s will change during an insertion into an non-empty queue.

b. queue data structure can be used to implement least recently used (lru) page fault algorithm and quick short algorithm.

c. queue data structure can be used to implement quick short algorithm but not least recently used (lru) page fault algorithm.

d. both (a) and (c)

  • c. queue data structure can be used to implement quick short algorithm but not least recently used (lru) page fault algorithm.

Q. Overflow condition in linked list may occur when attempting to .............

a. create a node when free space pool is empty

b. traverse the nodes when free space pool is empty

c. create a node when linked list is empty

d. none of these

  • a. create a node when free space pool is empty

Q. Which of the following is not a type of Linked List ?

a. doubly linked list

b. singly linked list

c. circular linked list

d. hybrid linked list

  • d. hybrid linked list

Q. Linked list is generally considered as an example of _________ type of memory allocation.

a. static

b. dynamic

c. compile time

d. none of these

  • b. dynamic

Q. Each Node contain minimum two fields one field called data field to store data. Another field is of type _________.

a. pointer to class

b. pointer to an integer

c. pointer to character

d. pointer to node

  • d. pointer to node

Q. If a list contains no elements it is said to be

a. hollow

b. empty

c. finite

d. infinite

  • b. empty

Q. Linked list uses

a. random memory allocation

b. static memory allocation

c. fixed memory allocation

d. dynamic memory allocation

  • d. dynamic memory allocation

Q. Standard approach for implementation of a list is/are of

a. 1 type

b. 2 type

c. 3 type

d. 4 type

  • b. 2 type

Q. First link node of list is accessed from a pointer named

a. tail

b. head

c. terminator

d. initiator

  • b. head

Q. A linked list is made up of a set of objects known as

a. nodes

b. arrays

c. entities

d. instances

  • a. nodes

Q. How do you calculate the pointer difference in a memory efficient double linked list?

a. head xor tail

b. pointer to previous node xor pointer to next node

c. pointer to previous node – pointer to next node

d. pointer to next node – pointer to previous node

  • b. pointer to previous node xor pointer to next node
Subscribe Now

Get All Updates & News