cs301 mcqs(solved)g.doc
Verified academic study resource for CS301 (Data Structures) under the Computer Science at Virtual University of Pakistan. This DOC 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
- DOC
- Type
- MCQ Bank
- Coverage
- Full Course Curriculum
- Tags
- MCQ, SOLVED
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 mcqs(solved)g.doc for free?
You can preview and download "cs301 mcqs(solved)g.doc" (CS301 DOC, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs301-mcqs-solved-g-doc-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
MCQS
1)For the inorder traversal of threaded binary tree, we introduced a dummy node. The left pointer of the dummy node is pointing to the ________ node of the tree.
Select correct option:
left most
root
right most
any of the given node
2) : When a complete binary tree, represented by an array then for any array element at position i, the parent is at position ______ .
Select correct option:
2i-1
2i
2i+1
floor(i/2)
3)
In threaded binary tree the NULL pointers are replaced by the
Select correct option:
preorder successor or predecessor
inorder successor or predecessor
inorder successor or predecessor
NULL pointers are not replaced
4)
Consider a binary tree, represented by the following array: A,B,C,D,E,F,G,H,I,J,K,L Is it a strictly binary tree?
Select correct option:
Yes
No
5)
We implement the heap by ______________ .
Select correct option:
Threaded Tree
AVL tree
Complete binary tree
Expression
6)
A Threaded Binary Tree is a binary tree in which every node that does not have a right child has a THREAD (in actual sense, a link) to its __________ successor
Select correct option:
Preorder
Inorder
Postorder
levelorder
7)
See the below code and fill the appropriate answer for? void fastInorder(TreeNode* p) { while((p=nexInorder(p)) != ? ) cout << p->getInfo(); }
Select correct option:
dummy
rootNode
LTH
RTH
8)
In which of the following tree, parent node has key greater than or equal to its both children?
Select correct option:
Max heap
Binary search tree
Threaded Binary tree
Complete Binary tree
9)
Consider a binary tree, represented by the following array: A,B,C,D,E,F,G,I Is it a strictly binary tree ?
Select correct option:
Yes
No
10)
When a complete binary tree, represented by an array then for any array element at position i, the right child is at position ______ .
Select correct option:
2i-1
2i
2i+1
floor(i/2)
11) Question No: 1 ( Marks: 1 ) - Please choose one
__________ only removes items in reverse order as they were entered.
► Stack
► Queue
► Both of these
► None of these
Question No: 2 ( Marks: 1 ) - Please choose one
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?
► Both x and y are still 0.
► x is now 1, but y is still 0.
► x is still 0, but y is now 2.
► x is now 1, and y is now 2.
Question No: 3 ( Marks: 1 ) - Please choose one
Select the one FALSE statement about binary trees:
► Every binary tree has at least one node.
► Every non-empty tree has exactly one root node.
► Every node has at most two children.
► Every non-root node has exactly one parent.
Question No: 4 ( Marks: 1 ) - Please choose one
Every AVL is _________________
► Binary Tree
► Complete Binary Tree
► None of these
► Binary Search Tree
Question No: 5 ( Marks: 1 ) - Please choose one
Searching an element in an AVL tree take maximum _______ time (where n is no. of nodes in AVL tree),
► Log2(n+1)
► Log2(n+1) -1
► 1.44 Log2n
► 1.66 Log2n
Question No: 6 ( Marks: 1 ) - Please choose one
Suppose that we have implemented a priority queue by storing the items in a heap. We are now executing a reheapification downward and the out-of-place node has priority of 42. The node’s parent has a priority of 72, the left child has priority 52 and the node’s right child has priority 62. Which statement best describes the status of the reheapification.
► The reheapification is done.
► The next step will interchange the two children of the out-of-place node.
► The next step will swap the out-of-place node with its parent.
► The next step will swap the out-of-place node with its left child.
Question No: 7 ( Marks: 1 ) - Please choose one
Suppose you implement a heap (with the largest element on top) in an array. Consider the different arrays below, determine the one that cannot possibly be a heap:
► 7 6 5 4 3 2 1
► 7 3 6 2 1 4 5
► 7 6 4 3 5 2 1
► 7 3 6 4 2 5 1
Question No: 8 ( Marks: 1 ) - Please choose one
If there are 23 external nodes in a binary tree then what will be the no. of internal nodes in this binary tree?
► 23
► 24
► 21
► 22
Question No: 9 ( Marks: 1 ) - Please choose one
If there are N external nodes in a binary tree then what will be the no. of internal nodes in this binary tree?
► N -1
► N+1
► N+2
► N
Question No: 10 ( Marks: 1 ) - Please choose one
Which one of the following is NOT the property of equivalence relation:
► Reflexive
► Symmetric
► Transitive
► Associative
Question No: 11 ( Marks: 1 ) - Please choose one
The definition of Transitivity property is
► For all element x member of S, x R x
► For all elements x and y, x R y if and only if y R x
► For all elements x, y and z, if x R y and y R z then x R z
► For all elements w, x, y and z, if x R y and w R z then x R z
Question No: 12 ( Marks: 1 ) - Please choose one
Union is a _______ time operation.
► Constant
► Polynomial
► Exponential
► None of the given options
Question No: 13 ( Marks: 1 ) - Please choose one
Which of the following is NOT a correct statement about Table ADT.
► In a table, the type of information in columns may be different.
► A table consists of several columns, known as entities.
► The row of a table is called a record.
► A major use of table is in databases where we build and use tables for keeping information.
Question No: 14 ( Marks: 1 ) - Please choose one
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 - 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)