ElearnSAS.com

ElearnSAS.com
SAS Learning Platform

Base SAS 21

The following SAS program is submitted:
proc format;
value score 1 - 50 = 'Fail'
51 - 100 = 'Pass';
run;
proc report data = work.courses nowd;
column exam;
define exam / display format = score.;
run;
The variable EXAM has a value of 50.5.
How will the EXAM variable value be displayed in the REPORT procedure output?
A. Fail
B. Pass
C. 50.5
D. . (missing numeric value)
Click Comment link to get answer

30 comments:

  1. Answer is D. Tried a program on it, and the value that wasnt covered in the format was represented by a *

    ReplyDelete
  2. Anonymous10:06 AM

    can anybody tell me where is correct answer written

    ReplyDelete
  3. Anonymous10:06 AM

    can anybody tell me where is correct answer written

    ReplyDelete
  4. Anonymous10:13 AM

    You have to try the question on your own, check and see what others have answered if that helps. Answers are not given on purpose, so that people will try to find the right answer.

    ReplyDelete
    Replies
    1. Anonymous11:21 PM

      Sorry,but when you take the test, there is no SAS software provided. SO that is why someone need the specific explanation of the answer. If you do not know how it is worked by the theory, please do not show off. No offence.

      Delete
  5. Anonymous6:28 PM

    Answer is 50.5
    Bcause that value in between Fail(<50) and Pass(>51) Conditions

    ReplyDelete
  6. Anonymous2:46 PM

    answer is D, to work, it should be 1 -< 51 and 51 -< 100
    try it and you see
    Regards,
    daniel (from Brazil)

    ReplyDelete
    Replies
    1. Anonymous5:27 PM

      but that is not what the problem says so the answer is c.

      Delete
    2. Anonymous11:44 AM

      you MUST answer without changing the question.
      answer is C.

      Delete
  7. Anonymous9:07 AM

    Answer is C.

    ReplyDelete
  8. Answer is 'C'
    Tried the program and got the value of exam as 50.5

    ReplyDelete
  9. Sas_User3:20 PM

    The Result is 'C' 50.5, Ex:Code is below.... You can run and see

    data courses;
    infile datalines;
    input Result;
    datalines;
    20
    35
    51
    50.5
    75
    100
    ;
    run;
    proc format;
    value score 1 - 50 = 'Fail'
    51 - 100 = 'Pass';
    run;
    proc report data = courses nowd;
    column result;
    define result / display format = score.;
    run;

    ReplyDelete
  10. Moses1:20 AM

    Correct answer is C, try this ..


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

    data courses;
    exam = 50.5;
    run;

    proc report data = work.courses nowd;
    column exam;
    define exam / display format = score.;
    run;

    ReplyDelete
  11. Anonymous3:32 PM

    Ans is C.

    If you want 50.5 to be termed as a 'Pass' then use 1-<50 for 'Fail' and 50-100 for 'Pass'

    ReplyDelete
  12. Anonymous1:30 PM

    Sakar;

    Who ever said D, ask yourself where 50.5 fits? in fail or pass category?

    ReplyDelete
  13. Anonymous5:25 PM

    I believe that as format score written here which is responsible for the result 50.5. As when we format any statement we mention format profit dollar 9.2.

    ReplyDelete
  14. Anonymous10:58 AM

    The correct answer is C, just run the program;

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

    data courses;
    input exam;
    cards;
    50.5
    ;
    run;

    proc report data = work.courses nowd;
    column exam;
    define exam / display format = score.;
    run;

    ReplyDelete
  15. Answer C:
    the program does not show any user defined format for 50.5. Therefore that value will just stay as is.

    ReplyDelete
  16. Anonymous7:38 AM

    Answer C
    data courses;
    input Name $ Exam;
    datalines;
    Blank 50.5
    test1 54
    test2 48
    ;

    proc format;
    value score 1 - 50 = 'Fail'
    51 - 100 = 'Pass';
    run;
    proc report data = work.courses nowd;
    column exam;
    define exam / display format = score.;
    run;

    ReplyDelete
  17. When a format does not apply to a value, the value remains the same. no change happens to variable Exam and hence the value will be 50.5

    ReplyDelete
  18. Anonymous10:55 PM

    if you wanna join casino online. Thank you
    gclub online
    goldenslot

    ReplyDelete