CS301 - Subjective Questions (www.weblyceum.com).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
- Type
- MCQ Bank
- Coverage
- Full Course Curriculum
- Tags
- SUBJECTIVE
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
- 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 - Subjective Questions (www.weblyceum.com).pdf for free?
You can preview and download "CS301 - Subjective Questions (www.weblyceum.com).pdf" (CS301 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs301-subjective-questions-www-weblyceum-com-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 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
Come and join us at WebLyceum
For Past Papers, Quiz, Assignments, GDBs, Video Lectures etc
Go to http://www.weblyceum.com and click Register
In Case of any Problem Contact Administrators
Rana Muhammad Safdar (rana.sfdr@gmail.com)
Bilal Farooq (bilal.zaheem@gmail.com)
Come and join us at VU Social
For Non-Study Material Sharing, Chatting, etc,
Go to http://www.vusocial.com and click Register
(Weblyceum is not responsible for any solved content)
Collected and Composed by Bilal Farooq (bilal.zaheem@gmail.com)
SUBJECTIVE QUESTIONS
Question No: 31 ( Marks: 1 )
Describe the conditions for second case of deletion in AVL Trees.
Question No: 32 ( Marks: 1 )
What is Table abstract data type.
Question No: 33 ( Marks: 2 )
How we can generate a maze .Give an algorithm.
Question No: 34 ( Marks: 2 )
Represent the following Binary tree using array representation.
Question No: 35 ( Marks: 3 )
What is an Equivalent relation? Give any two examples.
Question No: 36 ( Marks: 3 )
"For smaller lists, linear insertion sort performs well, but for larger lists, quick
sort is suitable to apply." Justify why?
Question No: 37 ( Marks: 3 )
How many leaf and non-leaf nodes are present in a complete binary tree if its
depth is 7 ?
Question No: 38 ( Marks: 5 )
Remove the smallest element from the following array which represents a
min-heap.
original min-heap 1 3 2 5 4 8 9 10 7
Collected and Composed by Bilal Farooq (bilal.zaheem@gmail.com)
and show the resultant heap in the form of array as shown below,
Question No: 39 ( Marks: 5 )
Here is an array with exactly 15 elements:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15.
Suppose that we are doing a binary search for an element. Indicate any elements
that will be found by examining two or fewer numbers from the array.
Question No: 40 ( Marks: 10 )
a) Write C++ algorithm for Binary Search
int isPresent(int *arr, int val, int N)
{
int low = 0;
int high = N - 1;
int mid;
while ( low <= high )
{
mid = ( low + high )/2;
if (arr[mid] == val)
return 1; // found!
else if (arr[mid] < val)
low = mid + 1;
else
high = mid - 1;
}
return 0; // not found
b) Consider the following array of values; show how the binary search algorithm
would find the value -5. Clearly show/explain your work; that is, show the
values of start, end, etc. for each step of the algorithm.
Collected and Composed by Bilal Farooq (bilal.zaheem@gmail.com)
Question No: 41 ( Marks: 10 )
Show the result of following sequence of instructions
Union(1,2)
Union(3,4)
Union(3,5)
Union(1,7)
Union(3,6)
Union(8,9)
Union(1,8)
Union(3,10)
Union(3,11)
Union(3,12)
Union(3,13)
Union(14,15)
Union(16,17)
Union(14,16)
Union(1,3)
Union(1,14)
When the unions are performed by height
Note: You have to show only Final tree, No need to show all steps.
Collected and Composed by Bilal Farooq (bilal.zaheem@gmail.com)
Question No: 31 ( Marks: 1 )
If a Binary Tree has N internal nodes what are the no. of external nodes in
it.
Sol. The No. of external nodes will be N+1
Question No: 32 ( Marks: 1 )
What is meant by Symmetry in equivalence relations?
Sol. Symmetry in equivalence relations mean for all elements x and y, x R y if
and only if y R x
Question No: 33 ( Marks: 2 )
How heap sort works to sort a set of data.
Question No: 34 ( Marks: 2 )
How we can apply Find operation on elements combined through Union
operation.
Question No: 35 ( Marks: 3 )
How we can use concept of equivalence relations to generate a Maze.
Question No: 36 ( Marks: 3 )
Collected and Composed by Bilal Farooq (bilal.zaheem@gmail.com)
Suppose we are sorting an array of eight integers using a some quadratic
sorting algorithm. After four iterations of the algorithm’s main loop, the array
elements are ordered as shown here:
2 4 5 7 8 1 3 6
Which statement is correct? (Note: Our selectionsort picks largest items first.)
A. The algorithm might be either selectionsort or insertionsort.
B. The algorithm might be selectionsort, but it is not insertionsort.
C. The algorithm is not selectionsort, but it might be insertionsort. (Correct)
D. The algorithm is neither selectionsort nor insertionsort.
E. None of these.
Question No: 37 ( Marks: 3 )
How many leaf and non-leaf nodes are present in a complete binary tree if its
depth is 7 ?
Question No: 38 ( Marks: 5 )
If we insert a new element into an AVL tree of height 4, is one rotation sufficient
to re-establish balance? Justify your answer.
Question No: 39 ( Marks: 5 )
Write down the C++ code from Selection Sort Algorithm.
Question No: 40 ( Marks: 10 )
Consider the following data:
the cat in the hat
Collected and Composed by Bilal Farooq (bilal.zaheem@gmail.com)
a) Build frequency table for the above data.
b) Create a Huffman tree to determine the binary codes for each character.
c) What will be the code of each letter?
Question No: 41 ( Marks: 10 )
Suppose we have build a Skip list .Now we want to add and remove items from
the list .Give Algorithms for insert (item) and delete (item) methods of the Skip
List.
Question No: 31 ( Marks: 1 )
In merge sort do we need to have extra memory, justify your answer in
either case.
Question No: 32 ( Marks: 1 )
Where is Inorder Predecessor of a non leaf node is present in a Binary
Search Tree?
Question No: 33 ( Marks: 2 )
How we can search an element in Skip List.
Question No: 34 ( Marks: 2 )
What is the drawback of using arrays to store Binary Search Trees.
Collected and Composed by Bilal Farooq (bilal.zaheem@gmail.com)
Question No: 35 ( Marks: 3 )
Calculate the codes of the following characters in table below using the hoffman
encoding tree,
charact code
er
NL
SP
o
b
i
Collected and Composed by Bilal Farooq (bilal.zaheem@gmail.com)
r
Question No: 36 ( Marks: 3 )
More CS301 files
- CS301 - Sample Paper Solved By Qalb-e-Momin.pdf (PDF · MCQ Bank)
- CS301 - Subjective Questions (www.weblyceum.com)-1.pdf (PDF · MCQ Bank)
- CS301 - Subjective Questions (www.weblyceum.com).pdf (PDF · MCQ Bank)
- CS301 CURRENT PAPERS FALL 2021 SOLVED BY ADIL ALVI.pdf (PDF · MCQ Bank)
- CS301 Lec 1-20 Serch mcqs.pdf (PDF · MCQ Bank)
- CS301 Lec 1-20 Serch mcqs.pdf (PDF · MCQ Bank)
- CS301 Lec13-20 Scrnsht mcqs.pdf (PDF · MCQ Bank)
- CS301 Lec13-20 anser Scrnsht mcqs.pdf (PDF · MCQ Bank)