CS301 Midterm Solved McQs Papers By Waqar Sidhu.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 compiled by Waqar Siddhu) 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)
Compiled by
Waqar Siddhu
Tags
MCQ, SOLVED, 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 CS301 Midterm Solved McQs Papers By Waqar Sidhu.pdf for free?

You can preview and download "CS301 Midterm Solved McQs Papers By Waqar Sidhu.pdf" (CS301 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs301-midterm-solved-mcqs-papers-by-waqar-sidhu-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

                        For More Visit VUStudents.pk

CS301 Midterm Solved McQs Papers By Waqar Sidhu
                     (File 1)
Question No 1
Each Node in singly link list,

Select Correct Option
    ✓ 1 pointer………(For More Visit VUStudents.pk)
    ✓ 2 pointers
    ✓ 3 pointers
    ✓ 4 pointers

Question NO 2
Parameters in function call are passed using,

Select Correct Option
    ✓ Stack………(For More Visit VUStudents.pk)
    ✓ Queue
    ✓ Binary Search Tree
    ✓ AVL Tree

Question NO 3
The ___________ method of list data structure removes the element residing at the current
position.
Select Correct Option
    ✓ Add
    ✓ Next
    ✓ Remove………(For More Visit VUStudents.pk)
    ✓ Find

Question NO 4
Insertion in a linked list can be done at
Select Correct Option
    ✓ Front only
    ✓ Back only
    ✓ Somewhere in middle only
    ✓ Front, back and somewhere in the middle………(For More Visit VUStudents.pk)

Question NO 5
An array is a group of ---------------- memory locations.
Select Correct Option
    ✓ Scattered
    ✓ Isolated
    ✓ Random(non-consecutive)
    ✓ Consecutive………(For More Visit VUStudents.pk)

                        For More Visit VUStudents.pk

                        For More Visit VUStudents.pk
Question NO 6
Which of the following applications may use a stack?

Select Correct Option
    ✓ Accessing shared resources
    ✓ Parentheses balancing program………(For More Visit VUStudents.pk)
    ✓ Buffering messages
    ✓ Waiting list

Question NO 7
Every AVL is _________________.

Select Correct Option
    ✓ Temary Tree
    ✓ Complete Binary Tree
    ✓ Heap
    ✓ Binary Search Tree………(For More Visit VUStudents.pk)

Question NO 8
Consider the following infix expression:
x–y*a+b/c
Which of the following is a correct equivalent expression for the above?

Select Correct Option
    ✓ xy-a*b+c/
    ✓ x *y a - b c / +
    ✓ x y a * - b c / +………(For More Visit VUStudents.pk)
    ✓ x y a * - b/ + c

Question NO 9
Non-recursive calls are faster than which of the following calls?

Select Correct Option
    ✓ Parameterized
    ✓ Recursive………(For More Visit VUStudents.pk)
    ✓ Function
    ✓ Non-Function

Question NO 10
The balance of a node in the result of “height of left subtree” ……… “height of right subtree.

Select Correct Option
    ✓ Plus
    ✓ Minus………(For More Visit VUStudents.pk)
    ✓ Multiply
    ✓ Divided by

                        For More Visit VUStudents.pk

                         For More Visit VUStudents.pk
Question NO 11
Searching an element in an AVL tree takes maximum _______ time (when n is number of nodes
in AVL tree)

Select Correct Option
    ✓ Log 2 (n+1)
    ✓ Log 2 (n+1)-1
    ✓ 1.44 Log 2 n ………(For More Visit VUStudents.pk)
    ✓ 1.66 Log 2 n
Question NO 12
A complete binary tree having “N” nodes consists of ………….. Levels.

Select Correct Option
    ✓ Log2 (N+1) – 1………(For More Visit VUStudents.pk)
    ✓ Log2 (N-1) – 1
    ✓ Log2 (N+1) + 1
    ✓ Log2 (N-1) + 1
Question NO 13
In the post-order traversal of a binary search tree, nodes process as:

Select Correct Option
    ✓ Left-subtree, Right-subtree, Root………(For More Visit VUStudents.pk)
    ✓ Right-subtree, Root, Left-subtree
    ✓ Left-subtree, Root, Right-subtree
    ✓ Right-subtree, Left-subtree, Root
Question NO 14
The simplest case in a BST to delete a node is:

Select Correct Option
    ✓ When the node, that is to be deleted is root node
    ✓ When the node, that is to be deleted has both left and right child
    ✓ When the node, that is to be deleted has only one child
    ✓ When the node, that is to be deleted is a leaf node…(For More Visit VUStudents.pk)

Question NO 15
If class A defines class B as its friend, then:

Select Correct Option
    ✓ Class A can access private members of class B
    ✓ Class B can access only the public members of class A
    ✓ Class A can access only the public members of class B
    ✓ Class B can access private members as class A……(For More Visit VUStudents.pk)

                         For More Visit VUStudents.pk

                        For More Visit VUStudents.pk
Question NO 16
In the statement int& a=b;

Select Correct Option
    ✓ a and b pointing to two different memory location
    ✓ a and b are two different names of the same memory location
    ✓ a and b are two different variables names
    ✓ b hold the address of variable a………(For More Visit VUStudents.pk)

Question NO 17
The main use of AVL tree is:

Select Correct Option
    ✓ Searching of data
    ✓ Storing of data………(For More Visit VUStudents.pk)
    ✓ Insertion of data
    ✓ Security of data

Question NO 18
In simple implementation of stack, isFull() method is used due to …………

Select Correct Option
    ✓ Limitation of array………(For More Visit VUStudents.pk)
    ✓ Strength of array
    ✓ Linked list of connectivity
    ✓ Complexity of linked list

Question NO 19
Write in postfix form: 5 * (9 – 7)

Select Correct Option
    ✓ 5(97-)*
    ✓ 59*7-
    ✓ 5 9 7 - *………(For More Visit VUStudents.pk)
    ✓ 5(97-)

Question NO 20
What will be result of following postfix expression?
     123*+2–

Select Correct Option
    ✓ 3
    ✓ 4………(For More Visit VUStudents.pk)
    ✓ 5
    ✓ 10

                        For More Visit VUStudents.pk

                        For More Visit VUStudents.pk

                                             (File 2)
Question No 1
An array x of 100 integers is declared as.

Select Correct Option
    ✓ int x = [100];
    ✓ int x[100]; ………(For More Visit VUStudents.pk)
    ✓ integer array x = 100;
    ✓ integer x [] = 100;

Question NO 2
What is the maximum depth of recursive calls a function may make?

Select Correct Option
    ✓ 1
    ✓ 2
    ✓ n (where n is the argument) ………(For More Visit VUStudents.pk)
    ✓ There is no fixed maximum

Question NO 3

More CS301 files

All CS301 files · Midterm Prep 2026 · MCQs Bank