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
Every AVL is
Choose an answer
Binary tree
Complete tree
None of these
Binary Search tree
Previous
Skip
Next
Question # 2
A complete binary tree of height 3 has between ________ nodes.
Choose an answer
8 to 14
8 to 15
8 to 16
8 to 17
Previous
Skip
Next
Question # 3
Which of the given option is NOT a factor in Union by Size:
Choose an answer
Maintain sizes (number of nodes) of all trees, and during union.
Make smaller tree, the subtree of the larger one
Make the larger tree, the subtree of the smaller one.
Implementation: for each root node i, instead of setting parent[i] to -1, set it to -k if tree rooted at i has k nodes
Previous
Skip
Next
Question # 4
I have implemented the queue with a circular array. If data is a circular array of CAPACITY elements, and last is an index into that array, what is the formula for the index after last?
Choose an answer
(last % 1) + CAPACITY
last % (1 + CAPACITY)
(last + 1) % CAPACITY
last + (1 % CAPACITY)
Previous
Skip
Next
Question # 5
By using _____ we avoid recursive method of traversing a tree,which makes use of stacks and consumes a lot of memory and time.
Choose an answer
Binary tree only
Threaded binary tree
Heap data structure
Huffman encoding
Previous
Skip
Next
Question # 6
Which one is a self-referential data type?
Choose an answer
Stack
Queue
Link list
All of these
Previous
Skip
Next
Question # 7
The data of the problem is of 2 GB and the hard disk is of 1 GB capacity,to solve this problem we should
Choose an answer
use better data structure
Increase the hard disk space
Use the better algorithm
Use as much data as we can store on the hard disk
Previous
Skip
Next
Question # 8
The _______ method of list will position the currentNode and lastCurrentNode at the start of the list.
Choose an answer
Remove
Next
Start
Back
Previous
Skip
Next
Question # 9
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 # 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
Back