SAS Base Certification – Question 6

Question 6: The following SAS program is submitted:

1
2
3
4
proc format;
  value score  1  - 50  = 'Fail'
              51 - 100  = 'Pass';
run;

Which one of the following PRINT procedure steps correctly applies the format?

Options:

A.	proc print data = SASUSER.CLASS;
        var test;
        format test score;
        run;

B.	proc print data = SASUSER.CLASS;
        var test;
        format test score.;
        run;

C.	proc print data = SASUSER.CLASS format = score;
        var test;
        run;

D.	proc print data = SASUSER.CLASS format = score.;
        var test;  
        run;

*The SAS certification sample problem and answer above are sourced from the official SAS sample questions page. All answer logs, data sets, output, and commentary are provided by this blog.

Correct Answer

Incorrect Answer

Click to see Answer Explanation below

thanks for your support

Leave a Comment

Please keep in mind that comments are moderated and rel="nofollow" is in use. So, please do not use a spammy keyword or a domain as your name, or it will be deleted. Let us have a personal and meaningful conversation instead.