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

A construction company needs to transport 500 bricks. The dimensions of each brick are 2 cm by 4 cm by 8 cm. The density of each brick is 3 g/cm'. What is the m
Question 19 2 pts Chantal leaves her hometown to become an actress after her parents pass away. O A noble sacrifice is sometimes difficult but necessary. O Sick
Which ideas would best fit in a summary of this passage? Select two options.
8th grade math . Pythagorran practice ​
Factors that contributed to the wall street crash of 1929
Please help………………………..
The sum of four consecutive even numbers is 60. Find the smallest of the four number.
Lorena paid $450 for a sneaker and there is a 9% advertised discount. What is the discount price?
Please help me with this math problem!! Will give brainliest!! :)
Lorena paid $450 for a sneaker and there is a 9% advertised discount. What is the discount price?