CS301 - Sample Paper (Final Term) Fall 2022.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
- Type
- Final-Term
- Coverage
- Final-Term Exam Scope (Lectures 23 to 45)
- Tags
- 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
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- 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 - Sample Paper (Final Term) Fall 2022.pdf for free?
You can preview and download "CS301 - Sample Paper (Final Term) Fall 2022.pdf" (CS301 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs301-sample-paper-final-term-fall-2022-pdf-2) 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
Sample Paper
FINALTERM EXAMINATION
Fall 2022
CS301 - Data Structures
Time: 90 min
Marks: 60
Question No: 1 (Marks: 01) - Please choose the correct option
AVL Tree is invented in the year ____________.
A. 1960
B. 1961
C. 1962
D. 1963
Question No: 2 (Marks: 01) - Please choose the correct option
Inserting a node at the right most place would make root’s balance factor ____________.
A. -1
B. -2
C. 1
D. 2
Question No: 3 (Marks: 01) - Please choose the correct option
As compared to BST, the root node in AVL tree is ___________.
A. 0
B. Null
C. Constant
D. Changeable
Question No: 4 (Marks: 01) - Please choose the correct option
In AVL Tree, _______________ traversal gives sorted sequence in ascending order.
A. Inorder
B. Pre-order
C. Post-order
D. Level order Traversal
Question No: 5 (Marks: 01) - Please choose the correct option
_______________ converts assembly language code into machine code i.e. 0s & 1s.
A. Interpreter
B. Compiler
C. Converter
D. Assembler
Question No: 6 (Marks: 01) - Please choose the correct option
After deleting node 15 from above tree, how many rotations do we need to balance the
AVL tree?
A. One Single Rotation
B. One Double Rotation
C. No Rotation
D. Two Single Rotations
Question No: 7 (Marks: 01) - Please choose the correct option
Compiler converts the C++ code into ________________.
A. Assembly language
B. Visual Basic
C. Java
D. Bytecode
Question No: 8 (Marks: 01) - Please choose the correct option
Which one of the following is the application of an Expression Tree?
A. MS Word
B. 2D Paint
C. Spreadsheets
D. Outlook
Question No: 9 (Marks: 01) - Please choose the correct option
What is the height balancing factor in AVL tree?
A. Difference between left and right subtree heights
B. Sum of left and right subtree heights
C. Product of left and right subtree heights
D. Log of left and right subtree heights
Question No: 10 (Marks: 01) - Please choose the correct option
The technique of using binary trees in data compression is referred to as ________.
A. Huffman encoding
B. Heap
C. Graph
D. BST
Question No: 11 (Marks: 01) - Please choose the correct option
What will be the number of external nodes in a binary tree that has 31 internal nodes?
A. 30
B. 31
C. 32
D. 33
Question No: 12 (Marks: 01) - Please choose the correct option
What type of nodes are found in an expression tree?
A. Operators and operands
B. Functions and variables
C. Numbers and symbols
D. Numbers and operands
Question No: 13 (Marks: 01) - Please choose the correct option
What is the maximum number of nodes that a complete binary tree of height 'h' can have?
A. 2^h
B. 2^(h+1) - 1
C. 2^(h-1)
D. 2^h+1
Question No: 14 (Marks: 01) - Please choose the correct option
A max-heap is stored in an array as H = [49, 39, 36, 31, 27, 21, 35, 12].
What is the result of deleting 49 from this heap?
A. [39, 31, 36,12, 27, 21, 35]
B. [39, 36, 31, 27, 21, 35, 12]
C. [39, 36, 12, 31, 27, 35, 21]
D. [39, 35, 31, 36, 12, 27, 21]
Question No: 15 (Marks: 01) - Please choose the correct option
How many types of heap are there?
A. 2
B. 3
C. 4
D. 5
Question No: 16 (Marks: 01) - Please choose the correct option
Heap can be used as ________________
E. Priority queue
F. Stack
G. A decreasing order array
H. Normal Array
Question No: 17 (Marks: 01) - Please choose the correct option
Suppose Min heap is implemented by using an array. Which one of the following array
cannot be a Min heap?
A. 17, 19, 21, 23, 25, 29, 31
B. 17, 21, 19, 25, 23, 31, 29
C. 17, 25, 19, 29, 31, 21, 23
D. 17, 25, 21, 31, 29, 19, 23
Question No: 18 (Marks: 01) - Please choose the correct option
In deletMin method, before calling the percolatedown method( ) the ____ element of the
array will be placed as the root element of the tree.
A. first
B. second
C. third
D. last
Question No: 19 (Marks: 01) - Please choose the correct option
In union operation, the _____ can be used to name the set.
A. Root
B. Left child
C. Right child
D. Leaf node
Question No: 20 (Marks: 01) - Please choose the correct option
Which of the following method takes an array along with its size as an argument and
constructs a heap out of it?
A. Insert( )
B. Buildheap( )
C. Percolatedown()
D. IncreaseKey( )
Question No: 21 (Marks: 01) - Please choose the correct option
How many properties will an equivalent relationship satisfy?
A. 1
B. 2
C. 3
D. 4
Question No: 22 (Marks: 01) - Please choose the correct option
The ___________ method constructs a heap using a single item while maintaining heap
order.
A. Insert( )
B. Buildheap( )
C. Percolatedown()
D. IncreaseKey( )
Question No: 23 (Marks: 01) - Please choose the correct option
Inside the insert method of min heap, we will call the ________ method.
A. isFull()
B. isEmpty()
C. getmin()
D. IncreaseKey( )
Question No: 24 (Marks: 01) - Please choose the correct option
Suppose a relation R = {(2, 2), (5, 5), (5, 2), (5, 5), (6, 6)} on S = {2, 5, 6}. Here R is
known as _________
A. equivalence relation
B. reflexive relation
C. symmetric relation
D. transitive relation
Question No: 25 (Marks: 01) - Please choose the correct option
Which part of the code performs the union of two sets in Union by Size method?
A. The find operation
B. The loop in the find operation
C. The union operation
D. The comparison in the if-condition
More CS301 files
- .trashed-1695276378-CS301 FINAL TERM FILE 1 SOLVED BY TEAM H (PDF · Final-Term)
- All Subjects Mid & Final 25000 Pdf Files.pdf (PDF · Final-Term)
- CS-301 Latest Mcq's Final Term By Vu Topper RM.pdf (PDF · Final-Term)
- CS-301 Latest Mcq_s Final Term By Vu Topper RM.pdf (PDF · Final-Term)
- CS301 - Sample Paper (Final Term) Fall 2022.pdf (PDF · Final-Term)
- CS301 - Sample Paper (Final Term) Fall 2022.pdf (PDF · Final-Term)
- CS301 Current 2020 Final Paper by VU Answer.pdf (PDF · Final-Term)
- CS301 Current Final Term Papers 2018 To 2020.pdf (PDF · Final-Term)