Answer the following statements true (T) or false (F)
1. Any sorting algorithm, such as bubble sort or selection sort, that can be used on data stored in an array can also be used on data stored in a vector.
2. If algorithm A requires 2n + 1 basic operations to process an input of size n, and Algorithm B requires 3n + 2 basic operations to process the same input, algorithms A and B are considered to be equally efficient.
3. With pointer variables you can access, but you cannot modify, data in other variables.
4. An array name is a pointer constant because the address it represents cannot be changed during run-time.
5. Memory cannot be allocated after a program is already running.
1. TRUE
2. TRUE
3. FALSE
4. TRUE
5. FALSE
You might also like to view...
____ are utility programs that control peripheral devices such as a keyboards, printers, or scanners.
A. Device drivers B. Service packs C. Patches D. Apps
With JavaScript, the browser will convert the script into its equivalent machine-readable form called ____ code.
A. primary B. secondary C. binary D. sequential