CS301 Quiz 1 Solution Fall 2021-converted.pdf
Verified academic study resource for CS301 (Data Structures) under the Computer Science at Virtual University of Pakistan. This PDF 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
- 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
- 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)
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- 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 Solution Fall 2021-converted.pdf for free?
You can preview and download "CS301 Quiz 1 Solution Fall 2021-converted.pdf" (CS301 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs301-quiz-1-solution-fall-2021-converted-pdf-2) 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
ᵛᵘ £lon musk ᶠⁱˡᵉ
ᵛᵘ £lon musk ᶠⁱˡᵉ
CS301 Quiz No.01 Solution Fall2021
For a perfect binary tree of height 4, what will be the sum of
highest of node
26
If Ahmed is cousin of Ali and Ali is cousin of Asad then Ahmed is
also cousin of Asad. Thisstatement has the following property
Transitivity
Suppose there are 100 elements in an equivalence class, so initially
there will be 100
trees,the collection of these trees is called.
Forest
The percolate Down procedure will move the smaller value and
bigger value.
Up,down
For a perfect binary tree of height h, having N nodes, the sum of
height of nodes is
N-h-1
If we want to find median of 50 elements, then after applying
builtHeap method, how
Manytime deleteMin method will be called?
25
The Expression
If(!heap-> isEmpty () )
Check
Heap is not empty
BY ORANGE MONKEY
ᵛᵘ £lon musk ᶠⁱˡᵉ
Which of the following heap method increase the value if Key at
position’p’ by the
Amount’delta’?
Increase Key(p,delta)
Given the values are the array representation of heap;12 23 26 31
34 44 56 64 78 100
What is the 5th smallest element in the given heap?
34
----------------
Which of the following data structure linear type
All of above
in a program a reference variable with name ‘x’can be declared as
int &’x;
Object (object oriented by pointers)are called anonymous object
Friend
in the perspective each process divided into……..section
4
In tree the search operation is……..as compared to the linked list
Very fast
BY ORANGE MONKEY
ᵛᵘ £lon musk ᶠⁱˡᵉ
Level order transversal for binary tree search can be
implemented………
Only through non recursive method
……….is an area in computer memory that is used to allocate
memory dynamically
Stock
Suppose we want to create the right child of ‘p’and set the value x
in it.which of the following statement is correct in this operation
Set Right (x,p)
In level order traversal for binary search tree of each level we visit
node in……..order
Right to left
We can calculate the……..of a subtree counting the level from the
bottom
Data items
A ……….is a tree in which every level except possibly the last is
completely filled
Complete binary tree
Which of the following calling method does not change the
original value of variable passed to a function as an argument?
BY ORANGE MONKEY
ᵛᵘ £lon musk ᶠⁱˡᵉ
Call by passing as value
The _________ of a binary tree is the maximum level of its leaves
(also called the depth).
Select correct option:
Level
Width
Height
None of the above
Question # 2 of 10 ( Start time: 06:40:41 PM ) Total Marks: 1
If we write functions for recursive and non recursive inorder
traversal method of BST, what will be the difference between its
functions prototypes?
Select correct option:
Different return types
Different function names
Different arguments list
Nothing will be different
Question # 3 of 10 ( Start time: 06:40:41 PM ) Total Marks: 1
binary tree whose every node has either zero or two children is
called _________
Select correct option:
Complete binary tree
Binary search tree
Strictly binary tree
None of above
Question # 4 of 10 ( Start time: 06:40:41 PM ) Total Marks: 1
Which one of the following calling method does not change the
original value of the argument in the calling function?
BY ORANGE MONKEY
ᵛᵘ £lon musk ᶠⁱˡᵉ
Select correct option:
Call by passing reference of the argument
Call by passing the address of the argument
Call by passing the value of the argument
None of the given options
Question # 5 of 10 ( Start time: 06:40:41 PM ) Total Marks: 1
Longest path from root node to farthest leaf node is called
________ of tree
Select correct option:
Level
Length
Depth
Node level
Question # 6 of 10 ( Start time: 06:40:41 PM ) Total Marks: 1
Which of the following statement is false?
Select correct option:
Arrays are dense lists and static data structure
data elements in linked list need not be stored in adjecent space in
memory
pointers store the next data element of a list
linked lists are collection of the nodes that contain information part
and next pointer
The _________ of a node in a binary tree is defined as the height
of its left subtree minus height of its right subtree.
Select correct option:
Height
Balance
Width
None of the above
BY ORANGE MONKEY
ᵛᵘ £lon musk ᶠⁱˡᵉ
A tree is an AVL tree if
Select correct option:
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
In a program a reference variable, say x, can be declared as
Select correct option:
int &x ;
int *x ;
int x ;
None of the given options
In which of the following functions, the value of variable cannot be
changed in function body?
Select correct option:
int cube( int num)
int cube(int& num)
int cube(const int& num)
int cube(int* num)
What is the maximum depth 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)
{
BY ORANGE MONKEY
ᵛᵘ £lon musk ᶠⁱˡᵉ
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)
597-*
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.
More CS301 files
- CS 301 Quiz 2 4-Dec-2023 Sufyan JUTT.pdf (PDF · Quiz)
- CS 301 Quiz 2 4-Dec-2023 Sufyan JUTT.pdf (PDF · Quiz)
- CS 301P Quiz # 1 (Graded) 24-Nov-2023 Sufyan JUTT.pdf (PDF · Quiz)
- CS 301 Quiz 1 20-Nov-2023 Solution by Sufyan JUTT.pdf (PDF · Quiz)
- CS 301 Quiz 4 Spring 2023 By Pin2.pdf (PDF · Quiz)
- CS301 - QUIZ-SOLVED-BY-SONU-MUGHAL.pdf (PDF · Quiz)
- CS301 - QUIZ-SOLVED-BY-SONU-MUGHAL.pdf (PDF · Quiz)
- CS301 GRAND QUIZ (VUAnswer.com).pdf (PDF · Quiz)