This question is based on black-box software testing techniques. 1.A. Write a br
ID: 3808127 • Letter: T
Question
This question is based on black-box software testing techniques.
1.A. Write a brief functional description for the function.
1.B. Generate functional test cases based on the functional description.
1.C. Identify and specify the equivalence partitions and generate equivalence partitioning test cases.
1.D. Generate boundary value analysis test cases.
1.E. Write an actual program to implement the average function in any programming language. Apply the boundary value analysis test cases you’ve suggested in D.
public int average(int offset, intO list) (1) int n-min offset. list.len (2) if (nExplanation / Answer
Ans 1. A --> Function refers to a set of statements that when executed in a given order produces a meaningful operation and generates a desired output.
Functions help programmers to make code re-usable. The functionality of the function can be implemented by calling the function without actually writing the code again and again. The written code is stored in hard disk.
Ans 1.B --> Functional Test Cases can be written based on functional description.
Functioal description - Calculate the average of list of numbers specified by user.
Test Cases -
Ans 1,C --> Boundary value analysis refers to testing the program for the extreme values of the ranges allowed.
Minimum value
Just above the minimum value
A normal value
Just below the maximum value
Maximum value
BVA values considering the integer data types-
Largest negative (32bit) value : -2147483648
Largest positive (32bit) value : 2147483647
Just above the minimum value : -2147483647
Just below the maximum value : 2147483646
Ans 1.D-->
Test ID Description Expected Results Actual Results 1 User enters a list of numbers to calculate average The entered numbers should be stored in the integer array 2 The average of entered numbers is calculated The average of entered numbers should be calculated 3 The negative numbers range check The program should only allow user to input numbers lesser than the maximum range of the integer.Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.