News for hackers. Stuff that matters.
Re:Computer Science Self-assessment Quiz (+answers) by diiq on Monday June 20, 2011 @06:22AM (#2673592)
This 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.
Re:Computer Science Self-assessment Quiz (+answers) by alexgartrell on Monday June 20, 2011 @09:20AM (#2674006)
I 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.

Re:Computer Science Self-assessment Quiz (+answers) by satarrr on Monday June 20, 2011 @05:44AM (#2673522)
This includes both programming and computer architecture like questions. Interesting for someone who knows coding and high-level concepts of hardware.
Re:Computer Science Self-assessment Quiz (+answers) by schrototo on Monday June 20, 2011 @06:14AM (#2673571)
Yeah, 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.)
Re:Computer Science Self-assessment Quiz (+answers) by da_dude4242 on Monday June 20, 2011 @11:58AM (#2674714)
It's also domain knowledge for system programming.
Re:Computer Science Self-assessment Quiz (+answers) by Kliment on Monday June 20, 2011 @05:54AM (#2673539)
At least one of the answers is wrong: 143 is 0x8F, not 0x8E
Re:Computer Science Self-assessment Quiz (+answers) by satarrr on Monday June 20, 2011 @06:04AM (#2673556)
yes. the guy corrected it.
Re:Computer Science Self-assessment Quiz (+answers) by argv_empty on Monday June 20, 2011 @11:22AM (#2674526)
3b -- 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?
Re:Computer Science Self-assessment Quiz (+answers) by dolvlo on Monday June 20, 2011 @09:33AM (#2674072)
This is actually an awful self-assessment Quiz. (and I TA'd for 3 years at one of the best CS universities in the US)
Re:Computer Science Self-assessment Quiz (+answers) by gnoupi on Monday June 20, 2011 @09:57AM (#2674158)
Do you have a not-awful one to propose? I would be interested in it.
Re:Computer Science Self-assessment Quiz (+answers) by ramchip on Monday June 20, 2011 @10:29AM (#2674299)
It sounds much closer to computer engineering than to CS to me.