HTML tutorial

07:16
0
Computer Quiz

1. Arrays are best data structures for
(A) relatively permanent collections of data
(B) the size of the structure and the data in the structure are constantly changing
(C) both of above situation
(D) none of above situation

2. Linked lists are best suited for
(A) relatively permanent collections of data
(B) the size of the structure and the data in the structure are constantly changing
(C) both of above situation
(D) none of above situation

3. Each array declaration need not give, implicitly or explicitly, the information about the
(A) name of array
(B) data type of array
(C) first data from the set to be stored
(D) index set of the array

4. The complexity of merge sort algorithm is
(A) O(n)
(B) O(log n)
(C) O(n log n)
(D) None of these

5. The indirect change of the values of a variable in one module by another module is called
(A) internal change
(B) inter-module change
(C) side effect
(D) all the above

6. Two main measures for the efficiency of an algorithm are
(A) Time and space
(B) Processor and memory
(C) Complexity and capacity
(D) Data and space

7. The time factor when determining the efficiency of algorithm is measured by
(A) Counting the number of key operations
(B) Counting the number of statements
(C) Counting the kilobytes of algorithm
(D) None of the above

8. The space factor when determining the efficiency of algorithm is measured by
(A) Counting the maximum memory needed by the algorithm
(B) Counting the minimum memory needed by the algorithm
(C) Counting the average memory needed by the algorithm
(D) Counting the maximum disk space needed by the algorithm

9. All the above* Which of the following data structures are indexed structures
(A) linear arrays
(B) linked lists
(C) both of above
(D) none of above

10. Which of the following is not the required condition for binary search algorithm
(A) there must be mechanism to delete and/ or insert elements in list
(B) the list must be sorted
(C) there should be the direct access to the middle element in any sublist
(D) none of the above

Answers:
 1. (A) 2. (B) 3. (C) 4. (C) 5. (C) 6. (A) 7. (A) 8. (A) 9. (A) 10. (A)

0 comments:

Post a Comment

[img]https://1.bp.blogspot.com/-aFPBR4LADew/V85_aRWKXkI/AAAAAAAAHAw/O_N9dmf5tMQu0kSfbC3NU2yCzkLVQV7eACLcB/s320/share.png[/img]