cs301-MID-TERM-Mega-FILE-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
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-MID-TERM-Mega-FILE-1.pdf for free?

You can preview and download "cs301-MID-TERM-Mega-FILE-1.pdf" (CS301 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs301-mid-term-mega-file-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

                             www.vuplanet.com

        MID TERM MEGA FILE
                             SOLVED BY

                VU HELPER
 Which one of the following statement is NOT correct .

   ► In linked list the elements are necessarily to be contiguous
   ► In linked list the elements may locate at far positions in the memory
   ► In linked list each element also has the next to it
   ► In an array the elements are contiguous

 Each operator in a postfix expression refers to the previous ________ operand(s).

   ► One
   ► Two
   ► Three
   ► Four

 Which one of the following calling methods does not change the original value of the
  argument in the calling function?

   ► None of the given options
   ► Call by passing the value of the argument
   ► Call by passing reference of the argument
   ► Call by passing the address of the argument

 A tree is an AVL tree if

   ► Any one node fulfills the AVL condition
   ► At least half of the nodes fulfill the AVL condition
   ► All the nodes fulfill the AVL condition
   ► None of the given options

 Suppose currentNode refers to a node in a linked list (using the Node class with
  member variables called data and nextNode). What statement changes currentNode
  so that it refers to the next node?

   ► currentNode ++;
   ► currentNode = nextNode;
   ► currentNode += nextNode;
   ► currentNode = currentNode->nextNode;

 A queue where the de-queue operation depends not on FIFO, is called a priority
  queue

   ► False
   ► True

                              ZUBAIR & JAHANZAIB                                      1

                            www.vuplanet.com
 Which one is a self- referential data type?
► Stack
► Queue
► Link list
 ► All of these

 Each node in doubly link list has,

► 1 pointer
► 2 pointers
► 3 pointers
► 4 pointers

 I have implemented the queue with a linked list, keeping track of a front pointer
  and a rear pointer. Which of these pointers will change during an insertion into an
  EMPTY queue?

► Neither changes
► Only front pointer changes.
► Only rear pointer changes.
► Both change.

 Consider the following tree.

   How many of the nodes have at least one sibling?

►8
►7
►5
►6

 The nodes with no successor are called _________

► Root Nodes
► Leaf Nodes
► Both of these
► None of these

 AVL Tree is,

► Non Linear data structure
► Linear data structure
► Hybrid data structure (Mixture of Linear and Non Linear)
► None of the given options.

                             ZUBAIR & JAHANZAIB                                    2

                                   www.vuplanet.com
    We access elements in AVL Tree in,

    ► Linear way only
    ► Non Linear way only
    ► Both linear and non linear ways
    ► None of the given options.

    A binary search tree should have minimum of ________ node/s at each level,

    ► One
    ► Two
    ► Three
    ► Four

    Consider the following statements.

           (i) A binary tree can contain at least 2L Nodes at level L.
           (ii) A complete binary tree of depth d is a binary tree that contains 2 L Nodes at each
           level L between 0 and d, both inclusive.
           (iii) The total number of nodes (Tn ) in a complete binary tree of depth d is 2 d+1 - 1 .
           (iv) The height of the complete binary tree can be written as h = log 2 (Tn+1)-1 where
           Tn is Total number of Nodes.

Which one of the following is correct in respect of the above statements regarding the Binary
trees?

    ► (i) and (iii) only
    ► (i), (ii) and (iii) only
    ► (ii) and (iii) only
    ► (ii), (iii) and (iv) only

    “+” is a _________operator.

    ► Unary
    ► Binary
    ► Ternary
    ► None of the above

    A queue where the de-queue operation depends not on FIFO, is called a priority
     queue

    ► False
    ► True

    The data of the problem is of 2GB and the hard disk is of 1GB capacity, to solve this
     problem we should

    ► Use better data structures
    ► Increase the hard disk space
    ► Use the better algorithm
    ► Use as much data as we can store on the hard disk

    Consider the function X as under

       int X (int& Value)
       {
               return Value;
       }

                                   ZUBAIR & JAHANZAIB                                             3

                                  www.vuplanet.com
       Now a and b are integers in a calling function. Which one of the following is a valid
       call to the above function X.

    ► a = X (b) ;
    ► a = X (&b) ;
    ► a = X (*b) ;
    ► None of the given options

    In the call by value methodology, a copy of the object is passed to the called
     function.

    ► False
    ► True

    The tree data structure is a

    ► Linear data structure
    ► Non-linear data structure
    ► Graphical data structure
    ► Data structure like queue

    When should you use a const reference parameter?

    ► Whenever the parameter has huge size
    ► Whenever the parameter has huge size, the function changes the parameter within its
    body, and you do NOT want these changes to alter the actual argument.
    ► Whenever the parameter has huge size, the function changes the parameter within its
    body, and you DO want these changes to alter the actual argument.
    ► Whenever the parameter has huge size, and the function does not change the
    parameter within its body.

    Here is the start of a C++ class declaration:

   class foo
       {
                public:
               void x(foo f);
               void y(const foo f);
               void z(foo f) const;
    ...
Which of the three member functions can alter the PRIVATE member variables of the foo object
that activates the function?

    ► Only x can alter the private member variables of the object that activates the
    function. (R )

More CS301 files

All CS301 files · Midterm Prep 2026 · MCQs Bank