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 performance
  1. a.Endurance Test

  2. b.Component Test

  3. c.Stress Test

  4. d.Baseline Test.

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

Performance testing types include endurance testing (long-term stability), stress testing (breaking point), and baseline testing (performance benchmark). Component testing tests individual units/modules, making it a functional testing type, not a performance testing type.

Multiple choice technology performance
  1. True

  2. False

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

Performance testing should focus on critical, high-risk, and highly frequented business scenarios rather than all functional flows. Testing every single functional flow is impractical, time-consuming, and cost-prohibitive, as many low-use features do not present a significant performance risk to the overall application infrastructure.

Multiple choice technology performance
  1. a.HP Loadrunner

  2. b.Borland’s Silk Performer

  3. c.Jmeter

  4. d.Winrunner

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

WinRunner is a functional testing tool for GUI automation, while LoadRunner, Silk Performer, and JMeter are dedicated performance/load testing tools that simulate multiple users to measure system performance under load.

Multiple choice technology performance
  1. a.Controller

  2. b.Load Generator

  3. c.Vugen

  4. d.Load Controller

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

In performance testing, the Load Generator is the component responsible for simulating multiple virtual users to generate the actual traffic and load on the target system. The Controller manages and coordinates the test execution, while VuGen is used for scripting the user behaviors.

Multiple choice technology testing
  1. File

  2. Function

  3. Class

  4. Directory to deploy

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

In VSTT's testing framework, the [DeploymentItem] attribute specifies a file to be deployed to the test deployment directory before test execution. This attribute takes a file path (not a directory, function, or class) as its parameter, ensuring required files are available when the test runs.

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