nerdexam
SAS_Institute

A00-201 · Question #98

The following SAS program is submitted: data work.flights; destination = 'cph'; select(destination); when('LHR') city = 'london'; when('CPH') city = 'Copenhagen'; otherwise city = 'Other'; end; run…

The correct answer is A. Other. See the full explanation below for the reasoning.

Question

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

Options

  • AOther
  • BCopenh
  • CCopenhagen
  • D? (missing character value)

How the community answered

(26 responses)
  • A
    77% (20)
  • B
    4% (1)
  • C
    8% (2)
  • D
    12% (3)

Community Discussion

No community discussion yet for this question.

Full A00-201 Practice