Please answer the four questions below.
1. If you were going to test a method that has one integer input (parameter), which of the following would be a reasonable set of equivalence classes?
A. x < 0; x == 0; x > 0
B. x < 0; x > 0
C. 0 < x < 7; x >= 7
D. -15, 0, 25
2. If we are testing a program that has one input (parameter), a real number, which of following is a reasonable set of equivalence classes?
A. x > 0; x == 0, x < 0
B. x < 0.0, x > 0.0
C. x < -1000000.0, -1000000.0 <= x < 0.0, x == 0.0, 0 < x <= 1000000.0, x > 1000000.0
D. x < -1123, x > 7893
3. If we are testing a program that has one input (parameter), a
real number, and we have chosen the following set of equivalence
classes, which set of test inputs is a minimum for this equivalence
class?
x < 0.0, x == 0.0, x > 0.0
A. -12, 0, 12
B. -123, 123
C. -123.00, 123.00
D. -789.34, 0.0, 123456.789
4. If you were testing a method called Adult that takes one integer parameter for age, and determines if this person is legally an adult (age 18 or older), what set of equivalence classes would be most appropriate?
A. age < 0, age == 0, age > 0
B. age < 18, age >= 18
C. age < 0 [ for errors], 0 < age < 18, age >= 18
Equivalent Class Partitioning is a black box technique (code is not visible to tester) which can be applied to all levels of testing like unit, integration, system, etc. In this technique, you divide the set of test condition into a partition that can be considered the same.
It divides the input data of software into different equivalence data classes.
You can apply this technique, where there is a range in the input field.
1. If you were going to test a method that has one integer input (parameter), which of the following would be a reasonable set of equivalence classes?
A. x < 0; x == 0; x > 0
Since here we can cover positive integer values, negative integer values and zero.
2. If we are testing a program that has one input (parameter), a real number, which of following is a reasonable set of equivalence classes?
A. x > 0; x == 0, x < 0
Here also all real numbers are covered.
3. If we are testing a program that has one input (parameter), a real number, and we have chosen the following set of equivalence classes, which set of test inputs is a minimum for this equivalence class?
D. -789.34, 0.0, 123456.789
A positive real value, negative real number and 0 are covered here.
4. If you were testing a method called Adult that takes one integer parameter for age, and determines if this person is legally an adult (age 18 or older), what set of equivalence classes would be most appropriate?
C. age < 0 [ for errors], 0 < age < 18, age >= 18
Unsuccessful case of negative numbers also should be considered.
Please answer the four questions below. 1. If you were going to test a method that...
java language please. thank you T-Mobile 9:00 AM For this assignment, create a Java class named "MyRectangle3d" Your class must have the following attributes or variables · x (the x coordinate of the rectangle, an integer) * y (the y coordinate of the rectangle, an integer) * length (the length of the rectangle, an integer) * width (the width of the rectangle, an integer) * height (the height of the rectangle, an integer) * color( the color of the rectangle,...
Look at this partial class definition, and then answer questions a - b below: Class Book Private String title Private String author Private String publisher Private Integer copiesSold End Class Write a constructor for this class. The constructor should accept an argument for each of the fields. Write accessor and mutator methods for each field. Look at the following pseudocode class definitions: Class Plant Public Module message() Display "I'm a plant." End Module...
I need java code for the following problem. Lab 7: Methods 1. Write a Java program called Numbers that calls the following methods and displays the returned value: Write a method called cubelt that accepts one integer parameter and returns the value raised to the third power as an integer. o Write a method called randominRange that accepts two integer parameters representing a range. The method returns a random integer in the specified range inclusive. 2. o Write a method...
Can I get some help with these questions please,thank you The marital status distribution of the U.S. male population, age 15 and older, is as shown below. Marital Status Percent never married 31.3 married 56.1 widowed 2.5 divorced/separated 10.1 Suppose that a random sample of 400 U.S. young adult males, 18 to 24 years old, yielded the following frequency distribution. We are interested in whether this age group of males fits the distribution of the U.S. adult population at the...
We have a dataset that has real-valued labels and one feature. The dataset contains three training examples. (ro is the intercept.) 10.40.21 1 0.80.86 1-1.20.35 In all calculation below. keep four decimal digits for all intermediate results and use those Part 1: Stochastic Gradient Descent (12%) Perform linear regression with stochastic gradient descent algorithm for three iterations and rounded results for next-step calculation. fill in the blanks in the following tables. The hypothesis i For simplicity, let's process the three...
[15 marks] Suppose that students enrolled in one course are required to take four tests, and each student’s final grade for this course is the average of his/her grades of these four tests. This question asks you to write a program that can be used to compute the lowest final grade, highest final grade and the average final grade. General Requirements: Use a5q1.c as the name of your C source code file. We will use the following command on bluenose...
Discrete math for computing please show clear work 6 numbers and test whether magnitude, giving an Write an algorithm to input a list of numbers and the numbers are in increasing order of magnitude appropriate message as output. The algorithm shoul designed so that testing stops as soon as the answer isk Modify the algorithm in Example 1.3.1 so that it gives + output when n=0 is input. latae a number line so that it gives the correct Example 1.3.1...
Assignment Specifications We are going to use the Monte Carlo Method to determine the probability of scoring outcomes of a single turn in a game called Pig. Your Task For this assignment you will simulate a given number of hold?at?N turns of a game called Pig, and report the estimated probabilities of the possible scoring outcomes. You are NOT implementing the game of Pig, only a single turn of this game. The value of N will be acquired via user...
Hi Guys, Need help on python questions Question 3. At the Singapore Zoo, each adult ticket costs $ 39, each child (>= 3 years old, <= 12 years old) ticket costs $26.50 and each young child (< 3 years old) ticket is free. Write a program to ask the user to enter the number of tickets for each type and then display the ticket information. Your code must work exactly like the following example (the text in bold indicates the...
This is a standard C++ programming assignment using a command line g++ compiler or the embedded one in zyBooks. No GUI forms and no Visual Studio. No external files and no databases are used. There is only one object-oriented program to complete in this assignment. All code should be saved in a file named ExamScoresUpdate.cpp, which is the only file to submit for grading. No .h files used. The .cpp file contains main() and two classes, ExamScores and DataCollector. There...