5 ms·
Computer Science Self-assessment Quiz (+answers)
- satarrr 15y agoThis includes both programming and computer architecture like questions. Interesting for someone who knows coding and high-level concepts of hardware.
- schrototo 15y agoYeah, I'd say this isn't computer science so much as engineering. (Computer science to me would mean questions about computability, algorithms, type theory and so on.)
- da_dude4242 15y agoIt's also domain knowledge for system programming.
- Kliment 15y agoAt least one of the answers is wrong: 143 is 0x8F, not 0x8E
- satarrr 15y agoyes. the guy corrected it.
- diiq 15y agoThis contains many questions that leave me asking "but why would you do that?" A hash table for 1,000,000 entries with only 128 buckets? A page size of 32 bytes? Tests are learning experiences, and should suggest real, worthy solutions.
- alexgartrell 15y agoI TAed a class in college three times that covers a lot of the stuff on this test. Smaller "unrealistic" numbers allow you to focus on the concepts while also minimizing the odds of an off-by-one type error in counting. For example, the actual 32-bit float format is 1 sign bit, 8 exponent bits, and 23 mantissa (or fraction) bits. The number 4.5 looks like this 0100 0000 1001 0000 0000 0000 0000 0000 Compare this to the 1-3-4 format (commonly used on tests in the class) 0101 0010 Even with that simple example, it's much clearer, and you're still calculating the bias and doing all of the binary conversion and binary point movement. When you start to consider the more complicated aspects (like rounding), using the actual 32 bit format becomes unfair to students. 32 byte pages are helpful because it keeps addresses short, and there's nothing fundamentally more interesting about a 12 bit page offset than about a 5 bit page offset.
- dolvlo 15y agoThis is actually an awful self-assessment Quiz. (and I TA'd for 3 years at one of the best CS universities in the US)
- argv_empty 15y ago3b -- Is it actually guaranteed that the arrays will be cache block-aligned? That there will be no conflict misses? That an int is 4 bytes?