solution - Data Structures and Algorithms : Tree (Test 1)

Question : What is a Tree in Data Structure?

Solution :
88820260620040322 Correct Answer : Non-linear hierarchical structure

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : Which node is at the top of a tree?

Solution :
96520260620040240 Correct Answer : Root Node

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : In a Binary Tree, a node can have at most:

Solution :
916220260620040154 Correct Answer : 2 children

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : Number of edges in a tree having n nodes:

Solution :
36620260620040122 Correct Answer : n−1

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : A node with no children is called:

Solution :
998220260620040044 Correct Answer : Leaf Node

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : Maximum number of nodes at level k in a binary tree:

Solution :
776920260620035947 Correct Answer : 2ᵏ

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : Inorder traversal follows:

Solution :
346820260620035910 Correct Answer : Left-Root-Right

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : Preorder traversal follows:

Solution :
736220260620035826 Correct Answer : Root-Left-Right

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : Postorder traversal follows:

Solution :
198520260620035746 Correct Answer : Left-Right-Root

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : Which traversal gives sorted output in BST?

Solution :
623520260620035636 Correct Answer : Inorder

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : BST property:

Solution :
537220260620035504 Correct Answer : Left < Root < Right

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : Search complexity in balanced BST:

Solution :
18820260620035412 Correct Answer : O(log n)

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : Worst-case search complexity in BST:

Solution :
124220260620035329 Correct Answer : O(n)

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : Which traversal is used to delete a tree?

Solution :
89320260620035155 Correct Answer : Postorder

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : AVL tree is:

Solution :
300420260620035109 Correct Answer : Self-balancing BST

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : Balance Factor of AVL Tree is:

Solution :
290220260620035010 Correct Answer : Height(left) − Height(right)

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : Allowed balance factor values in AVL Tree:

Solution :
575820260620034930 Correct Answer : {-1,0,1}

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : LL imbalance is fixed using:

Solution :
283720260620034828 Correct Answer : Right Rotation

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : RR imbalance is fixed using:

Solution :
469420260620034747 Correct Answer : Left Rotation

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : LR imbalance requires:

Solution :
681820260620034700 Correct Answer : Left then Right Rotation

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : B-Tree is mainly used in:

Solution :
878620260620012919 Correct Answer : Database Indexing

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : B-Tree is:

Solution :
742220260620012833 Correct Answer : Multiway Search Tree

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : All leaves in B-Tree are:

Solution :
930320260620012739 Correct Answer : At same level

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : Height of B-Tree grows:

Solution :
630620260620012641 Correct Answer : Logarithmically

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : In B+ Tree, actual records are stored in:

Solution :
693420260620012553 Correct Answer : Leaf Nodes

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : Leaf nodes in B+ Tree are:

Solution :
607620260620012454 Correct Answer : Linked Together

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : Red-Black Tree is:

Solution :
420320260620012405 Correct Answer : Self-balancing BST

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : Root node of Red-Black Tree is always:

Solution :
753220260620012312 Correct Answer : Black

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : AA Tree is a simplified version of:

Solution :
281320260620012146 Correct Answer : Red-Black Tree

Description -

Data Structures and Algorithms : Tree (Test 1)

Question : AA Tree uses which balancing operations?

Solution :
639220260620012054 Correct Answer : Skew and Split

Description -

Data Structures and Algorithms : Tree (Test 1)