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. Statement testing

  2. Path testing

  3. Data flow testing

  4. State transition testing

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

To answer this question, the user needs to know about white box testing techniques.

White box testing techniques are also known as structural testing techniques. These techniques are used to test the internal structure of the software system. In white box testing, the tester has knowledge of the internal workings of the system being tested.

Now, let's go through each option to determine which one is NOT a white box technique:

A. Statement testing: This is a white box testing technique where each statement in the source code is executed at least once. The purpose of this testing is to ensure that every statement in the code has been executed and tested.

B. Path testing: This is a white box testing technique where all possible paths through the software are tested. The purpose of this testing is to ensure that all logical paths through the software have been executed and tested.

C. Data flow testing: This is a white box testing technique where the flow of data through the software is tested. The purpose of this testing is to ensure that data is correctly input, processed, and output by the software.

D. State transition testing: This is a black box testing technique that tests the response of the system to different input conditions. The purpose of this testing is to ensure that the system responds correctly to different input conditions.

Therefore, option D is NOT a white box technique. It is a black box technique.

The Answer is: D

Multiple choice technology testing
  1. find as many faults as possible.

  2. test high risk areas.

  3. obtain good test coverage.

  4. test whatever is easiest to test.

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

When prioritizing testing, the most important objective is to test high-risk areas first. This maximizes value by focusing on where failures would cause the most damage. Finding many faults in low-risk areas is less valuable than finding critical faults in high-risk functionality.

Multiple choice technology testing
  1. behavioral testing

  2. black-box testing

  3. grey-box testing

  4. white-box testing

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

White-box testing (also called glass-box or structural testing) examines the internal structure, code, and logic of a software module. Unlike black-box testing which focuses on inputs and outputs, white-box testing requires knowledge of the internal implementation to design test cases that cover paths, branches, and statements. Behavioral testing is a broader concept unrelated to internal logic examination.

Multiple choice technology testing
  1. Before FPQ

  2. After FPQ

  3. Before HLE

  4. After HLE

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

Requirement defects are raised after FPQ (likely Final Product Qualification or Formal Product Qualification). Before FPQ, requirements are still being clarified and finalized; raising defects during this stage would be premature as the requirements themselves may change. After FPQ, requirements are baselined, and any deviations from agreed requirements become legitimate defects. HLE (likely Higher Level Examination or High-Level Engineering) typically occurs earlier in the lifecycle.

Multiple choice technology testing
  1. Boundary value analysis

  2. Equivalence Partioning

  3. State transition

  4. Cause effect graph

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

Boundary Value Analysis (BVA) is the technique described. BVA complements Equivalence Partitioning by focusing test cases at the edges of equivalence partitions (minimum, minimum-1, maximum, maximum+1), where defects are most likely due to off-by-one errors. Equivalence Partitioning divides inputs into classes but doesn't specifically target edges. State transition and cause-effect graphs address different testing concerns.

Multiple choice technology
  1. By using Run options.

  2. By Check model in Tool menu.

  3. By using some Functions

  4. By validate model

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

Cognos models are tested through the 'Check Model' option in the Tools menu. This validates the model's structure, verifies relationships between query items, checks for inconsistencies, and ensures the model is ready for report generation before it's published.

Multiple choice technology testing
  1. Acceptance testing performed by the customer at the Tester's site

  2. Acceptance testing performed by the customer at the developer's site

  3. Acceptance testing performed by the customer in Live environment

  4. Acceptance testing performed by the customer in client environment

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

Alpha testing is an internal acceptance testing phase conducted by the customer or end-users specifically at the developer's site or in a controlled environment. In contrast, beta testing is conducted by users in their own external or live environments.

Multiple choice technology testing
  1. Performance and Functionality

  2. Functionality and usability

  3. Usability and Performance

  4. None of the above

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

In web application engineering, usability and performance (596823) are highlighted as the most critical aspects because users immediately abandon slow or confusing sites. While functionality is important for any software, usability and performance directly dictate web retention.

Multiple choice technology testing
  1. Linguistic Testing

  2. Localization Testing

  3. Both A and B

  4. None of the above.

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

Localization testing (L10n testing) verifies that software adapts correctly to different languages and regional settings. It checks translation, character encoding, date/time formats, currency, and other locale-specific elements. Linguistic testing focuses specifically on language translation quality, not the broader adaptation across languages and regions.

Multiple choice technology testing
  1. Combination of one or more testing techniques

  2. Combination of top-down and bottom-up testing

  3. Both A and B

  4. None of the above.

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

Hybrid testing specifically combines top-down and bottom-up integration testing approaches. It uses stubs for lower modules while testing upper modules, and drivers for upper modules while testing lower modules, allowing parallel testing activities. Option A is too generic - many techniques combine methods, but 'hybrid' in this context refers to the specific top-down/bottom-up combination.

Multiple choice technology testing
  1. Creating additional test cases to increase coverage

  2. Finding areas of program exercised by the test cases

  3. Determining a quantitative measure of code coverage, which is a direct measure of quality.

  4. All of the above.

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

Test coverage analysis helps identify parts of the codebase that are not yet executed by the test suite, allowing developers to create additional test cases (596837) to fill those gaps. It is not a direct measure of quality (596839), nor is it limited only to listing exercised areas.

Multiple choice technology testing
  1. Same as glass box testing

  2. Same as clear box testing

  3. Both A and B

  4. None of the above.

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

White box testing examines internal code structures, logic, and implementation. It is equivalently called glass box testing and clear box testing - all three terms refer to the same concept where the tester can 'see through' the code. The names are metaphors for transparent visibility into internal workings.

Multiple choice technology testing
  1. Similar to proof reading

  2. Widely used in web testing

  3. Part of usability Testing

  4. All of the above

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

Content testing verifies textual and media content for accuracy, grammar, spelling, and clarity - similar to proofreading. It's widely used in web testing to ensure website content quality and correctness. It's also part of usability testing since poor content affects user experience. All three characteristics apply to content testing.

Multiple choice technology testing
  1. Testing the boolean expressions which are not in control structures

  2. Entire expression is considered as boolean expression irrespective of logical-and and logical-or operators

  3. Coverage except switch-statement cases, exception handlers

  4. All of the above.

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

Decision coverage (also called branch coverage) requires that each decision point takes both true and false outcomes. It treats the entire boolean expression as a single decision - the expression as a whole must evaluate to both true and false, regardless of AND/OR operators within it. This differs from condition coverage which requires each sub-condition to be tested.