The test is open-everything with the sole limitation that you neither solicit nor give help while the exam is in progress.
Submit all answers on these exam sheets. No extra sheets are allowed. If you are nervous about this, work out the problem on a separate sheet and copy your answers here. Work quickly but carefully. I don't suspect many people will finish all the problems; the intent is to make sure the people most familiar with the material get the best grades.
| Problem | You got | Out of |
|---|---|---|
| 1 | 12 | |
| 2 | 16 | |
| 3 | 6 | |
| 4 | 16 | |
| 5 | 12 | |
| 6 | 20 | |
| 7 | 18 | |
| TOTAL | 100 |
| Unsigned Decimal | Signed Decimal | Hexadecimal | Binary |
|---|---|---|---|
| -8336 | |||
| F00F | |||
| 6400 | |||
| 0111111111111110 |
| Sum — Modular | Carry (y/n) |
Overflow (y/n) |
Sum — Saturated | |
|---|---|---|---|---|
| 6500 + 8BA0 | ||||
| F114 + CFFF | ||||
| 7FFF + 0001 | ||||
| 8DDD + 8001 |
2048 MiB = _______________ 8PiB = _______________ 232 + 229 bytes = _______________
C4C40000 = _______________ 000000D0 = _______________ 80000000 = _______________ FF800000 = _______________
16387.75 = _______________ 2–128 = _______________ 2–131 = _______________
| UTF-32 | UTF-16 | UTF-8 |
|---|---|---|
| 00000041 | ||
| 0010BBBB | ||
| 0009FFFF | ||
| 00000088 | ||
| 00001411 |
for each i in 0..length a
j = random value in 0 .. length(a)-1
swap a[i] and a[j]
end