Computer Lit. Types of Errors

Ace your homework & exams now with Quizwiz!

Identify Causes of Run-Time Errors Which of the following can cause a run-time error?

A programmer anticipated a positive whole number, and the user input a negative decimal value.

Identify Ways to Find Run-Time Errors Using the drop-down menus, correctly complete the sentences about run-time errors.

A programmer can test the code to find run-time errors by ✔ running the code with extreme values. A Beta version of a program is one that is ✔ nearly ready for release and has Beta users to test the program. Prior to release, programmers can test a program by ✔running it with extreme input

Identify the Causes of a Run-Time Error Which of the following are causes of a run-time error. Choose all that apply.

A user enters a numeric value when a text value was expected. A user enters a text value when a numeric value was expected. A user enters a negative number when a positive number was expected.

Identify Ways to Address Run-Time Errors Which of the following are recommended ways to address run-time errors? Choose all that apply.

Add error routines that allow the program to execute fully even when unanticipated data is entered. Create error messages to alert the user to an error in data entry. Create controls in the program that ensure the input of proper data.

Identify Ways to Find a Logic Error Which of the following are recommended ways to find logic errors in code? Choose all that apply.

Check the code line by line. Use the stepping function of your compiler to help you spot the error. Run a test scenario with a sample data set to confirm if there is a logic error.

Which of the following effects do errors have on a computer program? Choose all that apply.

Errors can cause a program to crash during execution. Errors can cause a program to deliver incorrect results. Errors can cause an error message to appear.

Identify Characteristics of Errors Using the drop-down menus, select the best word or phrase that correctly completes each sentence.

It is ✔ very unlikely to avoid all computer-programming errors. Computer-programming errors must be ✔ discovered and corrected for a program to execute correctly and return anticipated results.

Identify Characteristics of Logic Errors Which of the following statements are true of logic errors? Choose all that apply.

Logic errors occur when the written instructions do not instruct the program to take the intended step. Logic errors often do not generate error messages. Logic errors result in unintended results.

Identify Ways to Address Syntax Errors Which of the following responses to an error alert are appropriate? Choose all that apply.

Run the program with test data to verify the results and trace the source of the problem. Verify that variable names are spelled correctly. Search for language that does not follow the programming language conventions.

Identify Characteristics of Run-Time Errors Identify the correct statements about run-time errors. Choose all that apply.

Run-time errors occur when the program is running. Run-time errors cause the program to halt. Run-time errors occur when a numeric value is expected but a text value is entered. Run-time errors occur when a text value is expected but a numeric value is entered.

Identify Syntax Error Causes Which of the following is true about syntax errors?

Syntax errors are specific to a specific programming language.

Describe the Effects of Programming Errors Programming errors can result in a number of different conditions. Choose all that apply.

The program will halt execution. An error message will be displayed. Incorrect results will occur.

Which of the following are likely to be considered when addressing logic errors in code? Choose all that apply.

Your original program may need changes. The code may need to be tested and retested.

Describe the Type of Common Programming Error Using the drop-down menus, complete these sentences defining the three common types of programming errors.

logic errors are due to a mistake in the program; they do not cause the program to stop running, but they do produce unintended results Run-time errors are sue to mistakes in the execution of commands; they cause the running of the program to halt Syntax errors are sue to misuse of the convention of the programming language

Identify Characteristics of Syntax Errors Identify the characteristics of syntax errors. Choose all that apply.

programmer did not follow the program language conventions may be highlighted while writing the program can be caused by mistyping or misspelling while writing the program

Identify Typical Syntax Errors What are the likely causes of syntax errors? Choose all that apply

reversed or missing parentheses, brackets, or quotation marks spaces where they should not be command words that are misspelled or missing required capitalization

Recognize the Common Type of Programming Error Looking at the example of the programming error to the right, identify the type of error. https://media.edgenuity.com/contentengine/frames/65d12864-9783-41d5-8499-6988bc5c0d24/3701-14-07-35-07.png

syntax error

Recognize the Common Type of Programming Error Looking at the example of the programming error to the right, identify the type of error. https://media.edgenuity.com/contentengine/frames/79d0ac82-f534-433f-b848-e11f6573ac06/3701-14-07-35-06.png

syntax error

Select Types of Computer-Programming Errors Which of the following are the three most common types of programming errors?

syntax, run-time, and logic errors

Identify Reasons to Release a Beta Version Which of the following are reasons to release a Beta version of a computer program? Choose all that apply.

to allow Beta testers to use the program to discover any errors and report bugs that need to be fixed to provide one more method to uncover program errors that require fixes


Related study sets

Chapter 28: An Interdependent World

View Set

Intro to Supply Chain Management Chapter 12: SCM in the Service Industry

View Set

Community, Culture and Cultural Assessment in Nursing Care

View Set

Nur100 Quiz #4 Fundamentals - Chapter 44 Pain Management

View Set

Information Technology / Study Guide

View Set