William "Chops" Westfield schreef op 03-Jan-15 om 12:05 PM: Making good multiple-choice questions is *very* hard. Been there, done=20 that (and I still do), got the scars to show. > A recommended power supply may usually be replaced with one > a) having the same voltage rating, but a higher current rating. > b) having the same current rating, but a higher voltage rating. > c) having the same power specification. > d) having the same efficiency. c can be read as "having the same voltage and current rating", which=20 would make it correct too. I suggest to add "(in Watts)" > > A recommended capacitor may usually be replaced with one having a > a) higher voltage rating but the same capacitance. > b) a higher capacitance but the same voltage rating. > c) the same ripple current specification. > d) the same technology (tantalum, ceramic, etc.) I don't like this one, it leans too heavily on "usually". > > An interrupt request on a microprocessor is usually responded to > a) within several instruction times > b) within several microseconds > c) within several milliseconds > d) when the microprocessor is no longer busy I guess you mean a to be correct, but this is rather=20 technology-dependent. I would not count b as wrong. > Which is fastest in a microcontroller: > a) register accesses > b) cache memory accesses > c) IO pin access > d) SSD access In a lot of uc's registers, memory and pins are equally fast... > Which algorithm would be rated as "fastest": > a) Constant > b) linear > c) N log N > d) N^2 make that "fastest for large data sets", otherwise it is it is=20 undecidable (depends on the constant factor). > > Other than speed, the metric most often important in evaluating an algori= thm is: > a) memory consumption. > b) code space. > c) source code language. > d) use of floating point operations. Yuk! this depends *very* much on the area of application! I guess a=20 should be RAM consumption, or is it ambigu by design? Wouter van Ooijen --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .