Question 91

The following SAS program is submitted:
data work.new;
length word $7;
amount = 7;
if amount = 5 then word = 'CAT';
else if amount = 7 then word = 'DOG';
else word = 'NONE!!!';
amount = 5;
run;
Which one of the following represents the values of the AMOUNT and WORD variables?
  • Question 92

    Given the SAS data set EMPLOYEE INFO:
    EMPLOYEE_INFO
    IDNumber
    Expenses
    2542
    100.00
    3612
    133.15
    2198
    234.34
    2198
    111.12
    The following SAS program is submitted:
    proc sort data = employee_info;
    <insert BY statement here>
    run;
    Which BY statement completes the program and sorts the data sequentially by ascending expense values within each ascending IDNUMBER value?
  • Question 93

    This questions will ask you to provide two missing variable names.
    The following SAS program is submitted:
    data WORK.TOTAL;
    set WORK.SALARY;
    by Department Gender;
    if First. <insert variable 1 here> then Payroll=0
    Payroll+Wagerate;
    if Last.<insert variable 2 here>;
    run;
    The SAS data set WORK.SALARY is currently ordered by Gender within Department.
    Which inserted code will accumulate subtotals for each Gender within Department?
  • Question 94

    The following SAS program is submitted:
    data work.new;
    mon = 3;
    day = 23;
    year = 2000;
    date = mdy(mon,day,year);
    run;
    Which one of the following is the value of the DATE variable?
  • Question 95

    The following SAS program is submitted:
    Data WORK.COMPRESS;
    ID = '1968 05-10 567';
    NewID = compress (ID, "-");
    run;
    What will the value of NewID be in the WORK.COMPRESS data set?