CS301p MCQs File by Academic Helpers' With You
CS301p MCQs File by Academic Helpers' With You
MCQs FILE
https://www.youtube.com/channel/UClG7IIpmS_-YxZMPlUO84Bw
• 18
• 20
• 30
• 6
• 7
• 9
• 8
• Reference Variables
• Static variables
• Pointers
• Array
• Constant
• Mining
• Maximum
• Zero
• Binary tree
• Max Heap
• Binary search tree
• Min Heap
• -1
• 1
• 2
• 0
• back()
• tail()
• start()
• get()
• Level-order traversal
• Pre-order traversal
• Post-order traversal
• In-order traversal
• Current node
• Last Current node
• None of the given options
• In-Order
• Level Order
• Post-Order
• Pre-Order
• Tree
• Stack
• Linked list
• Queue
14. Binary search tree class is defined as a template class so that it
can be used for ____data type(s)
• Strings
• Character
• Integer
• Any
• Deleted
• Inserted
• There is no concept of hole in heap
• Updated
• +63
• 826+*
• {1+2) *(3+4)
• root node
• every
• leaf nodes
• non leaf nodes
18. Which of the following Linked List method moves the pointer
forward?
• remove ()
• start ()
• next()
• add()
• 68,9,7
• 67,9,8
• 8,7,9,6
• 67,.8,9
• Value
• Template
• Pointer
• Reference
• Preorder traversal
• Level-order traversal
• Post-order traversal
• In-order traversal
• Linked List
• tree
• Linear order
• Non-linear order
• Descending order
• Random order
• Root Node
• Right Node
• leaf node
• left node
29. Removing an element from the end of stack using a linked list
take __________ time than removing an element from the s
• more
• Equal
• No
• Less
• Linked List
• Binary Tree
• queue
• void ~BinarySearchTree()
• ~BinarySearchTree()
• BinarySearchTree()
• BinarySearchTree() ~
• Descending
• Sequential
• Non-linear
• random
38. A binary tree in which every non-leaf node has non-empty right
and left subtrees 1s called
• Huffman Tree
• Strictly Binary Tree
• Level Order
• In-Order
• Post-Order
• Pre-Order
40. in C++ a single stack can be used for different types by using
________
• Static variables
• Linked Lists
• Templates
• Postfix expressions
• AVL Tree
• Queue
• Stack
• Linked list
42. Which of the following node has the maximum value in a max
heap?
• 30
• 33
• 32
• 31
• User Defined
• Any
• Integer
45. A tree will be an AVL tree if__________ of the tree fulfils the
AVL condition
• Leaf nodes
• Every
• Non-leaf nodes
• Root node
46. In which traversal method let sub tree is waited in first step?
• in order traversal
• Post-order traversal
• Post-order traversed
• Pre-order traversal
47. Which file extension is used in C++ to keep the class interface in
a separate file?
• exe
• txt
• .c
• .h
• 40
49. If there are two paths to reach to certain node. then the data
structure will be
• Simple tree
• Binary search tree
50. How many times a for loop will be executed if we use the find()
method of list data structure to find the value 10 from the given
list?
A 2 6 8 9 1 current | size
1 2 3 4 5 5 5
• 7
• 10
• 5
• 65
• 66
• 67
• 68
55. Which of the following queue does not always follow FIFO
behavior?
• Double-ended queue
• Simple queue
• Priority queue
• Circular queue
• linked List
• Queue
• Stack
• Binary Tree
58. The depth of a complete binary tree is 6. the number of its non-
leaf nodes will be
• 64
• 63
• 6
• 61
• &
• .
• >
• -<
60. In data structures, List is the collection of elements
in_____________
• Linear order
• Descending order
• Non-linear order
• Random order
• Any
• Character
• Integer
62. What will be value of second element of array ‘x’ after the
execution of the given code?
int main
{
for(int j = 0: j < 3: j++)
x[j]= 2*j:
• 0
• 2
64. In C++, same code can be reused for different data types by
writing__________
• traverse method
• templates
• Push
65. Which of the following represents frequency of all characters in
Huffman Encoding tree?
• Root Node
• Leaf Node
• Right Branch
66. If the date is given in Sorted order. the tree generated will be
similar to__________
• Heap
• Linked list
• Queue
• add
• remove
• define
• del
• Both directions
• No direction
• forward direction
• In-order traversal
• Pre-order traversal
• Level-order traversal
• Post-order traversal
• Integer value
• Pointer
• None of the given options
• Rotations
• Insertions
• 30
• 50
• 40
• 20
74. The code of BST traversal methods becomes very short by using
• Recursive calls
• Friend functions
• Non-recursive calls