UCR CS 122B Winter 2004 Prof. Frank Vahid Name: ____________________________ Quiz 4 1. Two designers need to build a system that uses three new peripherals. Designer A is in a hurry, so just codes the peripheral drivers based their datasheet information. Designer B is also in a hurry, but spends 4 hours just experimenting with each peripheral (so 12 hours total). The base time for designing the system is 100 hours. However, A encounters problems that requires extensive debugging, extending the base design time by 50%. The problems were related to ambiguities in the datasheets of the peripherals. B detected these databook ambiguities during experimenting with each peripheral alone, and thus only required 5 hours of debugging beyond the base time. How long did each designer require to build the system? 2. According to Ganssle, what is the software bug rate? ______________ Based on that bug rate, if you write a 1,000 line program, how many bugs would that program contain? _____________ 3. What are the two key principles of debugging that was mentioned in class? Each is just one word. I gave you the first letters. O_____________________ C______________________