1.

What data structure should be used when number of elements is fixed?(a) Array(b) Array list(c) Vector(d) Set

Answer» Right choice is (a) Array

For explanation I would say: Array list has variable size. Array is stored in contiguous memory. Hence, reading is faster. Also, array is memory efficient.


Discussion

No Comment Found

Related InterviewSolutions