Deck 6: An Introduction to Debugging
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/32
Play
Full screen (f)
Deck 6: An Introduction to Debugging
1
The first step to take when debugging is to call tech support .
False
2
It is possible to have completely safe software if there has been extensive program testing .
False
3
If your computer is not working, most likely it is your fault .
True
4
You can be sure that software running safety-critical systems is perfect .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
5
Testing and other techniques can ensure confidence that software works under abnormal circumstances .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
6
The basic premise of fail-soft and fail-safe design strategies is to have the program continue to operate as long as productive service is safely provided, but when that is not possible, the program should avoid negative outcomes by stopping entirely .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
7
Debugging principles are not limited to use by IT professionals .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
8
It is practically impossible to have 100% bug-free software .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
9
Sometimes unnecessary changes are made during the debugging process .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
10
The term bug (that is, a glitch in a computer system) evolved from an incident with the Volkswagen Beetle .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
11
Debugging relies on logical reasoning and is learned by experience .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
12
A basic debugging strategy is to isolate the problem by dividing an operation into those parts that are working and those that are not .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
13
Often fixing one error can reveal other errors you didn't realize were present .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
14
The toughest bugs to fix are always the toughest bugs to find .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
15
In software, a program that stops operating to avoid harm is called
A) fail-safe
B) bug-safe
C) fail-soft
D) fault-tolerant
A) fail-safe
B) bug-safe
C) fail-soft
D) fault-tolerant
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
16
In software, a program that continues to operate but with possibly degraded functionality is called
A) fault-tolerant
B) bug-safe
C) fail-soft
D) fail-safe
A) fault-tolerant
B) bug-safe
C) fail-soft
D) fail-safe
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
17
What is the first step in the debugging process?
A) isolating the problem
B) checking obvious error sources
C) checking that the error is reproducible
D) generating a theory to explain the problem
A) isolating the problem
B) checking obvious error sources
C) checking that the error is reproducible
D) generating a theory to explain the problem
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
18
In Firefox, what tool can you use to see the errors on a web page?
A) the Web Console
B) the Tech Support section
C) the Help menu
D) Firefox has no such tool .
A) the Web Console
B) the Tech Support section
C) the Help menu
D) Firefox has no such tool .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
19
How are hardware failures generally resolved?
A) The manufacturer uses techniques such as redundancy .
B) The manufacturer employs a 24-hour support staff .
C) The manufacturer tests using the specification .
D) The manufacturer creates only unbreakable hardware .
A) The manufacturer uses techniques such as redundancy .
B) The manufacturer employs a 24-hour support staff .
C) The manufacturer tests using the specification .
D) The manufacturer creates only unbreakable hardware .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
20
A nanosecond is
A) 1/1,000,000th of a second
B) 1/1,000th of a second
C) 1/1,000,000,000th of a second
D) 1/100th of a second
A) 1/1,000,000th of a second
B) 1/1,000th of a second
C) 1/1,000,000,000th of a second
D) 1/100th of a second
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
21
Software that translates a program written in a programming language into machine instructions is a(n)
A) algorithm
B) browser
C) driver
D) compiler
A) algorithm
B) browser
C) driver
D) compiler
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
22
To assist with HTML debugging, errors discovered by Firefox while rendering a page can be viewed by going to the
A) HTML Debugger
B) HTML Compiler
C) Web Console
D) Diagnostic Analyzer
A) HTML Debugger
B) HTML Compiler
C) Web Console
D) Diagnostic Analyzer
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
23
Most hardware failures caused by the manufacturing process show up after only a few hours of operation . This is known as
A) the redundancy factor property
B) the infant mortality property
C) the specification failure property
D) the early failure property
A) the redundancy factor property
B) the infant mortality property
C) the specification failure property
D) the early failure property
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
24
If you have tried all the debugging steps you learned in this chapter and still can't fix the problem, what should you do before throwing up your hands in despair?
A) Take a break and come back to try to solve the problem again later .
B) Change to another computer .
C) Email your instructor and explain that you can't submit an assignment because your computer is broken .
D) Any of these
A) Take a break and come back to try to solve the problem again later .
B) Change to another computer .
C) Email your instructor and explain that you can't submit an assignment because your computer is broken .
D) Any of these
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
25
Select all that apply . Which of the following is NOT a step to take when attempting to debug a problem with your computer?
A) Check to see if the error happens again if you do the same thing that caused the error in the first place .
B) Call a friend who uses the same software .
C) Define, for yourself, what exactly is the error .
D) Check for obvious error sources, such as typing a lowercase L instead of a 1 .
A) Check to see if the error happens again if you do the same thing that caused the error in the first place .
B) Call a friend who uses the same software .
C) Define, for yourself, what exactly is the error .
D) Check for obvious error sources, such as typing a lowercase L instead of a 1 .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
26
Select all that apply . Which of the following statements is TRUE?
A) Given enough time, manufacturers can develop bug-free software .
B) Getting out and getting back in often works when an application is not working correctly .
C) Program testing reveals only the presence of bugs, never their absence .
D) Extensive and appropriate program testing will reveal all possible bugs .
A) Given enough time, manufacturers can develop bug-free software .
B) Getting out and getting back in often works when an application is not working correctly .
C) Program testing reveals only the presence of bugs, never their absence .
D) Extensive and appropriate program testing will reveal all possible bugs .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
27
Select all that apply . If your printer suddenly stops working, which of the following do you already know?
A) The computer and printer were working in the past .
B) Printer settings often change without user input .
C) Part of the printer is mechanical .
D) Information must be transmitted back and forth between the computer and the printer .
A) The computer and printer were working in the past .
B) Printer settings often change without user input .
C) Part of the printer is mechanical .
D) Information must be transmitted back and forth between the computer and the printer .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
28
________ is the goal of software programs: to be reliable in safety-critical situations, such as life support .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
29
In programming, a precise definition of the input, how the system should behave, and how the output should be produced is known as a(n) ________ .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
30
When your car doesn't start, you figure out whether the battery is dead, whether the fuel tank is empty, or whether something else is wrong using the process of ________ .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
31
Bypassing an error with an alternative approach is called a(n) ________ .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
32
The print ________ is a place where printing tasks wait before being processed .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck