CS302 Quiz 2 by Vu Stars.pdf
Verified academic study resource for CS302 (Digital Logic Design) 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
- CS302 – Digital Logic Design
- 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 — CS302 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 CS302 Quiz 2 by Vu Stars.pdf for free?
You can preview and download "CS302 Quiz 2 by Vu Stars.pdf" (CS302 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs302-quiz-2-by-vu-stars-pdf) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS302 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 CS302 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 CS302 solved past papers and handouts verified for 2026 exams?
Yes. All CS302 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
CS302 Quiz 2
Date 08 March 2022
*VU Stars* WhatsApp: 03066295623
For Paid quizzes
Whatsapp Group:https://chat.whatsapp.com/BEliqpKfBH1CNShjqxSkb4
If the height of perfect binary tree is 4, what willbe the total number of nodes in it?
31
Suppose there are set of fruits and the set ofvegetables, both sets are sets.
Disjoint
A binary relation R over S is called an equivalencerelation if it has following property(s)
All of Above
Heap can be used to implement
Priority queue
If a tree has 20 edges/links, then the total numberof nodes in the tree will be:
21
If there are 100 elements in an equivalence class,then we will have sets initially.
100
Given the values are the array representation of heap; 12 23 26 31 34 44 56 64 78 100 What is the5th smallest
element in the given heap?
34
A solution is said to be efficient if it solves theproblem within its resource constraints i.e. hardware and time.
True
Which one of the following is known as "Last-In,First-Out" or LIFO Data Structure?
Stack
What will be postfix expression of the followinginfix expression? infix Expression: a+b*c-d
abc*+d-
For compiler a postfix expression is easier toevaluate than infix expression?
True
Consider the following pseudo code declare astack 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
A binary tree of N nodes has .
Log2 N levels
The easiest case of deleting a node from BST isthe case in which the node to be deleted .
Is a leaf node
If there are N elements in an array then the numberof maximum steps needed to find an element usingBinary
Search is .
log2N
Merge sort and quick sort both fall into the samecategory of sorting algorithms. What is this category?
None of the given options.
If one pointer of the node in a binary tree is NULLthen it will be a/an .
External node
We convert the _ pointers of binary to threads inthreaded binary tree.
NULL
If the bottom level of a binary tree is NOT completely filled, depicts that the tree is NOT
complete Binary tree
What is the best definition of a collision in a hashtable?
Two entries with different keys have the sameexact hash value.
Suppose that a selection sort of 100 items has completed 42 iterations of the main loop. How many items are
now guaranteed to be in their finalspot (never to be moved again )
42
Suppose you implement a Min heap (with the smallest element on top) in an array. Consider the different arrays
below; determine the one that cannot possibly be a heap:
16, 24, 20, 30, 28, 18, 22
Do you see any problem in the code ofnextInOrder
below: TreeNode * nextInorder(TreeNode * p)
{
if(p->RTH == thread)return( p->R );
else {
p = p->R;
while(p->LTH == child)p = p->R;
return p;
}
}
The function has logical problem, therefore, it willnot work properly.
Here is an array of ten integers: 5 3 8 9 1 7 0 2 6 4The array after the FIRST iteration of the large loop in a
selection sort (sorting from smallest to largest).
0389175264
Which one of the following operations returns topvalue of the stack?
Top
Which one of the following is NOT true regardingthe skip list?
List Sh contains only the n special keys.
By using we avoid the recursive method of traversing a Tree, which makes use of stacks andconsumes a lot of
memory and time.
Threaded binary tree
What is the best definition of a collision in a hashtable?
Two entries with different keys have the sameexact hash value.
Which formula is the best approximation for thedepth of a heap with n nodes?
log (base 2) of n
which of the following is not true regarding themaze generation?
Remove a randomly chosen wall if the cells itseparates are already in the same set.
Which of the given option is NOT a factor inUnion by Size:
Make the larger tree, the subtree of the smallerone.
when we have declared the size of the array, it is not possible to increase or decrease it during the of the
program.
Execution
it will be efficient to place stack elements at the start of the list because insertion and removal taketime.
Constant
is the stack characteristic but was implementedbecause of the size limitation of the array.
isEmpty() , isFull()
What kind of list is best to answer questions suchas "What is the item at position n?"
Lists implemented with an array.Each node in doubly link list has,
2 pointers
If there are 56 internal nodes in a binary tree thenhow many external nodes this binary tree will have?
57
A simple sorting algorithm like selection sort or bubble sort has a worst-case of O(n2) time because sorting 1
element takes O(n) time - After 1 pass through the list, either of these
algorithms can guarantee that 1 element is sorted.
Merge sort and quick sort both fall into the samecategory of sorting algorithms. What is this category?
None of the given options.
Huffman encoding uses tree to develop codes of varying lengths for the letters used in the originalmessage.
Binary tree
Consider a min heap, represented by the followingarray: 10,30,20,70,40,50,80,60 Afer inserting a node with
value 31.Which of the following is the updated min heap?
10,30,20,31,40,50,80,60,70
Consider a min heap, represented by the followingarray: 11,22,33,44,55 After inserting a node with value
66.Which of the following is the updated min heap?
11,22,33,44,55,66
Suppose that a selection sort of 100 items has completed 42 iterations of the main loop. How many items are
now guaranteed to be in their finalspot (never to be moved again)?
42
Is a data structure that can grow easily dynamically at run time without having to copy existing elements.
Both of these
A complete binary tree of height has nodesbetween 16 to 31 .
4
Which of the given option is NOT a factor inUnion by Size:
Make the larger tree, the subtree of the smallerone.
Here is an array of ten integers:
5389170264
The array after the FIRST iteration of the large loop in a selection sort (sorting from smallest tolargest).
0389175264
More CS302 files
- CS302 GRAND QUIZ BY JUNAID.pdf (PDF · Quiz)
- CS302 GRAND QUIZ BY JUNAID.pdf (PDF · Quiz)
- CS302 GRAND QUIZ MCQS.pdf (PDF · Quiz)
- CS302 Grand Quiz Solved Spring 2021 by Riz Mughal (3).pdf (PDF · Quiz)
- CS302 Grand Quiz Solved Spring 2021 by Riz Mughal.pdf (PDF · Quiz)
- CS302 Grand Quiz Solved Spring 2021 by Riz Mughal.pdf (PDF · Quiz)
- CS302 Quiz 1(orange monkey)-converted.pdf (PDF · Quiz)
- CS302 Quiz 1(orange monkey)-converted.pdf (PDF · Quiz)