Question: ASSIGNMENT SOFTWARE TESTING CIS 421 5 points each! S 1. Given the following decision table: Inspect given test cases and expected results and EXPLAIN whether
ASSIGNMENT SOFTWARE TESTING CIS 421





5 points each! S 1. Given the following decision table: Inspect given test cases and expected results and EXPLAIN whether they are valid or invalid. Rule 1 Rule2 Rule3 Rule4 A. 23 year old in insurance class A Condition Premium is 90 and excess is 2500. Age 50yrs B.51 year old in insurance class C 29yrs 50yrs Premium is 70 and excess is 500. Insurance A A or B B,C Cor D Class or D C. 31 year old in insurance class B Actions Premium is 90 and excess is 2500. Premium 100TL 90TL 70TL 70TL D. 43 year old in insurance class C Excess 2500T 2500T 500T 1000T Premium is 90 and excess is 1000 L L L L 2. Given a person's age should be between 1 to 99. Using BVA(Boundary Value Analysis) and equivalence partition value analysis create a table of all invalid and valid boundaries and partitions. 3. Consider the following list of test process activities: Sort these activities with respect to their logical sequence? I Analysis and design IV Planning and control Il Test closure activities V Implementation and execution III Evaluating exit criteria and reporting 4. Inspect the following statements for the given code, explain whether they are correct or not. IF AMB THEN A. 1 test for statement coverage, 3 for C=A-B branch coverage ELSE B. 2 tests for statement coverage, 2 for C=A+B branch coverage ENDIF C. 2 tests for statement coverage. 3 for Read D branch coverage IF C = D Then D. 3 tests for statement coverage, 2 for Print "Error" branch Coverage ENDIE 5. Write down all the baselines with respect to the top-down integration, bottom-up testing approach: (4pts) A B D E F G J F2 239 L N Yo Ya P Page 2 of 4 6. How many test cases are necessary to cover all the possible sequences of statements (paths) for the following program fragment? Assume that the two conditions are independent of each other: if (Condition 1) then statement 1 else statement 2 if (Condition 2) then statement 3 7. Explain the difference between bug, defect, incident, fault, failure, error through stating an example for each of them. 8. A university computer system allows students an allocation of disc space depending on their projects. If they have used all their allotted space, they are only allowed restricted access, such as deleting files, not to create them. This is assuming they have logged on with a valid username and password. Specify the input and output conditions? Valid username, Login accepted, valid password, restricted access, Account in credit Input conditions Output conditions 9. For the question 8 above using either 'T' for true En for false determine the input combinations and the expected output conditions for each combination of input conditions. 10. If the pseudo code below were a programming language, how many tests are required to achieve 100% statement coverage? Read A Read B IF A 0 THEN IF A= 21 THEN Print "Key" ENDIF ENDIF Cyclomatic complexity: Statement coverage: Branch coverage: 12. For the given flow chart calculate branch, statement coverage and cyclomatic complexity. na 7 yes no 10 YRE 12 13 na 15 16 17 13. In the software development life cycle name the type of main tests used and who is doing these testing. Sort the tests from the start of the software development to the completion of the software. 14. A switch closes itself when the temperature is lower than 18 and the switch is back on when it is more than 21. Identify all equivalence values for this statement. 15. Given the following code, calculate statement and branch coverage. IF A>B THEN C= A-B ELSE C= A + B ENDIF Read D IF C=D Then Print "Error" ENDIF 16. A thermometer measures temperature in whole degrees only. If the temperature falls below 18 degrees, the heating is switched off. It is switched on again when the temperature reaches 21 degrees. What are the best values in degrees for boundary value analysis? 17. According to the Incident Lifecycle specify the Tester Tasks and Developer Tasks steps to reproduce a fault test fault or system fault external factors that influence the symptoms root cause of the problem how to repair (without introducing new problems) changes debugged and properly component tested is the fault fixed? 18. Explain the stages of software development life cycle. 19. Fill in the blanks with proper software testing terms. the process of evaluating a system or component to determine whether the products of the given development phase satisfy the conditions imposed at the start of that phase. determination of the correctness of the products of software development with respect to the user needs and requirements. the process of exercising software to verify that it satisfies specified requirements and to detect faults is the Lowest level, tested in isolation, most thorough look at detail such as error handling and interfaces usually done by programmer also known as unit, module, program testing 20. Explain the main differences between conventional testing approaches and modern testing approaches
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
