cs301-midterm-mcqs-solved-with-references-by-moaaz-1-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 compiled by Moaaz 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
- Type
- Midterm
- Coverage
- Mid-Term Exam Scope (Lectures 1 to 22)
- Compiled by
- Moaaz 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
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- 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-mcqs-solved-with-references-by-moaaz-1-1.pdf for free?
You can preview and download "cs301-midterm-mcqs-solved-with-references-by-moaaz-1-1.pdf" (CS301 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs301-midterm-mcqs-solved-with-references-by-moaaz-1-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
CS301- Data Structures
NOV 25,2011
LATEST SOLVED MCQS FROM MIDTERM PAPERS
MC100401285 Moaaz.pk@gmail.com MC100401285@gmail.com PSMD01
mc110200885 virtualcheater@gmail.com VDGK01
mc110200030 awais4you@gmail.com PLHR25
MIDTERM EXAMINATION
Spring 2010
CS301- Data Structures
Question No: 1 ( Marks: 1 ) - Please choose one
A queue where the de-queue operation depends not on FIFO, is called a priority queue
► False
► True (Page 101)
Question No: 2 ( Marks: 1 ) - Please choose one
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 (Page 5)
► Use the better algorithm
► Use as much data as we can store on the hard disk
Question No: 3 ( Marks: 1 ) - Please choose one
Consider the function X as under
int X (int& Value)
{
return Value;
}
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
Here function argument passing by reference method is used, so when we call a function we will give the
variable reference as parameter.
Question No: 4 ( Marks: 1 ) - Please choose one
In the call by value methodology, a copy of the object is passed to the called function.
► False
► True (Page 202)
Question No: 5 ( Marks: 1 ) - Please choose one
The tree data structure is a
► Linear data structure
► Non-linear data structure (Page 112)
► Graphical data structure
► Data structure like queue
Question No: 6 ( Marks: 1 ) - Please choose one
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.
Declaring a parameter as a const simply means that the function can’t change the value of its parameters.
Question No: 7 ( Marks: 1 ) - Please choose one
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.
► Only y can alter the private member variables of the object that activates the function.
► Only z can alter the private member variables of the object that activates the function.
► Two of the functions can alter the private member variables of the object that activates the
function.
Only the x and y can alter the private member variable of the foo class object. Last Option is more
correct but not exact. In the last option the two function name are not mentioned
Question No: 8 ( Marks: 1 ) - Please choose one
What is the maximum depth of recursive calls a function may make?
►1
►2
► n (where n is the argument)
► There is no fixed maximum
Question No: 9 ( Marks: 1 ) - Please choose one
Suppose n is the number of nodes in a complete Binary Tree then maximum steps required for a search
operation are,
► Log2 (n+1) -1 (Page 139)
► Log2 (n+1)
► Log2 (n) – 1
► Log2 (n)
Question No: 10 ( Marks: 1 ) - Please choose one
In the linked list implementation of the stack class, where does the push member function places the new entry
on the linked list?
► At the head (Page 53)
► At the tail
► After all other entries that are greater than the new entry.
► After all other entries that are smaller than the new entry.
Question No: 11 ( Marks: 1 ) - Please choose one
Suppose we have a circular array implementation of the queue class, with ten items in the queue stored at
data[2] through data[11]. The CAPACITY is 42, i.e., the array has been declared to be of size 42. Where does
the push member function place the new entry in the array?
► data[1]
► data[2]
► data[11]
► data[12]
Question No: 12 ( Marks: 1 ) - Please choose one
The expression AB+C* is called?
► Prefix expression
► Postfix expression (Page 70)
► Infix expression
► None of these
Question No: 13 ( Marks: 1 ) - Please choose one
_________ is a binary tree where every node has a value, every node's left subtree contains only values less
than or equal to the node's value, and every node's right subtree contains only values that are greater then or
equal?
► Strictly Binary Tree
► Binary Search tree Click here for detail
► AVL tree
► All of these
Question No: 14 ( Marks: 1 ) - Please choose one
Consider the following binary search tree (BST):
If node A in the BST is deleted, which two nodes are the candidates to take its place?
► J and I
► H and E
► D and E
► L and M
Question No: 15 ( Marks: 1 ) - Please choose one
Let’s call the node as that requires re-balancing. Consider the two cases given below:
1) An insertion into left sub tree of the left child of a
2) An insertion into right sub tree of the right child of a.
Which of the following statement is correct about these two cases?
1) The insertion occurs outside (i.e., left-left or right-right) in cases 1 and 2 single rotation can fix the balance in
these two cases.More CS301 files
- CS301 - Midterm Paper 2 by Waqar Solved by Hadi.pdf (PDF · Midterm)
- CS301 - Midterm Paper 3 by Waqar Solved by Hadi.pdf (PDF · Midterm)
- CS301 Current Midterm 2022 Papers.pdf (PDF · Midterm)
- CS301 Grand Quiz file for Mid Term Prepratin by VU Stars.pdf (PDF · Midterm)
- CS301 Grand Quiz file for Mid Term Prepratin by VU Stars.pdf (PDF · Midterm)
- CS301 MIDTERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS301 MIDTERM FILE 3 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS301 MIDTERM FILE 4 SOLVED BY TEAM HADI.pdf (PDF · Midterm)