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
  1. Lookup

  2. Expression

  3. Stored Procedure

  4. Transaction Control

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

Transaction Control transformation is strictly an active/connected transformation - it must be connected to the data flow and cannot be used unconnected. It generates transaction control events (commit, rollback) based on conditions and changes the transaction boundary. In contrast, Lookup can be connected or unconnected, Expression is passive and connected, Stored Procedure can be connected or unconnected.

Multiple choice technology testing
  1. Random input parameter

  2. Sequence inputs

  3. Boundary value conditions.

  4. Data points

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

Boundary value analysis is a fundamental testing technique that systematically tests parameters at their limits and edges. For API testing, this means testing minimum values, maximum values, values just beyond boundaries, and edge cases. Random inputs and sequences don't provide systematic coverage, and 'data points' is too vague.

Multiple choice technology testing
  1. Methods

  2. Functions

  3. Classes

  4. Parameters

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

When creating unit tests from source code, you select individual methods to test. Unit testing focuses on testing the smallest testable units - individual methods within a class - rather than entire classes or functions. You create test methods that verify specific method behaviors with different inputs.

Multiple choice technology testing
  1. Web test

  2. Order Test

  3. Load Test

  4. Manual Test

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

Ordered Tests in VSTT allow you to define a specific execution sequence for tests. You arrange tests in the order they must run, and the test runner executes them sequentially rather than in parallel or random order. This is essential when tests have dependencies or must run in a particular sequence.

Multiple choice technology testing
  1. Test case window

  2. Test View window

  3. Test Tree window

  4. Test Manager window

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

The Test Manager window in VSTT provides the interface for managing large test suites and executing multiple tests. It offers features for organizing tests, viewing results, and running batches of tests - capabilities that individual test view or case windows lack. This is the primary interface for test management at scale.

Multiple choice technology testing
  1. Web test

  2. Unit Test

  3. Load Test

  4. Manual Test

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

In VSTT (Visual Studio Team Test), ordered tests allow you to run tests in a specific sequence. Load tests are a distinct category of performance tests that cannot be nested inside ordered tests because they have their own configuration and execution model. Unit tests, web tests, and manual tests can all be included in ordered tests, but load tests are fundamentally different and run separately.

Multiple choice technology testing
  1. Test case Results

  2. Code Coverage Results

  3. Load Test Results

  4. Manual Test Results

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

The Code Coverage Results window in VSTT provides detailed statistics about which code elements were covered during test execution, showing what percentage of your code was actually tested. Test case Results show individual test outcomes, Load Test Results show performance metrics, and Manual Test Results show manual test execution status - but only Code Coverage Results specifically show statistics about the code elements tested.

Multiple choice technology testing
  1. Web Test

  2. Generic Test

  3. Manual Test

  4. Above all

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

Generic tests in VSTT use environment variables to specify paths to folders containing the target executable and other required files. This allows you to create tests that can adapt to different environments without hardcoding paths. Web tests run in browsers, Manual tests are executed by humans, and neither uses environment variables in this way - Generic tests are specifically designed to wrap external executables and tools.

Multiple choice technology testing
  1. 0 as Pass

  2. 0 as Fail

  3. None

  4. Just a result.

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

Generic tests in VSTT follow the standard convention where a return value of 0 indicates success (Pass), while any non-zero return value indicates failure. This matches the common programming practice where 0 means successful execution and non-zero values indicate various types of errors. The test engine uses this convention to determine whether the external test executable passed or failed.

Multiple choice technology testing
  1. trx file

  2. trs file

  3. xml file

  4. database file

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

VSTT saves test results in .trx (Test Result XML) files after test execution. These files contain detailed information about test outcomes, execution times, error messages, and other test run metadata in XML format. While the content is XML-based, the specific file extension is .trx, not .xml. Test results are not stored in .trs files or directly in databases by default.

Multiple choice technology testing
  1. Test View

  2. Test Management View

  3. Test Impact view

  4. Test List view

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

The Test Impact View in VSTT is specifically designed to show how code changes affect unit tests by analyzing code coverage data and dependencies. It identifies which tests may be impacted by recent code modifications and recommends which tests should be run. Test View shows all available tests, Test Management View handles test organization, and Test List view manages test lists - only Test Impact View focuses on the relationship between code changes and test impacts.

Multiple choice technology testing
  1. From DB

  2. From XML

  3. From CSV file

  4. All of The Above

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

VSTS (Visual Studio Team System) web tests support multiple parameterization sources including databases, XML files, and CSV files. This allows test data to be externalized and varied across test iterations. Since all three sources (DB, XML, CSV) are supported, Option D is the correct comprehensive answer.

Multiple choice technology testing
  1. Goal Based

  2. Step Load

  3. Goal Based & Step Load

  4. None

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

VSTS load testing supports both Goal Based testing (where the test runs until a specific performance goal is met) and Step Load testing (where load increases in steps or increments over time). Option C correctly identifies both supported load test types. Option D 'None' is incorrect.

Multiple choice technology testing
  1. Workload Information

  2. Application Details

  3. Performance Monitoring Framework

  4. All of The Above

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

Planning performance tests requires comprehensive information including workload characteristics (user loads, transaction mix), application details (architecture, technology stack), and monitoring framework setup (what metrics to capture, tools). All three inputs (Options A, B, C) are essential prerequisites, making Option D the correct answer.

Multiple choice technology testing
  1. Load Testing

  2. Stress Testing

  3. Volume Testing

  4. System Testing

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

The scenario requires determining current capacity to decide between horizontal (adding servers) or vertical (upgrading servers) scaling. Load testing simulates expected user loads to measure current system capacity and identify scaling points. Stress testing (Option B) finds breaking points. Volume testing (Option C) tests with large data volumes. System testing (Option D) is functional, not performance-focused.