Computer Knowledge

Software Testing and Quality Control

2,292 Questions

Software testing and quality control questions cover testing methodologies, unit testing, and defect management. These concepts are crucial for the computer knowledge sections of competitive exams. Practice these questions to understand verification and validation processes thoroughly.

Quality control typesUnit testing purposeSoftware vulnerability testingTest planning tasksLoop testing criteriaTest harness functions

Software Testing and Quality Control Questions

Multiple choice technology testing
  1. Equivalence Partitioning

  2. Boundary Value Analysis

  3. Error Guessing

  4. State Transition Testing

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Boundary Value Analysis is a black box testing technique that focuses on testing values at the boundaries (edges) of input ranges, such as minimum and maximum values. Many defects occur at boundaries, making them critical test points. Equivalence partitioning divides inputs into classes, error guessing uses intuition, and state transition testing analyzes system states.

Multiple choice technology testing
  1. Manual Testing

  2. Automation Testing

  3. Functional Testing

  4. Performance testing

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Ad-hoc testing is informal, unstructured testing without formal test documentation or plans. It is inherently manual as it relies on tester intuition, exploration, and creativity to find defects. While automation can support testing, ad-hoc testing by definition is an exploratory manual approach.

Multiple choice technology testing
  1. Regression Testing

  2. Re Testing

  3. Ad-Hoc testing

  4. Sanity Testing

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The question describes executing the same test case with different input values, which is commonly used to verify functionality across various scenarios. Re-testing refers to running tests again after fixes, while regression testing checks that changes haven't broken existing functionality.

Multiple choice technology testing
  1. Usability Testing

  2. Security Testing

  3. Black Box Testing

  4. All of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Usability testing evaluates how easy and intuitive a user interface is for end users. It's a non-functional testing type that assesses user experience, learnability, and efficiency rather than specific functional requirements.

Multiple choice technology testing
  1. Glass box testing

  2. Closed box testing

  3. Open box testing

  4. Clear box testing

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

White box testing requires knowledge of internal code structure. Glass box, open box, and clear box all refer to seeing inside the code. 'Closed box' refers to black box testing where internal implementation is hidden.

Multiple choice technology testing
  1. Black Box Testing

  2. White Box Testing

  3. Both A & B

  4. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Boundary value analysis tests at the edges of input ranges (minimum, maximum, just inside/outside boundaries). This technique focuses on inputs and outputs without examining internal code, making it a black box testing method.

Multiple choice technology testing
  1. i-iv are static, v-vi are dynamic

  2. iii and vi are static, i, ii, iv and v are dynamic.

  3. ii, iii and vi are static, i, iv and v are dynamic.

  4. vi is static, i-v are dynamic

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Static techniques analyze code without executing it (Data Flow Analysis and Inspections), while dynamic techniques require running the system with test inputs. Equivalence Partitioning, Use Case Testing, Exploratory Testing, and Decision Testing all involve executing the system, making them dynamic. Static analysis happens before runtime, dynamic testing happens during runtime.

Multiple choice technology testing
  1. Because they share the aim of identifying defects and find the same types of defect.

  2. Because they have different aims but find the same types of defect.

  3. Because they have different aims and differ in the types of defect they find.

  4. Because they share the aim of identifying defects but differ in the types of defect they find.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Static and dynamic testing both aim to improve quality by identifying defects, but they are complementary because static testing evaluates code without execution to find source errors, whereas dynamic testing executes code to identify runtime behaviors and functional failures.

Multiple choice technology testing
  1. Missing Statements

  2. Unused Branches

  3. Dead Code

  4. Unused Statement

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Statement Coverage only verifies that each statement has been executed at least once. It does not detect missing statements that should exist but were never written - this requires requirements or specification review. Unused branches, dead code, and unused statements are all present in the code and would be detected by statement coverage (or lack thereof). Missing code is fundamentally invisible to coverage tools.

Multiple choice technology testing
  1. State transition testing

  2. LCSAJ (Linear Code Sequence and Jump)

  3. syntax testing

  4. boundary value analysis

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Black box testing techniques test software without examining internal code. LCSAJ (Linear Code Sequence and Jump) requires analyzing code structure to identify linear sequences and jump points, making it a white-box technique. State transition testing, syntax testing, and boundary value analysis all focus on external behavior without needing to see the code.

Multiple choice technology testing
  1. Determining the test approach.

  2. Preparing test specifications.

  3. Evaluating exit criteria and reporting.

  4. Measuring and analyzing results.

Reveal answer Fill a bubble to check yourself
A Correct answer
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.

Multiple choice technology testing
  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

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Fault masking occurs when one defect or error condition prevents another defect from being detected or observed during execution. Other options refer to standard tester/developer activities or tests failing to run, which do not define the concept of one fault hiding another.

Multiple choice technology testing
  1. Usability testing

  2. Security testing

  3. Performance testing

  4. Statement and branch testing

Reveal answer Fill a bubble to check yourself
D Correct answer
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.

Multiple choice technology 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.

Reveal answer Fill a bubble to check yourself
B Correct answer