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 water rocket has a mass of 0.8kg and is launched in a school playground with an inital upwards force of 12newtons. what is the weight of the rocket in the pla
where earth's plates move, they may slide alongside one another, pull apart, or A. Collies B. Divide
the school chorus has 52 students, which represent 26% of the seventh graders. how many student are in the seventh grade?
Suppose that the grade 7 students expect to sell between 100 and 150 hot dogs how many packages of 12 wieners and 8 buns should the students buy if they don't w
can you please help me with this? i am an English learner and i have an exam tomorrow
What is the difference between the largest and smallest common factors of 88 and 99?
what alcohol is found in triglyceride?
how many point of parallel sides does the trapezoid have
multiply or divide two quantities by the same number is called what?
How high up is a 3 kg object that has 300 joules of energy?