By admin | September 3, 2009

SAS Certified Base Programmer 123 Questions (14)

A raw data file is listed below:

RANCH,1250,2,1,Sheppard Avenue,"$64,000"
SPLIT,1190,1,1,Rand Street,"$65,850"
CONDO,1400,2,1.5,Market Street,"80,050"
TWOSTORY,1810,4,3,Garris Street,"$107,250"
RANCH,1500,3,3,Kemble Avenue,"$86,650"
SPLIT,1615,4,3,West Drive,"94,450"
SPLIT,1305,3,1.5,Graham Avenue,"$73,650"

The following SAS program is submitted using the raw data file as input:

data work.condo_ranch;
    infile'file-specification' dsd;
    input style $ @;
    if style = 'CONDO' or style = 'RANCH';
        input sqfeet bedrooms baths street $ price : dollar10.;
run;

How many observations will the output data set contain?

A. 0
B. 3
C. 5
D. 7

3 comments | Add One

  1. admin - 09/3/2009 at 12:52 pm

    B

  2. sowmya - 12/20/2010 at 3:20 am

    how can the answer be B when all the observations are printed but with mising values.. like the previuos question the answer should be D. Can anyone tell me a proper answer?

  3. sowmya - 12/27/2010 at 9:12 pm

    Hi, I got the answer…you are right..

Leave a Comment

Leave a Reply

Your email address will not be published.