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 Threaded Binary Tree is a binary tree in which every node that does not have a right child has a THREAD (in actual sense, a link) to its __________ successor
Choose an answer
levelorder
Preorder
Inorder
Postorder
Previous
Skip
Next
Question # 2
Which of the following is NOT a correct statement about Table ADT.
Choose an answer
n a table, the type of information in columns may be different. yes
A table consists of several columns, known as entities.
The row of a table is called a record.
A major use of table is in databases where we build and use tables for keeping information.
Previous
Skip
Next
Question # 3
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 # 4
Which of the following statement is correct?
Choose an answer
A Threaded Binary Tree is a binary tree in which every node that does not have a left child has a THREAD (in actual sense, a link) to its INORDER successor.
A Threaded Binary Tree is a binary tree in which every node that does not have a right child has a THREAD (in actual sense, a link) to its PREOREDR successor.
A Threaded Binary Tree is a binary tree in which every node that does not have a right child has a THREAD (in actual sense, a link) to its INORDER successor.
A Threaded Binary Tree is a binary tree in which every node that does not have a right child has a THREAD (in actual sense, a link) to its POSTORDER successor.
Previous
Skip
Next
Question # 5
Which of the following statement is correct property of binary trees?
Choose an answer
A binary tree with internal nodes has N+1 internal links
A binary tree with N external nodes has 2N internal nodes.
A binary tree with N internal nodes has N+ 1 external node.
None of above statement is a property of the binary tree.
Previous
Skip
Next
Question # 6
If the bottom level of a binary tree is NOT completely filled, depicts that the tree is NOT a
Choose an answer
Expression tree
threaded binary tree
complete binary tree
perfectly complete binary tree
Previous
Skip
Next
Question # 7
Which of the following is not true regarding the maze generation ?
Choose an answer
Randomly remove walls until the entrance and exit cells are in same set
Removing a wall is the same as doing union of operation
Removing a randomly chosen wall if the cell is separatedare already in the same set
Do not remove a randomly chosen wall if the cells it separates are already in the same set.
Previous
Skip
Next
Question # 8
Binary Search is an algorithm of searching ,used with the ____ data .
Choose an answer
Sorted
Unsorted
Heterogeneous
Heterogeneous
Previous
Skip
Next
Question # 9
Union is a ___________ time operation
Choose an answer
Constant
Polynomial
Exponential
None of the above
Previous
Skip
Next
Question # 10
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 # 11
A complete binary tree of height ____ has nodes between 16-31.
Choose an answer
2
3
4
5
Previous
Skip
Next
Back