INTRO TO CODING - DEBUGGING A PROGRAM
UPDATED ACTUAL QUESTIONS AND CORRECT
ANSWERS
Question:
Which statements are true of computer program bugs?
Check all that apply.
A bug is a defect in software that prevents a program
from running correctly.
A bug is any piece of hardware that prevents a program
from running correctly.
A bug can cause a miscommunication between hardware
and software.
A bug can cause an error message to appear.
Answer:
1. A bug is a defect in software that prevents a program from running correctly.
3. A bug can cause a miscommunication between hardware and software.
4. A bug can cause an error message to appear.
Question:
Which statements are true of debugging? Check all that
apply.
Using debugging tools can help identify and eliminate
bugs.
Diagnosing the problem is part of the debugging
process.
Troubleshooting the problem is part of the debugging
process.
Designing a flowchart is part of the debugging process.
Answer:
1. Using debugging tools can help identify and eliminate bugs.
2. Diagnosing the problem is part of the debugging process.
3. Troubleshooting the problem is part of the debugging process.
Question:
Which statements are true about diagnosing problems in
computer software? Check all that apply.
Error code numbers can help programmers identify the
type of error that has occurred.
To reproduce a problem, a programmer must replicate
the conditions under which the problem occurred.
Error codes are logs that list the date and time that an
error occurred.
Diagnosing a problem may involve talking with users
about what they were doing prior to experiencing the
problem.
, Answer:
1. Error code numbers can help programmers identify the type of error that has
occurred.
2. To reproduce a problem, a programmer must replicate the conditions under
which the problem occurred.
4. Diagnosing a problem may involve talking with users about what they were
doing prior to experiencing the problem.
Question:
Which statements are correct about troubleshooting
problems in computer software? Check all that apply.
Troubleshooting validates code fixes.
Troubleshooting is the process of identifying the source
of a problem in order to fix it.
Troubleshooting is a part of the debugging process.
Answer:
2. Troubleshooting is the process of identifying the source of a problem in order
to fix it.
3. Troubleshooting is a part of the debugging process.
Question:
How do debugging tools help programmers identify
errors in code? Check all that apply.
Debugging tools allow programmers to step through the
program code line by line.
Debugging tools allow programmers to watch the values
being stored in memory.
Debugging tools insist that breakpoints be set.
Debugging tools allow breakpoints to be set.
Answer:
1. Debugging tools allow programmers to step through the program code line by
line.
2. Debugging tools allow programmers to watch the values being stored in
memory.
4. Debugging tools allow breakpoints to be set.
Question:
Use the drop-down menus to complete the sentences.
Establishing breakpoints allows programmers to specify
the line of code to ? the execution of the program.
Establishing breakpoints also allows programmers to
specify the line of code to ? the execution of the code.
Using breakpoints allows programmers to run one ? of
the code
Answer:
1. begin
2. halt
3. section
UPDATED ACTUAL QUESTIONS AND CORRECT
ANSWERS
Question:
Which statements are true of computer program bugs?
Check all that apply.
A bug is a defect in software that prevents a program
from running correctly.
A bug is any piece of hardware that prevents a program
from running correctly.
A bug can cause a miscommunication between hardware
and software.
A bug can cause an error message to appear.
Answer:
1. A bug is a defect in software that prevents a program from running correctly.
3. A bug can cause a miscommunication between hardware and software.
4. A bug can cause an error message to appear.
Question:
Which statements are true of debugging? Check all that
apply.
Using debugging tools can help identify and eliminate
bugs.
Diagnosing the problem is part of the debugging
process.
Troubleshooting the problem is part of the debugging
process.
Designing a flowchart is part of the debugging process.
Answer:
1. Using debugging tools can help identify and eliminate bugs.
2. Diagnosing the problem is part of the debugging process.
3. Troubleshooting the problem is part of the debugging process.
Question:
Which statements are true about diagnosing problems in
computer software? Check all that apply.
Error code numbers can help programmers identify the
type of error that has occurred.
To reproduce a problem, a programmer must replicate
the conditions under which the problem occurred.
Error codes are logs that list the date and time that an
error occurred.
Diagnosing a problem may involve talking with users
about what they were doing prior to experiencing the
problem.
, Answer:
1. Error code numbers can help programmers identify the type of error that has
occurred.
2. To reproduce a problem, a programmer must replicate the conditions under
which the problem occurred.
4. Diagnosing a problem may involve talking with users about what they were
doing prior to experiencing the problem.
Question:
Which statements are correct about troubleshooting
problems in computer software? Check all that apply.
Troubleshooting validates code fixes.
Troubleshooting is the process of identifying the source
of a problem in order to fix it.
Troubleshooting is a part of the debugging process.
Answer:
2. Troubleshooting is the process of identifying the source of a problem in order
to fix it.
3. Troubleshooting is a part of the debugging process.
Question:
How do debugging tools help programmers identify
errors in code? Check all that apply.
Debugging tools allow programmers to step through the
program code line by line.
Debugging tools allow programmers to watch the values
being stored in memory.
Debugging tools insist that breakpoints be set.
Debugging tools allow breakpoints to be set.
Answer:
1. Debugging tools allow programmers to step through the program code line by
line.
2. Debugging tools allow programmers to watch the values being stored in
memory.
4. Debugging tools allow breakpoints to be set.
Question:
Use the drop-down menus to complete the sentences.
Establishing breakpoints allows programmers to specify
the line of code to ? the execution of the program.
Establishing breakpoints also allows programmers to
specify the line of code to ? the execution of the code.
Using breakpoints allows programmers to run one ? of
the code
Answer:
1. begin
2. halt
3. section