CS301 Quiz 2 BY JUNAID.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 2 BY JUNAID.pdf for free?
You can preview and download "CS301 Quiz 2 BY JUNAID.pdf" (CS301 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs301-quiz-2-by-junaid-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 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
AL-JUNAID INSTITUTE
CS301- Data Structure GROUP
QUIZ-2
Solved by JUNAID MALIK
AL-JUNAID INSTITUTE GROUP
1. If unions are done by weight (size), the depth of any element is never
greaterthen
a. log2 n
b. n log2 n
c. log 3n
d. log n*n
2. Which of the following is NOT true regarding the skip list
a. Each list Si contains the special keys + infinity and – Infinity
b. List SO contains the keys of S in non-decreasing
orderc. List Sh contains only then n special keys
d. Each list is a subsequence of the previous one
3. Which of the following is NOT an open addressing technique to
resolvecollisions
a. Quadratic probing
b. Double hashing
c. Cubic probing
d. Linear probing
4. Which of the following possible operations are performed on Table ADT?
a. Insert, Remove
b. Find, Remove
c. Insert, Find
d. Insert, Find, Remove
5. Binary search can be categorized into which of the following?
a. Greedy algorithm
b. Dynamic
programmingc. Divide
and conquer
d. Brute force technique
6. Suppose there is an image of 7*7 now we will have matrix of rows and
colum
ns.a. 7.7
b. 49.49
c. 100.100
d. 8.8
AL-JUNAID INSTITUTE GROUP
7. Which of the following is NOT true regarding the maze generation?
a. Randomly remove walls until the entrance and exit cells are in the
sameset
b. Removing a wall is the same as doing a union operation
c. Do not remove a randomly chosen wall if the cell it separates are
alreadyin the same set
d. None of the given
8. 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
thefollowing is the contents of the 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.
a. 8, _, _, _, _, _, 10
b. 1, _, _, _, _, _, 3
c. 1, 10, 8, _, _, _, 3
d. 1, 8, 10, _, _, _, 3
9. Suppose a hash function returns 6 for the given value. At which index of
arraythe value will be saved?
a. 0
b. 5
c. 6
d. 7
10. If a hash function returns 4 for more than one value, this condition is called
.
a. Mergin
gb.
Collision
c. Mapping
d. Clustering
11. During the union by size method, all the array element initialized to -1 shows;
a. Tree is complete
b. Initial condition of tree
c. Every tree has two elements each.
d. None of the
given
12.What is a skip list?
a. A linked list with size value in nodes
b. A linked list that allows slower search within an ordered
sequencec. A linked list that allows faster search within an ordered
sequence
AL-JUNAID INSTITUTE GROUP
d. A tree which is in the form of linked list
12.Which of the following is true regarding the maze generation?
a. Randomly remove walls until the entrance and exit cells are in the
sameset
b. Removing a wall is the same as doing a union operation
c. Do not remove a randomly chosen wall if the cell it separates are
alreadyin the same set
d. All of the given
13. What is the best definition of a collision in a hash table?
a. Two entries are identical except for their keys
b. Two entries with different data have the exact same key
c. Two entries with different keys have the same exact has value.
d. Two entries with the exact same key have different hash values.
14.Suppose there is an image segmented into pixels. Each pixel has
neighbor(s).
a. 0
b. 4
c.
8
d. 16
15The array in binary search in sub divided .
a. Once
b. Twice
c. N time
d. Until a sublist is no more divisible
16.What is the time complexity of binary search with iteration?
a. O(nlogn)
b. O(n2)
c. O(n)
d. O(logn) https://www.geeksforgeeks.org/binary-
search/
17. Which of the following is NOT an implementation of Table ADT?
a. Sorted Sequential
Arrayb. Stack
c. Linked List
d. Skip List
18.In 1990, Bill Pugh proposed an enhancement on linked lists and the new
datastructure was termed as
a. Linked list
b. B-
AL-JUNAID INSTITUTE GROUP
Tree c.
Skip list
d. Spelling checker
19.During union by size method, which data structure is used to improve
thebalancing of tree?
a. Array
b. Stack
c. Linked list
d. Tree
20. What is the depth of any tree if the union operation is performed by height?
a. O(N)
b. O(N log N)
c. O(log N)
d. O(M log N)
21. Which of the following is NOT true regarding the maze generation?
a. Randomly remove walls until the entrance and exit cells are in the
sameset
b. Removing a wall is the same as doing a union operation
c. Remove a randomly chosen wall if the cell it separates are already in
thesame set
d. Do not remove a randomly chose wall if the cells it separate are
alreadyin the same set
22.Which of the following statement is NOT correct regarding Table ADT
a. In the table , the type of information in columns may be
differentb. A table consist of several columns known as entities
c. The row of table called a record
d. A major use of table is in databases where we build and use tables for
keeping information
23.The union operation is based on size or weight but the reducing the in
betweenlinks or path comparison from to the is done by find
method
a. Root,
node b.
Nodes, root
c. Root , root
d. Node, node
24. Which is the hash function used in linear probing?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)