What data structure should be used when number of elements is fixed?
(a) Array
(b) Array list
(c) Vector
(d) Set
(a) Array
(b) Array list
(c) Vector
(d) Set
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.