Types of Errors Answers

12 verified answers1 views
1
Free Preview

Which of the following can cause a run-time error?

A
A programmer anticipated a positive whole number, and the user input a negative decimal value.
B
A programmer anticipated text data, and the user input text data.
C
A programmer anticipated numeric data, and the user input numeric data.
D
A variable was not defined because of a typographical error in the definition of that variable.
4

Programming errors can result in a number of different conditions. Choose all that apply.

A
The program will halt execution.
B
An error message will be displayed.
C
Incorrect results will occur.
D
Code will run faster.
5

Question text not available

Answers:
are due to a mistake in the program; they do not cause the program to stop running, but they do produce unintended results.:Logic errors
are due to mistakes in the execution of commands; they cause the running of the program to halt.:Run-time errors
are due to misuse of the conventions of the programming language.:Syntax errors
6

Using the drop-down menus, complete these sentences defining the three common types of programming errors.✔ Logic errorsRun-time errorsSyntax errorsCommand errors are due to a mistake in the program; they do not cause the program to stop running, but they do produce unintended results.

Answers:
are due to a mistake in the program; they do not cause the program to stop running, but they do produce unintended results.:Logic errors
are due to mistakes in the execution of commands; they cause the running of the program to halt.:Run-time errors
are due to misuse of the conventions of the programming language.:Syntax errors
7

Identify the characteristics of syntax errors. Choose all that apply.

A
programmer did not follow the program language conventions
B
may be highlighted while writing the program
C
can be caused by mistyping or misspelling while writing the program
D
does not cause an error message
10

Which of the following are causes of a run-time error. Choose all that apply.

A
A user enters a numeric value when a text value was expected.
B
A user enters text and numeric values.
C
A user enters a text value when a numeric value was expected.
D
A user enters a negative number when a positive number was expected.
11

Which of the following are recommended ways to address run-time errors? Choose all that apply.

A
Delete the suspect lines of code and issue the program without that function.
B
Add error routines that allow the program to execute fully even when unanticipated data is entered.
C
Create error messages to alert the user to an error in data entry.
D
Create controls in the program that ensure the input of proper data.
12

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

A
to allow Beta testers to use the program to discover any errors and report bugs that need to be fixed
B
to retain contractors to input data
C
to provide one more method to uncover program errors that require fixes
D
to make available price-discounted versions of the program

Did you find these answers helpful?