CS301-Finalterm-Subjective-2013-solved.pdf

Verified academic study resource for CS301 (Data Structures) under the Computer Science at Virtual University of Pakistan. This PDF document (Final-Term Solved Past Paper & Examination Pack) covers Final-Term Exam Scope (Lectures 23 to 45) spanning approximately 320 pages across 4 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS301 – Data Structures
Faculty
Computer Science
Format
PDF
Type
Final-Term
Coverage
Final-Term Exam Scope (Lectures 23 to 45)
Tags
SUBJECTIVE, SOLVED, FINALTERM

Virtual University regulations strictly require achieving at least 20% marks in the Final-Term exam paper alone (typically 12+ marks out of 60) to pass CS301, regardless of midterm scores.

What this file covers — CS301 syllabus roadmap

  1. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  2. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  3. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  4. Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)

Frequently asked questions

Where can I download CS301-Finalterm-Subjective-2013-solved.pdf for free?

You can preview and download "CS301-Finalterm-Subjective-2013-solved.pdf" (CS301 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs301-finalterm-subjective-2013-solved-pdf) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS301 file?

This document covers Final-Term Exam Scope (Lectures 23 to 45) across 4 distinct lecture units (Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.

What is the passing criteria for CS301 under the VU 20% Two-Half Rule?

Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.

Are CS301 solved past papers and handouts verified for 2026 exams?

Yes. All CS301 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.

Inside this file

                          CS301 All Current
                  Final Term Paper Subjective 2013
                        Solved with refernces

Pattren:
Total Questions: 52
Total Marks: 80
Total MCQs: 40 (Each of 1 Mark)
Total Short Questions: 4 (Each of 2 Mark)
Total Short Questions: 4 (Each of 3 Mark)
Total Long Questions: 4 (Each of 5 Mark)
Subjective questions:
Questions of 2 marks
Note: Try to Prepare Mcqz and subjective files of Moaaz brother.

1. In the array representation of union what represents -1?
Answer:         Page no 392       Chapter no 34
This shows that this node has no parent. Moreover, this node will be a root that may be
a parent of some other node.

2. For smaller lists, linear insertion sort performs well, but for larger lists, quick sort is
suitable to apply." Justify why?
Answer:
Since for smaller lists number of comparisons and interchange (if needed) decreases
radically in insertion sort than quick sort. For larger lists, opposite occurs in both sorting
techniques.

3. If we want to delete the node from BST which has left and right child then which
rotation is applied?
Answer:
After deleting the node we traverse up the tree from the deleted node checking the
balance of each node at each level up to the root.

4. Collision in hashing definition?

                      SOLVED BY : AQUALEO |Remember in Prayers

Answer:          page no 464 chapter no 42
Collision takes place when two or more keys (data items) produce the same index.
Question of 3 marks:
1. Algorithm union by weight?
Answer: Page no 408
//union(i,j):
1. root1 = find(i);
2. root2 = find(j);
3.    if (root1 != root2)
4.    if (parent[root1] <= parent[root2])
5.     {
6.         // first tree has more nodes
7.         parent[root1] += parent[root2];
8.         parent[root2] = root1;
9.     }
10.    else
11.    {
12.         // second tree has more nodes
13.        parent[root2] += parent[root1];
14.        parent[root1] = root2;
15.    }

2. One tree is given question is it heap or not if it is heap then write its type
Answer:           Consult Page no 333-335 Ch:29
Due to the violation, the value of child is less than that of the parent it is not a heap

3. Which data structure is best for priority queue?
Answer:           Page no 334 Ch: 29
The use of priority queue with the help of heap is a major application.
The priority queue is itself a major data structure, much-used in operating systems.
Similarly priority queue data structure is used in network devices especially in routers.
Heap data structure is also employed in sorting algorithms.

                      SOLVED BY : AQUALEO |Remember in Prayers

Questions of 5 marks:
1. Some numbers are given and using those make BST?
Answer:
Page no: 128

2. One array is given we require to sort it using bubble sort and write only 2
iterations?
Answer:
Page no: 486
3. One tree is given which not the heap but after minimum changes it becomes max
heap make it?
Answer:
Chapter no 29 page no 335

========================================================================

1. name of two divide and conquer algorithm
Answer:
Merge Sort
Quick Sort
Heap Sort
2. Height of a tree is 5 find sum of heights
Answer:
Total number of nodes N = 2h +1 – 1=25 +1 – 1=26– 1=63
3. What is a skip List?
Answer: Page no 444 Chapter: 39

What is an Equivalent relation?
Answer: Page no 424 Chapter : 37

                    SOLVED BY : AQUALEO |Remember in Prayers

Two cells are equivalent if they can be reached from each other.
4 questions of 3 marks
1. What are the properties of equivalence class?
Answer:         Page no 385 Chapter : 33

2. How heap sort works to set a set of data?
Answer:        Chapter:30       Page no 353
When we construct the heap or complete binary tree of the list, the smallest name
(considering alphabet ‘a’ as the smallest) in the list will take the root node place in
the tree. The remaining names will
take their places in the nodes below the root node according to their
order. Remember, we are not constructing binary search tree but a min-heap to sort the
data. After the construction of the min-heap from all the names in the list, we start
taking the elements out (deleting) from the heap in order to retrieve the sorted data.
The first element that is taken out would be the smallest name in the heap. The
remaining heap after taking out the deleted node will be reduced by one element in size
and the next name will be at the root position. It is taken out to further reduce the tree
size by one.
This way, the continuation of the process of taking out the elements from the heap
will ultimately lead to a situation when      there is no more node left in the tree.

3. How can we search an element in skip list?
   Answer:    Page no 447 Chapter : 40

4. Give one example of Hashing
   Answer:
   page no 460 Chapter no 41
4 questions of 5 marks.
1. How we can implement Table ADT using linked?

                     SOLVED BY : AQUALEO |Remember in Prayers

Answer: Page no 441 Chapter no 39

2. Suppose we have the following representation child nodes and Parent node of the
   node D.
Answer:
question is not clear
3. .Consider the following max heap. Add node 24 in it and show the resultant Heap.
Answer:
Page no 337-340 Chapter no 29
4. Give any three characteristics of Union by Weight method
Answer:            Page no 408 Chapter no : 36

Note: New Paper (All questions were same)
2. Give the effect of sorted data on Binary Search.
Answer: Page no 205
It gives a look of a linked list
5. Give the operation names that we can perform on Table abstract data type?
Answer: Page no : 429

                        SOLVED BY : AQUALEO |Remember in Prayers

Insert
As the name shows this method is used to insert (add) a record in a table. For its
execution, a field is designated as key. To insert a record (entry) in the table, there is
need to know the key and the entry. The insert method puts the key and the other
related fields in a table. Thus we add records in a table.
Find
Suppose we have data in the table and want to find some particular information. The

More CS301 files

All CS301 files · Midterm Prep 2026 · MCQs Bank