Intro to Coding - Testing and Fixing Code

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Which of these are reasons to verify code fixes? Check all of the boxes that apply. Fixing one error may cause an error somewhere else. You must verify that you fixed the problem as intended. You want to save time by only doing this step one time. You were the only person who worked on the code.

1. Fixing one error may cause an error somewhere else. 2. You must verify that you fixed the problem as intended.

Using the drop-down menu, complete the sentence. Iteration ? a process for the purpose of reaching a desired ?

1. repeats, outcome

Which of these are steps in the testing cycle? Check all of the boxes that apply. testing the fixed code releasing debugging version fixing the error reproducing and diagnosing the error

1. testing the fixed code 3. fixing the error 4. reproducing and diagnosing the error

How would you test a computer program? releasing the program and waiting for user input running the program with test data to see if outcomes are as expected seeing how fast the program runs rethinking the logic of the program code

2. running the program with test data to see if outcomes are as expected

Identify the characteristics of bugs that occur in computer software. Check all of the boxes that apply. Bugs can occur for a variety of reasons. Bugs can halt the execution of a program. Bugs are anything that keeps code from working properly. Bugs do not exist in code that has been carefully programmed.

1. Bugs can occur for a variety of reasons. 2. Bugs can halt the execution of a program. 3. Bugs are anything that keeps code from working properly.

Which of these are characteristics of compiler software? Check all of the boxes that apply. Compiler software compiles code. Compiler software can step through code line by line. Compiler software compares code. Compiler software can be used to find syntax errors. Compiler software translates the code into machine language.

1. Compiler software compiles code. 2. Compiler software can step through code line by line. 4. Compiler software can be used to find syntax errors. 5. Compiler software translates the code into machine language.

Which of these statements are true about the software testing cycle? Check all of the boxes that apply. It involves inputting sample data and comparing the results to the intended results. It is an iterative process. It includes fixing and verifying code. It does not require testing the fix.

1. It involves inputting sample data and comparing the results to the intended results. 2. It is an iterative process. 3. It includes fixing and verifying code.

Which of these are reasons to test code? Check all of the boxes that apply. Most code contains some errors. Beta users expect error-free programs. Users expect software programs to function properly. Software developers expect to have error-free programs after one test.

1. Most code contains some errors 3. Users expect software programs to function properly.

Which of these statements correctly describe aspects of testing code? Check all of the boxes that apply. Users depend on the information provided by the software program. Beta testing is the second stage of testing the software program. All testing is done by the developer of the computer software. All code is likely to include mistakes, no matter how careful a programmer may be.

1. Users depend on the information provided by the software program. 2. Beta testing is the second stage of testing the software program. 4. All code is likely to include mistakes, no matter how careful a programmer may be.

Which of these are parts of the iterative process? Check all of the boxes that apply. debugging code writing the initial code testing code documenting code

1. debugging code 3. testing code

Which of these are tools used to diagnose and test code? Check all of the boxes that apply. debugging software creating data sets compiler software error messages

1. debugging software 3. compiler software 4. error messages

Complete the sentence to explain why you should test to ensure the computer code is correct. Check all of the boxes that apply. You must test the code fixes because fixing one thing may cause an error somewhere else. you must verify that you fixed the problem as intended. good programmers do this. users are relying on the fix you make

1. fixing one thing may cause an error somewhere else. 2. you must verify that you fixed the problem as intended. 4. users are relying on the fix you make.

Complete the sentences using the drop-down menu. Program bugs are code errors that can ? Program bugs can result from ? Program bugs can result in ?

1. halt the execution of the computer program 2. misspelling a command 3. an incorrect outcome

Which of these are functions that can be performed using debugging software? Check all of the boxes that apply. step line by line through the program add images to the software code establish breakpoints that enable one specific segment of code to run watch the values that are stored in memory as the program runs

1.step line by line through the program 3. establish breakpoints that enable one specific segment of code to run 4. watch the values that are stored in memory as the program runs

Which of these are characteristics of debugging software? Check all of the boxes that apply. Debugging involves beta testers using the program. Debugging involves running the software with a debugger program. Debugging is part of the process of looking for computer software code errors. Debugging is only done once.

2. Debugging involves running the software with a debugger program. 3. Debugging is part of the process of looking for computer software code errors.

Which of these is a characteristic of debugging software? It only can be used in a limited number of cases. It includes several tools that help to trace a problem to its source. It only is useful when a program is first being written. It can waste a lot of time.

2. It includes several tools that help to trace a problem to its source.

Which of these statements are true of verifying that a program's code is fixed? Check all of the boxes that apply. It is the process of reading through code to be sure a fix looks right. It is the process of testing code to be sure that a fix is right. It includes running sample data through a program to test a fix. It can be done only at start of a development cycle.

2. It is the process of testing code to be sure that a fix is right. 3. It includes running sample data through a program to test a fix.

Which of these exemplifies an iterative process? You walk to school every day with a friend. You do homework at a different time each day. Sometimes you eat breakfast at school, and sometimes you eat breakfast at home. You write a research paper, then review it, revise it, review it again, and revise it again.

4. You write a research paper, then review it, revise it, review it again, and revise it again.


Ensembles d'études connexes

Patho Unit 1: Introduction to Patho

View Set

APR Exam Practice Questions Set 01

View Set

Comprehensive AANP Review (LEIK/Barkley/Fitzgerald) pt. 4* (women,pregnancy,childbirth/peds)

View Set

PrepU chapter 10; Patients With Chest and Lower Respiratory Tract Disorders

View Set

Micro: CH13 Costs of Production - Practice problems

View Set

Crandall fallacies/tone word EXAMPLES

View Set