Deck 14: Master File Update Processing
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/30
Play
Full screen (f)
Deck 14: Master File Update Processing
1
In a sequential master file update procedure,when the transaction key is equal to the master key,which of the following is true?
A)The master record is either deleted or updated with the data from the transaction record.
B)The transaction record is added to the master file.
C)There are no more transaction records that affect the current master record.
D)The next master record is read.
A)The master record is either deleted or updated with the data from the transaction record.
B)The transaction record is added to the master file.
C)There are no more transaction records that affect the current master record.
D)The next master record is read.
A
2
In a sequential master file update procedure,when the transaction key is greater than the master key,which of the following is true?
A)The master record is either deleted or updated with the information from the transaction record.
B)The transaction record is added to the master file.
C)There are no more transaction records that affect the current master record.
D)The next transaction record is read.
A)The master record is either deleted or updated with the information from the transaction record.
B)The transaction record is added to the master file.
C)There are no more transaction records that affect the current master record.
D)The next transaction record is read.
C
3
The portion of a record that contains the data that is used to arrange the records in sequence is called a(n)
A)key field
B)search key
C)pointer
D)access key
A)key field
B)search key
C)pointer
D)access key
A
4
In a sequential master file update procedure,when the transaction key is less than the master key,which of the following is true?
A)The master record is either deleted or updated with the information from the transaction record.
B)The transaction record is added to the master file.
C)There are no more transaction records that affect the current master record.
D)The next master record is read.
A)The master record is either deleted or updated with the information from the transaction record.
B)The transaction record is added to the master file.
C)There are no more transaction records that affect the current master record.
D)The next master record is read.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
5
Updating a master file is called file maintenance.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
6
Given the following master file containing employee names (key field)and hourly rates and given the following transaction file,how many total records will there be in the updated master file?
A)5
B)6
C)7
D)8
A)5
B)6
C)7
D)8
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
7
When a new master file is created and then later used as the current master file it is referred to as a
A)transaction file
B)batch file
C)turnaround file
D)detail file
A)transaction file
B)batch file
C)turnaround file
D)detail file
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
8
A program flowchart describes the relationship of one or more programs and is valuable to people who want to understand the "big picture" of a system.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
9
Given the following master file containing employee names (key field)and hourly rates and given the following transaction file,what is the value of Tom's hourly rate in the updated master file?
A)8
B)13
C)14
D)21
A)8
B)13
C)14
D)21
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
10
What type of processing requires that records be accessed in the order in which they are stored?
A)direct
B)random
C)sequential
D)both a and b
A)direct
B)random
C)sequential
D)both a and b
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
11
Given the following master file containing employee names (key field)and hourly rates,which of the following transactions would cause an error message to occur?
A)Add Mary 20.00
B)Delete Mary
C)Delete Sue
D)Change Tom 8.00
A)Add Mary 20.00
B)Delete Mary
C)Delete Sue
D)Change Tom 8.00
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
12
Large volumes of input are collected and processed together as a group in a batch-processing environment.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
13
What type of processing must be used on unsorted records?
A)direct
B)random
C)sequential
D)both a and b
A)direct
B)random
C)sequential
D)both a and b
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
14
In an online processing environment the output of a program is used as input to another program.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
15
If the execution of a program processes large volumes of input collected as groups or sets,the program is said to operate in a(n)
A)batch processing environment
B)offline processing environment
C)online processing environment
D)on-demand processing environment
A)batch processing environment
B)offline processing environment
C)online processing environment
D)on-demand processing environment
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
16
If the execution of a program is initiated by a user at a terminal or PC to meet the user's problem-solving needs,the program is said to operate in a(n)
A)batch processing environment
B)offline processing environment
C)online processing environment
D)on-demand processing environment
A)batch processing environment
B)offline processing environment
C)online processing environment
D)on-demand processing environment
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
17
What control structure is likely to be used to determine the type of transaction that has been input from a transaction file?
A)nested IFTHEN ELSE
B)sequential IFTHENELSE
C)CASE
D)both a and c
A)nested IFTHEN ELSE
B)sequential IFTHENELSE
C)CASE
D)both a and c
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
18
File maintenance operations include
A)adding a new student to a school's student file
B)deleting a student from the school's student file
C)changing the address of a current student in the school's student file
D)all of the above
A)adding a new student to a school's student file
B)deleting a student from the school's student file
C)changing the address of a current student in the school's student file
D)all of the above
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
19
Updating a master file is called
A)file maintenance
B)file sorting
C)file allocation
D)all of the above
A)file maintenance
B)file sorting
C)file allocation
D)all of the above
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
20
A master file is the same as a detail file.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
21
If a file is stored on a disk,the records must be accessed sequentially.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
22
An error will occur if an attempt is made to add a transaction record that has the same key field value(s)as a master record that has just been deleted from the master file.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
23
If the transaction record key is greater than the master record key then the next transaction record is read and processed against the current master record.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
24
The master file records processed by a sequential master file update program must be arranged in sequence based on a key field.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
25
CASE tools promote code reusability but do not help increase programmer productivity.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
26
If records are processed directly they do not need to be sorted first.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
27
If the transaction record key is less than the master record key then the transaction record is added to the master file and a new master file record is read.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
28
Transaction records to be processed against a sequential master file must be in the same sequence as the master file records.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
29
An error will occur if an attempt is made to add a transaction record to a master file and the record already exists in the master file.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
30
A master file update program usually has one input file and two output files.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck