Question:What is Action Entry?
Answer
An indication of an action to be taken under a rule in a decision table.
Question:What is Action Entry?
An indication of an action to be taken under a rule in a decision table.
Question:Define AND operation?
A Boolean operation,as in the statement A AND B,in which the statement is true only both A AND B are true.
Question:What is action stub?
The list of actions in a dicision table.
Question:How do you evaluate Boolean expressions without any parentheses?
We have to evaluate as follows: 1. All NOTs are evaluates first. 2. All ANDs are evaluates next. 3. Finally, all ORs are evaluated.
Question:Prove that: A AND (B OR C) = (A AND B) OR (A AND C)
A | B | C | B OR C | A AND (B OR C) | A AND B | A AND C | (A AND B) OR (A AND C) |
---|---|---|---|---|---|---|---|
F | F | F | F | F | F | F | F |
F | F | T | T | F | F | F | F |
F | T | F | T | F | F | F | F |
F | T | T | T | F | F | F | F |
T | F | F | F | F | F | F | F |
T | F | T | T | T | F | T | T |
T | T | F | T | T | T | F | T |
T | T | T | T | T | T | T | T |
Question:Prove that: NOT (A AND B) = NOT A OR NOT B
A | B | A AND B | NOT (A AND B) | NOT A | NOT B | NOT A OR NOT B |
---|---|---|---|---|---|---|
F | F | F | T | T | T | T |
F | T | F | T | T | F | T |
T | F | F | T | F | T | T |
T | T | T | F | F | F | F |
Question:Find largest number decision table.
Find largest | 1 | 2 | 3 | 4 |
---|---|---|---|---|
A>=B | Y | N | Y | N |
A>=C | Y | __ | N | |
B>=C | __ | Y | N | |
A is largest | X | |||
B is largest | X | |||
C is largest | X | X |
Question:Define redundancy and contradiction in decision table.
Redundancy: A situation in which more than one rule of a decision table may be applied for a given combination of conditions.Contradiction: A situation in a decision table in which the same combinations of conditions lead to different actions.
Question:Define the following terms: 1. Control field 2. Control break 3. Control interval 4. Control area 5. False control break
1. Control field: A field in input records that is used to sequence the file and that is checked to determine when a subtotal is to be printed.2. Control break: A change in the value in a control field between consecutive records in a field.3. Control interval: In a VSAM file, the unit of storage that is transferred on a read or write operation.4. Control area: In a VSAM file, a collection of control intervals.5. False control break: A control break - encountered when processing the first record in and ordered file - that does not actually reflect a change in the value in a control field.
Question:Write a algorithm for counting positive, negative and zero number.
1. Set positive,negative, and zero counters to 0 2. Read a card; if there are no more numbers, go to step 6. 3. If the number is positive, add one to the positive counter and go to step 2. 4. If the number is negative, add one to the negative counter and go to step 2. 5. Add one to the zero counter and go to step 2. 6. Print counters. 7. Stop.