Filters
Question type

The statement Stack myStack = new Stack(); defines a stack that holds String objects.

A) True
B) False

Correct Answer

verifed

verified

The methods that make up the StackInt interface are ____.


A) push() , pop() , empty()
B) push() , pop() , peek() , empty()
C) peek() , remove() , insert()
D) peek() , insert() , isEmpty()

E) A) and C)
F) B) and D)

Correct Answer

verifed

verified

If you attempt to pop an empty stack, your program will throw a(n) ____________________.

Correct Answer

verifed

verified

The value of the following expression is ____. 5 7 * 3 10 + + 4 /


A) 8
B) 12
C) 20
D) 36

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

What is value of the following postfix expression? 5 6 1 + *


A) 14
B) 20
C) 30
D) 35

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

Showing 21 - 25 of 25

Related Exams

Show Answer