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

It takes Doug 6 days to reroof a house. If Doug's son helps him, the job can be completed in 4 days. How long would it take Doug's son, working alone, to do the
Why was northern Italy a natural birthplace for the Renaissance?
In terms of chromosomes, which of these cells is different: nerve cell, skin cell, sperm cell, bone cell?
A ski jumper competing for an Olympic gold-medal wants to jump a horizontal distance of 135 m the take off point of the ski jump is that a height of 25 m with w
the basis for the alphabet developed by the greeks came from
The mass media, including TV, radio and newspapers, have great influence in shaping people's ideas. Do you agree or disagree with the statement? In 20 sentences
what is 1 half added to 3 tenths?
__________ were primarily constructed for profit.
compare structure to function of organs in a variety of organisms
What were the major events that led to texas joining the union