- Type
- Quiz
- Course
- CS301 Data Structures
- Size
- PDF 415 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 4. Download the file for all 4 pages.
Q1. A tree is an AVL tree if
Q2. When a function calling itself is called as __________.
Q3. What will be output of following code?
Through both recursive method call and non-recursive method call
Only through recursive method
Through max-heap
Only through non-recursive method
Q5. What will be the output of following code?
Q6. Which one is the correct function call for the following function of calculating cube?
int cube(int& num) A. cube(num) B. cube(*num) C. cube(&num)
Q7. Consider an array int x[] = {14,15,4,9,7,18,3}. Which statement will be used to set first number of the list into the root node.
Q8. What will be output of the given C++ code?
char lhs[] = " Army";
char rhs[] = " Army";
cout<<strcmp(lhs,rhs);
A. Syntax error B. Positive number C. 0 D. Negative number
Q9. We allocate memory dynamically by using _______ operator.
Q10. Following is a keyword of C++ ____________
Related CS301 files
All CS301 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.