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
A
Correct answer
Explanation
In QTP/UFT, the .Object property provides access to the native properties and methods of the actual runtime object, allowing interaction with features not exposed through the test object hierarchy.
-
Low-Level Recording Mode
-
Normal recording Mode
-
Analog Mode
-
None of the above
A
Correct answer
Explanation
Low-Level Recording captures coordinates and mouse/keyboard operations at the screen level when QuickTest cannot recognize an object. Normal Recording relies on object recognition, while Analog Mode is specifically for continuous mouse movements like drawing.
-
Reporter.log()
-
Reporter.reportevent()
-
Reporter.msgbox()
-
Reporter.report()
B
Correct answer
Explanation
Reporter.ReportEvent() is the correct QTP method for sending information to the test results with a status and description. Reporter.Report() does not exist, Reporter.Log() is not a standard method, and Reporter.MsgBox() displays a message box rather than reporting to results.
-
Synchronize
-
Wait
-
WaitProperty
-
sync
C
Correct answer
Explanation
WaitProperty is a synchronization method that pauses execution until a specified object property achieves the expected value or times out. Synchronize is not a QTP method, Wait is a generic delay, and sync is for browser navigation.
-
Function generator
-
Step generator
-
Object repository
-
none of the above
A
Correct answer
Explanation
The Function Generator in QTP allows you to insert test object methods, function calls, and various logic steps into your test. Step Generator and Object Repository are separate features with different purposes.
-
check timeout
-
checkpoint interval timeout
-
checkpoint timeout
-
quicktest timeout
C
Correct answer
Explanation
Checkpoint timeout specifies the time interval in seconds during which QuickTest attempts to perform a checkpoint operation successfully. Check timeout and checkpoint interval timeout are not standard QTP terms.
-
GetItemsCount
-
GetCount
-
GetItemCount
-
none of the above
A
Correct answer
Explanation
GetItemsCount() is the standard QTP method for retrieving the number of items in a list box or combo box. GetCount and GetItemCount are not valid QTP methods.
-
On Error Resume Next
-
On Error Raise Next
-
On Error Next
-
none of the above
A
Correct answer
Explanation
On Error Resume Next is the VBScript statement used to continue test execution after encountering a runtime error, preventing the test from halting. The other options are not valid VBScript error handling statements.
-
call_form
-
new_form
-
open_form
-
both b) & c)
C
Correct answer
Explanation
OPEN_FORM is the correct method when you need to use both the calling form and called form simultaneously. CALL_FORM replaces the calling form and control returns only after the called form exits, while NEW_FORM replaces the calling form completely without returning.
-
Analyzer
-
VuGen
-
Controller
-
Generator
C
Correct answer
Explanation
The Controller is the central console for managing and executing load tests in LoadRunner. It orchestrates load generators, manages the test execution, and monitors results. VuGen creates scripts, Analyzer analyzes results after test completion, and Generator is not a standard component.
-
Load runner
-
J Meter
-
QTP
-
Rad view webload
C
Correct answer
Explanation
QTP (QuickTest Professional, now UFT) is a functional/automation testing tool, not a performance testing tool. LoadRunner, JMeter, and RadView WebLoad are all performance testing tools used for load and stress testing applications.
-
Synchronize
-
Wait
-
WaitProperty
-
Pause
C
Correct answer
Explanation
In QTP/UFT, synchronization ensures tests wait for specific application states before proceeding. WaitProperty pauses execution until a specified object property matches an expected value or times out, providing robust synchronization for dynamic applications.
A
Correct answer
Explanation
QTP (QuickTest Pro) stores test scripts with the .mts extension, which represents 'Mercury Test Script.' This file format contains the test's actions, resources, and configuration data, while .usr files store user settings and .vbs contains external VBScript code.
-
GetVisibleText
-
GetROProperty
-
SetROProperty
-
GetTOProperty
B
Correct answer
Explanation
GetROProperty (Get Run-Time Object Property) is the QTP/UFT method used to retrieve the current property value of a test object from the application during a run session. GetTOProperty retrieves properties from the test repository, and SetROProperty is not a valid method.
-
Session.Close ( )
-
Session.Discard ( )
-
Session.Abandon ( )
-
Session.Exit ( )
C
Correct answer
Explanation
Session.Abandon() is the correct method to explicitly terminate a user's session in ASP.NET. It ends the current session, releases session resources, and fires the Session_End event. The other methods (Close, Discard, Exit) do not exist in the Session API.