The simplest way to add a data element to an array is to ____.

A. place it after the last available item
B. place it before the first available item
C. increase the physical size
D. increase the logical size

Answer: A

Computer Science & Information Technology

You might also like to view...

Each SurfaceView subclass should implement the interface ________, which contains methods that are called when the SurfaceView is created, changed (e.g., its size or orientation changes) or destroyed.

a. SurfaceHolder.Callback b. SurfaceHolderCallback c. Surface.Callback d. SurfaceCallback

Computer Science & Information Technology

Which of the following gives the number of elements in the array int r[ 10 ]?

a. sizeof r b. sizeof ( *r ) c. sizeof r / sizeof ( int ) d. sizeof ( *r ) / sizeof ( int )

Computer Science & Information Technology