CS301 final so 2 _babu ji.doc

Verified academic study resource for CS301 (Data Structures) under the Computer Science at Virtual University of Pakistan. This DOC 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
DOC
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

  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 final so 2 _babu ji.doc for free?

You can preview and download "CS301 final so 2 _babu ji.doc" (CS301 DOC, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs301-final-so-2-babu-ji-doc-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

FINALTERM  EXAMINATION
Fall 2009
CS301- Data Structures
Time: 120 min
Marks: 75
Student Info
Student ID:

Center:

Exam Date:
01.08.2010

Question No: 1      ( Marks: 1 ) - Please choose one


__________ only removes items in reverse order as they were entered.

       ► Stack
       ► Queue
       ► Both of these
       ► None of these

Question No: 2      ( Marks: 1 ) - Please choose one


Here is a small function definition:

void f(int i, int &k)
{
i = 1;
k = 2;
}
Suppose that a main program has two integer variables x and y, which are given the value 0. Then the main program calls f(x,y); What are the values of x and y after the function f finishes?

       ► Both x and y are still 0.

       ► x is now 1, but y is still 0.

       ► x is still 0, but y is now 2.

       ► x is now 1, and y is now 2.

Question No: 3      ( Marks: 1 ) - Please choose one


Select the one FALSE statement about binary trees:

       ► Every binary tree has at least one node.

       ► Every non-empty tree has exactly one root node.

       ► Every node has at most two children.

       ► Every non-root node has exactly one parent.

Question No: 4      ( Marks: 1 ) - Please choose one


Every AVL is _________________

       ► Binary Tree

       ► Complete Binary Tree

       ► None of these

       ► Binary Search Tree

Question No: 5      ( Marks: 1 ) - Please choose one


Searching an element in an AVL tree take maximum _______ time (where n is no. of nodes in AVL tree),

       ► Log2(n+1)

       ► Log2(n+1) -1

       ► 1.44 Log2n

       ► 1.66 Log2n

Question No: 6      ( Marks: 1 ) - Please choose one


Suppose that we have implemented a priority queue by storing the items in a heap. We are now executing a reheapification downward and the out-of-place node has priority of 42. The node’s parent has a priority of 72, the left child has priority 52 and the node’s right child has priority 62. Which statement best describes the status of the reheapification.

       ► The reheapification is done.

       ► The next step will interchange the two children of the out-of-place node.

       ► The next step will swap the out-of-place node with its parent.

       ► The next step will swap the out-of-place node with its left child.

Question No: 7      ( Marks: 1 ) - Please choose one


Suppose you implement a heap (with the largest element on top) in an array. Consider the different arrays below, determine the one that cannot possibly be a heap:

       ► 7 6 5 4 3 2 1

       ► 7 3 6 2 1 4 5

       ► 7 6 4 3 5 2 1

       ► 7 3 6 4 2 5 1

Question No: 8      ( Marks: 1 ) - Please choose one


If there are 23 external nodes in a binary tree then what will be the no. of internal nodes in this binary tree?

       ► 23

       ► 24

       ► 21

       ► 22
Lesson # 27(the number of internal nodes is N, the number of external nodes will be N+1.)

Question No: 9      ( Marks: 1 ) - Please choose one


If there are N external nodes in a binary tree then what will be the no. of internal nodes in this binary tree?

       ► N -1

       ► N+1

       ► N+2

       ► N

Question No: 10      ( Marks: 1 ) - Please choose one


Which one of the following is NOT the property of equivalence relation:

       ► Reflexive

       ► Symmetric

       ► Transitive

       ► Associative (lesson no 34)

Question No: 11      ( Marks: 1 ) - Please choose one


The definition of Transitivity property is

       ► For all element x member of S, x R x

       ► For all elements x and y, x R y if and only if y R x

       ► For all elements x, y and z, if x R y and y R z then x R z   (lesson no 34)

       ► For all elements w, x, y and z, if x R y and w R z then x R z

Question No: 12      ( Marks: 1 ) - Please choose one


Union is a _______ time operation.

       ► Constant ( lesson # 35 page 11)

       ► Polynomial

       ► Exponential

       ► None of the given options

Question No: 13      ( Marks: 1 ) - Please choose one


Which of the following is NOT a correct statement about Table ADT.

       ► In a table, the type of information in columns may be different. yes

       ► A table consists of several columns, known as entities. (Lesson # 38 page 1 )

       ► The row of a table is called a record.

       ► A major use of table is in databases where we build and use tables for keeping information.

 Correct  A table consists of several columns, known as fields.

Question No: 14      ( Marks: 1 ) - Please choose one


In the worst case of deletion in AVL tree requires  _________.
       ► Only one rotation
       ► Rotation at each non-leaf node
       ► Rotation at each leaf node

       ► Rotations equal to log2 N   (lesson # 23)

Question No: 15      ( Marks: 1 ) - Please choose one


Binary Search is an algorithm of searching, used with the ______ data.

       ► Sorted  (lesson # 39)

       ► Unsorted

       ► Heterogeneous

       ► Random

Question No: 16      ( Marks: 1 ) - Please choose one


Which of the following statement is correct?

       ► A Threaded Binary Tree is a binary tree in which every node that does not have a left child has a THREAD (in actual sense, a link) to its INORDER successor.

       ► A Threaded Binary Tree is a binary tree in which every node that does not have a right child has a THREAD (in actual sense, a link) to its PREOREDR successor.

       ► A Threaded Binary Tree is a binary tree in which every node that does not have a right child has a THREAD (in actual sense, a link) to its INORDER successor.

       ► A Threaded Binary Tree is a binary tree in which every node that does not have a right child has a THREAD (in actual sense, a link) to its POSTORDER successor.

Question No: 17      ( Marks: 1 ) - Please choose one


By using __________we avoid the recursive method of traversing a Tree, which makes use of stacks and consumes a lot of memory and time.

       ► Binary tree only

       ► Threaded binary tree (lesson # 27 page 3)

       ► Heap data structure

More CS301 files

All CS301 files · Midterm Prep 2026 · MCQs Bank