BY AuthorData Structure and Algorithm MCQs Test part 3BY adminOctober 3 , 20200 Comments37 viewsFacebookTwitterGoogle plusTumblrPinterestEmailShareWelcome to your Data Structure and Algorithm MCQs Test part 31. In a circular queue the value of r will be ..A) r=r+1B) r=(r+1)% [QUEUE_SIZE – 1]C) r=(r+1)% QUEUE_SIZED) r=(r-1)% QUEUE_SIZE2. 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) i-onlyB) ii-onlyC) Both i and iiD) None of both3. The advantage of …………….. is that they solve the problem if sequential storage representation. But disadvantage in that is they are sequential lists.A) ListsB) Linked ListsC) TreesD) Queues4. What will be the value of top, if there is a size of stack STACK_SIZE is 5A) 5B) 6C) 4D) None5. ………… is not the operation that can be performed on queue.A) InsertionB) DeletionC) RetrievalD) Traversal6. There is an extra element at the head of the list called a ……….A) AntinelB) SentinelC) List headerD) List head7. A graph is a collection of nodes, called ………. And line segments called arcs or ……….. that connect pair of nodes.A) vertices, edgesB) edges, verticesC) vertices, pathsD) graph node, edges8. A ……….. is a graph that has weights of costs associated with its edges.A) NetworkB) Weighted graphC) Both A and BD) None A and B9. In general, the binary search method needs no more than ……………. comparisons.A) [log2n]-1B) [logn]+1C) [log2n]D) [log2n]+110. Which of the following is not the type of queue?A) Ordinary queueB) Single ended queueC) Circular queueD) Priority queue11. The property of binary tree isA) The first subset is called left subtreeB) The second subtree is called right subtreeC) The root cannot contain NULLD) The right subtree can be empty12. State true or false.i) The degree of root node is always zero.ii) Nodes that are not root and not leaf are called as internal nodes.A) True, TrueB) True, FalseC) False, TrueD) False, False13. Any node is the path from the root to the node is calledA) Successor nodeB) Ancestor nodeC) Internal nodeD) None of the above14. State true of false.i) A node is a parent if it has successor nodes.ii) A node is child node if out degree is one.A) True, TrueB) True, FalseC) False, TrueD) False, False15. ………………. is not an operation performed on linear lista) Insertion b) Deletion c) Retrieval d) TraversalA) only a,b and cB) only a and bC) All of the aboveD) None of the above16. Which is/are the application(s) of stackA) Function callsB) Large number ArithmeticC) Evaluation of arithmetic expressionsD) All of the above17. A …………… is an acyclic digraph, which has only one node with indegree 0, and other nodes have indegree 1.A) Directed treeB) Undirected treeC) Dis-joint treeD) Direction oriented tree18. …………………. Is a directed tree in which outdegree of each node is less than or equal to two.A) Unary treeB) Binary treeC) Trinary treeD) Both B and C19. State true or false.i) An empty tree is also a binary tree.ii) In strictly binary tree, the out-degree of every node is either o or 2.A) True, FalseB) False, TrueC) True, TrueD) False, False5 out of 4Time is Up!
Leave a reply
You must login or register to add a new comment .