You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: archetypes/optional-test.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ questions:
12
12
# Multiple Choice Question (Single Answer)
13
13
- id: "q1"
14
14
text: "What keyword is used to define a function in Go?"
15
-
type: "mcq"
15
+
type: "multiple_answers"
16
16
marks: 2
17
17
explanation: "The 'func' keyword is used to declare functions in Go, similar to how 'function' is used in JavaScript."
18
18
options:
@@ -49,8 +49,7 @@ questions:
49
49
# Multiple Choice Question (Multiple Answers)
50
50
- id: "q4"
51
51
text: "What are the purposes of the 'defer' keyword in Go? (Select all that apply)"
52
-
type: "mcq"
53
-
multiple_answers: true
52
+
type: "multiple_answers"
54
53
marks: 2
55
54
explanation: "The defer keyword is commonly used to delay function execution until the surrounding function returns, often used for cleanup tasks like closing files."
0 commit comments