Intro to Coding - Debugging a Program

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Software defects can wreak havoc on the function of the ? that society has come to rely on. Software manufactures should properly ? bugs prior to product release.

1. electronic systems 2. identify and eliminate

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.

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.

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.

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.

Which statements correctly describe the use of debugging tools? Check all that apply. Debugging tools can be used to watch the values that are being stored in memory. Debugging tools can be used to step line by line through the program as it executes. Debugging tools can be used to set breakpoints and test sections of the code. Debugging tools can be set to automatically identify and correct all errors.

1. Debugging tools can be used to watch the values that are being stored in memory. 2. Debugging tools can be used to step line by line through the program as it executes. 3. Debugging tools can be used to set breakpoints and test sections of the code.

What are benefits of using debugging tools? Check all that apply. Debugging tools help programmers catch errors they might otherwise miss. Debugging tools can save time. Debugging tools can introduce new errors into the code. Debugging tools help programmers make methodical assessments of the problem.

1. Debugging tools help programmers catch errors they might otherwise miss. 2. Debugging tools can save time. 4. Debugging tools help programmers make methodical assessments of the problem.

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.

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.

Identify the problems that computer program bugs can cause. Check all that apply. Program bugs can cause error messages. Program bugs can cause computer viruses. Program bugs can cause programs to halt while they are running. Program bugs can cause software and hardware to miscommunicate. Program bugs can provide unplanned results.

1. Program bugs can cause error messages. 3. Program bugs can cause programs to halt while they are running. 4. Program bugs can cause software and hardware to miscommunicate. 5. Program bugs can provide unplanned results.

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.

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.

What is an error code? numbers that are used to identify a specific type of computer error in a program numbers that are used to count the number of times a specific error occurs a programming language that is used to create error messages a programming language that is used to troubleshoot error messages

1. numbers that are used to identify a specific type of computer error in a program

You have written a program to keep track of the money due to your company. The people in accounting have entered the information from the invoices they have sent out. However, the total from accounting does not agree with a total of a second listing of items that can be billed from the production department. Using the drop-down menus, complete the sentences about the steps in the debugging process. As a first step in diagnosing the problem, you will ? A good place to begin is by examining the ? Next, you can ? the problem. This will help you

1. reproduce the error 2. error codes 3. troubleshoot 4. identify the source of the problem

Which scenarios could be caused by software bugs? Check all that apply. A person catches the flu and misses two days of work. Smartphone users around the world are unable to get phone service. A person is wrongfully arrested by the police. A person receives a $10 bill at an ATM after requesting a $100 withdrawal

2. Smartphone users around the world are unable to get phone service. 3. A person is wrongfully arrested by the police. 4. A person receives a $10 bill at an ATM after requesting a $100 withdrawal

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.

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.

How do programmers reproduce a problem? by replicating the conditions under which a previous problem was solved by replicating the conditions under which the problem was experienced by searching for similar problems online by copying error messages from another software program

2. by replicating the conditions under which the problem was experienced

What is a bug? a line of code that executes properly a mistake made by an end user of a software program a defect in a software program that prevents it from working correctly an error message

3. a defect in a software program that prevents it from working correctly

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

4. a function in a compiler that enables programmers to run a program line by line and observe the current values of program variables

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

1. begin 2. halt 3. section

Which statements are true of debugging tools? Check all that apply. Debugging is not necessary if a programmer is careful. Debugging is an essential part of producing reliable code. Debugging tools are very useful to programmers A methodical approach to debugging is far more productive than making uninformed guesses about the source of the error.

2. Debugging is an essential part of producing reliable code. 3. Debugging tools are very useful to programmers 4. A methodical approach to debugging is far more productive than making uninformed guesses about the source of the error.


Kaugnay na mga set ng pag-aaral

Health Unit Two Test (for Kaskaskia College)

View Set

NCLEX book The Client with a Stroke

View Set

Chapter 26: The Child with Respiratory Dysfunction

View Set