Programming Fundamentals 1 Final Exam

25 July 2022
4.7 (114 reviews)
50 test answers

Unlock all answers in this set

Unlock answers (46)
question
list
answer
An array is a(n) ____ of values in computer memory.
question
data type
answer
Array elements all have the same ____ in common.
question
size
answer
The number of elements in an array is called the ____ of the array.
question
index
answer
A(n) ____ is another name for a subscript.
question
name
answer
All array elements have the same group ____.
question
integers
answer
In all languages, subscript values must be sequential ____.
question
there are exactly three elements between those two elements
answer
Suppose that you have declared a numeric array named numbers, and two of its elements are numbers[1] and numbers[5]. You know that ____.
question
The highest subscript is 6.
answer
A program contains an array that holds all the names of the days of the week. Which of the following is true?
question
populating the array
answer
Providing array values is sometimes called ____.
question
nested decisions
answer
An array can be used to replace ____.
question
variable
answer
The true benefit of using an array lies in your ability to use a ____ as a subscript to the array.
question
constants
answer
Named ____ hold values that do not change during a program's execution.
question
named constant
answer
Besides making your code easier to modify, using a ____ makes the code easier to understand.
question
self-documenting
answer
One advantage to using a named constant is that the statement becomes ____.
question
linear search
answer
When you search through a list from one end to the other, you are performing a ____.
question
true or false
answer
If you declare a variable to be Boolean, you can set its value to ____.
question
Only whole numbers can be used as array subscripts.
answer
Which statement is true of arrays?
question
subscript
answer
A ____ relates parallel arrays.
question
indirect
answer
Parallel arrays are most useful when value pairs have a(n) ____ relationship.
question
binary
answer
A ____ search starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower.
question
range
answer
To search an array for a(n) ____ match, you can store either the highest or lowest value of each range for comparison.
question
finite
answer
Every array has a(n) ____ size.
question
elements
answer
The number of bytes in an array is always a multiple of the number of ____ in an array.
question
subscript
answer
In every programming language, when you access data stored in an array, you must use a ____ containing a value that accesses memory occupied by the array.
question
out of bounds
answer
When a subscript is not within the range of acceptable subscripts, it is said to be ____.
question
temporary
answer
When you write a program that stores a value in a variable, you are using ____ storage.
question
Permanent
answer
____ storage is not lost when a computer loses power.
question
permanent
answer
Files exist on ____ storage devices, such as hard disks, DVDs, USB drives, and reels of magnetic tape.
question
computer file
answer
A ____ is a collection of data stored on a nonvolatile device in a computer system.
question
folders
answer
Directories and ____ are organization units on storage devices.
question
path
answer
The combination of the disk drive plus the complete hierarchy of directories in which a file resides is its ____.
question
Directory
answer
____ is the more general term for an entity that organizes files.
question
bits
answer
Characters are made up of smaller elements called ____.
question
Records
answer
____ are groups of fields that go together for some logical reason.
question
fields
answer
A database holds groups of files or ____ that together serve the information needs of an organization.
question
open the file
answer
In most programming languages, before an application can use a data file, it must ____.
question
read
answer
When you copy data from a file on a storage device into RAM, you ____ from the file.
question
sequential file
answer
When a program uses a ____, it reads all the records in the file from beginning to end, processing them one at a time.
question
close
answer
When you ____ a file, it is no longer available to your application.
question
backup file
answer
A ____ is a copy that is kept in case values need to be restored to their original state.
question
control break
answer
A ____ is a temporary detour in the logic of a program.
question
sequential
answer
To generate a control break report, your input records must be organized in ____ order based on the field that will cause the breaks.
question
single-level control
answer
A ____ break is a break in the logic of the program that is based on the value of a single variable.
question
Merging
answer
____ files involves combining two or more files while maintaining the sequential order.
question
ascending
answer
When the records in a file are sorted in order from lowest to highest values, the records are in ____ order.
question
transaction
answer
The ____ file holds temporary data that is used to update the master file.
question
parent
answer
The saved version of a master file is the ____ file; the updated version is the child file.
question
Batch processing
answer
____ is processing that involves performing the same tasks with many records, one after the other.
question
Real-time
answer
____ applications require that a record be accessed immediately while a client is waiting.
question
direct access
answer
Because they enable you to locate a particular record directly (without reading all of the preceding records), random access files are also called ____ files.