1. Question:Find largest number decision table. 

    Answer
    Find largest1 2 3 4
    A>=BYNYN
    A>=CY__N
    B>=C__YN
    A is largestX
    B is largestX
    C is largestXX






    1. Report
  2. Question:Define redundancy and contradiction in decision table. 

    Answer
    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.






    1. Report
  3. Question:Define the following terms: 1. Control field 2. Control break 3. Control interval 4. Control area 5. False control break 

    Answer
    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.






    1. Report
  4. Question:Write a algorithm for counting positive, negative and zero number. 

    Answer
    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.






    1. Report
  5. Question:Draw a flowchart for counting positive, negative and zero number. 

    Answer
    See your text book (Programming Practice and Techniques) at page 14, figure 1-9






    1. Report
Copyright © 2025. Powered by Intellect Software Ltd