Categorize each of the following situations as a compile-time error, run-time error, or logical error.

a. multiplying two numbers when you meant to add them
b. dividing by zero
c. forgetting a semicolon at the end of a programming statement
A compile-time error
d. spelling a word wrong in the output
e. producing inaccurate results
f. typing a { when you should have typed (

a. multiplying two numbers when you meant to add them
A logical error
b. dividing by zero
A run-time error
c. forgetting a semicolon at the end of a programming statement
A compile-time error
d. spelling a word wrong in the output
A logical error
e. producing inaccurate results
A logical error
f. typing a { when you should have typed (
A compile-time error

Computer Science & Information Technology

You might also like to view...

Worksheets can be protected for all of the following reasons EXCEPT:

A) data can be entered into only selected cells. B) formulas for automatically updated cells are protected. C) once protection is set ON, no further changes can be made. D) when saved as a template, all derived worksheets are protected.

Computer Science & Information Technology

Performance monitoring is best used to __________.

a) project the performance of a system that has not yet been built b) evaluate which of several systems to purchase c) decide how to tune a system to increase its performance at a given installation d) determine whether it is worthwhile to upgrade a specific component

Computer Science & Information Technology