Pick the incorrect statement.

a) Vectors have a dynamic size
b) Vectors are placed in contiguous storage
c) Insertion in vectors always takes constant time
d) Vectors insert the element at the end

1 thought on “Pick the incorrect statement.”

  1. c
    Explanation: Insertion in vectors are not always constant. When we are inserting an element at the end of the vector then if a vector is full then it needs to size itself which takes time to resize and time to insert element else just time for inserting that element at the end. Hence the insertion time is not constant always. Vectors have a dynamic size. They are placed in contiguous memory for easy access.

Leave a Comment