INF 43 Quiz 6

Ace your homework & exams now with Quizwiz!

Which one of the following statements is not true about testing? One goal of testing is to prove that the system has no bugs. Test cases should be chosen systematically, to cover a wide range of possible inputs. One goal of testing is to improve confidence that the system works correctly. One goal of testing is to find bugs.

One goal of testing is to prove that the system has no bugs

Which of the following is an example of unit testing? Testing a feature of the system from the perspective of a user. Testing the interaction between two classes. Testing the functions of a single class. Testing the usability of an interface based on a heuristic checklist. Analysis of program properties using a static analyzer.

Testing the functions of a single class.

Of which kinds of tests should there be the fewest in the collection of tests for a system? UI/system tests Integration/service tests Unit tests There should be an equal amount of each kind of test

UI/system tests

Please describe a situation in which a bug can be present in the code, but does not cause a failure.

A sorting algorithm is the best example in my experience. I would write a bubble sort that is supposedly sorting an array of integers in ascending order. However, there is at least one element in the array is not in the ascending order and the function never causes a failure. My best guess is that it might have skipped an element or two when sorting the array.

According to the IEEE definitions, match the terms on the left with the examples on the right. Mistake Fault/Bug Error Failure A line of code that should have contained ">=" actually contains ">". The output of the program reveals an incorrect value. During execution of the program, a variable's value is incorrect. A developer forget that negative numbers need to be handled from the input.

Mistake - A developer forget that negative numbers need to be handled from the input. Fault/Bug - a line of code that should have contained ">=" actually contains ">". Error - During execution of the program, a variable s value is incorrect. Failure - The output of the program reveals an incorrect value.

When testing, when do we achieve 100% confidence that the program contains no bugs? When all planned test activities have been performed. When all specifications have been tested. When the "sweet spot" has been reached for amount of testing and confidence in correctness. When we achieve white-box coverage. Never. When we exhaust our testing budget.

Never.

Which of the following is NOT an example of a test oracle: A calculator, or separate computing device. The actual output of the software implementation that you are testing. An older, legacy program that computed the same function. Human intuition, knowledge, judgement, or experience.

The actual output of the software implementation that you are testing.

User acceptance testing is an example of: Verification Validation

Validation

Test cases, informed by the specifications with an input and an expected output, is an example of: Verification Validation

Verification


Related study sets

Vocabulary 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,&17

View Set

Level 22: Income Tax in Real Estate - Chapter 2: Capital Gains and Tax Shelters

View Set

Use Davis Advantage / Edge - Osteoporosis

View Set

Chapter 47: Nursing Care of the Child With an Alteration in Immunity/Immunologic Disorder

View Set

exam 1: therapeutic communication

View Set