ilovefitbmx4696 ilovefitbmx4696
  • 21-08-2019
  • Computers and Technology
contestada

)In a vector implementation of a stack ADT, you add an entry to the top of a stack using which vector method?

A. Push

B.add

C.none of the other answers

Respuesta :

ExieFansler ExieFansler
  • 26-08-2019

Answer:

B.add.

Explanation:

boolean add(element)

The add method in java inserts an element in the vector.It's return type is Boolean it returns true if the element is successfully inserted in the vector and false if the operation is unsuccessful.There is no Push operation in vector.Hence we conclude that the answer is add.

Answer Link

Otras preguntas

A substance has a melting point of 800ºC and a boiling point of 1465ºC. The substance is most likely
Which sentence correctly uses apostrophes to show joint ownership? Marina and Kayla’s toys are under the bed. Marina’s and Kayla toys are under the bed.
A block of aluminum has the dimensions: length 5cm, width 3cm and height 1cm and weighs 40.5 g. What is its density?
can anyone help me solve this
An epic simile is different from a normal simile in that an epic simile. A. Is not limited to a single, distinct image, but is more complex. B. Is used only in
what country controlled most of the land in America by the mid-1500's
Which expression is equivalent to 1.5x + 12 + 4x? a. 6.5x b. 5.5x + 12 c. 17.5x d. 16x + 1.5
At present, most of the energy used in the united states is supplied by:
Why does dolphus raymond pretend to drink liquor?
How did the measures taken by global powers to reestablish peace and stability after World War I directly lead to the outbreak of World War II?