- QTP - Home
- QTP - Introduction
- QTP - Test Automation
- QTP - Environment Setup
- QTP - Record and Play Back
- QTP - Object Repository
- QTP - Actions
- QTP - DataTables
- QTP - Checkpoints
- QTP - Synchronization
- QTP - Smart Identification
- QTP - Debugging
- QTP - Error Handling
- QTP - Recovery Scenarios
- QTP - Environment Variables
- QTP - Library Files
- QTP - Test Results
- QTP - GUI Objects
- QTP - Virtual Objects
- QTP - Accessing Databases
- QTP - Working with XML
- QTP - Descriptive Programming
- QTP - Automation Object Model
- QTP - Frameworks
- QTP - Designing a Framework
QTP Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to QTP Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - How can you can hide Item column in keyword view?
Right click on column header and unselect item
Right click select 'view options' and remove item from visible column list
Select Item column at Tools > View Options
you cannot hide Item column in keyword view
Answer : A
Explanation
You can hide a column in keyword view by right clicking on column header and unselect the header name or select view Option and remove the header from visible column list.
Q 2 - 'Exit For' can be used as an alternate way to exit from the loop of _______________.
Do...While
For...Loop
For...Next
For Each...Next
Answer : D
Explanation
Exit For can be used to exit from a For..Next and For Each Next loop.
Q 3 - What are the default add-ins checked for installation in UFT
.NET
ActiveX
HTML
Web
Java
Visual Basic
Answer : B
Explanation
While installing UFT, the .NET, Wen and VB plugins are activated by default for installation
Answer : B
Explanation
Bitmap checkpoint helps us to validate the image color.
Q 5 - When inserting a call to a reusable action, how are the data resources in that action handled?
B - A copy of the data is made (editable) and stored with the new action.
C - The tester must make a one-time selection to either copy the data or refer to the original data.
D - The tester always has the option to copy the data or refer to the original data.
Answer : D
Explanation
The tester always has the option to copy the data or refer to the original data.
Q 6 - Which method retrieves a property of a runtime object?
Answer : A
Explanation
GetROProperty retrieves a property of a runtime object.
Q 7 - You need to run an action (Action1) for one iteration with 2 inputs ("input1? and "input2?) and 1 output (output1) parameter but you just want to pass only 1 input("input1?) parameter and get the output, which of the below statements can be used in such a scenario?
A - RunAction "Action1", oneIteration, "input1", ,output1
B - RunAction "Action1", oneIteration, "input1", output1
Answer : A
Explanation
Parameters should be passed in the same order as they are specified for an action. All input parameters should be passed first and then output parameters.
Q 8 - When you set the path of your application at 'Record and Run Setting' to automatically open the application on recording, what is the statement that gets added in expert view for this step of opening application?
Answer : D
Explanation
When you specify an application to open using the Record and Run Settings dialog box, QuickTest does not add a SystemUtil.Run or any other statement to your test.
Q 9 - Which statement can be used to handle unexpected errors in your test?
Answer : C
Explanation
We can use On error resume next in UFT script to handle unexpected errors.
Q 10 - Which tool can be used to merge checkpoints and output objects from primary or secondary object repository into a shared object repository?
B - Object Repository Merge Tool
Answer : D
Explanation
There is no tool available to merge checkpoint or output objects.