1.
In manual testing, how many tests are required for 100% statement coverage and branch coverage in the following code:
Read X
Read Y
IF X + Y > 10 THEN
Print "Large"
ENDIF
If X > 5 THEN
Print "P Large"
ENDIF
2.
In manual testing, how many tests are required for 100% statement coverage and branch coverage in the following code:
IF X > Y THEN
Z = X - Y
ELSE
Z = X + Y
ENDIF
Read W
IF Z = W Then
Print "Error"
ENDIF
3.
In manual testing, how many tests are required to achieve 100% statement coverage in the following code:
If a = 1 then
Display_messageA;
If b = 2 then
Display_messageB;
Else
Display_messageC;
Else
Display_messageC;
4.
A system is designed to allocate tax as follows:

  • A person has $4000 of salary tax-free.



  •  
  • The next $1500 is taxed at 10%.



  •  
  • The next $28000 is taxed at 22%.



  •  
  • Any further amount is taxed at 40% to the nearest whole dollar.




  •  
  •  


  •  


Which of these is a valid boundary value analysis test case?
5.
According to a review process, match the below 2 set of statements.
 
Review Process Description
a. Inspection 1.Led by author
b. Peer review 2.Undocumented
c. Informal review 3.No management participation
d. Walkthrough 4.Led by a trained moderator or leader
  5.Uses entry-exit criteria

6.
The speedometer of a bike uses 7 colors to show the speed. Each color covers a range of 20 km, with an operating minimum and maximum of 0 and 140 respectively.
Which of the following values is least likely to have been identified when applying the boundary value test design technique?
7.
To pass an online test, a candidate has to score a minimum of 30 points The maximum that he can score is 100 points.
What are the valid equivalence values if the student passes the test?
8.
Consider the following set of statements:
1. Input number of cake
2. Input number of coffee
3. If cake > 0 and coffee > 0 then
4. Input Do you want home delivery (Yes / No)
5. If home delivery = No?
6. Print Serve their order now
7. End if
8. End If


Which of the following test cases will ensure that statement 6 is executed?
9.

  1. Arrange the following statements in an order that best represents test planning:

  2. Determine test approach

  3. Determine required test resources

  4. Determine scope and risks and identify objectives of testing

  5. Implement test policy and/or test strategy

  6. Determine exit criteria

  7. Schedule test analysis and design tasks, test implementation, execution, and evaluation



  8.  
  9.  


  10.  
10.

  1. Arrange the following in an order that best represents a test analysis and design activity:

  2. Identify and prioritize test conditions

  3. Design and prioritize the test

  4. Identify the data used for test procedure

  5. Review the test basis

  6. Evaluate feasibility of test basis

  7. Design the test environment set up and identify any required infrastructure and tools



  8.  
  9.  


  10.