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

A. | graphs |

B. | stacks |

C. | binary tree |

D. | queues |

Answer» C. binary tree |

View all MCQs in:
Data Structure (DS)

- 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 …………… is an acyclic digraph, which has only one node with indegree 0, and other nodes have in-degree 1.
- …………………. Is a directed tree in which outdegree of each node is less than or equal to two.
- Each node in a linked list has two pairs of ………….. and ……………….
- A linear list in which each node has pointers to point to the predecessor and successors nodes is called as ..
- Which of the following statement is true?i) Using singly linked lists and circular list, it is not possible to traverse the list backwards.ii) To find the predecessor, it is required to traverse the list from the first node in case of singly linked list.
- A linear list in which each node has pointers to point to the predecessor and successors nodes is called as

We want to make our service better for you. Please take a moment to fill out our survey.

Take SurveyLogin to Continue

It will take less than 2 minutes

Report MCQ