CS301 Quiz 1.docx

Verified academic study resource for CS301 (Data Structures) under the Computer Science at Virtual University of Pakistan. This DOC document (Live Quiz Dumps & Solved Objective Bank) covers Quizzes & Objective Exam Scope 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
DOC
Type
Quiz
Coverage
Quizzes & Objective Exam Scope

Quiz questions often repeat with modified parameter values in both Midterm and Final exams. Practice with our 45-second timed simulator to master exam pacing.

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 Quiz 1.docx for free?

You can preview and download "CS301 Quiz 1.docx" (CS301 DOC, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs301-quiz-1-docx) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS301 file?

This document covers Quizzes & Objective Exam Scope 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

Which of the following calling method does not change the original value of variable passed to a function as an argument?
 Call by passing as value
What is the maximum  of recursive calls a function may make?
n (where n is the argument)
Here is a small function definition:
void f(int i, int &k)
{
i = 1;
k = 2;
}
Suppose that a main program has two integer variables x and y, which are given the value 0. Then the main program calls f(x,y); What are the values of x and y after the function f finishes?
x is still 0, but y is now 2.
Write in postfix form 5 * (9 - 7)
5 9 7 - *
Which of the following is NOT true regarding the maze generation?
Remove a randomly chosen wall if the cells it separates are already in the same set
An array x of 100 integers is declared as
int x[100];
Local variables defined inside function body are ________ automatically at the end of function execution.
Created
Which of the following statement is NOT correct regarding Table ADT?
A table consists of deveral columns known as entities
In doubly linked list there is/are _______ pointer/s in each node.
Two
"new int[11]" will allocate memory for ________ integers.
11
If a tree has 20 edges/links, then the total number of nodes in the tree will be:
21
In the statement int& a=b;
b hold the address of variable a
Which of the following is NOT an open addressing technique to resolve collisions?
Double hashing
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);
For a perfect binary tree of height 4, What will be the sum of hights of nodes?
26
If unions are done by weight (size), the depth of any element is never greater than
log2 n
Which of the following statement is NOT true for reference variable?
References can be uninitialized.
The tree data structure is a
Non-linear data structure
In singly linked list a node consists of two parts:
Object and pointer
The simplest case in a BST to delete a node is:
When the node, that is to be deleted is a leaf node
A binary tree with 24 internal nodes has ________ external nodes.
25
a * (b+c)-d is an example of ________ expression.
infix
given the values are the array representation of heap:
12 23 26 31 34 44 56 64 78 100
If we perform 4 deleteMin operations, the last element deleted is ________.
31
In ________, a programmer uses two pointers in the node, i.e. one to point to next node and the other to point to the previous node.
Linked list
Trying to remove an element from an empty stack is called ________ .
Underflow of stack
For reference variables, ________ sign is used.
ampersand
Which property of equivalence relation is satisfied if we say:
Ahmad R(is related to) Ahmad
Reflexivity
Suppose there is an image segmented into pixels. Each pixel has ________ neighbour(s).
8
The most difficult case for deleting a node from Binary Search Tree is when the node to be deleted ________.
is Leaf node
When an executable program runs, it is loaded in the computer memory and becomes a ________ .
Process
If class A defines class B as its friend, then:
Class B can access private members of Class A
In the poat-order traversal of a binary search tree, nodes process as:
Left-subtree, Right-subtree, Root
The expression AB+C* is called?
Postfix expression
Binary Search can be categorized into which of following?
Divide and conquer
The main use of AVL tree is:
Storing of data
Select the one FALSE statement about binary trees:
Every binary tree has at least one node.
A table consists of several columns, known as
Fields
Each operator in a postfix expression refers to the previous ________ operand(s).
One
If there are 56 internal nodes in a binary tree then how many external nodes this binary tree will have?
57
Which of the following function don't belong to the stack class?
crash()
Which of the following statement is false?
Arrays are dense lists and static data structure
During union by size method, which data structure is used to improve the balancing of tree?
Array
Non-recursive calls are faster than which of the following calls?
Recursive
Binary Search Tree voilates the condition of AVL tree when any node has balance equal to
0
Each node in Binary Search Tree has
2 pointers
What will be postfix expression of the following infix expression?
Infix Expression: a+b*c-d
abc*+d-
The balance of a node is the result of "height of left subtree" ________ "height of right subtree".
Minus
A complete binary tree having "N" nodes consists of ________ Levels.
Log2 (N+1) -1
Consider a hash table of size seven, with starting index zero, and a hash function (3x + 4)mod7. Assuming the hash table is initially empty, which of the following is the contents of table when the sequence 1, 3, 8, 10 is inserted into the table using closed hashing? NOte that '_' denotes an empty location in the table.
1, 8, 10, _, _, _, 3
Which one of the following is known as "Last-In, First-Out" or LIFO Data Structure?
Stack
Parameters in function call are passed using,
Stack
If we singly linked list to implement list, then there is an issue that it gives difficulty when we:
Move backward in the list
Which of the following is correct about AVL Tree?
It is identical to BST except height of the left and right subtrees can differ by at most 1.
Insertion in a linked list can be done at
Front, Back and somewhere in the middle
If the height of a perfect binary tree is 4. What will be the total number of nodes in it?
31
AVL tree is linear data structure.
TRUE
During the union by size method, all the array element initialized to -1 shows:
Initial condition of tree
Consider the following pseudo code
declare a stack of characters
while ( there are more characters in the word to read )
{
read a character
push the character on the stack
}
while ( the stack is not empty )
{
pop a character off the stack
write the character to the screen
}
What is written to the screen for the input "apples"?
selppa

More CS301 files

All CS301 files · Midterm Prep 2026 · MCQs Bank