Each array declaration need not give, implicitly or explicitly, the information about____________.
the data type of array the index set of the array the first data from the set to be stored the name of array
Which of the following sorting methods would be most suitable for sorting a list which is almost sorted?
Bubble Sort Quick Sort Selection Sort Insertion Sort
The elements of an array are stored successively in memory cells because _______________.
by this way computer can keep track only the address of the first element and the addresses of other elements can be calculated the architecture of computer memory does not allow arrays to store other than serially both of above none of above
The number of swapping’s needed to sort the numbers 8, 22, 7, 9, 31, 19, 5, 13 in ascending order, using bubble sort is ______.
10 14 13 9
For the improvement of efficiency of quick sort the pivot can be ______________.
the last element the middle element the first element the mean element
Which of the following is non-liner data structure?
Strings Trees Stacks List
Straight selection sort is basically a method of repeated ____________.
position adjustment interchange searching None of the above
If the values of a variable in one module is indirectly changed by another module, this situation is called ____________.
side-module update internal change inter-module change side effect
Which of the following data structure store the homogeneous data elements?
Arrays Pointers Records none of the above
Quick sort is the fastest available method of sorting because of ______.
O(n log n) comparisons low over head n(log n) comparisons low overhead and also O(n log n) comparisons
0 Comments