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 spoils system? A) The losing party must compete for all of the available jobs. B) The winning party gives a fair share of jobs to its opponents. C)
Calling walk distance 15 miles in 6 hours work out average speed.
Can someone please help me with this question?
Which statement about why Emperor Constantine chose Byzantium as his new capital is not true? A. It was the holiest city in the rapidly growing Christian reli
in three sentences or more explain some of the reason that the united states entered worl war 1
Read the true statement below and then tell whether the converse, inverse, and contrapositive are also true(answer all 3) Converse: If two angles are congruent,
What is the value of h?
Sophia invests $12,350 in an account that earns 4.5% annual simple interest. Assuming she makes no additional deposits or withdrawals, how much interest will So
How to calculate the electrical force between two protons in the nucleus of a helium atom when separated by 2.0 x 10^-15 m.
In The Lighning Thief, why does Percy sent Medusa's head to Olympus?