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. 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. 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. A. Memory Analysis, Performance Analysis, Code Coverage Analysis

  2. B. Memory Analysis, Stress Test Analysis, Code Analysis

  3. C. Performance Analysis, Static Analysis, Performance Analysis

  4. D. None

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

JProbe is a suite consisting of tools for memory debugging, performance profiling, and code coverage analysis. The distractors are incorrect because JProbe does not perform static analysis or stress testing, which are typically handled by other tools or IDE features.

Multiple choice technology testing
  1. Functional Testing

  2. Unit Testing

  3. Performance Testing

  4. Integration Testing

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

Code Coverage Analysis is used during unit testing to measure which lines/branches/paths of code are executed by test cases. It helps QA developers identify untested code, improve test completeness, and ensure critical code paths are exercised. It's not primarily for functional, performance, or integration testing (though it can complement them).

Multiple choice technology testing
  1. Method

  2. Line

  3. Line With Condition

  4. All

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

JProbe's Code Coverage Analysis provides multiple granularity levels for measuring how thoroughly your tests exercise the code. Method coverage tracks which methods were called, Line coverage tracks which lines of code were executed, and Line With Condition (also called branch coverage) tracks whether all possible outcomes in conditional statements were tested. The 'All' option means all these coverage levels are available for comprehensive testing assessment.

Multiple choice technology testing
  1. Line data, Conditional Data, Switch Data

  2. Missed Column, Switch data, Conditional Data

  3. Missed Column, Switch data, Unconditional Data

  4. None

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

In the context of the specific certification or tool pool this question belongs to, the data collected during code coverage analysis is categorized as Missed Column, Switch data, and Conditional Data. The other options contain incorrect combinations of coverage types.

Multiple choice technology testing
  1. Memory Analysis

  2. Performance Analysis

  3. Coverage Analysis

  4. Static Analysis

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

When an application continuously crashes, it often indicates memory issues such as memory leaks, null pointer exceptions, or out-of-memory errors. Memory Analysis helps identify these problems by tracking object allocations, garbage collection patterns, and memory usage patterns that lead to crashes. Performance Analysis would be used for slowness or hanging, Coverage Analysis for test completeness, and Static Analysis for code quality without running the application.

Multiple choice technology platforms and products
  1. Automate the test

  2. Add validations

  3. Run this regularly as a part of build cycle

  4. All of the Above

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

Visual Studio Coded UI Tests support automation of UI interactions, adding validation assertions, and can be integrated into build cycles for regression testing. Since it supports all these capabilities (automation, validation, build integration), 'All of the Above' is correct. Coded UI Tests are part of Visual Studio Enterprise for automated functional testing of applications.

Multiple choice technology platforms and products
  1. Project Server

  2. Team Foundation Server

  3. Integration Server

  4. Exchange Server

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

Coded UI Tests in Visual Studio 2010 were designed to work seamlessly with Team Foundation Server for automated testing within the application lifecycle management workflow. Project Server, Integration Server, and Exchange Server are not directly integrated with Coded UI testing capabilities.