UNIT 6 Flashcards
Some bugs are hard to locate while developing a program. The correct thing to do when a bug is not reproduced consistently is to leave the bug for now - sometime down the road the cause of error will be clear.
False, Bugs should be fixed immediately
One technique used to locate a bug in a program is to follow clues that contradict each other.
False, follow clues that don’t contradict each other
Race condition is an error known to be associated with parallel computation.
True
If a program bug disappears when adding a harmless line of code, then the error is due to a timing problem, and has been corrected.
False, it has probably moved to a different line of code where the problem might sit dorm
Development kits provided by manufacturers are almost identical to console game devices, but the development devices have more memory. Therefore, some programs that run on a development kit might not run on actual consoles.
True
Knowing details about your hardware is necessary to effectively deal with bugs.
True
Using identical code in multiple places, rather than keeping the code in one centralized location, is an effective way to prevent bugs.
False, having identical code in multiple places is a liability. If it’s changed in one place, it might not be changed in another place.
It is good to compile a program using different compilers and for different platforms. Understanding the difference between compilers helps in writing more robust software.
True
The best way to avoid memory-overrun bugs is to apply preventive techniques while writing the program.
True
If you do not initialize variables at the moment of declaration, you risk creating hard-to-detect bugs.
True
Not all programming languages require you to bracket conditional statements, and not even warning are issued if you forget.
True