By admin | August 7, 2009

SAS Certified Base Programmer 50 Questions (29)

A frequency report of the variable Jobcode in the Work.Actors data set is listed below.

Jobcode Frequency Percent Cumulative Frequency Cumulative Percent
Actor I 2 33.33 2 33.33
Actor II 2 33.33 4 66.67
Actor III 2 33.33 6 100.00
Frequency Missing = 1

The following SAS program is submitted:

data work.joblevels;
    set work.actors;
    if jobcode in ('Actor I', 'Actor II') then
        joblevel='Beginner';
    if jobcode='Actor III' then
        joblevel='Advanced';
    else joblevel='Unknown';
run;

Which of the following represents the possible values for the variable joblevel in the Work.Joblevels data set?

a. Advanced and Unknown only
b. Beginner and Advanced only
c. Beginner, Advanced, and Unknown
d. ” (missing character value)

4 comments | Add One

  1. admin - 08/9/2009 at 8:32 pm

    A

  2. GUEST - 12/25/2010 at 12:44 pm

    WHY THE ANSWER IS NOT C ?

  3. R - 04/6/2011 at 4:18 am

    becoz the code doesn’t have if, else, else.. It has an If statement, that ends and another if statement starts, with else. At each statement the variable that gets updated in joblevel

  4. Aman - 01/15/2014 at 6:39 am

    I am confused about this answer. Please clear it as soon as possible.

Leave a Comment

Leave a Reply

Your email address will not be published.