Deck 14: Master File Update Processing

ملء الشاشة (f)
exit full mode
سؤال
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.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
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.
سؤال
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
سؤال
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.
سؤال
Updating a master file is called file maintenance.
سؤال
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?
 Master File  Transaction File  John 20.00 Add  Jim 11.00 Mary 10.00 Delete  John  Sue 6.00 Add  Nancy 15.00 Tom 8.00 Delete  Tom  Vince 13.00 Add  Tom 13.00 Change  Vince 14.00\begin{array} { l l l l l } \text { Master File } & & { \text { Transaction File } } & \\\text { John } & 20.00 & \text { Add } & \text { Jim } & 11.00 \\\text { Mary } & 10.00 & \text { Delete } & \text { John } & \\\text { Sue } & 6.00 & \text { Add } & \text { Nancy } & 15.00 \\\text { Tom } & 8.00 & \text { Delete } & \text { Tom } & \\\text { Vince } & 13.00 & \text { Add } & \text { Tom } & 13.00 \\& & \text { Change } & \text { Vince } & 14.00\end{array}

A)5
B)6
C)7
D)8
سؤال
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 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.
سؤال
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?
 Master File  Transaction File  John 20.00 Add  Jim 11.00 Mary 10.00 Delete  John  Sue 6.00 Add  Nancy 15.00 Tom 8.00 Delete  Tom  Vince 13.00 Add  Tom 13.00 Change  Vince 14.00\begin{array} { l l l l l } \text { Master File } & & { \text { Transaction File } } & \\\text { John } & 20.00 & \text { Add } & \text { Jim } & 11.00 \\\text { Mary } & 10.00 & \text { Delete } & \text { John } & \\\text { Sue } & 6.00 & \text { Add } & \text { Nancy } & 15.00 \\\text { Tom } & 8.00 & \text { Delete } & \text { Tom } & \\\text { Vince } & 13.00 & \text { Add } & \text { Tom } & 13.00 \\& & \text { Change } & \text { Vince } & 14.00\end{array}

A)8
B)13
C)14
D)21
سؤال
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
سؤال
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?
 Master File  John 20.00 Mary 10.00 Sue 6.00 Tom 8.00 Vince 13.00\begin{array}{l}\text { Master File }\\\begin{array} { l l } \text { John } & 20.00 \\\text { Mary } & 10.00 \\\text { Sue } & 6.00 \\\text { Tom } & 8.00 \\\text { Vince } & 13.00\end{array}\end{array}

A)Add     Mary      20.00
B)Delete     Mary
C)Delete     Sue
D)Change     Tom     8.00
سؤال
Large volumes of input are collected and processed together as a group in a batch-processing environment.
سؤال
What type of processing must be used on unsorted records?

A)direct
B)random
C)sequential
D)both a and b
سؤال
In an online processing environment the output of a program is used as input to another program.
سؤال
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
سؤال
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
سؤال
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
سؤال
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
سؤال
Updating a master file is called

A)file maintenance
B)file sorting
C)file allocation
D)all of the above
سؤال
A master file is the same as a detail file.
سؤال
If a file is stored on a disk,the records must be accessed sequentially.
سؤال
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.
سؤال
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.
سؤال
The master file records processed by a sequential master file update program must be arranged in sequence based on a key field.
سؤال
CASE tools promote code reusability but do not help increase programmer productivity.
سؤال
If records are processed directly they do not need to be sorted first.
سؤال
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.
سؤال
Transaction records to be processed against a sequential master file must be in the same sequence as the master file records.
سؤال
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.
سؤال
A master file update program usually has one input file and two output files.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/30
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
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
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.
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
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
5
Updating a master file is called file maintenance.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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?
 Master File  Transaction File  John 20.00 Add  Jim 11.00 Mary 10.00 Delete  John  Sue 6.00 Add  Nancy 15.00 Tom 8.00 Delete  Tom  Vince 13.00 Add  Tom 13.00 Change  Vince 14.00\begin{array} { l l l l l } \text { Master File } & & { \text { Transaction File } } & \\\text { John } & 20.00 & \text { Add } & \text { Jim } & 11.00 \\\text { Mary } & 10.00 & \text { Delete } & \text { John } & \\\text { Sue } & 6.00 & \text { Add } & \text { Nancy } & 15.00 \\\text { Tom } & 8.00 & \text { Delete } & \text { Tom } & \\\text { Vince } & 13.00 & \text { Add } & \text { Tom } & 13.00 \\& & \text { Change } & \text { Vince } & 14.00\end{array}

A)5
B)6
C)7
D)8
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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?
 Master File  Transaction File  John 20.00 Add  Jim 11.00 Mary 10.00 Delete  John  Sue 6.00 Add  Nancy 15.00 Tom 8.00 Delete  Tom  Vince 13.00 Add  Tom 13.00 Change  Vince 14.00\begin{array} { l l l l l } \text { Master File } & & { \text { Transaction File } } & \\\text { John } & 20.00 & \text { Add } & \text { Jim } & 11.00 \\\text { Mary } & 10.00 & \text { Delete } & \text { John } & \\\text { Sue } & 6.00 & \text { Add } & \text { Nancy } & 15.00 \\\text { Tom } & 8.00 & \text { Delete } & \text { Tom } & \\\text { Vince } & 13.00 & \text { Add } & \text { Tom } & 13.00 \\& & \text { Change } & \text { Vince } & 14.00\end{array}

A)8
B)13
C)14
D)21
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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?
 Master File  John 20.00 Mary 10.00 Sue 6.00 Tom 8.00 Vince 13.00\begin{array}{l}\text { Master File }\\\begin{array} { l l } \text { John } & 20.00 \\\text { Mary } & 10.00 \\\text { Sue } & 6.00 \\\text { Tom } & 8.00 \\\text { Vince } & 13.00\end{array}\end{array}

A)Add     Mary      20.00
B)Delete     Mary
C)Delete     Sue
D)Change     Tom     8.00
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
12
Large volumes of input are collected and processed together as a group in a batch-processing environment.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
14
In an online processing environment the output of a program is used as input to another program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
19
Updating a master file is called

A)file maintenance
B)file sorting
C)file allocation
D)all of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
20
A master file is the same as a detail file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
21
If a file is stored on a disk,the records must be accessed sequentially.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
25
CASE tools promote code reusability but do not help increase programmer productivity.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
26
If records are processed directly they do not need to be sorted first.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
30
A master file update program usually has one input file and two output files.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.