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
-
Single
-
Three
-
Multiple
-
Unlimted
A
Correct answer
Explanation
When you create a new test in QTP, it automatically includes a single action by default. You can add more actions later, but the initial test has one. Tests with multiple actions are created by explicitly adding them, not by default.
-
WaitProperty
-
Sync
-
Exit
-
Wait
D
Correct answer
Explanation
The Wait statement in QTP pauses test execution for a specified number of seconds. WaitProperty waits for a property value, Sync waits for navigation, and Exit terminates a loop/action. Only Wait creates a simple time-based pause.
-
Checkpoint window
-
Checklist window
-
Informaton Pane
-
Test Results window
D
Correct answer
Explanation
Checkpoint results are viewed in the Test Results window after a test run completes. This window shows all checkpoint outcomes, screenshots, and pass/fail status. The Checkpoint window is for creating checkpoints, not viewing results.
-
Split Action
-
Call Action
-
Reusable Action
-
NonReusable Action
C
Correct answer
Explanation
Reusable actions can be called by other tests or actions, enabling modularity and code reuse. You call them using the 'Call to Copy' or 'Call to Existing' options. Split actions divide an action, Non-reusable actions cannot be called externally.
-
Low-Level
-
Normal
-
Analog
-
None of the Above
A
Correct answer
Explanation
Low-Level recording mode captures mouse clicks and keyboard input at screen coordinates when QTP cannot recognize an object using standard identification. It works around unrecognized objects by recording raw input actions instead of object-based operations. Normal recording requires object recognition, while Low-Level provides a fallback for difficult-to-identify objects.
-
Object identification
-
Test Table
-
Object Repository
-
Data Table
C
Correct answer
Explanation
The Object Repository is the central storage location where QTP maintains test objects along with their identification properties and corresponding values. It enables QTP to recognize and interact with application objects during test execution by mapping test script references to actual application objects. Other options like Data Table store test data, not object definitions.
-
Service.StartTransaction "Name" , Services.EndTransaction "Name"
-
StartTransaction.services "Name" , EndTrasaction.services " Name"
-
StartTransaction("Name") , EndTransaction("Name")
-
None of the Above
C
Correct answer
Explanation
F1 is the universal keyboard shortcut for accessing help documentation in most Windows applications, including QuickTest Professional. It launches the context-sensitive help system. F5 is typically for Run/Refresh, F2 for editing, and F3 varies by application but is not standard for help.
-
True.
-
False.
-
There is some problem with the statement.
-
None of above
A
Correct answer
Explanation
QTP maintains a bidirectional relationship between Keyword View and Expert View: every operation in Keyword View corresponds to VBScript code in Expert View, and vice versa. Each object and method call in Expert View generates a corresponding row in Keyword View's table format. This synchronization allows testers to work in either view seamlessly.
-
Call Action
-
Split Action
-
Reusable Action
-
None
C
Correct answer
Explanation
A Reusable Action in QTP is specifically designed to be called from other tests or actions, enabling code reuse and modularity. Regular actions are local to their test, but Reusable Actions can be invoked externally with optional parameter passing. Call Action is not a type of action, and Split Action divides an action: it doesn't make it reusable.
-
GetData(Row,Col)
-
GetRowValue(Rowid,Colname)
-
GetCellData (Row,Col)
-
GetRowValue(Row,Col)
C
Correct answer
Explanation
GetCellData(Row,Col) is the correct method to retrieve data from an HTML Table in QTP/UFT. The other options (GetData, GetRowValue with various signatures) are not standard methods for table cell extraction.
A
Correct answer
Explanation
QTP/UFT allows working with multiple function libraries simultaneously. You can have multiple function library files associated with a test and can edit them concurrently.
A
Correct answer
Explanation
QTP tracks execution time for each action within a test. You can view timing information in the Test Results window or programmatically access it through Reporter.ReportEvent or internal properties.
-
Each test stage has a different purpose
-
It is easier to manage testing in stages
-
We can run different tests in different environments
-
The more stages we have, the better the testing
A
Correct answer
Explanation
Different test stages have distinct objectives: unit testing verifies individual components, integration testing checks interfaces, system testing validates the complete system, and acceptance testing confirms business requirements. Each stage serves a unique purpose.
-
Integration testing
-
Regression testing
-
System testing
-
User acceptance testing
B
Correct answer
Explanation
Regression testing benefits most from capture/replay tools because it involves repeatedly executing the same tests after changes. Capture/replay allows quick re-execution of existing test suites without manual recreation, making it ideal for regression cycles.