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, 3 for Tuesday, 4 for Wednesday, 5 for Thursday, 6 for Friday, and 7 for Saturday. September 30, 2009 was a Wednesday, so WEEKDAY(TODAY()) returns 4. Note that WEEKDAY uses Sunday as day 1, not Monday.