- Type
- Midterm past paper
- Course
- CS301 Data Structures
- Size
- PDF 1.6 MB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 2, 3, 4 of 42. Download the file for all 42 pages.
Q NO 01:
Inarraylisttheworstcaseofremovinganelementis
A. Toremoveanelementfromtheendofthelist B. Toremoveanelementfromthemiddleofthelist
C. Toremoveanelementfromthestartofthelist
D. Wecannotremoveelementfromanarraylist Q NO 02: Whenanexecutableprogramrun,itisloadedinthememoryand becomesa_______. A. Thread B. .hfile
C. Process
D. Noneoftheabove
Q NO 03:
“+”isa_________operator. A. Unary
B. Binary
C. Ternary D. Noneoftheabove
Q NO 04:
The first statement in the given code is called as:
A. Binary Declaration B. Pre Class Declaration
C. Forward Declaration
D. Post Class Declaration
Q NO 05:
In level-order traversal for Binary Search Tree, data structure is used.
A. Queue
B. Stack C. Tree D. Heap
Q NO 06:
When a function calls another function, the parameters and return address of the calling function are put in
A. Stack
B. Tree C. Heap D. Pointer
Q NO 07:
In the perspective of memory organization each process is divided into
sections. A. 2
B. 4
C. 6 D. 8
Q NO 08:
To create a reference variable we need to use
sign.
A. Ampersand
B. Dollar C. Asterisk D. sigma
Q NO 09:
Whenever a node is deleted from a binary search tree, has to be maintained.
A. In Order Traversal
B. Any Traversal can be maintained C. Post order Traversal D. Pre order Traversal
Q NO 10:
The
sign before the name of the variable means that the address of the variable is beingpassed : A. || B. ::
C. &
D. #
Q NO 11:
If we return the reference of a local variable from a function it will cause :
A. Refrence Overloading B. Duplication of local variables C. Deletion of local variables from memory
D. Dangling refrence
Q NO 13:
In Preorder traversal of a binary tree the second step is____. A. Traverse the right subtree B. Traverse the root C. Traverse the leaf nodes
D. Traverse the left subtree
Q NO 14:
parameter passing (by value or by reference) is similar to PASCAL.
A. C++
B. COBOL C. JAVA D. FORTRAN
B. Function Overloading C. Function Defination D. Function Overriding
Q NO 16:
In a complete binary tree the number of nodes at level 5 are
A. 32
B. 30 C. 23 D. 40
Q NO 17:
The abstract data type refers to the basic mathematical concept that defines the
A. Variable B. Functions C. Pointer
D. Data type
Q NO 18:
If we return the reference of a local variable from a function it will cause:
A. Dangling reference
B. reference overloading C. duplication of local variable D. deletion of local variable from memory
Q NO 19:
Which data structure is needed to convert infix expression to postfix expression?
Correct answer: Stack
Q NO 20:
For making Binary Search Tree for Strings we need, data type.
A. Int
B. Char C. Float D. Double
Q NO 21:
Consider the following push operations of a Stack:
A. Stack.push(4); B. Stack.push(6); C. Stack.push(5);
D. Stack.push(8);
Q NO 22:
If there is a strictly complete binary tree of depth 3, the total number of nodes in it will be?
Correct answer: 2K
Q NO 23:
Suppose we have a value for Queue: 2 1 4 6 3Where front is at 2 and rear is at 3, after dequeue one element from that Queue, what will be the resultant Queue?
Correct answer: 2146
Q NO 24:
Each operator in a postfix expression refers to the previous
operand(s).
A. Two
B. Three C. Four D. Five
Q NO 25:
If numbers 5, 222, 4, 48 are inserted in a queue, which one will be removed first?
Correct answer: 5
C. &
Related CS301 files
All CS301 files →- CS301 Midterm Grand Quiz Preparation by VU Stars Midterm PDF 5.5 MB
- CS301 Midterm Past Papers by VU Stars Midterm PDF 11.3 MB
- CS301 Midterm MCQs by VU Topper RM Midterm PDF 693 KB
- CS301 Midterm Past Paper Midterm PDF 88 KB
- CS301 Highlighted Handouts Lectures 1-45 Highlighted PDF 12 MB
- CS301 Short Notes Updated by Swera Quiz PDF 1.3 MB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.