Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Explain why each is right or wrong Documentation and testing Unit testing should

ID: 3744954 • Letter: E

Question

Explain why each is right or wrong

Documentation and testing Unit testing should only test common input cases Unit testing is a type of verification The main method of a class should perform extensive unit testing of the class unless it is the class driving the execution of a program All programs/classes should have a README file which clearly describes what the program/class does, how it is implemented, how it is used, whom wrote the code and bug fixes All java classes implementing ADTs should have a main method Unit testing should if possible test all potential inputs Verification gives stronger proof of correctness than validation Unit testing is a form of validation Validation gives stronger proof of correctness than verification

Explanation / Answer

False. Unit test cases will test the each and individual part developed is working fine or not. True. Unit testing is always a verification for the things which we developed are working correctly as developed or not. False. Main method is the one always directs the execution of the program. Based on the main method only the program execution flow will direct. True. If we have readme file for every program/class then it will easily understandable for the other developers and the users what is it about and what is it inside. True. Main method is the important one in the java programs. Every execution will start from the main method only. True. If it tests all the potential inputs then we can find the exact working of the code implemented. False. Verification is for to check the quality and design but it does not tell it is usable or not where as validation tells that it is usable and as per customer requirement which is stronger proof. True. Because in unit testing we give inputs and checks the usage of the code which it is working as per the development or not. True. Validation is the process of checking the usage as per the requirement whereas verification is to check the design and quality but it dosn't not tell the usage. So validation is stornger proof.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote