0% found this document useful (0 votes)
11 views4 pages

Print

Uploaded by

Sabin Khadka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views4 pages

Print

Uploaded by

Sabin Khadka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

### Sample Questions and Answers

#### 1. **Question:** What is the main purpose of testing?


**Answer:**
The main purpose of testing is to evaluate a system or its components with the intent to find
whether it satisfies the specified requirements or to identify differences between expected and
actual results. Testing helps ensure that the software product is of high quality and reduces
the risk of software failure in operation.

#### 2. **Question:** Define the difference between verification and validation in software
testing.
**Answer:**
- **Verification** is the process of evaluating work products of a development phase to
ensure that they meet the specified requirements for that phase. It's about building the product
right.
- **Validation** is the process of evaluating the final product to check whether it meets the
business needs and requirements. It's about building the right product.

#### 3. **Question:** What is a test case, and what are its key components?
**Answer:**
A test case is a set of conditions or variables used to determine whether a system or one of its
features is working as intended. Key components of a test case include:
- Test case ID
- Test description
- Preconditions
- Test steps
- Expected result
- Actual result
- Postconditions

#### 4. **Question:** Explain the concept of "test coverage" and how it is measured.
**Answer:**
Test coverage is a metric used to measure the amount of testing performed by a set of tests. It
can be measured in various ways, such as code coverage, requirements coverage, and
functional coverage. For example, code coverage measures the percentage of code executed
by the test suite, often reported as statements, branches, or paths covered.

#### 5. **Question:** Describe the difference between white-box testing and black-box
testing.
**Answer:**
- **White-box testing** (or clear-box testing) involves testing the internal structures or
workings of an application, as opposed to its functionality. It requires knowledge of the
internal code, algorithms, and structure of the system.
- **Black-box testing** (or functional testing) involves testing the system's functionality
without any knowledge of the internal code or structure. It focuses on input and output.

#### 6. **Question:** What are the main levels of testing?


**Answer:**
The main levels of testing are:
- **Unit Testing:** Testing individual components or pieces of code.
- **Integration Testing:** Testing the interaction between integrated units or components.
- **System Testing:** Testing the complete and integrated software system to evaluate the
system's compliance with its specified requirements.
- **Acceptance Testing:** Testing conducted to determine whether a system satisfies the
acceptance criteria and to enable the customer to determine whether to accept the system.

#### 7. **Question:** What is regression testing, and why is it important?


**Answer:**
Regression testing involves re-running previously completed tests to ensure that changes such
as bug fixes or new features have not adversely affected the existing functionality. It is
important because it helps ensure that the new code changes have not introduced new defects
into the software.

#### 8. **Question:** What is a test plan, and what are its main components?
**Answer:**
A test plan is a document detailing the objectives, resources, schedule, and scope of testing
activities. It serves as a blueprint for testing. Main components of a test plan include:
- Test plan identifier
- Introduction
- Test items
- Features to be tested
- Features not to be tested
- Test approach
- Item pass/fail criteria
- Test deliverables
- Testing tasks
- Environmental needs
- Responsibilities
- Staffing and training needs
- Schedule
- Risks and contingencies
- Approvals

#### 9. **Question:** Explain the concept of "risk-based testing."


**Answer:**
Risk-based testing is a testing approach where tests are prioritized based on the risk of failure
and its impact on the business. Higher-risk areas of the software are tested more thoroughly
than lower-risk areas. This helps ensure that the most critical issues are identified and
addressed early in the testing process.

#### 10. **Question:** What is exploratory testing, and when is it most useful?
**Answer:**
Exploratory testing is an informal testing approach where testers actively explore the
software, learn about it, and simultaneously design and execute tests. It is most useful in
situations where requirements are incomplete, ambiguous, or rapidly changing, or when there
is limited time for formal testing.

You might also like