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 is the answer to 1.43 x -19/37
Explain why the 4 building blocks of “competitive advantage” can make an organization more successful
choose any 3 digit number describe how to find the number that is 10 more
true or false social networking sites never allow members to post messages on the pages of other members
Is 1.4 greater than, less than, or equal to -14/7
factorise 5x-10 please help
Which groups had religious freedom in colonial Pennsylvania
what alcohol is found in triglyceride?
Given the function f(x) = −5x2 − x + 20, find f(3).
shella is participating in a multi-day bike trip. on the first day, she rode 100 miles in 8 hours. use the expression d/t where d is the distance traveled and t