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)- A77% (20)
- B4% (1)
- C8% (2)
- D12% (3)
Community Discussion
No community discussion yet for this question.