Multiple choice technology programming languages

How many observations will be there in the output dataset person? Data person; infile datalines; input name $ dept $ age; if age le 30; datalines; John Sales 38 Mary Brown Acctng 32 Spielberg Manager 28 ;

  1. 2

  2. 3

  3. 1

  4. 0

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

The SAS code reads 3 datalines but filters with 'if age le 30;' (age less than or equal to 30). John (age 38) and Mary (age 32) are excluded. Only Spielberg (age 28) satisfies the condition. The output dataset 'person' contains 1 observation.