McqMate

Q. |
## Herder node is used as sentinel in ….. |

A. | graphs |

B. | stacks |

C. | binary tree |

D. | queues |

Answer» C. binary tree |

1.3k

0

Do you find this helpful?

2

View all MCQs in

Data Structures (DS)No comments yet

- If we implement heap as min-heap, deleting root node (value 1)from the heap. What would be the value of root node after second iteration if leaf node (value 100) is chosen to replace the root at start.
- Any node is the path from the root to the node is called
- node.next -> node.next.next; will make
- What is the functionality of the following code? Choose the most appropriate answer. public int function() { if(head == null) return Integer.MIN_VALUE; int var; Node temp = head; Node cur; while(temp.getNext() != head) { cur = temp; temp = temp.getNext(); } if(temp == head) { var = head.getItem(); head = null; return var; } var = temp.getItem(); cur.setNext(head); return var; }
- If in a linked list address of first node is 1020 then what will be the address of node at 5th position ?
- A linked list whose last node points back to the list node instead of containing the null pointer________.
- A _________is a linked list which always contains a special node called the header node, at the beginning of the list.
- _______________is a header list where the last node points back to the header node.
- In a directed tree any node which has out degree 0 is called a terminal node or__________.
- A path P of length n from a node u to a node v is defined as a sequence of _________ nodes.