Multiple choice technology programming languages

The following SAS program is submitted using the raw data file as input: data work.homework; input name $ age height; if age LE 10; cards; John McCloskey 35 71 June Rosesette 10 43 TinekeJones 9 37 ; run; How many observations will the WORK.HOMEWORK data set contain?

  1. No data set is created as the program fails to execute due to errors

  2. 0

  3. 2

  4. 3

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

The INPUT statement expects name, age, and height to be separated by spaces, but the raw data has 'John McCloskey' (two words for name) causing misalignment. SAS reads 'McCloskey' as age=35 and 'June' as height=71, then rejects the first observation because age 35 is not LE 10. The remaining data is misaligned causing read errors, so no valid dataset is created.