Debugging a Program Answers

16 verified answers1 views
1
Free Preview

What is a bug?

A
a line of code that executes properly
B
a mistake made by an end user of a software program
C
a defect in a software program that prevents it from working correctly
D
an error message
3

Next, you can eliminate✔ troubleshootimmediately fixsource the problem.

A
eliminate
B
✔ troubleshoot
C
immediately fix
D
source
4

This will help you test the code.✔ identify the source of the problem.determine who is responsible for the problem.

A
test the code.
B
✔ identify the source of the problem.
C
determine who is responsible for the problem.
5

Identify the problems that computer program bugs can cause. Check all that apply.

A
Program bugs can cause error messages.
B
Program bugs can cause computer viruses.
C
Program bugs can cause programs to halt while they are running.
D
Program bugs can cause software and hardware to miscommunicate.
E
Program bugs can provide unplanned results.
6

Which scenarios could be caused by software bugs? Check all that apply.

A
A person catches the flu and misses two days of work.
B
Smartphone users around the world are unable to get phone service.
C
A person is wrongfully arrested by the police.
D
A person receives a $10 bill at an ATM after requesting a $100 withdrawal.
7

Question text not available

Answers:
Selection 1:reproduce the error.
Selection 2:error codes.
the problem.:troubleshoot
Selection 4:identify the source of the problem.
8

Software defects can wreak havoc on the function of the people✔ electronic systemsfood supplycivic architecture that society has come to rely on.

Answers:
that society has come to rely on.:electronic systems
bugs prior to product release.:identify and eliminate
9

How do programmers reproduce a problem?

A
by replicating the conditions under which a previous problem was solved
B
by replicating the conditions under which the problem was experienced
C
by searching for similar problems online
D
by copying error messages from another software program
10

What is an error code?

A
numbers that are used to identify a specific type of computer error in a program
B
numbers that are used to count the number of times a specific error occurs
C
a programming language that is used to create error messages
D
a programming language that is used to troubleshoot error messages
12

Which statements correctly describe the use of debugging tools? Check all that apply.

A
Debugging tools can be used to watch the values that are being stored in memory.
B
Debugging tools can be used to step line by line through the program as it executes.
C
Debugging tools can be used to set breakpoints and test sections of the code.
D
Debugging tools can be set to automatically identify and correct all errors.
13

What is a stepping function?

A
a function that allows users to select which portion of a software program they would like to use
B
a function that allows users to make helpful notes about error messages they encounter
C
a function in a compiler that enables programmers to indent code when creating subfunctions
D
a function in a compiler that enables programmers to run a program line by line and observe the current values of program variables
14

What are benefits of using debugging tools? Check all that apply.

A
Debugging tools help programmers catch errors they might otherwise miss.
B
Debugging tools can save time.
C
Debugging tools can introduce new errors into the code.
D
Debugging tools help programmers make methodical assessments of the problem.
15

Which statements are true of debugging tools? Check all that apply.

A
Debugging is not necessary if a programmer is careful.
B
Debugging is an essential part of producing reliable code.
C
Debugging tools are very useful to programmers
D
A methodical approach to debugging is far more productive than making uninformed guesses about the source of the error.
16

A good place to begin is by examining the ✔ error codes.segments of code that repeat.If-Then statements in the code.opinions of other programmers.

A
✔ error codes.
B
segments of code that repeat.
C
If-Then statements in the code.
D
opinions of other programmers.

Did you find these answers helpful?