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. testing and functionality

  2. testing the source code

  3. testing the reliability requirements

  4. testing the portability requirements

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

White box testing inspects the internal structures, logic, and implementation details of the software's source code. In contrast, black box testing is concerned with external functional behavior, and other testing types handle non-functional requirements such as reliability and portability without directly analyzing the source code.

Multiple choice technology testing
  1. testing the functionality

  2. testing the source code

  3. testing the performance requirements

  4. testing the portability requirements

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

Black box testing focuses exclusively on verifying that the software's functional requirements meet specifications, treating the internal code as a 'black box'. It does not inspect the source code, which is the domain of white box testing, nor does it primarily target portability or reliability directly.

Multiple choice technology testing
  1. increased productivity of people

  2. less infrastructure costs

  3. high quality product

  4. all of the above

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

Automated testing tools increase tester productivity by reducing manual effort, can lower infrastructure costs through efficient resource utilization and faster execution, and contribute to higher product quality through consistent, repeatable test coverage. Since all three benefits are valid advantages of test automation, 'all of the above' is correct.

Multiple choice technology testing
  1. GetVisibleText

  2. SetROProperty

  3. GetROProperty

  4. GetTOProperty

  5. GetPropertyValue

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

GetROProperty retrieves the current runtime property value of an object during test execution. 'RO' stands for Runtime Object - this method gets the actual property value from the application being tested. GetTOProperty retrieves Test Object properties from the repository (the expected values), not current runtime values. SetROProperty doesn't exist for retrieval. GetVisibleText and GetPropertyValue are not standard QTP methods for this purpose.

Multiple choice technology testing
  1. 3

  2. 4

  3. 2

  4. 5

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

QTP/UFT has three main parameter types: Test/Action parameters (for passing values into actions), Data Table parameters (for data-driven testing using the DataTable), and Environment parameters (for external/environment variables). These three types cover the primary parameterization needs in QTP.

Multiple choice technology testing
  1. Pre Recovery Test-Run,Triggered Events, Recovery steps

  2. Triggered Events, Error handling step, Recovery steps

  3. Pre Recovery Test-Run, Recovery steps, Post Recovery Test-Run

  4. Triggered Events, Recovery steps, Post Recovery Test-Run

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

A recovery scenario in QTP/UFT is designed to handle unexpected errors during test execution. It consists of three defined components: a trigger event that detects the error, recovery steps to handle the situation, and a post-recovery test run instruction that dictates how the test should proceed after recovery.

Multiple choice technology testing
  1. Low-Level

  2. Standard

  3. Text Area

  4. Bitmap

  5. Text

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

A Standard Checkpoint in QTP/UFT is specifically designed to verify the properties and values of objects in an application. Other checkpoints serve different purposes: Text checkpoints check text strings, Bitmap checkpoints compare pixel images, and Low-Level checkpoints record raw coordinate inputs rather than object properties.

Multiple choice technology testing
  1. Local Action Sheet

  2. Global or Local Action Sheet

  3. Global Action sheet

  4. None of the Above

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

When inserting output values in QTP/UFT, you can direct the output to either the Global DataTable sheet (accessible across all actions) or a Local Action DataTable sheet (specific to that action). This flexibility allows you to choose the appropriate scope for your captured values. Option B correctly identifies that both options are available.

Multiple choice technology testing
  1. Checkpoints

  2. Test Objects in the Repository

  3. DataBase Checkpoints

  4. 1 & 2

  5. 1, 2 & 3

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

In HP QuickTest Professional (QTP/UFT), parameterization is highly flexible. Test engineers can parameterize checkpoints, database checkpoints, and test objects stored in the object repository to run tests with varying data inputs. Since all three components can be parameterized, the option selecting 1, 2, and 3 is correct.

Multiple choice technology testing
  1. The goal / purpose of testing is to demonstrate that the program works.

  2. The purpose of testing is to demonstrate that the program is defect free.

  3. The purpose of testing is to demonstrate that the program does what it is supposed to do.

  4. Testing is executing Software for the purpose of finding defects.

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

According to classic software testing principles, testing is defined as executing code with the primary goal of finding defects. Demonstrating that a program works or is defect-free is logically impossible because testing can only prove the presence of defects, not their absence.

Multiple choice technology testing
  1. Top down

  2. Big-bang

  3. Bottom up

  4. Functional incrementation

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

Big-bang integration is not an incremental testing approach - it integrates all system components at once rather than in stages. Top-down (A) and bottom-up (C) are both incremental strategies that integrate modules gradually. Functional incrementation (D) is another incremental approach where features are added incrementally.

Multiple choice technology testing
  1. iv is correct and i,ii,iii are incorrect.

  2. i,ii,iii is correct and iv is incorrect

  3. ii is correct and i,ii,iii are incorrect

  4. iii and iv are correct and i,ii are incorrect

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

Exit criteria include thoroughness measures like coverage of code, functionality, or risk (i) - this measures how completely testing was done. They also include estimates of defect density or reliability measures (ii). Residual risks such as unfixed defects or lack of test coverage (iii) are also part of exit criteria. Verifying the test environment (iv) is typically done during test planning, not as an exit criterion. Therefore options i, ii, and iii are correct.

Multiple choice technology testing
  1. i , ii , iv are true and iii is false

  2. i , ii , iii are true and iv is false

  3. i , iii , iv are true and ii is false

  4. All of above are true

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

Test closure activities include checking which planned deliverables have been delivered (i) and finalizing and archiving testware (iii). They also involve analyzing lessons learned from the testing process (iv). Defect report analysis (ii) is typically part of test execution activities, not closure - closure focuses on completing and learning from the test process, not analyzing individual defects.

Multiple choice technology testing
  1. i & ii are true, iii, iv & v are false

  2. ii, iii & iv are true, i & v are false

  3. ii & iv are true, i, iii & v are false

  4. ii is true, i, iii, iv & v are false

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

Regression testing should be performed after the software has changed (ii) to verify existing functionality still works. It should also be done when the environment has changed (iv) since environmental changes can affect behavior. It's not required every week (i), 'as often as possible' is impractical (iii), and doing it just when the project manager says (v) without trigger-based criteria is not proper practice. Regression testing is triggered by actual changes, not arbitrary schedules.