Tag: testing

Questions Related to testing

  1. To help the developer to compare differences between files and databases.

  2. To reduce the quantity of component tests needed to be run.

  3. To make it easier for developers to peer-test each other’s code.

  4. To simplify running unit tests when related components are not available yet.


Correct Option: D
  1. To decide if the system is ready for detailed and further testing.

  2. To determine how the existing system may be affected by changes.

  3. To make use of every possible input condition as a test case.

  4. To determine if a system can function correctly with invalid inputs.


Correct Option: C
  1. Initiation, Preparation, Informal Review Meeting, Status, Rework, and Follow up.

  2. Planning, Preparation, Technical Review, Rework, and Closure.

  3. Preparation, Inspection, Rework, Closure, and Follow up.

  4. Planning, Kick off, Individual Preparation, Review Meeting, Rework, and Follow up.


Correct Option: D
  1. A test environment description and test instructions

  2. A set of inputs, execution preconditions, and expected outcomes

  3. A test plan, test inputs, and logging instructions.

  4. Execution instructions and a function description to determine correct outcome


Correct Option: B
Explanation:

To answer this question, the user needs to know what a test case is and its elements. A test case is a set of steps or conditions that are used to test a specific aspect of a software program. It includes a set of inputs, execution preconditions, and expected outcomes.

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

A. A test environment description and test instructions: This option is incorrect. While a test case may include test instructions, it is not limited to only that. A test environment description is not an essential element of a test case.

B. A set of inputs, execution preconditions, and expected outcomes: This option is correct. A test case includes a set of inputs, execution preconditions, and expected outcomes. Inputs are the data that is entered into the system as part of the test case, execution preconditions are the conditions that must be met before the test case can be run, and expected outcomes are the results that are expected from the test case.

C. A test plan, test inputs, and logging instructions: This option is incorrect. A test case is a part of a test plan, but it is not the test plan itself. The test inputs are an essential element of a test case, but logging instructions are not necessary.

D. Execution instructions and a function description to determine correct outcome: This option is incorrect. While execution instructions are a part of a test case, they are not the only element. A function description to determine the correct outcome is not a necessary part of a test case.

Therefore, the answer is: B. A set of inputs, execution preconditions, and expected outcomes.

  1. Agile testing methodology

  2. Effective use of tools

  3. Configuration management

  4. Requirements traceability matrix


Correct Option: C

Which of the following are good candidates for manual static testing?

  1. Requirement specifications, test plan, code, memory leaks

  2. Requirement specifications, test cases, user guides.

  3. Requirement specifications, user guides, performance

  4. Requirement specifications, website, code, use cases


Correct Option: B
Explanation:

To answer this question, the user needs to understand the concept of static testing. Static testing is a form of software testing that involves reviewing documentation or code without executing the actual program. It is done manually and aims to find defects early in the development process.

Option A includes code and memory leaks, which are not good candidates for manual static testing. Code is typically tested through dynamic testing, while detecting memory leaks requires the use of specialized tools.

Option B is a good candidate for manual static testing. Requirement specifications, test cases, and user guides can all be reviewed manually to identify defects and improve the quality of the software.

Option C includes performance, which is not well-suited for manual static testing. Performance testing is typically done dynamically and requires the use of specialized tools to measure and analyze the software's behavior under different conditions.

Option D includes a website, which is not a good candidate for manual static testing. Websites are typically tested through dynamic testing, using specialized tools to simulate user interactions and test the website's functionality.

Therefore, the correct answer is:

The Answer is: B

  1. Static analysis tools can change the code to reduce complexity.

  2. Static analysis tools are intended to support developers only

  3. Static analysis tools aid in understanding of code structure and dependencies

  4. Static analysis tools cannot be used to enforce coding standards.


Correct Option: C
  1. Testing ensures that the system under test will not error out in a production environment

  2. Testing identifies defects which ensures a successful product will be released to market

  3. Testing increases the quality of a software system by avoiding defects in the system under test.

  4. Testing through verification and validation of functionality identifies defects in the system under test.


Correct Option: D