What method is this?

Given the following code:
template < class ItemType>
ItemType ArrayStack::doSomething() const
{
assert (!isEmpty());
return items[top];
}
a. pop()
b. peek()
c. default constructor
d. copy constructor


b. peek()

Computer Science & Information Technology

You might also like to view...

The plot in Figure 2.1 shows that Internet growth did not start until after 1995. Why is the figure misleading?

What will be an ideal response?

Computer Science & Information Technology

A cross-connected input port

a. indicates that the transmit and receive pairs are crossed. b. is used only on connections to routers. c. indicates that the cable is wired incorrectly. d. must be avoided on hub and switch port inputs.

Computer Science & Information Technology

Why is MAC data considered unreliable as primary forensic evidence?

a. Every time the file is opened, the Create date changes. b. Users can easily modify that information. c. Opening the file in a different version of an operating systems restarts the Create date. d. Access and modify dates are not treated the same way by applications as they are by the OS.

Computer Science & Information Technology

You should always make sure that your profile is complete and up to date

Indicate whether the statement is true or false

Computer Science & Information Technology