Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Starting Out with Java
Quiz 21: Stacks and Queues
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
Multiple Choice
Consider a class that uses the following variables to implement an array-based stack: String [ ] s = new String[100]; Int top = 0; A method that implements the String peek() operation can be written as
Question 2
Multiple Choice
In a list implementation of a queue,the end of the list from which elements are removed is called
Question 3
Multiple Choice
The stack pull operation
Question 4
Multiple Choice
The stack class provided by the Java Collections Framework
Question 5
Multiple Choice
In a list implementation of a stack,the end of the list at which elements are added and removed is called
Question 6
Multiple Choice
Compilers of modern programming languages support method calls and returns with an internal
Question 7
Multiple Choice
Consider a class that uses the following variables to implement an array-based stack: String [ ] s = new String[100]; Int top = 0; A method for adding an item x to the stack can be written as
Question 8
Multiple Choice
A queue is a container that allows elements to be stored and removed
Question 9
Multiple Choice
The stack empty operation
Question 10
Multiple Choice
The JCF Stack class is used to instantiate a stack: Stack< Integer > intStack = new Stack< Integer >() ; The statements Int k = 77; IntStack.push(k*k) ; Use the primitive type int instead of the wrapper type Integer.These statements