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
-
Lookup
-
Expression
-
Stored Procedure
-
Transaction Control
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.
-
Random input parameter
-
Sequence inputs
-
Boundary value conditions.
-
Data points
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.
-
Methods
-
Functions
-
Classes
-
Parameters
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.
-
Web test
-
Order Test
-
Load Test
-
Manual Test
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.
-
Test case window
-
Test View window
-
Test Tree window
-
Test Manager window
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.
-
Web test
-
Unit Test
-
Load Test
-
Manual Test
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.
-
Test case Results
-
Code Coverage Results
-
Load Test Results
-
Manual Test Results
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.
-
Web Test
-
Generic Test
-
Manual Test
-
Above all
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.
-
0 as Pass
-
0 as Fail
-
None
-
Just a result.
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.
-
trx file
-
trs file
-
xml file
-
database file
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.
-
Test View
-
Test Management View
-
Test Impact view
-
Test List view
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.
-
From DB
-
From XML
-
From CSV file
-
All of The Above
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.
-
Goal Based
-
Step Load
-
Goal Based & Step Load
-
None
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.
-
Workload Information
-
Application Details
-
Performance Monitoring Framework
-
All of The Above
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.
-
Load Testing
-
Stress Testing
-
Volume Testing
-
System Testing
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.