By admin | August 25, 2009

SAS Certified Base Programmer 123 Questions (3)

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 work = 'NONE!!!';
    amount = 5;
run;

Which one of the following represents the values of the AMOUNT and WORD variables?

A.

amount word
5      DOG

B.

amount word
5      CAT

C.

amount word
7      DOG

D.

amount word
7      ' ' (missing character value)

One comment | Add One

  1. admin - 08/25/2009 at 10:10 am

    A

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *