CS301 MIDTERM SOLVED MCQS By JUNAID-1.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
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 By JUNAID-1.pdf for free?

You can preview and download "CS301 MIDTERM SOLVED MCQS By JUNAID-1.pdf" (CS301 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs301-midterm-solved-mcqs-by-junaid-1-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

AL-JUNAID INSTITUTE OF GROUP

  AL-JUNAID TECH INSTITUTE
1. Consider the following infix
   expression. 7/8+9
   If one converts the above expression into postfix, what would be the
   resultant expression?
       a. 789/+
       b. 78/+9
       c. /78+9
       d. 78/9+
2. Suppose there are 100 elements in an equivalence classes so initially
   there will be 100 tree.The collection of tree is called_
       a. Cluster
       b. Class
       c. Forest
       d. Bunch
3. For a perfect binary tree of height h, having N nodes the sum of height
   of nodes is
       a. N-h-1
       b. N-1
       c. N-1+h
       d. -(h-1)
4. Sorting procedure normally takes ______time
       a. N log N
       b. 2 N
       c. N*N*N
       d. N
5. there are 100 elements in an equivalence classes then will have
   ______state initially
       a. 50
       b. 100
       c. 1000
       d. 80
6. ________ objects (objects accessed by pointers) are called anonymous
   objects.
       a. Private
       b. Nameless
       c. Friend
       d. Public

                                                        0304-1659294

  AL-JUNAID TECH INSTITUTE
7. ___________ is a self-balancing tree.
      a. AVL
      b. Binary Tree
      c. Binary Search Tree
      d. ALV
8. Which of the following operation returns but do not removes top value
   of the stack?
      a. Push
      b. Pop
      c. Top
      d. First
9. Int htdiff = height(root->getLeft()) __________
   height(root->getRight()); The above line of code is
   taken from AVL insert method.
   Complete it by selecting an appropriate symbol.
      a. -
      b. +
      c. /
      d. *
10.       Which operation of the queue data structure is used to insert an
   element into the Queue?
      a. Enqueue()
      b. Dequeue()
      c. Fornt()
      d. Remove()
11.       For making binary search tree for strings we need, ________ data
   type.
      a. Char
      b. Int
      c. Float
      d. Double
12.       Local variables defined inside function body are ________
   automatically at the end of function execution.
      a. Created
      b. Destroyed
      c. Incremented
      d. Decremented

                                                       0304-1659294

  AL-JUNAID TECH INSTITUTE
9. If a node has three fields, then this node will be related to
       a. Linked list
       b. Doubly linked list
       c. Circular linked list
       d. All of the given
10.       ________ is an area in computer memory that is allocated
   dynamically.
       a. Heap
       b. Stack
       c. Queue
       d. Linked list
11.       Linked list use _______ to store data.
       a. Array
       b. 2-D Array
       c. Variables
       d. Linked Memory
12.       The lifetime of a transient object cannot exceed that of the
   application.
       a. True
       b. False
       c. In some cases
       d. None of the given
13.       To represent hierarchical relationship between elements, which
   data structure is suitable?
       a. Dequeue
       b. Priority
       c. Stack
       d. Tree
14.       Local variables of a function are stored in,
       a. Binary search tree
       b. Stack
       c. Queue
       d. AVL tree
15.       In-order traversal method traverses tha data in
       a. Non sorted order
       b. Random order
       c. Sorted order

                                                       0304-1659294

  AL-JUNAID TECH INSTITUTE
      d. None of the given
16.      Dequeue() operation of queue data structure is used to
   _________
      a. Get an element from the front of the queue
      b. Remove an element from the front and return it
      c. Insert an element at the front
      d. Insert an element at the back
17.      In a tree, we link the nodes in such a way that it _________ a
   linear structure.
      a. Does not remain
      b. Forms
      c. Reverses
      d. Remains
18.      Factorial is an example of ________ function.
      a. Recursive
      b. Non-recursive
      c. Cube
      d. Log
19.      All the objects created using _________ operator have to be
   explicitly destroyed using delete operator.
      a. New
      b. Delete
      c. Del
      d. Create
20.      In the calling function, after the execution of the function
   called, the program continues its execution from the _______ after
   the function call.
      a. Previous line
      b. Next line
      c. Beginning
      d. None of the above
21.      Last node in circular linked list contains
      a. At least one null pointer
      b. No null pointer
      c. Maximum two null pointers
      d. None of the given

                                                        0304-1659294

  AL-JUNAID TECH INSTITUTE
22.      One should be careful about transient _______ that are stored by
   reference in data structures.
      a. Objects
      b. Stack
      c. Function
      d. Tree
23.      Binary search tree violates the condition of AVL tree when any
   node has balance equal to
      a. 2 or -2
      b. 1 or -1
      c. 0
      d. None of the options
24.      Security of data is the main usage of AVL tree.
      a. True
      b. False
      c. In some cases
      d. None of the given
25.      A binary tree whose every node has either zero or two children is
   called _________.
      a. Complete binary tree
      b. Binary search tree
      c. Strictly binary tree
      d. None of above
26.      In internal memory organization of a process, there is some area
   of memory for static data that holds _________ variables.
      a. Static
      b. Global
      c. Not static neither global
      d. Both static and global
27.      Following is true in case of using recursive method calls.
      a. The code becomes very long
      b. There is no effect on length of code
      c. The code becomes very short
      d. Code becomes very easy to understand
28.      In which traversal method, the recursive calls can be used to
   traverse a binary tree?
      a. In preorder traversal only

                                                       0304-1659294

  AL-JUNAID TECH INSTITUTE
      b. In inorder traversal only
      c. In postorder traversal only

More CS301 files

All CS301 files · Midterm Prep 2026 · MCQs Bank