More Classes
5th Class
6th Class
7th Class
8th Class
9th Class
10th Class
11th Class
12th Class
NAT I
NAT II
CSS
IQ
General Knowledge
MDCAT
ECAT
GAT General
GAT Subject
Other Links
Go to Home
Online Tests
CS-301 Final Term Exams Preparation Virtual University MCQs With Answers
Question # 1
_____ only removes items in reserve order as they were entered
Choose an answer
Stack
Queue
Both of these
None of these
Previous
Skip
Next
Question # 2
While building Huffman encoding tree the new node that is the result of joining two nodes has the frequency.
Choose an answer
Equal to the small frequency
Equal to the greater
Equal to the sum of the two frequencies
Equal to the difference of the two frequencies
Previous
Skip
Next
Question # 3
If there are N elements in an array then the number of maximum steps needed to find an element using Binary Search is _______
Choose an answer
N
N
2
Nlog
2
n
log
2
N
Previous
Skip
Next
Question # 4
_________ is a data structure that can grow easily dynamically at run time without having to copy existing elements.
Choose an answer
Array ()
List
Both of these
None of these
Previous
Skip
Next
Question # 5
Select the FALSE statement binary tree.
Choose an answer
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.
Previous
Skip
Next
Question # 6
In a min heap , preculateDown procedure will move smaller value______ and bigger value______.
Choose an answer
left,right
right,left
up,down
down,up
Previous
Skip
Next
Question # 7
Consider the following infix expression: x – y * a + b / c Which of the following is a correct equivalent expression(s) for the above?
Choose an answer
x y -a * b +c /
x *y a - b c / +
x y a * - b c / +
x y a * - b/ + c
Previous
Skip
Next
Question # 8
Each node in a double link list has ,
Choose an answer
1 pointer
2 pointer
3 pointer
4 pointers
Previous
Skip
Next
Question # 9
Which of the following method is helpful in creating the heap at once?
Choose an answer
insert
add
update
preculateDown
Previous
Skip
Next
Question # 10
Searching of an element in an AVL tree take minimum ____ time (where n is number of nodes in AVL tree)
Choose an answer
Log
2
(n+1)
Log
2
(n+1) -1
1.44 Log
2
n
1.66 Log
2
n
Previous
Skip
Next
Question # 11
it will be efficient to place stack elements at the start of the list because insertion and removal take _______time.
Choose an answer
Variable
Constant
Inconsistent
None of the above
Previous
Skip
Next
Back