Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

What are the methods of detecting errors in a program?

Explain the methods of detecting errors in a program.

Answers


Maurice
(a) Desk checking or dry run: This method involves the program code while still on a paper to pick up any conspicuous logic and algorithm errors before you enter the code in the chosen programming language.

(b) Use of Translator: This involves use of programs like compilers or interpreters to detect any syntax errors present in the program code. Modern translators offer suggestions on how to correct the errors.

(c) Test data: This method involves the entry of variations of data. Valid data is entered to observe if the program generates the expected outcome and invalid data is also entered and executed to check if the program hangs or crashes suddenly.
maurice.mutuku answered the question on April 21, 2018 at 08:07

Answer Attachments

Exams With Marking Schemes

Related Questions