12
AssignmentMultiple Choice

Testing and Fixing Code

Question 12 • Introduction to Information Technology - EL3701

How would you test a computer program?

Answer
A
releasing the program and waiting for user input
B
running the program with test data to see if outcomes are as expected
C
seeing how fast the program runs
D
rethinking the logic of the program code

Explanation

Test a program by running it with known test data and checking whether its results match what you expect. This can reveal errors in how the program works. Measuring speed or reconsidering the code may be useful, but neither alone tests whether the program produces correct outcomes.

AI-written and checked against the verified answer.

Previous
Next