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.

Fill in the Blanks Question


Defined inquizzes.hcl

The fill_in_the_blanks_question resource asks learners to type the missing words in a sentence. Mark each blank with underscores in the question text and list the expected answers, in order, in answer.

resource "fill_in_the_blanks_question" "command" {
question = "Use __________ to list files in a directory."
answer = ["ls"]
}

Fields

FieldTypeRequiredDescription
questionstringUse __________ (underscores) to indicate where the blank is
answerlist(string)List of answers matching each blank in the question, in order
ConstraintsAt least one answer is required
exactboolEnable for case-sensitive exact matching, disable for case-insensitive matching
Defaultfalse
hintslist(string)Optional hints that can be revealed to help learners
tagslist(string)Optional tags for organizing and filtering questions
resource "fill_in_the_blanks_question" "env" {
question = "The __________ variable stores the current user's home directory."
answer = ["HOME"]
exact = true
}