adplus-dvertising
frame-decoration

Question

What is a dynamic array?

a.

A variable size data structure

b.

An array which is created at runtime

c.

The memory to the array is allocated at runtime

d.

An array which is reallocated everytime whenever new elements have to be added

Answer: (a).A variable size data structure

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is a dynamic array?

Similar Questions

Discover Related MCQs

Q. What is meant by physical size in a dynamic array?

Q. The number of items used by the dynamic array contents is its __________

Q. How will you implement dynamic arrays in Java?

Q. Which of the following is the correct syntax to declare an ArrayList in Java?

Q. In what type of dynamic array do you divide the array into two parts?

Q. What are the advantages of dynamic arrays?

Q. What is the time complexity for inserting/deleting at the beginning of the array?

Q. What are parallel arrays?

Q. What are the advantages of parallel arrays over the traditional arrays?

Q. What are some of the disadvantages of parallel arrays?

Q. What is a sorted array?

Q. To search for an element in a sorted array, which searching technique can be used?

Q. What are some of the applications of sorted arrays?

Q. What is the worst case time complexity of inserting an element into the sorted array?

Q. What is a sparse array?

Q. When do you use a sparse array?

Q. What is the difference between a normal(naive) array and a sparse array?

Q. Suppose the contents of an array A are, A = {1, null, null, null, null, 10};
What would be the size of the array considering it as a normal array and a sparse array?

Q. What is sparsity of a matrix?

Q. What are the advantages of sparse matrices over normal matrices?