IBM
C4040-221 · Question #81
Why does the following ksh code segment fail to run?
The correct answer is C. The 'elseif keyword is not valid within ksh scripts. See the full explanation below for the reasoning.
Question
Why does the following ksh code segment fail to run?
Exhibit
Options
- AAn alphanumeric operator is being used to compare the integer variable.
- BThe 'if statement must be terminated with an 'end1 keyword.
- CThe 'elseif keyword is not valid within ksh scripts.
- DThe segment is missing an 'else' default statement.
How the community answered
(43 responses)- A2% (1)
- B9% (4)
- C84% (36)
- D5% (2)
Community Discussion
No community discussion yet for this question.
