nerdexam
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

C4040-221 question #81 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)
  • A
    2% (1)
  • B
    9% (4)
  • C
    84% (36)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full C4040-221 Practice