Chapter 6 Flashcards
(28 cards)
The first step in the debugging process is to
reproduce the problem
Computers do exactly the same thing every time when given the same input. What is this property called?
Deterministic
Most software
contains bugs
When using computers, what is the most common source of problems?
Human error
What does the “s” stand for in https?
secure
When testing, it is never possible to establish the_____of a program.
correctness
Not only is the computer unable to_____itself, we can’t____it directly, either.
Debug
What built-in tool in most browsers can help you debug a web page?
error console
How do we know the software running safety-critical systems is perfect?
we can’t
You should expect _____ when interacting with software.
feedback
An alternative approach to get around a problem is called a(n)
Workaround
A(n)_____ program continues to operate when there is a problem, although its efficiency may be degraded
fail-soft
A(n)_____program shuts down to avoid causing the problem
fail-safe
Computers don’t understand what we_____, only what we_____
mean, say
Bugs in commercial software are usually fixed
releases
Computers are ____, which means that they will do exactly the same thing every time if given the same input.
deterministic
___ is the most obvious HTML error.
The end tag
Errors in HTML code are generally not tough to _____, just tough to ____.
fix, locate
Program testing reveals only the ____ of bugs, never their _____.
presence, absence
Explain in detail why error messages produced by a computer do not usually explain exactly what the problem is.
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.
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?
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.
Describe a time when you debugged something in your life (it doesn’t need to relate to computers).
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.
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
Explain the differences between fail-soft and fail-safe.
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.