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 class lever is a stapler? Explain why.
write a quadratic function in standard form with zeros 6 and -8
A street light is on top of a 8 foot pole. Joe, who is 4 feet tall, walks away from the pole at a rate of 4 feet per second. At what speed is the tip of Joe’s s
You are a researcher interested in studying the cytoskeleton. How can you use antibodies to locate actin- and tubulin-containing structures?
Three mathematicians are applying for a job. There are five hats, three white, two black. They’re lined up, and a hat is placed on each. The first person in lin
Which of the following terms BEST describes Jim and Della’s marriage? A. fiery B. difficult C. loving D. boring
What is meant by "transposing a term"?
Which subatomic particles are found in the nucleus of an atom of beryllium?
A computer can perform 30 identical tasks in six hours. At that rate, what is the minimum number of computers that should be assigned to complete 80 of the task
What is the last step in the opsec process??