Tag: testing

Questions Related to testing

Which of the following is a major task of test planning?

  1. Determining the test approach.

  2. Preparing test specifications.

  3. Evaluating exit criteria and reporting.

  4. Measuring and analyzing results.


Correct Option: A
Explanation:

To answer this question, the user needs to understand the basic concepts of software testing. Test planning is a crucial stage in software testing, where a comprehensive approach is developed to ensure that the software meets the requirements and is free from defects.

Now, let's go through each option and explain why it is right or wrong:

A. Determining the test approach: This option is correct. Determining the test approach is a major task in test planning. The test approach includes identifying the scope of testing, selecting the right test techniques, and developing a comprehensive test strategy that guides the testing process.

B. Preparing test specifications: This option is incorrect. Preparing test specifications is an important task in test execution, but it is not a major task in test planning. Test specifications are developed based on the test strategy and approach that is defined in the test plan.

C. Evaluating exit criteria and reporting: This option is incorrect. Evaluating exit criteria and reporting are critical tasks in test closure, where the results of the testing are analyzed to determine if the software is ready for release. It is not a major task in test planning.

D. Measuring and analyzing results: This option is incorrect. Measuring and analyzing results are tasks that are performed during the test execution and test closure stages. It is not a major task in test planning.

Therefore, the correct answer is:

The Answer is: A. Determining the test approach.

  1. Error condition hiding another error condition

  2. Creating a test case which does not reveal a fault

  3. Masking a fault by developer

  4. Masking a fault by a tester


Correct Option: A
  1. Usability testing

  2. Security testing

  3. Performance testing

  4. Statement and branch testing


Correct Option: D
Explanation:

To answer this question, the user needs to be familiar with the different types of testing techniques used during software testing.

Option A: Usability testing is a type of testing that ensures the software is user-friendly and intuitive to use. This type of testing is usually performed during the user acceptance testing (UAT) phase of testing and is not used during the component testing phase. Therefore, option A is not the correct answer.

Option B: Security testing is a type of testing that ensures the software is secure and free from vulnerabilities. This type of testing is usually performed during the system testing phase and not used during the component testing phase. Therefore, option B is not the correct answer.

Option C: Performance testing is a type of testing that ensures the software's performance meets the expected requirements. This type of testing is usually performed during the system testing phase and not used during the component testing phase. Therefore, option C is not the correct answer.

Option D: Statement and branch testing is a type of testing that ensures each statement and branch of the code is executed at least once. This type of testing is performed during the component testing phase to ensure that the code is working as intended. Therefore, option D is the correct answer.

Therefore, the answer is: D. Statement and branch testing.

  1. A measure of test coverage criteria is the percentage of user requirements covered.

  2. Test coverage criteria can be measured in terms of items exercised by a test suite.

  3. A measure of test coverage criteria is the percentage of faults found.

  4. Test coverage criteria are often used when specifying test completion criteria.


Correct Option: B
  1. find as many faults as possible.

  2. test high risk areas.

  3. obtain good test coverage.

  4. test whatever is easiest to test.


Correct Option: B

Given the following sets of test management terms (v-z), and activity descriptions (1-5), which one of the following best pairs the two sets? v ? test control w ? test monitoring x - test estimation y - incident management z - configuration control 1 - calculation of required test resources 2 - maintenance of record of test results 3 - re-allocation of resources when tests overrun 4 - report on deviation from test plan 5 - tracking of anomalous test results

  1. v-3,w-2,x-1,y-5,z-4

  2. v-2,w-5,x-1,y-4,z-3

  3. v-3,w-4,x-1,y-5,z-2

  4. v-2,w-1,x-4,y-3,z-5


Correct Option: C

The oracle assumption:

  1. is that there is some existing system against which test output may be checked.

  2. is that the tester can routinely identify the correct outcome of a test.

  3. is that the tester knows everything about the software under test.

  4. is that the tests are reviewed by experienced testers.


Correct Option: B
  1. Statement testing

  2. Path testing

  3. Data flow testing

  4. State transition testing


Correct Option: D
  1. i, iii. and iv. are more for developers

  2. ii. and iv. are more for developers

  3. ii, iii. and iv. are more for developers

  4. ii. and iii. are more for developers


Correct Option: B
Explanation:

To answer this question, the user needs to know the purpose of each tool and who typically uses them.

i) Performance testing tools are primarily used by developers to evaluate the performance of their code or application under different conditions. These tools help developers identify and optimize performance bottlenecks.

ii) Coverage measurement tools are used to measure how much of the codebase is covered by automated tests. This information helps developers identify areas that need more testing and ensure that their code is thoroughly tested.

iii) Test comparators are tools that compare the expected output of a test to the actual output. These tools help developers identify errors in their code and ensure that the code is functioning as expected.

iv) Dynamic analysis tools are used to analyze running code and identify issues such as memory leaks, security vulnerabilities, and other runtime errors. These tools are often used by developers to improve the quality and security of their code.

v) Incident management tools are used to manage and track issues that arise in an application or software. While developers may use these tools to track issues related to their code, they are generally used by project managers, support teams, and other non-developer roles.

Based on the above information, we can conclude that:

A. i, iii. and iv. are more for developers - This is incorrect as option i is correct, but options iii and iv are not completely correct as test comparators and dynamic analysis tools are also used by testers and quality assurance teams.

B. ii. and iv. are more for developers - This is partially correct as coverage measurement tools and dynamic analysis tools are more commonly used by developers.

C. ii, iii. and iv. are more for developers - This is partially correct as coverage measurement tools, test comparators, and dynamic analysis tools are more commonly used by developers.

D. ii. and iii. are more for developers - This is partially correct as coverage measurement tools and test comparators are more commonly used by developers.

Therefore, the correct answer is:

The Answer is: B. ii. and iv. are more for developers.