List of questions
Related questions
Question 128 - CTAL-TTA discussion
You have been given this piece of pseudocode to review Assume that the variables have been declared set and validated in code that precedes this piece that you are reviewing Looking only at this part of the code what requires further discussion?
If a < b then
If a > 12 then
seta = 21
else
set a = 23
endif
If b < 17 then
set a = 24
endif
lfb> 14
set a = 25
set b = 10
else
set a = 5
endif
else
set a = 7
endif
A.
Embedded if statements should not be used
B.
A variable should not be set to multiple values within one code segment
C.
A loop should have been used rather than the embedded if statements
D.
An else statement may be missing
Your answer:
0 comments
Sorted by
Leave a comment first