- 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 - When you call a sub procedure, you can use the call statement as
call mySubProc(argument)
Also,you can omit the call statement and just use − mySubProc(argument)
Answer : B
Explanation
When you don't use call statement, parenthesis can not be used while calling a sub.
Q 2 - What can be used to capture timings in your test?
StartTransaction and EndTransaction
StartTime and EndTime
Timer
Sync
Answer : C
Explanation
StartTransaction and EndTransaction can be used to capture timings, instead of this you can also use Timer function.
Q 3 - How can you add recordable or non-recordable operations to your test?
Use the Step Generator
Insert through Keyword View.
Drag objects from Available Keywords.
Drag objects from the Data Table.
Answer : C
Explanation
It can be added using step generator or through keyword view or it can be dragged objects from available keywords.
Q 4 - Which step categories can be added using the Step Generator Tool ?
run-time objects
default object types
test objects
utility objects
data objects
Functions
Answer : D
Explanation
Test object, utility objects and functions can be added using the step generator tool.
Q 5 - Which conflicts does the Objects Repositories Merge Tool detect? (Select three)
same object different parent
same name different description
same description different name
same name extra properties
similar description
Answer : D
Explanation
OR Merge tool looks for 3 conflicts - same name different description, same description different name and similar description.
Q 6 - Which statement should you use to export all sheets in the Data Table?
A - DataTable.Export ("C:\flights.xls")
B - DataTable.ExportSheet ("C\flights.xls.", ALL)
Answer : A
Explanation
DataTable.Export (Filename) to be used to export all sheets in a datatable.
Q 7 - A checkpoint returns a _________ value.
Answer : C
Explanation
Checkpoint returns a Boolean value.
Q 8 - What will happen if more than one function of same name exists in the test or function library.
A - UFT stops and returns error
B - UFT gives a warning and continue running
Answer : C
Explanation
When more than one function with the same name exists in the test script or function library, the last function will always be called.
Q 9 - If not explicitly defined, a function procedure is ..... by Default
Answer : B
Explanation
By Default, a function created is Public.
Q 10 - What is the purpose of the Visual Relation Identifier?
A - It allows identification of objects, based on mapping of the Object Hierarchy to the AUT.
B - It allows identification of objects, based on sorting of objects on the AUT in a specific order.
C - It allows identification of objects, based on mapping to specific default classes.
D - It allows identification of objects, based on their neighboring objects.
Answer : D
Explanation
It allows identification of objects, based on their neighboring objects.
To Continue Learning Please Login
Login with Google