The quiz contains 40 questions and time limit is 30 minutes. Each question carry 1 marks. No negative marking for wrong answer.
Q[REAR] = item; REAR ++;
Item = Q[REAR]; FRONT ++;
item = Q[FRONT]; FRONT++;
item = Q[FRONT]; REAR ++;
F(n) x g(n)
Max(f(n),g(n))
Min(f(n),g(n))
F(n)+g(n)
2 deletion and 3 additions
3 deletions and 2 additions
3 deletions and 3 additions
3 deletions and 4 additions
Rotates s left by k positions
Leaves s unchanged
Reverses all elements of s
None of the above
Preorder
Postorder
Inorder
None of the above
Counting microseconds
Counting the number of key operations
Counting the number of statements
Counting the kilobytes of algorithm
Descending priority queue
Ascending priority queue
FIFO queue
None of these
Preorder and Inorder
Inorder and Postorder
Preorder and Postorder
None of the above
O(LogLogn)
O(n)
O(Logn)
O(Logn * Logn)
Only 1
Only 2
Both 1 and 3
All of the above
For(i=N;i>=pos;i--) { a[i] = a[i+1]; }
For(i=pos;i
For(i=pos;i
For(i=pos-1;i
Serial
Random
Parallel
None of the above
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
Simple Queue
Circular Queue
Priority Queue
None of these
FAEKCDBHG
FAEKCDHGB
EAFKHDCBG
FEAKDCHBG
Simulation of recursion
Simulation of arbitrary linked list
Simulation of limited resource allocation
All of the above
Non-Systematically
Logically
Periodically
Systematically
A(n)=Omega W(n)
A(n)= Theta W(n)
A(n)= Big O W(n)
A(n)= Little O W(n)
Is far less than one
Equals one
Is far greater than one
None of the above
Breadth First Search
Prim’s Minimum Spanning Tree Algorithm
Kruskal’ Minimum Spanning Tree Algorithm
Depth First Search
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
Theta(n)
Theta(logn)
Theta(1)
Theta(n^2)
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
Heap Sort
Selection Sort
Insertion Sort
Merge Sort
Non-increasing order
Non-decreasing order
Strictly decreasing order
Strictly increasing order
Straight insertion sort
Binary insertion sort
Heap sort
Bubble Sort
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
400 names
800 names
750 names
600 names
front++
Front--
Front = (front % max_queue_size) + 1
Front = (front ++) % max_queue_size
Front node
Rear node
Not possible with a single pointer
Not possible with a single pointer
Only 1
Only 2
Both 1 and 2
Both 2 and 3
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
BFS
DFS
MST
All of the above
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
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
Less than 1
Less than n
Less than m
Less than n/2
LASTIN = LASTPOST
LASTIN = LASTPRE
LASTPRE = LASTPOST
None of the above
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
X1, X2, X3, X4, X5, X6
X3, X4, X1, X5, X6, X2
X1, X3, X2, X4, X5, X6
None of the above.
Quiz Review Timeline (Updated): Jul 28, 2013 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.