- Type
- Quiz
- Course
- CS301P Data Structures (Practical)
- Size
- PDF 877 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.
Q1. Recursion is performed with the help of ___________ data structure.
Correct answer: Stack
Q2. How many comparison(s) will be made at each level of a BST for searching a number which is not present in BST?
Correct answer: 1
Q3. In which traversal method left subtree is visited in first step?
Correct answer: Preorder traversal
Q4. Which of the following is the in-order traversal of the given tree?
Correct answer: (L, N, R)
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
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.