CS301 Final Term Solved MCQs with References by Moaaz
- Type
- Final term past paper
- Course
- CS301 Data Structures
- Size
- PDF 431 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 45. Download the file for all 45 pages.
Studocu is not sponsored or endorsed by any college or university
Cs301 final term mcqs solved with references by moaaz
vustudy
Object Oriented Programming (Virtual University of Pakistan)
Studocu is not sponsored or endorsed by any college or university
Cs301 final term mcqs solved with references by moaaz
vustudy
Object Oriented Programming (Virtual University of Pakistan)
Q1. A solution is said to be efficient if it solves the problem within its resource constraints i.e. hardware and time. (1 marks)
Correct answer: True (Page 4)
Q2. Which one of the following is known as "Last-In, First-Out" or LIFO Data Structure? (1 marks)
Correct answer: Stack (Page 54)
Q3. What will be postfix expression of the following infix expression? (1 marks)
Infix Expression : a+b*c-d
Correct answer: abc*+d-
Q4. For compiler a postfix expression is easier to evaluate than infix expression? (1 marks)
Q5. Consider the following pseudo code (1 marks)
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
Q6. Consider the following function: (1 marks)
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
Q7. If there are N external nodes in a binary tree then what will be the no. of internal nodes in this binary tree? (1 marks)
Correct answer: N -1 (Page 304)
Q8. If there are N internal nodes in a binary tree then what will be the no. of external nodes in this binary tree? (1 marks)
Correct answer: N +1 (Page 303)
Related CS301 files
All CS301 files →- CS301 Final Term Solved Papers 1 by Babu Ji Final term DOC 141 KB
- CS301 Final Term Quiz 3 Final term PDF 9.6 MB
- CS301 Final Term Solved Subjective with References Set 3 by Moaaz Final term PDF 471 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 Final Term Searching Quiz Merged Quiz PDF 23.4 MB
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.