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. all the planned tests have been run

  2. time has run out

  3. all faults have been fixed correctly

  4. it depends on the risks for the system being tested

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

Testing should be stopped based on risk assessment for the system being tested, not simply because all tests are done, time is up, or faults are fixed. Risk-based testing considers the cost of remaining defects versus the cost of additional testing. Even with all planned tests run, high-risk areas may need more testing.

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

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

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

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

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

Early test design (i) prevents fault multiplication by catching issues before they propagate, (iii) finds faults in requirements and design, and (iv) can cause requirement changes when testability issues emerge. Statement (ii) is false because early faults are CHEAPER to fix, not more expensive. Statement (v) is false as early design reduces overall effort.

Multiple choice technology testing
  1. testing to see where the system does not function properly

  2. testing quality attributes of the system including performance and usability

  3. testing a system feature using only the software required for that action

  4. testing a system feature using only the software required for that function

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

Non-functional testing evaluates quality attributes of a system rather than specific functional behaviors. This includes properties like performance, usability, reliability, security, and scalability. The distractors incorrectly define non-functional testing as testing for functional bugs or isolating specific software features for functional execution.

Multiple choice technology testing
  1. ii and v are true, I, iii and iv are false

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

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

  4. i and ii are true, iii, iv and v are false

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

Incidents can be closed without being fixed if they are duplicates or invalid (i), and incidents must be raised during independent testing (v). However, incidents can be raised against documentation (ii), the final stage is closure (iii), and incident records must contain environment details (iv), making the other options incorrect.

Multiple choice technology testing
  1. 1 test for statement coverage, 3 for branch coverage

  2. 1 test for statement coverage, 2 for branch coverage

  3. 1 test for statement coverage, 1 for branch coverage

  4. 2 tests for statement coverage, 2 for branch coverage

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

Statement coverage requires every statement to be executed at least once. With test values P=60, Q=50, both IF conditions are true and all 4 statements execute, achieving statement coverage in 1 test. Branch coverage requires both true and false outcomes for each decision. There are 2 IF statements (branches): P+Q>100 and P>50. The second branch (P>50) is only reached when the first is true. With P=60, Q=50 both are true; with P=30, Q=40 both are false. Thus 2 tests achieve full branch coverage.

Multiple choice technology testing
  1. 1 test for statement coverage, 1 for branch coverage

  2. 1 test for statement coverage, 2 for branch coverage

  3. 1 test for statement coverage. 3 for branch coverage

  4. 2 tests for statement coverage, 2 for branch coverage

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

One test case where the IF condition evaluates to True is sufficient to execute all statements. However, for full branch coverage, a second test case where the condition evaluates to False is required to cover the implicit else branch, making one test for statement coverage and two for branch coverage correct.

Multiple choice technology testing
  1. Attend a tool exhibition

  2. Invite a vendor to give a demo

  3. Analyse your needs and requirements

  4. Find out what your budget would be for the tool

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

Before selecting a test tool, you must first understand what problems you need it to solve. Analyzing needs and requirements includes identifying what types of testing you do, what features you need, what skills your team has, and what constraints exist. Attending exhibitions, vendor demos, or checking budget are all steps that happen AFTER you know what you need. Buying a tool without analyzing needs leads to shelfware.

Multiple choice technology testing
  1. A small team to establish the best way to use the tool

  2. Everyone who may eventually have some use for the tool

  3. The independent testing team

  4. The vendor contractor to write the initial scripts

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

When introducing a new testing tool, it should be used by everyone who may eventually use it, not just a small pilot team. This approach helps identify diverse use cases across different roles, uncovers a wider range of issues early, and builds organizational buy-in. A small team might not discover limitations that would affect other users, and vendor contractors don't understand your testing context like your own team does.

Multiple choice technology testing
  1. Equivalence partitioning

  2. State transition testing

  3. LCSAJ

  4. Syntax testing

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

Black box techniques test software without examining internal code structure. Equivalence partitioning, state transition testing, and syntax testing are all black box techniques - they focus on inputs, outputs, and external behavior. LCSAJ (Linear Code Sequence and Jump) is a white box structural testing technique that requires analyzing code paths, branches, and control flow within the program's source code.

Multiple choice technology testing
  1. Performed by customers at their own site

  2. Performed by customers at their software developer’s site

  3. Performed by an independent test team

  4. Useful to test bespoke software

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

Beta testing is performed by actual users or customers at their own location using the software in their real environment. This differs from alpha testing (done at the developer's site) and allows testing in diverse, real-world conditions. Independent test teams typically perform system or acceptance testing, not beta testing. Beta testing is particularly valuable for commercial software rather than bespoke/custom software.

Multiple choice technology testing
  1. developers would typically use i, iv and vi; test team ii, iii and v

  2. developers would typically use i and iv; test team ii, iii, v and vi

  3. developers would typically use i, ii, iii and iv; test team v and vi

  4. developers would typically use ii, iv and vi; test team I, ii and v

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

Developers focus on code-level testing, making static analysis and dynamic analysis tools typical for their workflow. The test team focuses on system-level verification, meaning they rely on test management, performance testing, test running, and test data preparation tools to design, execute, and monitor comprehensive test suites.

Multiple choice technology testing
  1. finding faults in the system

  2. ensuring that the system is acceptable to all users

  3. testing the system with other systems

  4. testing for a business perspective

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

Acceptance testing focuses on validating whether the system meets business requirements and is acceptable for release from a business perspective. It is not primarily about finding faults (that's system testing) or ensuring acceptability to all users (impractical). Testing with other systems is integration testing. The key is business validation - does this system deliver the expected business value?

Multiple choice technology testing
  1. black box design techniques all have an associated measurement technique

  2. white box design techniques all have an associated measurement technique

  3. black box measurement techniques all have an associated test design technique

  4. white box measurement techniques all have an associated test design technique

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

This question asks for the FALSE statement about component testing standards. The statement that black box design techniques all have associated measurement techniques is false. In practice, not every design technique has a corresponding measurement technique. The relationship is not symmetric or complete - while measurement techniques exist for some design approaches, there isn't a one-to-one mapping for all techniques.

Multiple choice technology testing
  1. generating expected outputs

  2. replaying inputs according to a programmed script

  3. comparison of expected outcomes with actual outcomes

  4. recording test inputs

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

Test execution tools can record test inputs, replay them according to scripts, and compare expected vs actual outcomes. However, they cannot automatically generate expected outputs - this requires human knowledge of what the correct results should be. Expected outcomes must be specified by testers or derived from specifications. The tool automates execution and verification, not test design.

Multiple choice technology testing
  1. re-testing is running a test again; regression testing looks for unexpected side

  2. re-testing looks for unexpected side effects; regression testing is repeating

  3. re-testing is done after faults are fixed; regression testing is done earlier

  4. re-testing uses different environments, regression testing uses the same

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

Re-testing focuses on running the exact same tests to verify that a specific defect has been fixed. Regression testing ensures that changes or fixes have not introduced new side effects or broken unmodified parts of the system.