To specify sequence of conditions to be tested and actions to be taken
Describe a computational procedure that can be easily understood by a person
Use it as a tool in decision support system
Correct answer: (B) To specify sequence of conditions to be tested and actions to be taken
242. Decision Tables are preferred when
Too many conditions need to be tested
Sequencing of testing conditions is important
When there are many loops to be performed
When too many actions are to be taken
Correct answer: (A) Too many conditions need to be tested
243. Rule R3 is interpreted as follows:
If C1 is TRUE and C2 is TRUE then perform action A1 and A2
If C1 is TRUE or C2 is TRUE then perform action A3
If C1 is TRUE and C2 is TRUE then perform action A1 or A2
If C1 is TRUE and C2 is TRUE then perform action A3
Correct answer: (D) If C1 is TRUE and C2 is TRUE then perform action A3
244. Structured English is preferred when
Too many conditions need to be tested
Sequencing of testing conditions is important
When there are many loops to be performed
When too many actions are to be taken
Correct answer: (C) When there are many loops to be performed
245. Logical correctness of a specifications can be systematically checked by
Using decision trees
Using structured English
Using DFD’s
Using decision tables
Correct answer: (D) Using decision tables
246. A data dictionary has information about
every data element in a data flow
only key data element in a data flow
only important data elements in a data flow
only numeric data elements in a data flow
Correct answer: (A) every data element in a data flow
247. Structured English equivalent of the decision table "test" are given below
if C1 TRUE then if C2 TRUE then do A3 else do A1 and A3 end if else do A2 end if
if C1 FALSE then do A2 else if C2 TRUE then do A3 else do A1 and A3 end if end if
if C2 TRUE then if C1 TRUE then do A3 else do A2 end if else do A1 and A3 end if
if C2 FALSE then if C1 TRUE then do A1 and A3 else do A2 end if else do A3 end if
Which of the following are correct?
i and iii
i and ii
iii and iv
ii and iv
Correct answer: (B) i and ii
248. Decision trees are superior to decision tables when
The number of conditions to be tested is very large
When sequence of testing conditions is not particularly important
When sequence of testing conditions is not particularly important
When a large number of actions are to be specified
Correct answer: (C) When sequence of testing conditions is not particularly important
249. Structured English equivalents of decision table "test" are given below. Pick the right ones
if C1 TRUE and C2 FALSE then R=1 end if if C1 FALSE then R=2 end if if C1 TRUE and C2 TRUE then R=3 end if case (R)
R=1; perform actions A1 and A3
R=2; perform action A2
R=3; perform action A3 end case
if C1 TRUE and C2 FALSE then perform actions A1, A3 end if if C1 FALSE then perform action A2 end if if C1 TRUE and C2 TRUE then perform action A3 end if
case (C1 TRUE and C2 FALSE) Rule R1 case (C1 FALSE) Rule R2 case (C1 TRUE and C2 TRUE) Rule R3 end case
if C1 TRUE and C2 TRUE then do Rule R3 end if if C1 TRUE and C2 FALSE then do Rule R1 end if if C1 TRUE then do Rule R2 end if
i and ii
i and iii
ii and iii
iii and iv
Correct answer: (A) i and ii
250. A data dictionary has consolidated list of data contained in