The process of testing the logic of programs to ensure they give correct result is…