- Type
- Midterm past paper
- Course
- CS301 Data Structures
- Size
- PDF 1.1 MB
- 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 2, 3, 4 of 39. Download the file for all 39 pages.
- Consider the following infix expression. 7/8+9 If one converts the above expression into postfix, what would be the resultant expression? a. 789/+ b. 78/+9 c. /78+9 d. 78/9+
Q2. Suppose there are 100 elements in an equivalence classes so initially there will be 100 tree. The collection of tree is called_
Q3. For a perfect binary tree of height h, having N nodes the sum of height of nodes is
Q4. Sorting procedure normally takes ______time
Q5. there are 100 elements in an equivalence classes then will have ______state initially
Q6. ________ objects (objects accessed by pointers) are called anonymous objects.
Q7. ___________ is a self-balancing tree.
Q8. Which of the following operation returns but do not removes top value of the stack?
10. Which operation of the queue data structure is used to insert an element into the Queue? a. Enqueue() b. Dequeue() c. Fornt() d. Remove() 11. For making binary search tree for strings we need, ________ data type. a. Char b. Int c. Float d. Double 12. Local variables defined inside function body are ________ automatically at the end of function execution. a. Created b. Destroyed c. Incremented d. Decremented
Q9. If a node has three fields, then this node will be related to
10. ________ is an area in computer memory that is allocated dynamically. a. Heap b. Stack c. Queue d. Linked list 11. Linked list use _______ to store data. a. Array b. 2-D Array c. Variables d. Linked Memory 12. The lifetime of a transient object cannot exceed that of the application. a. True b. False c. In some cases d. None of the given 13. To represent hierarchical relationship between elements, which data structure is suitable? a. Dequeue b. Priority c. Stack d. Tree 14. Local variables of a function are stored in, a. Binary search tree b. Stack c. Queue d. AVL tree 15. In-order traversal method traverses tha data in a. Non sorted order b. Random order c. Sorted order
Related CS301 files
All CS301 files →- CS301 Midterm Solved MCQs by Junaid Midterm PDF 1.1 MB
- CS301 Midterm Past Papers Set 2 by Junaid Midterm PDF 1.1 MB
- CS301 Highlighted Notes Set 2 Highlighted PDF 1.1 MB
- CS301 Quiz 2 May 2026 Quiz PDF 30 KB
- CS301 Final Term Solved MCQs with References Set 2 by Moaaz Final term PDF 376 KB
- CS301 Midterm Solved Paper 2 by Waqar Siddhu Midterm PDF 2.7 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.