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: benchmarks/courseexam_bench/data/example_course_2024_midterm/exam.md
+31-4Lines changed: 31 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,10 +23,15 @@
23
23
What state is a process in when it is waiting for I/O to complete?
24
24
25
25
A. Running
26
+
26
27
B. Ready
28
+
27
29
C. Blocked
30
+
28
31
D. Terminated
29
32
33
+
Your answer should be a single letter only (A, B, C, or D).
34
+
30
35
```json
31
36
{
32
37
"problem_id": "1",
@@ -44,6 +49,8 @@ D. Terminated
44
49
45
50
True or False: A race condition occurs when multiple threads access shared data concurrently and at least one thread modifies the data.
46
51
52
+
Your answer should be either "True" or "False" only. No extra text.
53
+
47
54
```json
48
55
{
49
56
"problem_id": "2",
@@ -61,6 +68,8 @@ True or False: A race condition occurs when multiple threads access shared data
61
68
62
69
Explain the purpose of a Translation Lookaside Buffer (TLB) in a virtual memory system.
63
70
71
+
Your answer should be a brief explanation (about 2-3 sentences).
72
+
64
73
```json
65
74
{
66
75
"problem_id": "3",
@@ -78,6 +87,8 @@ Explain the purpose of a Translation Lookaside Buffer (TLB) in a virtual memory
78
87
79
88
Describe the two phases of the two-phase commit protocol.
80
89
90
+
Your answer should include a brief description of each phase (about 1-2 sentences each).
91
+
81
92
```json
82
93
{
83
94
"problem_id": "4",
@@ -97,17 +108,21 @@ Describe the two phases of the two-phase commit protocol.
97
108
Which of the following operations modify the inode? (Select all that apply)
98
109
99
110
A. Changing file permissions
111
+
100
112
B. Reading file contents
113
+
101
114
C. Changing file size
102
115
116
+
Your answer should be a comma-separated list of letters only (no extra text). For example: "A,B"
117
+
103
118
```json
104
119
{
105
120
"problem_id": "5",
106
121
"points": 5,
107
122
"type": "ExactMatch",
108
123
"tags": ["operating-systems", "file-systems"],
109
-
"answer": "A,C",
110
-
"comments": "Multiple correct answers but NO partial credit. Only exact match \"A,C\" gets 5 points."
124
+
"answer": "A,C",
125
+
"comments": "Multiple correct answers but NO partial credit. Only exact match \"A,C\" gets 5 points."
111
126
}
112
127
```
113
128
@@ -118,17 +133,21 @@ C. Changing file size
118
133
Which statements about CPU scheduling are true? (Select all that apply)
119
134
120
135
A. Round-robin can lead to starvation
136
+
121
137
B. SJF minimizes average waiting time
138
+
122
139
C. Priority scheduling can have priority inversion
123
140
141
+
Your answer should be a comma-separated list of letters only (no extra text). For example: "A, B"
142
+
124
143
```json
125
144
{
126
145
"problem_id": "6",
127
146
"points": 10,
128
147
"type": "Freeform",
129
148
"tags": ["operating-systems", "scheduling"],
130
-
"answer": "B,C",
131
-
"llm_judge_instructions": "Correct: B,C. Award 10 points for B,C. Award 6 points for only B or only C. Award 0 if A is selected (incorrect).",
149
+
"answer": "B,C",
150
+
"llm_judge_instructions": "Correct: B,C. Award 10 points for B,C. Award 6 points for only B or only C. Award 0 if A is selected (incorrect).",
132
151
"comments": "Multiple choice with partial credit. Freeform type with rubric allows rewarding incomplete but correct answers while penalizing wrong choices."
133
152
}
134
153
```
@@ -160,6 +179,8 @@ Refer to the Raft Algorithm Reference.
160
179
161
180
True or False: A candidate must receive votes from a majority of servers to become leader.
162
181
182
+
Your answer should be either "True" or "False" only. No extra text.
183
+
163
184
```json
164
185
{
165
186
"problem_id": "8",
@@ -180,6 +201,8 @@ Refer to the Raft Algorithm Reference.
180
201
181
202
What are the three possible outcomes when a candidate runs for election? List all three.
182
203
204
+
Your answer should list the three outcomes in a single response (one to two sentences each).
205
+
183
206
```json
184
207
{
185
208
"problem_id": "9",
@@ -199,6 +222,8 @@ What are the three possible outcomes when a candidate runs for election? List al
199
222
200
223
True or False: In Paxos, a proposer must receive responses from a majority of acceptors to achieve consensus.
201
224
225
+
Your answer should be either "True" or "False" only. No extra text.
226
+
202
227
```json
203
228
{
204
229
"problem_id": "10.1",
@@ -216,6 +241,8 @@ True or False: In Paxos, a proposer must receive responses from a majority of ac
216
241
217
242
True or False: The CAP theorem states that a distributed system can simultaneously guarantee Consistency, Availability, and Partition tolerance.
218
243
244
+
Your answer should be either "True" or "False" only. No extra text.
0 commit comments