DSA Topic: Tree
Q1: What is the time complexity of inserting in a red-black tree?
A. Option for What is the time complexity of...
B. Option for What is the time complexity of...
C. Option for What is the time complexity of...
D. Option for What is the time complexity of...
Answer: C
Q2: Explain the properties of a binary search tree.
A. Option for Explain the properties of a bi...
B. Option for Explain the properties of a bi...
C. Option for Explain the properties of a bi...
D. Option for Explain the properties of a bi...
Answer: B
Q3: Explain the properties of a binary search tree.
A. Option for Explain the properties of a bi...
B. Option for Explain the properties of a bi...
C. Option for Explain the properties of a bi...
D. Option for Explain the properties of a bi...
Answer: C
Q4: How is AVL tree rotation performed?
A. Option for How is AVL tree rotation perfo...
B. Option for How is AVL tree rotation perfo...
C. Option for How is AVL tree rotation perfo...
D. Option for How is AVL tree rotation perfo...
Answer: A
Q5: Which traversal method uses a stack in binary trees?
A. Option for Which traversal method uses a ...
B. Option for Which traversal method uses a ...
C. Option for Which traversal method uses a ...
D. Option for Which traversal method uses a ...
Answer: A
Q6: Explain the properties of a binary search tree.
A. Option for Explain the properties of a bi...
B. Option for Explain the properties of a bi...
C. Option for Explain the properties of a bi...
D. Option for Explain the properties of a bi...
Answer: D
Q7: Which traversal method uses a stack in binary trees?
A. Option for Which traversal method uses a ...
B. Option for Which traversal method uses a ...
C. Option for Which traversal method uses a ...
D. Option for Which traversal method uses a ...
Answer: B
Q8: Explain the properties of a binary search tree.
A. Option for Explain the properties of a bi...
B. Option for Explain the properties of a bi...
C. Option for Explain the properties of a bi...
D. Option for Explain the properties of a bi...
Answer: A
Q9: Explain the properties of a binary search tree.
A. Option for Explain the properties of a bi...
B. Option for Explain the properties of a bi...
C. Option for Explain the properties of a bi...
D. Option for Explain the properties of a bi...
Answer: C
Q10: What is the height of a balanced binary tree with n nodes?
A. Option for What is the height of a balanc...
B. Option for What is the height of a balanc...
C. Option for What is the height of a balanc...
D. Option for What is the height of a balanc...
Answer: B