nerdexam
SAS_Institute

A00-201 · Question #10

10: The following SAS program is submitted: data work.new; length word $7; amount = 4; if amount = 4 then word = 'FOUR'; else if amount = 7 then word = 'SEVEN'; else word = 'NONE!!!'; amount = 7…

The correct answer is A. amount: 7, word: FOUR. See the full explanation below for the reasoning.

Question

10: The following SAS program is submitted: data work.new; length word $7; amount = 4; if amount = 4 then word = 'FOUR'; else if amount = 7 then word = 'SEVEN'; else word = 'NONE!!!'; amount = 7; run; Which one of the following represents the values of the AMOUNT and WORD variables?

Options

  • Aamount: 7, word: FOUR
  • Bamount: 7, word: SEVEN
  • Camount: 4, word: FOUR
  • Damount: 4, word: (missing character value)

How the community answered

(19 responses)
  • A
    79% (15)
  • B
    5% (1)
  • C
    11% (2)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full A00-201 Practice