Header Ads Widget

Module 04: Complex Conditions of Conditions

Complex Conditions of Conditions


1. Which of the following is compound condition?

A. More than one conditions used in the same subroutine

B. More than one condition that are logically related

C. More than one condition that are combined using Boolean operators

D. None of the above

Answer: C

2. Which of the following is or are true about a condition?

A. It is used to control sub modules from the main module in a program

B. It is used to control a loop

C. It is used to select from among two alternatives for processing

D. It is used to display output of a program

Answer: B, C

3. Which of the following is or are used as input editing techniques?

A. Desk Checking

B. Sequence checking

C. Restricted-value test

D. Counter technique

Answer: B, C

4. What is an error routine?

A. Instructions that causes errors

B. Instructions that prevents errors to occur

C. Instructions that are executed when an error is encountered during processing

D. Suspicious instructions that are skipped during processing

Answer: C

5. If you find a sequence error during processing, which of the following option will be suitable?

A. Display error message and terminate processing

B. Display an error message and wait for the operator and the operator to some corrective action

C. Make a record of the error so that it can be corrected later and continue processing ignoring the error

D. None of the above

Answer: A

6. If you find an invalid input during processing, which of the following option will be suitable?

A. Display error message and terminate processing

B. Display an error message and wait for the operator and the operator to some corrective action

C. Make a record of the error so that it can be corrected later and continue processing ignoring the error

D. None of the above

Answer: B

7. In batch a process where data is stored on a key field (or fields), which type of input editing technique is useful?

A. Desk checking

B. Sequence checking

C. Restricted-value test

D. Counter technique

Answer: B

8. When counter technique can be used?

A. In batch processing where data is stored in a key filed

B. When number of data record to be read be known in advance

C. When number of data is over 10000

D. When data is very few

Answer: B

9. Which is used to plan and document processing that involves complex combinations of conditions?

A. Flow chart

B. Structure Chart

C. HIPO Chart

D. Decision table

Answer: D

10. Which of the following is true for a decision table?

A. It is a tool for identifying and documenting modules in a program

B. It is a tool for showing what happens is a program module

C. It is a tool for planning and documenting processing that involves complex combinations of conditions 

D. It is a tool for developing algorithm

Answer: C

11. _________________ is best suited to documenting complex decisions involving combinations of conditions.

A. Flow Charts

B. Structure Charts

C. HIPO Charts

D. Decision tables

Answer: D

12. Is the order of rules in a decision table important?

A. Yes

B. No

Answer: B

13. What do we call a situation in which more than one rule of a decision table may be applied for a given combination of condition?

A. Contradiction

B. Confusion

C. Conflict

D. Redundancy

Answer: D

14. A situation in a decision table in which the same combinations lead to different actions is referred to as ____   ____.

A. Contradiction

B. Confusion

C. Conflict

D. Redundancy

Answer: A

15. It is possible to move part of the condition from the condition stub to the condition entries and part of the action from the action stub to the action entries. What do we call such a table?

A. mixed-entry decision table

B. Compound decision table

C. Extended-entry decision table

D. Complex-entry decision table

Answer: C

Post a Comment

0 Comments