COSC Final Exam 1336 Questions and
Answers5
When the records in a file are sorted in order from lowest to highest values, the records are in
____ order. - ANSWERS-ascending
The ____ file holds temporary data that is used to update the master file. - ANSWERS-
transaction
The saved version of a master file is the ____ file; the updated version is the child file. -
ANSWERS-parent
____ is processing that involves performing the same tasks with many records, one after the
other. - ANSWERS-Batch processing
____ applications require that a record be accessed immediately while a client is waiting. -
ANSWERS-real-time
Because they enable you to locate a particular record directly (without reading all of the
preceding records), random access files are also called ____ files. - ANSWERS-direct access
An array is a(n) ____ of values in computer memory. - ANSWERS-list
Array elements all have the same ____ in common. - ANSWERS-data type
The number of elements in an array is called the ____ of the array. - ANSWERS-size
, A(n) ____ is another name for a subscript. - ANSWERS-index
All array elements have the same group ____. - ANSWERS-name
In all languages, subscript values must be sequential ____. - ANSWERS-integers
Suppose that you have declared a numeric array named numbers, and two of its elements are
numbers[1] and numbers[5]. You know that ____. - ANSWERS-there are exactly three elements
between those two elements
A program contains an array that holds all the names of the days of the week. Which of the
following is true? - ANSWERS-the highest subscript is 6
Providing array values is sometimes called ____. - ANSWERS-populating the array
An array can be used to replace ____. - ANSWERS-nested decisions
The true benefit of using an array lies in your ability to use a ____ as a subscript to the array. -
ANSWERS-variable
Named ____ hold values that do not change during a program's execution - ANSWERS-constants
Besides making your code easier to modify, using a ____ makes the code easier to understand. -
ANSWERS-named constant
One advantage to using a named constant is that the statement becomes ____. - ANSWERS-self-
documenting
Answers5
When the records in a file are sorted in order from lowest to highest values, the records are in
____ order. - ANSWERS-ascending
The ____ file holds temporary data that is used to update the master file. - ANSWERS-
transaction
The saved version of a master file is the ____ file; the updated version is the child file. -
ANSWERS-parent
____ is processing that involves performing the same tasks with many records, one after the
other. - ANSWERS-Batch processing
____ applications require that a record be accessed immediately while a client is waiting. -
ANSWERS-real-time
Because they enable you to locate a particular record directly (without reading all of the
preceding records), random access files are also called ____ files. - ANSWERS-direct access
An array is a(n) ____ of values in computer memory. - ANSWERS-list
Array elements all have the same ____ in common. - ANSWERS-data type
The number of elements in an array is called the ____ of the array. - ANSWERS-size
, A(n) ____ is another name for a subscript. - ANSWERS-index
All array elements have the same group ____. - ANSWERS-name
In all languages, subscript values must be sequential ____. - ANSWERS-integers
Suppose that you have declared a numeric array named numbers, and two of its elements are
numbers[1] and numbers[5]. You know that ____. - ANSWERS-there are exactly three elements
between those two elements
A program contains an array that holds all the names of the days of the week. Which of the
following is true? - ANSWERS-the highest subscript is 6
Providing array values is sometimes called ____. - ANSWERS-populating the array
An array can be used to replace ____. - ANSWERS-nested decisions
The true benefit of using an array lies in your ability to use a ____ as a subscript to the array. -
ANSWERS-variable
Named ____ hold values that do not change during a program's execution - ANSWERS-constants
Besides making your code easier to modify, using a ____ makes the code easier to understand. -
ANSWERS-named constant
One advantage to using a named constant is that the statement becomes ____. - ANSWERS-self-
documenting