Question 50 : 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?

  1. data work.test;

 capacity = 150;

 if 100 le capacity le 200 then

 airplanetype = 'Large' and staff = 10;

 else airplanetype = 'Small' and staff = 5; run;

  1. 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;

  1. data work.test;

 capacity = 150;

 if 100 le capacity le 200 then

 do;

 airplanetype = 'Large';

 staff = 10;

 else

 do;

 airplanetype = 'Small';

 staff = 5; end; run;

  1. data work.test;

 capacity = 150;

 if 100 le capacity le 200 then;

 airplanetype = 'Small';

 staff = 5;

 else;

 airplanetype = 'Large'; staff = 10; run;

 

  1. a
  2. Get all Questions and Answer from here
  3. You need to have paid subscription to access all questions
  4. Thanks for considering SAS Certification Material

 Correct Answer : 2

 Exp : In A you have tis line in error

 airplanetype = 'Large' and staff = 10;

You can access to full explanation to question and answer from this page.