- QTP Tutorial
- 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 Useful Resources
- QTP - Questions and Answers
- QTP - Quick Guide
- QTP - Useful Resources
- QTP - Discussion
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 do you call a function created within your test?
Function Flight(x) .. ... ... End Function
Call Flight z
Call Flight(z)
n = Flight(z)
n = Flight z
Answer : B
Explanation
Parenthesis should be used while calling a function using a call statement or assigning to a variable.
Q 2 - Why do you use Add-in Manager?
to open UFT.
to load objects and properties for testing your application
to load support for testing your application.
to create object repository for testing your application
Answer : B
Explanation
You use the Add-in Manager to load support for testing your applications.
Answer : B
Explanation
You can insert conditional statements in keyword as well as expert view.
Q 4 - Which checkpoint type should you use to validate the enabled state of a button?
Answer : C
Explanation
Standard checkpoint helps us to validate the enabled state of a button.
Q 5 - What can you do using the To Do pane? (Select two.)
Assign tasks to others.
Mark a task as In progress.
View TODO comments existing in the current test recovery scenarios.
Export TODO comments to comma-separated values or XML format.
View TODO comments existing in the current test checkpoints.
Answer : D
Explanation
Once can do : Assign tasks to others, Export TODO comments to comma-separated values or XML format.
Q 6 -If you need to add the steps or update the object repository while running your test, which run mode can be used?
Answer : B
Explanation
Maintenance Run mode can be used to repair your test during run session.
Q 7 - If you have not saved your test with active screen files and later you want to edit your test using active screen options. How can you regenerate the active screen information?
A - you can not edit it now, test should be re-designed.
B - performing the maintenance run.
Answer : C
Explanation
Active screen can be regenerated by performing the update run.
Q 8 - After registering a function to a test object using RegisterUserFunc, it is displayed as .... in Keyword view and Step Generator.
Answer : B
Explanation
After registering a function to a test object using RegisterUserFunc, it is displayed as Operation in Keyword view and Step Generator.
Q 9 - What does the following statement return? -
str = "QuickTestProfessional"
msgbox mid(str,instr(str,"P"),len(str))
Answer : B
Explanation
str = “QuickTestProfessional”.
Q 10 - Place the methods for identifying an object in the order in which UFT would attempt to use them Assume they are all defined/enabled.
A - Visual Relation Identifiers, Description Properties, Smart identification and Ordinal Identifier
B - Description Properties, Visual Relation Identifiers, Smart identification, Ordinal Identifier
C - Smart identification, Ordinal Identifier, Visual Relation Identifiers and Description Properties
D - Visual Relation Identifiers , Smart identification, Ordinal Identifier, Description Properties
Answer : B
Explanation
Description Properties followed by VRI then by Smart identification and finally by ordinal identifier.