- Type
- Quiz
- Course
- CS301P Data Structures (Practical)
- Size
- PDF 859 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from page 1 of 1. Download the file for all 1 page.
CS301P - Quiz No.5
Date: 20 November 2025
Q1. In which traversal method left subtree is visited in first step?
Correct answer: In-order traversal
Q2. Which of the following traversal method will be used, if we want the output as 3,4,7,9,14,15,16,18,20?
Correct answer: In-order traversal
Q3. Which of the following condition will be true if a node is NULL during the in-order traversal using recursive calls?
Correct answer: Node does not contain both left and right children
Q4. The code of BST traversal methods becomes very short by using:
Correct answer: Recursive calls
Q5. What does the following traversal code do? void func (TreeNode* treeNode) { if( treeNode != NULL ) { func(treeNode->getLeft()); func(treeNode->getRight()); cout << *(treeNode->getInfo())<<" "; } }
Correct answer: Post-order traversal
VU TOOLKIT BY PARADOXCIAL
Related CS301P files
All CS301P files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.