{"id":176,"date":"2020-04-03T09:29:34","date_gmt":"2020-04-03T09:29:34","guid":{"rendered":"https:\/\/temp.ashkerala.com\/?p=176"},"modified":"2020-04-03T09:29:34","modified_gmt":"2020-04-03T09:29:34","slug":"data-structures-and-algorithms-mcq-3","status":"publish","type":"post","link":"https:\/\/temp.ashkerala.com\/?p=176","title":{"rendered":"Data Structures and Algorithms MCQ -3"},"content":{"rendered":"<p>1.\u00a0\u00a0\u00a0 Which data structure allows deleting data elements from front and inserting at rear?<br \/> a. Stacks<br \/> b. Queues<br \/> c.\u00a0\u00a0 Deques<br \/> d. Binary search tree<br \/> 2.\u00a0\u00a0\u00a0 Identify the data structure which allows deletions at both ends of the list but insertion at only one end.<br \/> a. Input-restricted deque<br \/> b. Output-restricted deque<br \/> c.\u00a0\u00a0 Priority queues<br \/> d. None of above<br \/> 3.\u00a0\u00a0\u00a0 Which of the following data structure is non-linear type?<br \/> a. Strings<br \/> b. Lists<br \/> c.\u00a0\u00a0 Stacks<br \/> d. None of above<br \/> 4.\u00a0\u00a0\u00a0 Which of the following data structure is linear type?<br \/> a. Strings<br \/> b. Lists<br \/> c.\u00a0\u00a0 Queues<br \/> d. All of above<br \/> 5.\u00a0\u00a0\u00a0 To represent hierarchical relationship between elements, which data structure is suitable?<br \/> a. Deque<br \/> b. Priority<br \/> c.\u00a0\u00a0 Tree<br \/> d. All of above<br \/> 6.\u00a0\u00a0\u00a0 A binary tree whose every node has either zero or two children is called<br \/> a. Complete binary tree<br \/> b. Binary search tree<br \/> c.\u00a0\u00a0 Extended binary tree<br \/> d. None of above<br \/> 7.\u00a0\u00a0\u00a0 The depth of a complete binary tree is given by<br \/> a. Dn = n log2n<br \/> b. Dn = n log2n+1<br \/> c.\u00a0\u00a0 Dn = log2n<br \/> d. Dn = log2n+1<br \/> 8.\u00a0\u00a0\u00a0 When representing any algebraic expression E which uses only binary operations in a 2-tree,<br \/> a. the variable in E will appear as external nodes and operations in internal nodes<br \/> b. the operations in E will appear as external nodes and variables in internal nodes<br \/> c.\u00a0\u00a0 the variables and operations in E will appear only in internal nodes<br \/> d. the variables and operations in E will appear only in external nodes<br \/> 9.\u00a0\u00a0\u00a0 A binary tree can easily be converted into q 2-tree<br \/> a. by replacing each empty sub tree by a new internal node<br \/> b. by inserting an internal nodes for non-empty node<br \/> c.\u00a0\u00a0 by inserting an external nodes for non-empty node<br \/> d. by replacing each empty sub tree by a new external node<br \/> 10.\u00a0 When converting binary tree into extended binary tree, all the original nodes in binary tree are<br \/> a. internal nodes on extended tree<br \/> b. external nodes on extended tree<br \/> c.\u00a0\u00a0 vanished on extended tree<br \/> d. None of above<br \/> 11. The post order traversal of a binary tree is DEBFCA. Find out the pre order traversal<br \/> a. ABFCDE<br \/> b. ADBFEC<br \/> c.\u00a0\u00a0 ABDECF<br \/> d. ABDCEF<br \/> 12.\u00a0 Which of the following sorting algorithm is of divide-and-conquer type?<br \/> a. Bubble sort<br \/> b. Insertion sort<br \/> c.\u00a0\u00a0 Quick sort<br \/> d. All of above<br \/> 13.\u00a0 An algorithm that calls itself directly or indirectly is known as<br \/> a. Sub algorithm<br \/> b. Recursion<br \/> c.\u00a0\u00a0 Polish notation<br \/> d. Traversal algorithm<br \/> 14.\u00a0 In a binary tree, certain null entries are replaced by special pointers which point to nodes higher in the tree for efficiency. These special pointers are called<br \/> a. Leaf<br \/> b. branch<br \/> c.\u00a0\u00a0 path<br \/> d. thread<br \/> 15.\u00a0 The in order traversal of tree will yield a sorted listing of elements of tree in<br \/> a. Binary trees<br \/> b. Binary search trees<br \/> c.\u00a0\u00a0 Heaps<br \/> d. None of above<br \/> 16.\u00a0 In a Heap tree<br \/> a. Values in a node is greater than every value in left sub tree and smaller than right sub tree<br \/> b. Values in a node is greater than every value in children of it<br \/> c.\u00a0\u00a0 Both of above conditions applies<br \/> d. None of above conditions applies<br \/> 17.\u00a0 In a graph if e=[u, v], Then u and v are called<br \/> a. endpoints of e<br \/> b. adjacent nodes<br \/> c.\u00a0\u00a0 neighbors<br \/> d. all of above<br \/> 18.\u00a0 A connected graph T without any cycles is called<br \/> a. a tree graph<br \/> b. free tree<br \/> c.\u00a0\u00a0 a tree<br \/> d. All of above<br \/> 19.\u00a0 In a graph if e=(u, v) means<br \/> a. u is adjacent to v but v is not adjacent to u<br \/> b. e begins at u and ends at v<br \/> c.\u00a0\u00a0 u is processor and v is successor<br \/> d. both b and c<br \/> 20. If every node u in G is adjacent to every other node v in G, A graph is said to be<br \/> a. isolated<br \/> b. complete<br \/> c.\u00a0\u00a0 finite<br \/> d. strongly connected<\/p>\n<p> \u00a0<br \/> Answers:<\/p>\n<p> \u00a0<br \/> 1.\u00a0\u00a0\u00a0 Which data structure allows deleting data elements from front and inserting at rear?<br \/> b. Queues<br \/> 2.\u00a0\u00a0\u00a0 Identify the data structure which allows deletions at both ends of the list but insertion at only one end.<br \/> a. Input-restricted deque<br \/> 3.\u00a0\u00a0\u00a0 Which of the following data structure is non-linear type?<br \/> d. None of above<br \/> 4.\u00a0\u00a0\u00a0 Which of the following data structure is linear type?<br \/> d. All of above<br \/> 5.\u00a0\u00a0\u00a0 To represent hierarchical relationship between elements, which data structure is suitable?<br \/> c.\u00a0\u00a0 Tree<br \/> 6.\u00a0\u00a0\u00a0 A binary tree whose every node has either zero or two children is called<br \/> c. Extended binary tree<br \/> 7.\u00a0\u00a0\u00a0 The depth of a complete binary tree is given by<br \/> d. Dn =\u00a0 log2n + 1<br \/> 8.\u00a0\u00a0\u00a0 When representing any algebraic expression E which uses only binary operations in a 2-tree,<br \/> a. the variable in E will appear as external nodes and operations in internal nodes<br \/> 9.\u00a0\u00a0\u00a0 A binary tree can easily be converted into q 2-tree<br \/> d. by replacing each empty sub tree by a new external node<br \/> 10.\u00a0 When converting binary tree into extended binary tree, all the original nodes in binary tree are<br \/> a. internal nodes on extended tree<br \/> 11. The post order traversal of a binary tree is DEBFCA. Find out the pre order traversal<br \/> c.\u00a0\u00a0 ABDECF<br \/> 12.\u00a0 Which of the following sorting algorithm is of divide-and-conquer type?<br \/> c.\u00a0\u00a0 Quick sort<br \/> 13.\u00a0 An algorithm that calls itself directly or indirectly is known as<br \/> b. Recursion<br \/> 14.\u00a0 In a binary tree, certain null entries are replaced by special pointers which point to nodes higher in the tree for efficiency. These special pointers are called<br \/> d. thread<br \/> 15.\u00a0 The in order traversal of tree will yield a sorted listing of elements of tree in<br \/> b. Binary search trees<br \/> 16.\u00a0 In a Heap tree<br \/> b. Values in a node is greater than every value in children of it<br \/> 17.\u00a0 In a graph if e=[u, v], Then u and v are called<br \/> d. all of above<br \/> 18.\u00a0 A connected graph T without any cycles is called<br \/> d. All of above<br \/> 19.\u00a0 In a graph if e=(u, v) means<br \/> d. both b and c<br \/> 20. If every node u in G is adjacent to every other node v in G, A graph is said to be<br \/> b. complete<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u00a0\u00a0\u00a0 Which data structure allows deleting data elements from front and inserting at rear? a. Stacks b. Queues c.\u00a0\u00a0 Deques d. Binary search tree 2.\u00a0\u00a0\u00a0 Identify the data structure which allows deletions at both ends of the list but insertion at only one end. a. Input-restricted deque b. Output-restricted deque c.\u00a0\u00a0 Priority queues d. None&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[16],"tags":[],"class_list":["post-176","post","type-post","status-publish","format-standard","hentry","category-data-structures-and-algorithms"],"_links":{"self":[{"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/posts\/176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=176"}],"version-history":[{"count":0,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/posts\/176\/revisions"}],"wp:attachment":[{"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}