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
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 # 2
A queen is a data structure where elements are,
Choose an answer
inserted at the front and removed from the back
inserted and removed from the top.
inserted at the back and removed from the front.
inserted and removed from both ends.
Previous
Skip
Next
Question # 3
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 # 4
If you know the size of the data structure in advance, i.e., at compile time, which one of the following is a good data structure to use.
Choose an answer
Array
List
Both
None of the above
Previous
Skip
Next
Question # 5
In a selection sort of n element ,how many times the swap function is called the execution of the algorithm?
Choose an answer
n-1
0
n log n
1
Previous
Skip
Next
Question # 6
Consider te following array 23 15 5 12 40 10 7 After the first pass of a particular algorithm, the array looks like 15 5 12 23 10 7 40 Name the algorithm used
Choose an answer
Heap sort
Selection sort
Insertion sort
Bubble sort (
Previous
Skip
Next
Question # 7
A kind of expression where the operator is present between two operands called ________ expressions .
Choose an answer
Postfix
Infix
Prefix
None of the above
Previous
Skip
Next
Question # 8
"+” is a _________operator.
Choose an answer
Unary
Binary
Ternary
None of the above
Previous
Skip
Next
Question # 9
If a complete binary tree has n number of nodes then its height will be
Choose an answer
Log
2
(n+1)-1
2
n
2
n
-1
Previous
Skip
Next
Question # 10
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
Question # 11
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