##### 1) Elements can be retrieved by index in …………….?

- linked lists
- linear arrays
- both of above
- none of above

Answer: 2

##### 2) Efficiency of an algorithm is measured by

- Time and Capacity complexity
- Time and Space complexity
- Speed and Space complexity
- Speed and Capacity complexity

Answer: 2

##### 3) Which sorting algorithm is the slowest algorithm for large number of data?

- Quick sort
- Heap sort
- Bubble sort
- Shell sort

Answer:3

Explanation: Quick sort, Heap sort and Shell sort all have best case time complexity as O(n log n) and Bubble sort has time complexity of O(n2).

So, Bubble sort is slowest.

##### 4) Retrieval operation is fastest in which data structure

- Heap
- Stack
- Linked list
- None

Answer: 1

##### 5) State True or False about array and linked list

I. Retrieval of element will be faster in array than link list?

II. Search operation in both array and link list are leaner.

- True, False
- False, True
- False, False
- True, True

Answer: 4

Pages: 1 2