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
A binary relation R over S is called an equivalence relation if it has following property(s)
Choose an answer
Reflexivity
Symmetry
Transitivity
All of the given options
Previous
Skip
Next
Question # 2
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 # 3
Which one is a self-referential data type?
Choose an answer
Stack
Queue
Link list
All of these
Previous
Skip
Next
Question # 4
Which of the following is a property of binary tree?
Choose an answer
A binary tree of N external nodes has N internal node.
A binary tree of N internal nodes has N+ 1 external node
A binary tree of N external nodes has N+ 1 internal node
A binary tree of N internal nodes has N- 1 external node.
Previous
Skip
Next
Question # 5
Merge sort makes two recursive calls,which statement is true after these recursive calls,finish but before the merge step?
Choose an answer
Elements in the first half of the array are less than or equal to elements in the second half of the array
None of the given options
The array elements form a heap.
Elements in the second half of the array are less than or equal to elements in the first half of the array
Previous
Skip
Next
Question # 6
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 # 7
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 # 8
In an array we can store data elements of different types
Choose an answer
True
False
Not sure
Previous
Skip
Next
Question # 9
Which of the following heap method increase the value of key at position „p‟ by the amount „delta‟?
Choose an answer
increaseKey(p,delta)
decreaseKey(p,delta)
preculateDown(p,delta)
remove(p,delta)
Previous
Skip
Next
Question # 10
Which of the following statement is true about find(x) operation :
Choose an answer
A find(x) on element x is performed by returning exactly the same node that is found.
A find(x) on element x is performed by returning the root of the tree containing x.
A find(x) on element x is performed by returning TRUE.
A find(x) on element x is performed by returning the whole tree itself containing x
Previous
Skip
Next
Question # 11
The arguments passed to a function should match in number, type and order with the parameters in the function definition.
Choose an answer
True
False
both
Previous
Skip
Next
Back