What should a stack data type do if a push operation cannot succeed because there is no more room in the data structure to hold another item?
What will be an ideal response?
One possibility is to throw an exception and let the user catch and respond to it. Another possibility is to add
a return code to the push operation that will signal the user whether the push succeeded or not. A third possibility is to detect
that the storage is full and to allocate more storage. All of these approaches have their advantages and disadvantages.
You might also like to view...
Once issued, the digital certificates are publicly available and are held by the certificate authority in_______ repositories.
a) digital. b) certificate. c) signature. d) None of the above.
Describe how Microsoft Lync can facilitate online meetings.
What will be an ideal response?
Match each of the following generations to its language:
I. 1GL II. 2GL III. 3GL IV. 4GL V. 5GL A. assembly language B. SQL C. machine language D. PROLOG E. COBOL
To provide a higher level of security, some operating systems require users to change their ________ regularly
A) Internet access B) password C) administrative account D) logon