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

PLEASE HELP!! Which two solid figures have the same volume?
is unemployment considered government assistance
Read this excerpt from "Choreographers of Matter, Life, and Intelligence."With these three fundamental discoveries, triggered by the quantum revolution, the DNA
When parallel parking, you must not park more than curb away from the A. 3 feet B. 2 feet C. 12 inches D. 6 inches
If United States citizens spoke out against the war in 1918, they might be found guilty of breaking the law under the a. Neutrality Act b. Sedition Act c. Civil
Which is the proper order for blood traveling through the systemic circuit? venae cavae Right arrow. arteries Right arrow. venules Right arrow. capillaries Righ
if x= 3y-2/4, what is the value of y in terms of x?
All of the following are benefits of debt financing except: Group of answer choices Interest on debt financing is tax deductible Debt is typically cheaper than
need help fast APR is an ____?
If (x) = 3x - 5 and g(x) = x + 3, find (f - g)(x). O A. 8 - 2x O B. 2x-2 O c. 2x-8 O D. 4x-2