CS301 Final Term Solved MCQs with References Set 2 by Moaaz
- Type
- Final term past paper
- Course
- CS301 Data Structures
- Size
- PDF 376 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 44. Download the file for all 44 pages.
A solution is said to be efficient if it solves the problem within its resource constraints i.e. hardware and time.
Correct answer: True (Page 4)
Which one of the following is known as "Last-In, First-Out" or LIFO Data Structure?
Correct answer: Stack (Page 54)
What will be postfix expression of the following infix expression?
Infix Expression : a+b*c-d
Correct answer: abc*+d-
For compiler a postfix expression is easier to evaluate than infix expression?
Consider the following pseudo code
declare a stack of characters while ( there are more characters in the word to read ) read a character push the character on the stack
while ( the stack is not empty )
pop a character off the stack write the character to the screen
What is written to the screen for the input "apples"?
Correct answer: selppa
Consider the following function: void test_a(int n)
cout << n << " "; if (n>0) test_a(n-2);
What is printed by the call test_a(4)?
Correct answer: 4 2
If there are N external nodes in a binary tree then what will be the no. of internal nodes in this binary tree?
Correct answer: N -1 (Page 304)
If there are N internal nodes in a binary tree then what will be the no. of external nodes in this binary tree?
Correct answer: N +1 (Page 303)
If we have 1000 sets each containing a single different person. Which of the following relation will be true on each set:
Correct answer: Reflexive (page 387)
Which one of the following is NOT the property of equivalence relation:
Correct answer: Associative (page 387)
A binary tree of N nodes has _______.
Correct answer: Log2 N levels (Page 212)
The easiest case of deleting a node from BST is the case in which the node to be deleted ___________.
Correct answer: Is a leaf node (Page 173)
If there are N elements in an array then the number of maximum steps needed to find an element using Binary Search is _______ .
Correct answer: log2N (page 440)
Merge sort and quick sort both fall into the same category of sorting algorithms. What is this category?
Correct answer: None of the given options. (Page 488)
Related CS301 files
All CS301 files →- CS301 Final Term Short Notes Final term PDF 995 KB
- CS301 Final Term Solved Subjective Set 2 by Junaid Final term PDF 1.8 MB
- CS301 Final Term Solved Subjective with References Set 2 by Moaaz Final term PDF 564 KB
- CS301 Final Term Solved Subjective with References by Moaaz Final term PDF 625 KB
- CS301 Handouts Lectures 1-45 Handout PDF 3.4 MB
- CS301 Quiz 2 May 2026 Set 2 Quiz PDF 35 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.