2
AssignmentMultiple Select

Readable Code

Question 2 • VA-Information Technology Fundamentals B

Which of the following responses to an error alert are appropriate? Choose all that apply.

Answer
A
Run the program with test data to verify the results and trace the source of the problem.
B
Verify that variable names are spelled correctly.
C
Search for language that does not follow the programming language conventions.
D
Read the alert and see if the problem happens again before taking any action.

Explanation

A is appropriate because running test data can help confirm the error and trace where it originates. Checking variable-name spelling and looking for code that breaks the language’s conventions are also useful ways to find programming errors. D is not appropriate: after reading an error alert, you should investigate and correct the problem rather than simply wait to see if it happens again.

AI-written and checked against the verified answer.