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
-
all the tests in the Test Plan
-
all the cycles or releases the test is linked to
-
all the requirements linked to the specified test
-
all the tests in a specified folder in the Test Plan
D
Correct answer
Explanation
In HP ALM/Quality Center, a live analysis graph in the Test Plan module typically provides a visual overview of the status and distribution of tests within a specific selected folder.
-
Rejected
-
Fixed
-
Deferred
-
Closed
C
Correct answer
Explanation
When a defect cannot be fixed due to missing requirements or insufficient code (a gap), it cannot be immediately resolved. 'Deferred' is the appropriate state because the defect is acknowledged but requires future work when requirements are clarified. 'Rejected' would imply the defect is invalid, while 'Fixed' and 'Closed' suggest completion.
A
Correct answer
Explanation
Error guessing is an experienced-based testing technique where testers use their intuition to guess potential error conditions. Structuring this technique by enumerating possible errors (null inputs, boundary conditions, invalid formats, etc.) makes it more systematic and thorough than relying solely on intuition.
B
Correct answer
Explanation
Testing finds defects so they can be fixed - it doesn't improve defects themselves. The benefit is improved software quality and reliability through defect detection and removal, not improvement of the defects. Testing identifies problems, fixing resolves them.
-
Flyweight
-
Mediator
-
Momento
-
Bridge
A
Correct answer
Explanation
The Flyweight pattern uses sharing to support large numbers of fine-grained objects effectively by reducing redundancy through shared intrinsic state. Mediator centralizes communication, Momento captures state, and Bridge separates abstraction from implementation.
-
GetCellData (Row,Col);
-
GetRowValue (Rowid,Colname);
-
GetData (Row,Col);
-
GetCellValue (Row,Col);
A
Correct answer
Explanation
In QTP (QuickTest Professional), the GetCellData(row, col) method is used to retrieve data from a specific cell in an HTML Table object. The method takes row and column indices as parameters and returns the cell's content.
-
Services.StartTransaction "Name", Services.EndTransaction "Name";
-
StartTransaction.Services “Name”,EndTransaction. Services "Name";
-
StartTransaction ("Name"), EndTransaction ("Name");
-
Services.StartTransaction "Name", EndTransaction. Services "Name";
A
Correct answer
Explanation
In QTP/UFT, transactions are started and ended using the Services object with the syntax Services.StartTransaction "Name" and Services.EndTransaction "Name".
-
.TSR and .QRS
-
.QRS and .MTR
-
.TSR and .MTR
-
.MTR and .QFL
C
Correct answer
Explanation
To solve this question, the user needs to have knowledge about automated testing tools and file extensions used in them.
The correct option is:
C. .TSR and .MTR
Explanation:
In automated testing tools like UFT (Unified Functional Testing), shared object repository and local object repository are used to store object information.
Shared Object Repository (SOR) file stores information about the objects that are common for multiple tests. The file extension of the Shared Object Repository file is .TSR (Test Shared Repository).
Local Object Repository (LOR) file stores information about the objects that are specific to a particular test. The file extension of the Local Object Repository file is .MTR (Mercury Test Results).
Therefore, the correct answer is option C, .TSR and .MTR.
-
Shared repository & Function Library
-
Shared Repository
-
Local Repository
-
Function library
C
Correct answer
Explanation
Checkpoint information in QTP is stored in the Local Repository associated with each action. Unlike shared objects that can be stored in a shared repository, checkpoints are specific to an action and are maintained locally within that action's object repository.
-
Text Checkpoint timeout
-
Check Method timeout
-
Standard Checkpoint timeout
-
Checkpoint timeout
D
Correct answer
Explanation
The Checkpoint timeout property in QTP specifies the time interval (in seconds) during which QuickTest attempts to perform a checkpoint successfully. If the checkpoint cannot be verified within this time, the step fails.
-
Browser("Ultimatix GetConnected").Page("Ultimatix GetConnected").WebEdit("employeeNumber").Set "000000"
-
Browser("title:=Ultimatix - Get Connected !").Page("title:=Ultimatix - Get Connected !").WebEdit("name:=employeeNumber").Set "000000"
-
Browser("title:=Ultimatix - Get Connected !"). Page("title:=Ultimatix - Get Connected !"). WebEdit("employeeNumber").Set "000000"
-
Browser("Ultimatix GetConnected").Page("Ultimatix GetConnected"). WebEdit("name:=employeeNumber").Set "000000"
-
(.TSR and .QRS)
-
(.QRS and .MTR)
-
(.TSR and .MTR)
-
(.MTR and .QFL)
C
Correct answer
Explanation
In QTP (QuickTest Pro), Shared Object Repositories use the .TSR extension and Local Object Repositories use the .MTR extension. .QRS and .QFL are not standard QTP repository file extensions. Understanding these extensions is important for managing and sharing object repositories across QTP tests.
-
GetCellData (Row,Col);
-
GetRowValue (Rowid,Colname);
-
GetData (Row,Col);
-
GetCellValue (Row,Col);
A
Correct answer
Explanation
In QTP (QuickTest Pro), the GetCellData(Row, Col) method retrieves data from an HTML table cell by specifying row and column indices. The other options (GetRowValue, GetData, GetCellValue) are not standard QTP methods for table data retrieval. Understanding the correct method is essential for web table testing and validation.
-
Shared repository & Function Library
-
Shared Repository
-
Local Repository
-
Function library
C
Correct answer
Explanation
In QTP, when you create a checkpoint, its configuration and properties are stored locally within the action's Local Object Repository (.mtr file).
-
Text Checkpoint timeout
-
Check Method timeout
-
Standard Checkpoint timeout
-
Checkpoint timeout
D
Correct answer
Explanation
The Checkpoint timeout setting in QTP specifies the maximum time duration (in seconds) that QTP will attempt to successfully verify a checkpoint. During this period, QTP retries the checkpoint verification at regular intervals. If the checkpoint cannot be verified within the timeout, the step fails. This applies to all checkpoint types.