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. reducing test time

  2. no change

  3. increase test time

  4. can't say

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

Higher-quality development methods (like code reviews, static analysis, test-driven development) prevent defects from entering the code in the first place. Fewer defects mean less time spent finding, reporting, and retesting bugs during formal testing phases. Prevention is cheaper than detection.

Multiple choice technology testing
  1. the higher the risk, the earlier the test coverage

  2. the lower the risk, the earlier the test coverage

  3. Both the above

  4. None of the above

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

Risk-based testing prioritizes testing efforts based on the level of risk associated with each feature or requirement. Higher-risk areas require more thorough and earlier testing to mitigate potential failures. Option A correctly states that higher risk items receive earlier test coverage, which is the fundamental principle of risk-based testing.

Multiple choice technology testing
  1. Only once at the beginning of the test phase

  2. Only once at the end of the test phase

  3. Only Once at the end of project closure

  4. As detailed in test strategy & ad-hoc basis where needed

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

In Risk-Based Testing (RBT), risk identification is an ongoing process that occurs throughout the lifecycle. It is defined in the initial test strategy and continuously performed on an ad-hoc basis as new risks emerge. Distractors stating it occurs only once are incorrect.

Multiple choice technology testing
  1. Impact * Probability of failure

  2. Impact * Solution

  3. Impact * Requirement

  4. Impact * Test level

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

Risk level is calculated by multiplying the impact of failure by the probability of failure. This formula Risk = Impact × Probability is standard in risk assessment methodologies. Option A correctly states this calculation, while other options incorrectly multiply impact with unrelated factors like Solution, Requirement, or Test level.

Multiple choice technology testing
  1. a) Breadth Test and Depth Test

  2. b) Retesting

  3. c) Confirmation Testing

  4. d) Sanity Testing

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

Maintenance Testing uses two main methodologies: Breadth Testing (testing all affected areas broadly) and Depth Testing (deep testing of specific changed areas). Options b, c, and d describe other testing types but not the specific methodologies for maintenance testing. Option A correctly identifies the two primary approaches used when maintaining existing software.

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

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

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

  4. d) iii is true and i,ii,iv are false

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

Formal reviews require participants to prepare materials in advance, making statement ii false. The review is led by a trained moderator who is not the author (i true), follows a formal process for follow-up actions (iii true), and its primary goal is defect detection (iv true).

Multiple choice technology testing
  1. a) Structural Testing

  2. b) Design Based Testing

  3. c) Error Guessing Technique

  4. d) Experience Based Technique

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

White box testing evaluates the internal structure and code of software, which is why it is called structural testing. Error guessing and experience-based testing are black-box, non-structural techniques.

Multiple choice technology testing
  1. a) Security Testing

  2. b) Recovery Testing

  3. c) Performance Testing

  4. d) Functionality Testing

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

Security testing focuses on uncovering vulnerabilities in the system that could be exploited by malicious actors, including viruses and other external threats. Recovery testing verifies system restoration after failures, performance testing measures responsiveness under load, and functionality testing checks if features meet requirements without addressing security concerns.

Multiple choice technology testing
  1. a) Checking test logs against the exit criteria specified in test planning.

  2. b) Logging the outcome of test execution.

  3. c) Assessing if more tests are needed.

  4. d) Writing a test summary report for stakeholders.

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

Logging the outcome of test execution is part of the test execution phase, not exit criteria evaluation. Exit criteria tasks include assessing test logs against plans, deciding if more tests are needed, and writing summary reports.

Multiple choice technology testing
  1. a) Load Testing

  2. b) Integration Testing

  3. c) System Testing

  4. d) Usability Testing

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

Load testing evaluates how a system performs under different workload conditions, measuring response times, throughput rates, and resource utilization. The goal is to determine if the system can handle expected and peak loads while maintaining proper functionality, which directly matches the description of subjecting the target to varying workloads.

Multiple choice technology testing
  1. a) System Level Testing

  2. b) Integration Level Testing

  3. c) Unit Level Testing

  4. d) Component Testing

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

Integration testing specifically focuses on detecting defects in the interfaces and interactions between integrated components. Unit testing examines individual components, while system testing checks the entire integrated system.

Multiple choice technology testing
  1. a) The analysis of batch programs.

  2. b) The reviewing of test plans.

  3. c) The analysis of program code.

  4. d) The use of black box testing

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

Static analysis examines source code or compiled code without running the program to identify defects, security vulnerabilities, and coding standard violations. It's performed on the code itself, not on test plans or through black box execution techniques, making 'analysis of program code' the accurate description.

Multiple choice technology testing
  1. a) requirements

  2. b) documentation

  3. c) test cases

  4. d) improvements suggested by users

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

Incidents document deviations between expected and actual behavior during testing. Requirements, documentation, and test cases can all contain defects that cause incidents. User suggestions are enhancement ideas rather than failures, so they don't warrant incident reports; they should be captured as change requests or enhancement proposals instead.

Multiple choice technology testing
  1. Java Profiler

  2. Testing tool

  3. IDE

  4. None

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

JProbe is a specialized Java suite used for profiling runtime performance, memory usage, threads, and code coverage. It is not an IDE (like Eclipse or IntelliJ) or a general functional testing tool, making the Java Profiler option the correct choice.

Multiple choice technology testing
  1. Analysis Engine, JProbe Connection Manager, JProbe Console

  2. Jprobe Editor, JProbe Profiler, Jprobe Engine

  3. Jprobe Analysis Engine, probe Thread analyzer

  4. Jprobe Analyzer, Jprobe Console

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

JProbe's architecture consists of three main components: the Analysis Engine (which does the profiling work), the JProbe Connection Manager (handles communication between profiler and JVM), and the JProbe Console (the UI for viewing results). Options B and C invent non-existent components, and D is incomplete.