Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions archetypes/optional-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ questions:
# Multiple Choice Question (Single Answer)
- id: "q1"
text: "What keyword is used to define a function in Go?"
type: "mcq"
type: "multiple_answers"
marks: 2
explanation: "The 'func' keyword is used to declare functions in Go, similar to how 'function' is used in JavaScript."
options:
Expand Down Expand Up @@ -49,8 +49,7 @@ questions:
# Multiple Choice Question (Multiple Answers)
- id: "q4"
text: "What are the purposes of the 'defer' keyword in Go? (Select all that apply)"
type: "mcq"
multiple_answers: true
type: "multiple_answers"
marks: 2
explanation: "The defer keyword is commonly used to delay function execution until the surrounding function returns, often used for cleanup tasks like closing files."
options:
Expand Down