nerdexam
SAS_Institute

A00-201 · Question #8

8: The following SAS program is submitted: data work.flights; destination = 'CPH'; select(LHR); when('LHR') city = 'London'; when('CPH') city = 'Copenhagen'; otherwise; end; run; Which one of the…

The correct answer is B. Copenhagen. See the full explanation below for the reasoning.

Question

8: The following SAS program is submitted: data work.flights; destination = 'CPH'; select(LHR); when('LHR') city = 'London'; when('CPH') city = 'Copenhagen'; otherwise; end; run; Which one of the following is the value of the CITY variable?

Options

  • ALondon
  • BCopenhagen
  • Ccharacter, 8 bytes
  • D' ' (missing character value)

How the community answered

(32 responses)
  • A
    3% (1)
  • B
    81% (26)
  • C
    6% (2)
  • D
    9% (3)

Community Discussion

No community discussion yet for this question.

Full A00-201 Practice