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

if x=at^3 and y=bt^2 then find dy/dx
bisects EOG. EOF = y + 30 and FOG = 3y – 50. Solve for y. 20704050
write an equation of the line that passes through the given points:   there are four questions:   1) (0,-1);(6,8)   2) (3,1);(9,7)   3) (1,2);(10,14)   4) (0,0)
In a random sample of students at a middle school, 24 wanted to change the mascot, and 30 wanted to keep the current mascot. Which is the best prediction for ho
In monocots the endosperm is a large portion of the seed, while in dicots this structure is virtually absent. Explain the absence of the endosperm in dicots
What is the difference between electric motor and electric generator?
Why is it 5 :30 p.m in India and 12 :00 noon in London ?
Fill in the blank : 1. Earth rotates from ______________ to ________________.
What do u mean by atmospheric pressure
write an equation of the line that is:   a) parallel to the line y=2x-4, and has a y-intercept of 7   b) parallel to the line y-3x=6, and has a y-intercept of