Computer Knowledge

Software Testing and Quality Control

2,598 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. 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. $4000; $5000; $5500
  2. $32001; $34000; $36500
  3. $28000; $28001; $32001
  4. $4000; $4200; $5600
Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The tax brackets create boundaries at $4000 (tax-free limit), $5500 ($4000 + $1500 where 10% band ends), and $33500 ($4000 + $1500 + $28000 where 22% band ends). Option D has $4000 (first boundary), $4200 and \$5600 which span the first two equivalence partitions (\$0-$4000, $4001-$5500, $5501-$33500). These three values fall into different tax calculation scenarios, making them proper equivalence class representatives.

Multiple choice technology testing
  1. 0,1900,2004,2005

  2. 1900, 2004

  3. 1899, 1900, 1901,2003,2004,2005

  4. 1899,1900,2004,2005

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

For a boundary range of 1900 to 2004, the traditional two-value boundary testing covers values just inside and outside the limits: 1899 (invalid low), 1900 (valid low), 2004 (valid high), and 2005 (invalid high). This makes option 628624 the correct choice.

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
C Correct answer
Explanation

Test coverage criteria measure how thoroughly code or requirements have been exercised by a test suite, such as statement or branch coverage. The percentage of faults found is a measure of defect detection effectiveness, not test coverage itself.

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

Risk-based testing prioritizes testing high-risk areas because defects in these areas would have the greatest impact. While finding faults (A) is important, and good coverage (C) is desirable, prioritization specifically focuses on risk. Testing whatever is easiest (D) is poor practice and not true prioritization.

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

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

This requires matching test management activities to their definitions. Test estimation calculates required resources (x=1). Test monitoring reports deviations from the plan (w=4). Test control reallocates resources when needed (v=3). Incident management tracks anomalous test results (y=5). Configuration management maintains records of test results (z=2). Option C correctly maps all five pairs.

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

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

The oracle assumption is that there exists some mechanism (the oracle) by which the tester can determine the correct expected outcome of a test. This doesn't require an existing system (A), complete knowledge (C), or reviewer validation (D) - it simply assumes the tester can identify what the correct result should be, whether from specifications, requirements, or other sources.

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

White box techniques require knowledge of internal code structure. Statement, path, and data flow testing all examine code execution paths, branches, and data transformations. State transition testing focuses on system states and transitions based on external behavior, not code structure - it's a black box technique that can be done without seeing the code.