- Type
- Midterm past paper
- Course
- CS301 Data Structures
- Size
- PDF 291 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 7. Download the file for all 7 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
Q4. What will be the output of following code?
cube(*num) C. cube(&num)
Q6. 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.
Q7. 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
Related CS301 files
All CS301 files →- CS301 Midterm Current Paper 2023 Midterm PDF 348 KB
- CS301 Midterm Short Notes 2021 Midterm PDF 1.3 MB
- CS301 Midterm Short Notes 2021 Set 2 Midterm PDF 325 KB
- CS301 Midterm Solved Grand Quiz 2020 Midterm PDF 3.8 MB
- CS301 Handouts Lectures 1-45 Handout PDF 3.4 MB
- CS301 Solved Quiz 1 and 2 with References Quiz DOCX 15 KB
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.