ashlynnanne8033 ashlynnanne8033
  • 22-08-2019
  • Computers and Technology
contestada

)In a vector implementation of a stack ADT, you clear all of the contents of a stack using which vector method

a. Clear

B. Delete

C. Delete all

D. None of the other answers

Respuesta :

Cetacea
Cetacea Cetacea
  • 28-08-2019

Answer: a)Clear

Explanation: Stack ADT(Abstract Data type) is the datatype that works in the form of the group of elements having the insertion and deletion of the object by last in first out mechanism.

When there is the vector implementation on stack of ADT then, for removing all the elements from the collection is done by using the command "clear".thus option (a) is the correct option.

Answer Link

Otras preguntas

Why did freedom from Soviet rule lead to ethnic fighting in many former Soviet satellites
In what ways did the Persians devastate the Egyptian civilization?
What type of blood vessel returns blood to the heart? A. Artery B. Vein C. Capillary D. None of the above
I'm thinking of a number. When I double my number and then subtract the result from five I get negative one. What is my number
Which of the following would be the best reason why a farmer in a developing country would want to live in a floodplain? a.) cows like to live near water b.) th
What is the main purpose of Act 3 of the Tragedy of Macbeth
1] When the twins grew up, they continued to fight. [2] One day they decided to hold a contest to determine who was stronger. [3] Though they tried to defeat ea
which freeze at warmer temperature water or soda
which of the following statements about sexual attraction and intimacy in the work place are true
what is the main conflict in beowulf