Cs_301 Mid Term by Vu Topper RM.pdf

Verified academic study resource for CS301 (Data Structures) under the Computer Science at Virtual University of Pakistan. This PDF document (Midterm Solved Past Paper & Revision File) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 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
Midterm
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Tags
MIDTERM

Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS301.

What this file covers — CS301 syllabus roadmap

  1. Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
  2. Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
  3. Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
  4. Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)

Frequently asked questions

Where can I download Cs_301 Mid Term by Vu Topper RM.pdf for free?

You can preview and download "Cs_301 Mid Term by Vu Topper RM.pdf" (CS301 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs-301-mid-term-by-vu-topper-rm-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 Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), 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

 Cs-301 Important Mid Term
Mcq’s Solution 100% Correct :
  Solve By Vu-Topper RM!!

Question No:1                  (Marks:1)               Vu-Topper RM
If there is a strictly complete binary tree of depth 3, the total number of nodes in it will be?
➢ 2k

Question No:2                  (Marks:1)               Vu-Topper RM
Which of the following is TRUE for search operations in a binary tree as compared to linked list
or an array?
➢It increases the number of comparisons

Question No:3                  (Marks:1)               Vu-Topper RM
Elements in a queue data structure are added from______ and removed from--------?
➢Rear end. front end

Question No:4                  (Marks:1)               Vu-Topper RM
Function signatures are also called:
➢Function prototype

Question No:5                  (Marks:1)               Vu-Topper RM
In a tree, we link the nodes in such a way that it ___________ a linear structure.
➢Does not remain

Question No:6                  (Marks:1)               Vu-Topper RM
Which of the following traversal method traverses the binary tree in
sorted order?
➢inOrder() method

Question No:7                  (Marks:1)               Vu-Topper RM
In which traversal method, the recursive calls can be used to traverse a binary tree?
➢In preorder traversal

Question No:8                  (Marks:1)               Vu-Topper RM
If we return the reference of a local variable from a function it will cause:
➢ Dangling reference

Question No:9                  (Marks:1)               Vu-Topper RM
While implementing non-recursive traversal for Binary Search Tree, we need to implement
_________.
➢Stack

Question No:10                 (Marks:1)               Vu-Topper RM
When a function calling itself is called as __________.
➢ Recursion

Question No:11                 (Marks:1)               Vu-Topper RM
In the perspective of memory organization each process is divided into -------sections.
➢4

Question No:12                (Marks:1)               Vu-Topper RM
In a program a reference variable with name "x" can be declared as
➢.int &x;

Question No:13                (Marks:1)               Vu-Topper RM
A binary tree is said to be a _____ binary tree if every non-leaf node in a binary tree has non-
empty left and right subtrees.
➢Strictly binary tree

Question No:14                (Marks:1)               Vu-Topper RM
We can calculate the ___________ of a subtree by counting its levels from the bottom.
➢Height

Question No:15                (Marks:1)               Vu-Topper RM
In C++, we place the class interface in __________file.
➢.cpp file

Question No:16                (Marks:1)               Vu-Topper RM
In which traversal method root node is visited at last step?
➢ Post-order Traversal

Question No:17                (Marks:1)               Vu-Topper RM
Which one is the correct function call for the following function of calculating cube?
➢ Cube(num)

Question No:18                (Marks:1)               Vu-Topper RM
The balance of a node in a binary tree is defined as the height of its -----sub tree minus height of
its right sub tree.
➢Left

Question No:19                (Marks:1)               Vu-Topper RM
In level-order traversal for Binary Search Tree, at each level, we visit the nodes in------order.
➢left-to-right

Question No:20                (Marks:1)               Vu-Topper RM
In level-order traversal for Binary Search Tree, __________ data structure is used.
➢Queue

Question No:21                (Marks:1)               Vu-Topper RM
For a complete binary tree with n numbers of nodes, the depth is calculated as ____________
➢ log2(number of nodes+1)-1

Question No:22                (Marks:1)               Vu-Topper RM
A __________ is a tree in which every level, except possibly the last, is completely filled.
➢ Complete binary tree

Question No:23                (Marks:1)               Vu-Topper RM

In a complete binary tree, for 25000 nodes the depth will be-----
➢14

Question No:24                 (Marks:1)               Vu-Topper RM
Left, right, info, and parent are the operations of _________ data structure.
➢Tree

Question No:25                 (Marks:1)               Vu-Topper RM
If both left and right nodes of a node are NULL then this type of node is called a ------node.
➢Leaf

Question No:26                 (Marks:1)               Vu-Topper RM
------- is used for Reference variables in C++.
➢ '&

Question No:27                 (Marks:1)               Vu-Topper RM
Local variables defined inside function body are ___________ automatically at the end of
function execution.
➢Destroyed

Question No:28                 (Marks:1)               Vu-Topper RM
The process of getting the value of a variable using pointers is called:
➢ Dereferencing pointer.

Question No:29                 (Marks:1)               Vu-Topper RM
We allocate memory dynamically by using _______ operator.
➢ 0perator new

Question No:30                 (Marks:1)               Vu-Topper RM
For searching a particular number in Binary Search Tree (if it is not present), the maximum
number of comparisons will be _______ comparison(s) at each level.
➢1
Question No:31                 (Marks:1)               Vu-Topper RM
In a complete binary tree the number of nodes at level 5 are
➢32

Question No:32                 (Marks:1)               Vu-Topper RM
The _________ of a binary tree is the maximum level of its leaves (also called the depth).
➢Height

Question No:33                 (Marks:1)               Vu-Topper RM
When a function calls another function, the parameters and return address of the calling
function are put in ________.
➢Stack

Question No:34                 (Marks:1)               Vu-Topper RM
If there is a strictly complete binary tree of depth 3, the total number of nodes in it will be?

➢15

Question No:35                  (Marks:1)                Vu-Topper RM
If a function has recursive call as the last statement, it is known as __?
➢Tail recursive

Question No:36                  (Marks:1)                Vu-Topper RM
Following is a keyword of C++ ____________

More CS301 files

All CS301 files · Midterm Prep 2026 · MCQs Bank