- 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 - You can modify the concurrent license server.
using License Wizard
by setting LSHOST user variable
by setting LSFORCEHOST user variable
at Help > About dialog box
Answer : C
Explanation
Concurrent license server details can be modified using License Wizard or by setting LSHOST or LSFORCEHOST user variable. It cannot be modified using Help > About Dialog box
Q 2 - When you split an action in your test that uses a local repository, Quick Test makes a copy of the local object repository and if you add objects to one of the split actions, the new object are added only to the corresponding repository.
Answer : A
Explanation
Yes, When you split an action in your test that uses a local repository, Quick Test makes a copy of the local object repository and if you add objects to one of the split actions, the new object are added only to the corresponding repository.
Q 3 - Which is the best match for the regular expression for dee(r|d)ees
deer
deedees
deerees
dees
Answer : B
Explanation
‘|’ instructs QTP to match one of a choice of expression, ‘(‘ groups the expression.
Q 4 - Which UFT feature should you use to view methods and properties of objects in your application?
Answer : C
Explanation
Object Spy tool helps tester to view methods and properties of objects.
Q 5 - A tester uses UFT connected to Quality Center (ALM) and the tests are stored in ALM. At an upcoming conference, this tester wants to demonstrate a new UFT test. The test makes calls to reusable actions from other QuickTest Professional tests stored in Quality Center. What is the simplest way to make the test portable so it can run disconnected from Quality Center?
A - Use the QuickTest Professional Save test with resources feature.
Answer : A
Explanation
Tester should use the QuickTest Professional Save test with resources feature to demonstrate a new UFT test inorder to make the test portable so it can run disconnected from Quality Center.
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 - What is the difference between a function and a sub procedure?
A - function can return a value whereas a sub procedure cannot
B - sub procedure can return a value whereas a function cannot
Answer : A
Explanation
The main difference between function and sub procedure is that function can return a value whereas sub procedure.
Q 8 - Where can you define or override default shortcut keys for editing?
Answer : B
Explanation
You can personalize the default keyboard shortcuts for editing at Tools > View options in key binding tab.
Q 9 - How can you define a date as a constant?
B - Const sDate = "30-04-2014"
Answer : C
Explanation
A date constant must start and end with a # e.g. Const sDate = #30-04-2014#
Q 10 - Err object contains information about the run time error. Which one of the following is the default property for Err object?
Answer : C
Explanation
Err object has a total of 5 properties and 2 methods associated with it. Number is the default