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

can anyone explain me (a)
Which examples presented in chronological order
HELP PLZ!!Which equation represents a parabola that opens upward, has a minimum at x = 3, and has a line of symmetry at x = 3?[tex]A. y = x^2 - 3x + 6\\\\B. y =
Which of the following is not a true statement about pi? A. The ratio of the circumference of a circle to its diameter B. Approximated to be 3.14 C. Approximate
I would like some help with those 4 please. Calculus! Show your work please! Thanks!
how old was adolf hitler when he died
What type of galaxy is shown? barred elliptical irregular spiral
Find the sum of the geometric series. 20-5+5/4-5/16
Find the constant of variation for the relationship shown in the following table: x 1 2 3 4 y 3 6 9 12
PLEASE HELP ASAP!! A box contains four white balls and six yellow balls a ball is John at random from the box and has not replaced what is the probability that