I am wondering how to make a true or false question. Here is a working question: What day of the week is today?
QuestionObject[
QuestionInterface[
"MultipleChoice", <|
"Prompt" -> "What is the day of the week today?",
"Choices" -> {"Monday", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday", "Sunday"}|>],
AssessmentFunction[DateValue[Today, "DayName", String]]]
I can't get this true-or-false question to work:
QuestionObject[
QuestionInterface[
"TrueFalse", <|
"Prompt" ->
"Is the current year a leap year in the Gregorian calendar?"|>],
AssessmentFunction[{"True" -> TrueQ[LeapYearQ[Today]],
"False" -> ! LeapYearQ[Today]}]]
If a year is not a leap year, then its a common year. How can I tell that a leap year is not a common year, and vice versa to create a question.