Multiple choice technology web technology

data qtr;y=qtr('01OCT2010'd);run;what is the value of y?

  1. 3

  2. Syntax Error qtr name used as dataset name

  3. 4

  4. 2

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

The QTR() function returns the quarter of the year (1-4) for a given date. October 1 is the first day of Q4 (quarters are: Q1=Jan-Mar, Q2=Apr-Jun, Q3=Jul-Sep, Q4=Oct-Dec). Therefore October falls in quarter 4.