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

Why is the Volvox considered a colonial organism?
are all the volcanoes found in the same location
What element is not a demographic you need to consider in the audience analysis? a) Age b) Gender c) Income d) Marital status
USE STRUCTURE In the right triangle shown, sinα=0.6428 and cosα=0.7660. Find sinβ and cosβ and explain your reasoning.
A measure of the suitability of water for a particular use based on selected physical, chemical, and biological characteristics is ________.
Which type of seismic waves are characterized by compressional forces?
What does pharmacogenomics examine?
What does a Third Person Objective narrator reveal? 1) Thoughts and feelings 2) Action and dialogue 3) Background information 4) Inner monologue
Which of the following is *false* regarding Information Retrieval (IR)? 1) Classic IR originated in the scientific domain and LiBrary records. 2) Web IR mainly
A Young's double-slit experiment is performed using light that has a wavelength of 624nm. The separation between the slits is ( 5.25 × 10⁻5 ) m. Calculate the a