IBM
C9010-022 · Question #88
C9010-022 Question #88: Real Exam Question with Answer & Explanation
Sign in or unlock C9010-022 to reveal the answer and full explanation for question #88. The question stem and answer options stay visible for context.
Question
Why does the following ksh code segment fail to run?
if [ $src -eq 0 ]; then
echo "command completed successfully."
exit $src
elseIf [ $src -eq 101 ]; then
echo "command failed with debug return code 101."
exit $src
fi
Options
- AAn alphanumeric operator is being used to compare the integer variable.
- BThe 'if' statement must be terminated with an 'end' keyword.
- CThe 'elseif' keyword is not valid within ksh scripts.
- DThe segment is missing an 'else' default statement.
Unlock C9010-022 to see the answer
You've previewed enough free C9010-022 questions. Unlock C9010-022 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.