Monday, 1 August 2016

Week 1 Assignment Solution

This post provides solution to the first assignment of the online course Software Testing offered by MHRD. The answers to each questions are marked in red.

Assignment 1
  1. Before testing starts,  a program is known to contain 1000 bugs. During testing of the program, four testing techniques are used in succession. Each testing technique is effective in detecting  60% of  the bugs present at the time of starting that testing. Further, there is a 50% chance that a bug fix gives rise to a new bug. Approximately how many bugs would remain after application of the four bug detection techniques and correction of the detected bugs?
    1. 150
    2. 200
    3. 250
    4. 300
Explanation: Because of the first testing technique, number of bugs that remain is (1 - 0.6)*1000(bugs undetected) + 0.5*0.6*1000(bug triggered because of the bug fixing technique) i.e. 1000*(0.4 + 0.3) = 0.7 * 1000.
So, after four similar testing techniques, the number of bugs that remain is approximately (0.7*0.7*0.7*0.7)*1000 ~ 250 bugs.

  1. Which one of the following statements is true about program verification?
    1. Checks that we are building the right system
    2. Checks that we are building the system right
    3. Performed by an independent test team
    4. Ensures that the developed product is what the user really wants
  1. During which phase of the V model of software development are the integration test cases designed?
    1. Requirements specification
    2. High-level design
    3. Detailed design
    4. Coding

  1. Unit  testing of a software module does NOT require testing which one of the following?
  1. Whether coding standards have been followed.
  2. Whether the functions of the module are working as per design.
  3. Whether all arithmetic statements of the module are working properly.
  4. Whether all control statements are working properly.

  1. Which one of the following techniques is not a software verification technique?
  1. Review
  2. Simulation
  3. Unit testing
  4. Beta testing

  1. Unit testing is carried out during which one of the following phases of the waterfall model?
  1. Implementation phase
  2. Testing phase
  3. Maintenance phase
  4. Design phase

  1. Which one of the following is NOT a black-box testing technique?
  1. Decision table testing
  2. Combinatorial testing
  3. Mutation testing
  4. All pair testing

  1. When in the waterfall model of software development, is code review carried out?
  1. After coding is complete and before the code is compiled.
  2. After coding is complete and after the code is compiled.
  3. After unit testing is over
  4. After system testing is over

  1. Which one of the following correctly characterizes the negative test cases?
  1. Invalid test cases
  2. Test cases not containing permissible input values
  3. Failed test cases
  4. Test cases that cannot cause any failures

  1. Which one of the following statements is not an objective of software verification?

  1. Ensuring that product development steps are carried out correctly.
  2. Ensuring that the correct product has been developed.
  3. Achieving phase containment of errors.
  4. Ensuring that the outputs produced at a stage conform to the outputs of the previous phase.

You can download the pdf version of the solution here.

Note: Please post any queries regarding the solution in the course forum only.
Share:

14 comments:

  1. Answer 6: Unit testing takes place in testing phase. How come it can be done in implementation phase?
    Answer 9: Option a and b are ambiguous. Not permissible mean invalid cases.

    ReplyDelete
    Replies
    1. Please post any queries regarding the solution in the course forum only.

      Delete
  2. Please explain answer for the first question.

    ReplyDelete
    Replies
    1. Please post any queries regarding the solution in the course forum only.

      Delete
  3. In question 6 how the answer is implementation phase its testing right?

    ReplyDelete
    Replies
    1. Please post any queries regarding the solution in the course forum only.

      Delete
  4. This comment has been removed by the author.

    ReplyDelete
  5. In question 9,a) should be the correct answer as our program should be able to handle invalid test cases too.
    for ex:if we input just 1 value instead of 2,the program should not crash.

    And also i think that b) is subset of a).
    please clarify why a) is not a correct option

    ReplyDelete
    Replies
    1. Please post any queries regarding the solution in the course forum only.

      Delete
  6. Really nice topics you had discussed above. I am much impressed. Thank you for providing this nice information here.

    Software Testing Company

    QA Services

    Game Testing Companies

    Console Game Testing

    ReplyDelete
  7. The information which you have provided is very good. It is very useful who is looking for Game QA services

    ReplyDelete
  8. The information which you have provided is very good. It is very useful who is looking for Game QA services

    ReplyDelete

Contact Me

Name

Email *

Message *

Popular Posts