Question 1
Marks : +2 | -2
Pass Ratio : 100%
Explanation: The array can be sorted in any way, numerical, alphabetical or any other way but the elements are placed at equally spaced addresses.
Question 5
Marks : +2 | -2
Pass Ratio : 100%
Which of the following is an advantage of parallel arrays?
Explanation: Elements in the parallel array are accessed sequentially as one arrays holds the keys whereas other holds the values. This sequential access generally improves Locality of Reference. It is an advantage.
Question 9
Marks : +2 | -2
Pass Ratio : 100%
Which of the following is a disadvantage of parallel array over the traditional arrays?
Explanation: Insertion and deletion of elements require to move every element from their initial positions. This will become tedious. For Record collection, locality of reference and Ideal Cache behaviour we can use parallel arrays.
Question 10
Marks : +2 | -2
Pass Ratio : 100%
What are parallel arrays?
Explanation: Different arrays can be of different data types but should contain same number of elements. Elements at corresponding index belong to a record.