CS301 Midterm Solved Subjective with References by Students
- Type
- Midterm past paper
- Course
- CS301 Data Structures
- Size
- PDF 78 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.
- The duration of this examination is 60 Mins.
- This examination is closed book, closed notes, closed neighbors; any one found cheating will get no grade.
- Unless stated otherwise, all questions carry a single mark.
- You are allowed to use any development environment like Dev C++ etc.
Q1. Marks: 5
What is the value of the C/C++ expression: 6.2 + 5 / 3
6.2+5/3
- 2+1 (As 5 & 3 are integers so result will be in integer, fraction portion will be discard)
7.2
Q2. Marks: 5
What is the value of the postfix expression: 8 6 4 + 3 * + 5 +
Q3. Marks: 5
Write an equivalent postfix expression for the infix expression:
6 + ( 5 - 3 ) * 8
assuming standard precedence for order of operations.
Answer: 6 5 3 - 8 * +
Step No. Symbol Postfix Stack 6 5 3 - 6 5 3 - 6 5 3 - 8 6 5 3 - 8 * +
Q4. Marks: 10
Write a function that changes every ’t’ that occurs as the first letter of a word to a ’b’. No other letters should change. For example, ("tin", "tile", "ant", "saint", "tot") should be changed to ("bin", "bile", "ant", "saint", "bot")
Related CS301 files
All CS301 files →- CS301 Midterm Solved Quiz 2 Fall 2019 Midterm DOC 244 KB
- CS301 Midterm Solved Quiz 1 and 2 Fall 2015 Midterm DOCX 2.2 MB
- CS301 Midterm Solved Mega File with References Midterm PDF 1.5 MB
- CS301 Midterm Past Paper Fall 2004 Set 2 Midterm PDF 26 KB
- CS301 Handouts by VUBuddy Handout PDF 4 MB
- CS301 Data Structures Quiz Quiz PDF 2.9 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.