Skip to content

You are viewing documentation for Instruqt 2.0 Labs - our upcoming product releasing in September 2026. For current Tracks documentation, please visitdocs.instruqt.com.

True/False Question


Defined inquizzes.hcl

The true_false_question resource presents a statement that learners judge as true or false.

resource "true_false_question" "tcp" {
question = "TCP is a connection-oriented protocol."
answer = true
}

Fields

FieldTypeRequiredDescription
questionstringA statement that learners will judge as true or false
answerboolThe correct answer: true or false
hintslist(string)Optional hints that can be revealed to help learners
tagslist(string)Optional tags for organizing and filtering questions
resource "true_false_question" "udp" {
question = "UDP guarantees delivery of every packet."
answer = false
hints = ["Consider what 'connectionless' implies"]
tags = ["networking"]
}