The quiz contains 40 questions and time limit is 30 minutes. Each question carry 1 marks. No negative marking for wrong answer.
X1, X2, X3, X4, X5, X6
X3, X4, X1, X5, X6, X2
X1, X3, X2, X4, X5, X6
None of the above.
Counting microseconds
Counting the number of key operations
Counting the number of statements
Counting the kilobytes of algorithm
2 deletion and 3 additions
3 deletions and 2 additions
3 deletions and 3 additions
3 deletions and 4 additions
Only 1
Only 2
Both 1 and 2
Both 2 and 3
Preorder
Postorder
Inorder
None of the above
FAEKCDBHG
FAEKCDHGB
EAFKHDCBG
FEAKDCHBG
400 names
800 names
750 names
600 names
Is far less than one
Equals one
Is far greater than one
None of the above
Theta(n)
Theta(logn)
Theta(1)
Theta(n^2)
BFS
DFS
MST
All of the above
Non-Systematically
Logically
Periodically
Systematically
Q[REAR] = item; REAR ++;
Item = Q[REAR]; FRONT ++;
item = Q[FRONT]; FRONT++;
item = Q[FRONT]; REAR ++;
H1( day/month/year ) = day + month + year
H2( day/month/year ) = day + month*31 + year
h3( day/month/year ) = (day + month*31 + year*365) mod 4096
H4( day/month/year ) = (day + month*31 + year*365) mod 4093
When collision happens, we create a new memory location outside of the existing table, and use a chain to link to the new memory location
When collision happens, we enlarge the hash table
When collision happens, we look for an unoccupied memory location in the existing table
We use an extra table to collect all collided data
Quadratic probing
Linear probing
Chaining
Reverse probing
front++
Front--
Front = (front % max_queue_size) + 1
Front = (front ++) % max_queue_size
Only 1
Only 2
Both 1 and 3
All of the above
Straight insertion sort
Binary insertion sort
Heap sort
Bubble Sort
Less than 1
Less than n
Less than m
Less than n/2
A(n)=Omega W(n)
A(n)= Theta W(n)
A(n)= Big O W(n)
A(n)= Little O W(n)
F(n) x g(n)
Max(f(n),g(n))
Min(f(n),g(n))
F(n)+g(n)
It can be used to decide the best algorithm that solves a given problem
It determines the maximum size of a problem that can be solved in a given amount of time
It is the lower bound of growth rate of algorithm
Both 1 and 2
For(i=N;i>=pos;i--) { a[i] = a[i+1]; }
For(i=pos;i
For(i=pos;i
For(i=pos-1;i
Inorder Successor is always a leaf node
Inorder successor is always either a leaf node or a node with empty left child
Inorder successor may be an ancestor of the node.
Inorder successor is always either a leaf node or a node with empty right child
Preorder and Inorder
Inorder and Postorder
Preorder and Postorder
None of the above
O(n) for all
O(Logn) for all
O(Logn) for search and insert, and O(n) for delete
O(Logn) for search, and O(n) for insert and delete
Breadth First Search
Prim’s Minimum Spanning Tree Algorithm
Kruskal’ Minimum Spanning Tree Algorithm
Depth First Search
In push operation, if new nodes are inserted at the beginning of linked list, then in pop operation, nodes must be removed from end.
In push operation, if new nodes are inserted at the end, then in pop operation, nodes must be removed from the beginning.
Both of the above
None of the above
Rotates s left by k positions
Leaves s unchanged
Reverses all elements of s
None of the above
The list is empty or has exactly one element
The elements in the list are sorted in non-decreasing order of data value
The elements in the list are sorted in non-increasing order of data value
Not all elements in the list have the same data value
A balanced binary search tree can be used but not a heap
A heap can be used but not a balanced binary search tree
Both balanced binary search tree and heap can be used
Neither balanced binary search tree nor heap can be used
Front node
Rear node
Not possible with a single pointer
Not possible with a single pointer
LASTIN = LASTPOST
LASTIN = LASTPRE
LASTPRE = LASTPOST
None of the above
O(LogLogn)
O(n)
O(Logn)
O(Logn * Logn)
Heap Sort
Selection Sort
Insertion Sort
Merge Sort
Descending priority queue
Ascending priority queue
FIFO queue
None of these
Serial
Random
Parallel
None of the above
Non-increasing order
Non-decreasing order
Strictly decreasing order
Strictly increasing order
Simulation of recursion
Simulation of arbitrary linked list
Simulation of limited resource allocation
All of the above
Simple Queue
Circular Queue
Priority Queue
None of these
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.