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
Double link list is always has one NULL pointer
Choose an answer
True
False
Not Sure
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
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 # 4
Which of the following statement is NOT true about threaded binary tree?
Choose an answer
Right thread of the right-most node points to the dummy node
Left thread of the left-most node points to the dummy node.
The left pointer of dummy node points to the root node of the tree
Left thread of the right-most node points to the dummy node.
Previous
Skip
Next
Question # 5
In an array list the current element is
Choose an answer
the first element
the middle element
the last element
The element where the current pointer points to
Previous
Skip
Next
Question # 6
We are given N items to build a heap ,this can be done with ______ successive inserts.
Choose an answer
N-1
N
N+1
N+2
Previous
Skip
Next
Question # 7
Which formula is the best approximation for the depth of a heap with n nodes?
Choose an answer
log (base 2) of n
The number of digits in n (base 10), e.g., 145 has three digits
The square root of n
n
Previous
Skip
Next
Question # 8
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
Question # 9
If a max heap is implemented using a partially filled array called data, and the array contains n elements (n > 0), where is the entry with the greatest value?
Choose an answer
Data[0]
data[1]
data[n-1]
data[n]
Previous
Skip
Next
Question # 10
If there are N elements in an array then the number of maximum steps needed to find an elements using Binary Search is __________
Choose an answer
N
N
2
Nlog2N
log
2
N
Previous
Skip
Next
Question # 11
The maximum number of external nodes for a binary tree of Height H is ____
Choose an answer
2
h
2
h
+1
2
h
+2
2
h
+3
Previous
Skip
Next
Back