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

A cylinder has a base diameter of 10cm and a height of 14cm. What is its volume in cubic cm, to the nearest tenths place?
the difference between memory and storage is that memory is ..................and storage is.............a)tempoary fermanentb)permanent tempoaryc)sloe fastd)al
What Is the Myocardium?
For English, I am writing a diamante poem. My nouns are chocolate and lemon, and I've thought of the adjectives but I can't think of the verbs for chocolate. Ca
two erstwhile british colonies
To what extent did world war 2 effect women's daily lives?
What Was the Alaska Purchase?
A can of drink is in the shape of a cylinder. The can has a radius of 4cm and a height of 15cm. Calculate the volume of the cylinder. You must include the corre
What Does "Be Careful What You Wish for" Mean?
For English, I am writing a diamante poem. My nouns are chocolate and lemon, and I've thought of the adjectives but I can't think of the verbs for chocolate. Ca