SAS_Institute
A00-201 · Question #13
13: The SAS data set named WORK.TEST is listed below: capacity airplanetype staff 150 Large 10 Which one of the following SAS programs created this data set?
The correct answer is B. data work.test; capacity = 150; if 100 le capacity le 200 then do; airplanetype = 'Large'; staff = 10; end; else do; airplanetype = 'Small'; staff = 5; end; run. See the full explanation below for the reasoning.
Question
13: The SAS data set named WORK.TEST is listed below:
capacity airplanetype staff
150 Large 10
Which one of the following SAS programs created this data set?
Options
- Adata work.test; if 100 le capacity le 200 then airplanetype = 'Large' and staff = 10; else airplanetype = 'Small' and staff = 5; run;
- Bdata work.test; capacity = 150; if 100 le capacity le 200 then do; airplanetype = 'Large'; staff = 10; end; else do; airplanetype = 'Small'; staff = 5; end; run;
- Cdata work.test; capacity = 150; if 100 le capacity le 200 then do; airplanetype = 'Large'; staff = 10; end; else do; airplanetype = 'Small'; airplanetype = 'Small'; end; run;
- Ddata work.test; capacity = 150; if 100 le capacity le 200 then airplanetype = 'Small'; staff = 5; else; airplanetype = 'Large'; airplanetype = 'Large'; staff = 10; run;
How the community answered
(27 responses)- A7% (2)
- B78% (21)
- C4% (1)
- D11% (3)
Community Discussion
No community discussion yet for this question.