UNIT 6 Flashcards

1
Q

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.

A

False, Bugs should be fixed immediately

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

One technique used to locate a bug in a program is to follow clues that contradict each other.

A

False, follow clues that don’t contradict each other

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Race condition is an error known to be associated with parallel computation.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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.

A

False, it has probably moved to a different line of code where the problem might sit dorm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Knowing details about your hardware is necessary to effectively deal with bugs.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Using identical code in multiple places, rather than keeping the code in one centralized location, is an effective way to prevent bugs.

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The best way to avoid memory-overrun bugs is to apply preventive techniques while writing the program.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

If you do not initialize variables at the moment of declaration, you risk creating hard-to-detect bugs.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Not all programming languages require you to bracket conditional statements, and not even warning are issued if you forget.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly