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

What national symbol is common to China and Wales ?
Find the 6th term in the expanded form of the equation (2x+y)^9
Factor by grouping:4-12r+9r^2i know the answer is (2-3r)^2Can anyone explain to me how it is?
Jim, Carla and Tomy are members of the same family.  Carla is 5 years older than Jim.  Tomy is 6 years older than Carla.  The sum of their 3 ages is 31 years. H
write a paragraph on my favourite teacher
what does 'secret, black and midnight hags' mean in shakespeare?
write a paragraph on wonders of science
write a paragraph on wonders of science
if the minimum velocity of a projectile is double the minimum velocity,the angle of projection is
what is the gcf and lcm of 390 and 250