Analysis of Algorithms and Computational Complexity Questions and Answers
Practice ModeShowing 10 of 239 questions
Q181
Traversing a binary tree first root and then left and right subtrees called ____ traversal.
Answer: Option D
Q182
Identify the true statements regarding insertion of node in a linear linked list.
I. Setting the field of the new node means allocating memory to newly created node
II. If the node precedes all others in the list, then insert it at the front and return its address
III. Creating a new node depends upon free memory space
IV. The node number where insertion to be taken place, must be known prior to the insertion.
Answer: Option A
Q183
Which of the following statements are true about a doubly linked list ?
I. it may be either linear or circular
II. it must contain a header node
III. it will occupy same memory space as that of linear linked list, both having same number of nodes
Answer: Option A
Q184
Identity the steps to be taken when a first node is to be deleted from linear linked list.
I. Set link of start pointer to the second node in the list
II. Free the space associated with first node
III. Obtain the address of the second node in the list
III. Obtain the address of the second node in the list
IV. Count the number of nodes in the list
Answer: Option A
Q185
What can be said about the array representation of a circular queue when it contains only one element ?
Answer: Option D
Q186
Which of the following statements are correct ?
I. If each tree node contains a father field, then it's not necessary to use either stack or threads
II. Traversal using father pointers is more time efficient than traversal of a threaded tree
III. a in-thread binary tree is defined as binary tree that is both left-in threaded and right-in threaded.
Answer: Option B
Q187
To sort many large object or structures, it would be most efficient to
Answer: Option C
Q188
In a linked list
Answer: Option A
Q189
If you want to sort many large objects or structures, it would be most efficient to place
Answer: Option B
Q190
Running out of memory may occur due to
Answer: Option B