Choose the most appropriate one (10 x 2) 1. Given two sorted lists of size “m” and “n” respectively, the number of comparisons needed in the worst case by the merge sort will be: (a) m*n (b) max (m, n) (c) min (m, n) (d) m + n - 1 2. Time complexity of insertion sort algorithm in the best case is (a) O(n) (a) O(nlog 2 n) (c) O(n 2 ) (d) None of the above 3. Time complexity of quick sort algorithm in the worst case is (a) O(n) (b) O(nlog 2 n) (c) O(n 2 ) (d) None of the above 4. Time complexity of heap sort algorithm in the best, average and worst case is (a) O(n), O(nlog 2 n) and O(n 2 ) (b) O(n) O(n2) and O(nlog 2 n) (c) O(nlog 2 n), O(nlog 2 n) and O(nlog 2 n) (d) None of the above 5. Any string of bits of length n represents a unique non-negative integer between (a) 0 and 2 n-1 - 1 (b) 0 and 2 n - 1 (c) 1 and 2 n - 1 (d) None of the above 6. Which of the following expressions accesses the (i, j)th entry of an m*n matrix stored in a column-major form? (a) m*(i ...
AMIE Exams, BTech for Working Professionals, SSC-JE, GATE, PSU, ESE, Manager Certificate (Mining), Boiler Operation Engineer Exams