Chapter 6 Flashcards

1
Q

The first step in the debugging process is to

A

reproduce the problem

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

Computers do exactly the same thing every time when given the same input. What is this property called?

A

Deterministic

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

Most software

A

contains bugs

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

When using computers, what is the most common source of problems?

A

Human error

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

What does the “s” stand for in https?

A

secure

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

When testing, it is never possible to establish the_____of a program.

A

correctness

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

Not only is the computer unable to_____itself, we can’t____it directly, either.

A

Debug

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

What built-in tool in most browsers can help you debug a web page?

A

error console

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

How do we know the software running safety-critical systems is perfect?

A

we can’t

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

You should expect _____ when interacting with software.

A

feedback

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

An alternative approach to get around a problem is called a(n)

A

Workaround

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

A(n)_____ program continues to operate when there is a problem, although its efficiency may be degraded

A

fail-soft

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

A(n)_____program shuts down to avoid causing the problem

A

fail-safe

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

Computers don’t understand what we_____, only what we_____

A

mean, say

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

Bugs in commercial software are usually fixed

A

releases

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

Computers are ____, which means that they will do exactly the same thing every time if given the same input.

A

deterministic

17
Q

___ is the most obvious HTML error.

A

The end tag

18
Q

Errors in HTML code are generally not tough to _____, just tough to ____.

A

fix, locate

19
Q

Program testing reveals only the ____ of bugs, never their _____.

A

presence, absence

20
Q

Explain in detail why error messages produced by a computer do not usually explain exactly what the problem is.

A

An error message is in the order displayed when an unanticipated condition occurs, naturally on a computer or other device .
Device not ready: This error most frequently occurs when there is no floppy disk.
A complex issue may need a more detailed error message in order to sufficiently inform the user of the problem.

21
Q

Design several workarounds for the computer printing error. Pretend it’s your term paper and it has to be printed. How would you get around the problem that the computer and the printer aren’t printing?

A

https://www.chegg.com/homework-help/questions-and-answers/1design-several-workarounds-computer-printing-error-pretend-s-term-paper-printed-would-get-q19185942

I would first try restarting the computer. Then, I would check the connection on both the computer and the printer. Then, I would check the printing queue to see if it was forced to wait. I would then check any refills needed for the printer.

22
Q

Describe a time when you debugged something in your life (it doesn’t need to relate to computers).

A
23
Q

Suppose your friend’s personal music player (such as an iPod) isn’t playing any songs. Explain the process you would go through to debug the problem. List at least eight questions you would ask, and explain how each applies to the debugging guidelines.

A

https://www.chegg.com/homework-help/questions-and-answers/1suppose-friend-s-personal-music-player-ipod-isn-t-playing-songs-explain-process-would-go–q19169210

24
Q

Explain the differences between fail-soft and fail-safe.

A

Fail-Soft: When a device selectively shuts down some services or apps or functions until the fault is repaired it is fail-soft. Fail-soft capability avoids the device from completely failing due to fault in 1 area.

Fail-Safe: These devices have backup devices etc built in, so in case of failure of the primary parts the backup part takes over and the device can be running without any downtime.

25
Q

Why is debugging a better approach than aimlessly “trying stuff”?

A

debugging is a logical process; “trying stuff” can lead to more bugs and fixing and unfixing the same error multiple times

26
Q

List five questions you should ask yourself while debugging.

A

Is my set up or configuration correct?
Did the debug log tell me what the actual problem is?
Am I in the right folder?
Is it just a syntax or spelling error?
Is this a data issue?

27
Q

Why do programmers never say they are down to the last bug? Provide a concrete example that illustrates this using HTML (your example should be your own, and not come directly from this book).

A

Once a bug is fixed, it could result in more bugs being revealed.

28
Q

Explain in detail three things you can try if you have followed the debugging process and are still unable to fix the problem.

A

Talk to senior developers about the issue you are getting, they might have also encountered the same problem.

If not, reach the StackOverflow community and talk about the issues.

Else just read the documentation and try to build your solution.