In an array implementation of a stack, we can include code that will automatically allocate more memory if every element of the array is occupied. Which stack operation should invoke this code?
a) push
b) pop
c) peek
d) poke
e) none of the above
a) push
You might also like to view...
A set of statements must be executed an unknown number of times, and possibly not executed at all. Which loop statement should not be used to control the execution of this set of statements?
a) while b) for c) do d) repeat e) Any of these loop statements can be used.
The strPhone variable should contain only numbers and no dashes (-). An error message should display if there is a dash anywhere in the variable. Which of the following statements determines whether the variable contains a dash in order to display the message?
A. If strPhone.Contains("-") = True Then B. If strPhone.Contains("-") = False Then C. If strPhone Like "-" Then D. If strPhone.Contains(#######) = False Then
The __________ watches some kind of monitor-the interface-and intervenes if necessary.
A. leader B. technician C. operator D. server
Floating-point numbers contain a fractional part and can be represented by the data type.
a) frac b) real c) double d) None of the above.