Assignment No 4 DS July24
Assignment No 4 DS July24
a) 2, 7, 2, 6, 5, 11, 5, 9, 4 b) 2, 7, 5, 2, 6, 9, 5, 11, 4
c) 2, 5, 11, 6, 7, 4, 9, 5, 2 d) 2, 7, 5, 6, 11, 2, 5, 4, 9
Q2. Choose Correct Options
1) For the tree below, write the post-order traversal. 4
a) 2, 7, 2, 6, 5, 11, 5, 9, 4 b) 2, 7, 5, 2, 6, 9, 5, 11, 4
c) 2, 5, 11, 6, 7, 4, 9, 5, 2 d) 2, 7, 5, 6, 11, 2, 5, 4, 9
2) Which of the following is the most widely used external memory data structure? 4
a) AVL tree b) B-tree
c) Red-black tree d) Both AVL tree and Red-black tree
3) A B-tree of order 4 and of height 3 will have a maximum of _______ keys. 4
a) 255 b) 63
c) 127 d) 188
4) The leaves of an expression tree always contain? 4
a) operators b) operands
c) null d) expression
5) An expression tree is created using? 4
a) postfix expression b) prefix expression
c) infix expression d) paranthesized expression
6) For the tree below, write the in-order traversal. 4
a) 6, 2, 5, 7, 11, 2, 5, 9, 4 b) 6, 5, 2, 11, 7, 4, 9, 5, 2
c) 2, 7, 2, 6, 5, 11, 5, 9, 4 d) 2, 7, 6, 5, 11, 2, 9, 5, 4