Multiple choice technology programming languages

What is the value of z? z=weekday(today()); Today being Wednesday, 30 September 2009

  1. 2

  2. 3

  3. 5

  4. 4

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

The WEEKDAY function returns 1 for Sunday, 2 for Monday, ..., 7 for Saturday. September 30, 2009 was a Wednesday, so WEEKDAY returns 4. The question gives the correct date and asks for the SAS WEEKDAY value.