Multiple choice technology programming languages

----|----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 dataset contain?

  1. 0

  2. 3

  3. 2

  4. No dataset is created as the program fails to execute due to errors

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The IF statement 'age LE 10' is a subsetting IF that keeps only observations where age is less than or equal to 10. John McCloskey is age 35 and fails this condition. June Rosesette (age 10) and Tineke Jones (age 9) both satisfy the condition. Therefore, 2 observations remain in the WORK.HOMEWORK dataset.