Exam A00-211 All QuestionsBrowse all questions from this exam
Question 47

A raw data file is listed below:

--------10-------20-------30

John McCloskey 35 71 -

June Rosesette 10 43 -

Tineke Jones 9 37 -

The following SAS program is submitted using the raw data file as input: data work.homework; infile 'file-specification'; input name $ age height; if age LE 10; run;

How many observations will the WORK.HOMEWORK data set contain?

    Correct Answer: B

    The provided SAS code reads a raw data file and inputs the variables 'name', 'age', and 'height'. It then checks if the 'age' is less than or equal to 10 and keeps only those observations. In the provided data, two records meet this condition: June Rosesette with an age of 10 and Tineke Jones with an age of 9. Therefore, the WORK.HOMEWORK data set will contain 2 observations.

Discussion
mhminkovOption: B

I would say correct answer is B, 2 observations; tested this code: data work.homework; infile datalines; input name $ age height; if age LE 10; datalines; John 35 71 June 10 43 Tineke 9 37 ;