CS301 - Sample Paper Solved By Qalb-e-Momin.pdf

Verified academic study resource for CS301 (Data Structures) under the Computer Science at Virtual University of Pakistan. This PDF document (Mega Solved MCQs Question Bank) covers Full Course Curriculum spanning approximately 180 pages across 8 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
MCQ Bank
Coverage
Full Course Curriculum
Tags
SOLVED

Cross-verify solutions against official lecture handouts. Practice active recall before checking answers to ensure true concept retention.

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)
  5. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  6. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  7. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  8. 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 Solved By Qalb-e-Momin.pdf for free?

You can preview and download "CS301 - Sample Paper Solved By Qalb-e-Momin.pdf" (CS301 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs301-sample-paper-solved-by-qalb-e-momin-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 Full Course Curriculum across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, 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

                                               1

                                     Sample Paper
                               FINALTERM EXAMINATION
                                        Fall 2022
                                  CS301 - Data Structures

                                                                              Time: 90 min
                                                                           Total Marks: 60
                                                           Section A: Objective (33 marks)
                                                           Section B: Subjective (27 marks)
                        Mandatory : 33 MCQs, 4 Short (3 marks each) , 3 Long (5 marks each)

Follow my Channel for BOOST your Final-Term Exam:
https://whatsapp.com/channel/0029Vb6WUs0KwqSLZB7ERj1n

                           Solved by Qalb-e-Momin
                         For Paid Service You can contact us directly.
                              Reliable & Fast help guaranteed.
                                        03174545120

   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

                                          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
                                             3      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
                                           4      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
                                            5      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          // External node (leaf node) = Internal node (non-leaf node) + 1
   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
                                              6      the correct option

   How many types of heap are there?

          A. 2
          B. 3
          C. 4
          D. 5
All parents ≤ children ✅ This is a Min Heap.
All parents ≥ children ✅ This is a Max Heap.

   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

       // All parents ≤ children ✅ This is a Min Heap.

   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

// In the deleteMin() method of a Min Heap, the steps are:

       1. The minimum element (root) is removed.
       2. The last element in the heap is moved to the root.
       3. Then percolateDown() is called to restore the heap property.

Question No: 19       (Marks: 01) - Please choose

More CS301 files

All CS301 files · Midterm Prep 2026 · MCQs Bank