True/False Question
The true_false_question resource presents a statement that learners judge as true or false.
HCL Syntax
Section titled “HCL Syntax”Basic Syntax
Section titled “Basic Syntax”resource "true_false_question" "tcp" { question = "TCP is a connection-oriented protocol." answer = true}Fields
| Field | Type | Required | Description |
|---|---|---|---|
question | string | ✓ | A statement that learners will judge as true or false |
answer | bool | ✓ | The correct answer: true or false |
hints | list(string) | — | Optional hints that can be revealed to help learners |
tags | list(string) | — | Optional tags for organizing and filtering questions |
Examples
Section titled “Examples”With a hint
Section titled “With a hint”resource "true_false_question" "udp" { question = "UDP guarantees delivery of every packet." answer = false hints = ["Consider what 'connectionless' implies"] tags = ["networking"]}