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/raw/cs162_operating_systems_and_system_programming_summer_2022_final/exam.md
+32-29Lines changed: 32 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ Your answer should be either "True" or "False", followed by a brief explanation
"answer": "A, B, D. LRU approximates MIN, and clock/second-chance approximate LRU.",
202
-
"llm_judge_instructions": "Award 1 point for listing exactly the correct letters that apply. Award 1 point for a valid explanation. Longer explanations may get no credit."
201
+
"answer": "A, B, D",
202
+
"llm_judge_instructions": "Award 2 points if and only if the selected letters exactly match the set of correct answers (no omissions or extras). Otherwise, award 1 point if the selection includes at least one correct letter, and 0 points if it includes none."
203
203
}
204
204
```
205
205
@@ -219,7 +219,7 @@ D. In programmed I/O, the CPU programs an external controller to do I/O while th
219
219
220
220
E. None of the above.
221
221
222
-
Your answer should list all correct letters (e.g., "A, B"), followed by a brief explanation. Longer explanations may get no credit.
222
+
Your answer should list all correct letters (e.g., "A, B").
223
223
224
224
```json
225
225
{
@@ -228,8 +228,8 @@ Your answer should list all correct letters (e.g., "A, B"), followed by a brief
228
228
"type": "Freeform",
229
229
"tags": ["operating-systems", "io"],
230
230
"reference_materials": ["rust_reference.md"],
231
-
"answer": "E. None of the options are correct. A: Top half and bottom half refer to interrupt-driven I/O; polling is not used. B: Memory-mapped I/O actively involves the CPU; in DMA, an external device writes data to memory independently, then interrupts the CPU when the data is ready. C: Port-mapped I/O does not require involvement of the disk. D: Programmed I/O involves special CPU instructions (eg. in and out), not an external I/O controller.",
232
-
"llm_judge_instructions": "Award 1 point for listing exactly the correct letters that apply. Award 1 point for a valid explanation. Longer explanations may get no credit."
231
+
"answer": "E",
232
+
"llm_judge_instructions": "Award 2 points if and only if the selected letters exactly match the set of correct answers (no omissions or extras). Otherwise, award 1 point if the selection includes at least one correct letter, and 0 points if it includes none."
233
233
}
234
234
```
235
235
@@ -249,7 +249,7 @@ D. Like RAM, storage devices are byte-addressed.
249
249
250
250
E. None of the above.
251
251
252
-
Your answer should list all correct letters (e.g., "A, B"), followed by a brief explanation. Longer explanations may get no credit.
252
+
Your answer should list all correct letters (e.g., "A, B").
253
253
254
254
```json
255
255
{
@@ -258,8 +258,8 @@ Your answer should list all correct letters (e.g., "A, B"), followed by a brief
258
258
"type": "Freeform",
259
259
"tags": ["operating-systems", "storage"],
260
260
"reference_materials": ["rust_reference.md"],
261
-
"answer": "A. A: Sequential reads on HDDs are usually faster than random reads because we only have to wait for the disk to spin under the head. B: SSD pages wear out when they are erased; HDDs do not wear out as quickly. C: SSDs are generally more expensive. D: Storage devices are addressed in units of sectors/pages/blocks.",
262
-
"llm_judge_instructions": "Award 1 point for listing exactly the correct letters that apply. Award 1 point for a valid explanation. Longer explanations may get no credit."
261
+
"answer": "A",
262
+
"llm_judge_instructions": "Award 2 points if and only if the selected letters exactly match the set of correct answers (no omissions or extras). Otherwise, award 1 point if the selection includes at least one correct letter, and 0 points if it includes none."
263
263
}
264
264
```
265
265
@@ -279,7 +279,7 @@ D. Compulsory misses grow linearly with the size of the cache.
279
279
280
280
E. None of the above.
281
281
282
-
Your answer should list all correct letters (e.g., "A, B"), followed by a brief explanation. Longer explanations may get no credit.
282
+
Your answer should list all correct letters (e.g., "A, B").
283
283
284
284
```json
285
285
{
@@ -288,8 +288,8 @@ Your answer should list all correct letters (e.g., "A, B"), followed by a brief
288
288
"type": "Freeform",
289
289
"tags": ["operating-systems", "caching"],
290
290
"reference_materials": ["rust_reference.md"],
291
-
"answer": "A, B. A: In a multiprocessor system, actions by one processor can invalidate the cache entries for another processor, possibly resulting in a coherence miss. B: A cache with a higher associativity can reduce the number of conflict misses. C: Making a cache larger should decrease the number of capacity misses. D: Compulsory misses occur when a cache line is loaded for the first time; increasing the size of the cache has no effect on the number of compulsory misses.",
292
-
"llm_judge_instructions": "Award 1 point for listing exactly the correct letters that apply. Award 1 point for a valid explanation. Longer explanations may get no credit."
291
+
"answer": "A, B",
292
+
"llm_judge_instructions": "Award 2 points if and only if the selected letters exactly match the set of correct answers (no omissions or extras). Otherwise, award 1 point if the selection includes at least one correct letter, and 0 points if it includes none."
293
293
}
294
294
```
295
295
@@ -324,7 +324,7 @@ D. The program will compile if we replace `kenobi(s: String)` and `kenobi(s)` wi
324
324
325
325
E. None of the above.
326
326
327
-
Your answer should list all correct letters (e.g., "A, B"), followed by a brief explanation. Longer explanations may get no credit.
327
+
Your answer should list all correct letters (e.g., "A, B").
328
328
329
329
```json
330
330
{
@@ -333,8 +333,8 @@ Your answer should list all correct letters (e.g., "A, B"), followed by a brief
333
333
"type": "Freeform",
334
334
"tags": ["rust", "ownership"],
335
335
"reference_materials": ["rust_reference.md"],
336
-
"answer": "C, D. A: The second s is a new variable due to the let declaration. It is not a reassignment of the original s. B: This program will result in compile-time, not run-time, errors. C: This solves the issue; s would no longer be used after being moved into kenobi. D: Passing a reference to s also fixes the problem, as ownership of s is not moved into kenobi",
337
-
"llm_judge_instructions": "Award 1 point for listing exactly the correct letters that apply. Award 1 point for a valid explanation. Longer explanations may get no credit."
336
+
"answer": "C, D",
337
+
"llm_judge_instructions": "Award 2 points if and only if the selected letters exactly match the set of correct answers (no omissions or extras). Otherwise, award 1 point if the selection includes at least one correct letter, and 0 points if it includes none."
338
338
}
339
339
```
340
340
@@ -354,7 +354,7 @@ D. A program in a safe state can eventually deadlock.
354
354
355
355
E. None of the above.
356
356
357
-
Your answer should list all correct letters (e.g., "A, B"), followed by a brief explanation. Longer explanations may get no credit.
357
+
Your answer should list all correct letters (e.g., "A, B").
358
358
359
359
```json
360
360
{
@@ -363,8 +363,8 @@ Your answer should list all correct letters (e.g., "A, B"), followed by a brief
"answer": "A, B, D. A: Circular wait is a necessary condition for deadlock. B: Circular wait is a necessary condition for deadlock. C: Priority donation prevents starvation of a high-priority thread; it does not prevent deadlock. D: A safe state means that there is a non-blocking order of threads that allows all threads to complete. Deadlock can still occur starting from a safe state (eg. if the non-blocking ordering is not followed).",
367
-
"llm_judge_instructions": "Award 1 point for listing exactly the correct letters that apply. Award 1 point for a valid explanation. Longer explanations may get no credit."
366
+
"answer": "A, B, D",
367
+
"llm_judge_instructions": "Award 2 points if and only if the selected letters exactly match the set of correct answers (no omissions or extras). Otherwise, award 1 point if the selection includes at least one correct letter, and 0 points if it includes none."
368
368
}
369
369
```
370
370
@@ -384,7 +384,7 @@ D. In FFS, the file number is the index of an inode in the inode array.
384
384
385
385
E. None of the above.
386
386
387
-
Your answer should list all correct letters (e.g., "A, B"), followed by a brief explanation. Longer explanations may get no credit.
387
+
Your answer should list all correct letters (e.g., "A, B").
388
388
389
389
```json
390
390
{
@@ -393,8 +393,8 @@ Your answer should list all correct letters (e.g., "A, B"), followed by a brief
393
393
"type": "Freeform",
394
394
"tags": ["operating-systems", "file-systems"],
395
395
"reference_materials": ["rust_reference.md"],
396
-
"answer": "A, B, C, D. All statements are correct.",
397
-
"llm_judge_instructions": "Award 1 point for listing exactly the correct letters that apply. Award 1 point for a valid explanation. Longer explanations may get no credit."
396
+
"answer": "A, B, C, D",
397
+
"llm_judge_instructions": "Award 2 points if and only if the selected letters exactly match the set of correct answers (no omissions or extras). Otherwise, award 1 point if the selection includes at least one correct letter, and 0 points if it includes none."
398
398
}
399
399
```
400
400
@@ -414,7 +414,7 @@ D. Putting a directory and its file into common block groups.
414
414
415
415
E. None of the above.
416
416
417
-
Your answer should list all correct letters (e.g., "A, B"), followed by a brief explanation. Longer explanations may get no credit.
417
+
Your answer should list all correct letters (e.g., "A, B").
418
418
419
419
```json
420
420
{
@@ -423,8 +423,8 @@ Your answer should list all correct letters (e.g., "A, B"), followed by a brief
"answer": "C, D. C: FFS uses first-free allocation for sequential block placement. D: FFS groups directories and their files in common cylinder groups.",
427
-
"llm_judge_instructions": "Award 1 point for listing exactly the correct letters that apply. Award 1 point for a valid explanation. Longer explanations may get no credit."
426
+
"answer": "C, D",
427
+
"llm_judge_instructions": "Award 2 points if and only if the selected letters exactly match the set of correct answers (no omissions or extras). Otherwise, award 1 point if the selection includes at least one correct letter, and 0 points if it includes none."
428
428
}
429
429
```
430
430
@@ -503,7 +503,7 @@ Please answer in THREE SENTENCES OR LESS. Longer explanations may get no credit
"answer": "Cache lookups can be overlapped when the page offset in the virtual address contains the cache index. See lecture 15, slide 26.",
506
+
"answer": "Cache lookups can be overlapped when the page offset in the virtual address contains the cache index.",
507
507
"llm_judge_instructions": "Award full points for a fully correct explanation. award partial credit for partially correct explanations"
508
508
}
509
509
```
@@ -598,7 +598,10 @@ give partial credit if you show your work.
598
598
599
599
Suppose we have resources A, B, C and threads T1, T2, T3, T4. The total number of each resource as well as the current/max allocations for each thread are as follows:
600
600
601
-
Total Allocation: A=5, B=6, C=7
601
+
Total Allocation:
602
+
| A | B | C |
603
+
|---|---|---|
604
+
| 5 | 6 | 7 |
602
605
603
606
Current Allocation:
604
607
| Thread | A | B | C |
@@ -734,7 +737,7 @@ Fill in sections [A], [B], and [C]:
0 commit comments