QTP Sample paper – Part 14 – **** Mostly asked questing in QTP Certification – 5…

1) You cannot expand …… actions from the test flow
view.
A) reusable
B) non-reusable
C) both A & B
D) None

2) You can associate shared object repositories with
…… actions simultaneously, using the Associate
Repositories dialog box
A) seven
B) Two
C) Three
D) Multiple

3) You can associate ……. object repositories with
an action, and the same object repository can be
associated with different actions as needed
A) Nine
B) Twenty one
C) as many as you need
D) Twelve

4) Sometimes you may want to call an action from
within an action. This is called …….
A) Reusability
B) Nesting
C) Sharing
D) None

5) If a reusable action is called more than once in a
test and you split the action into two independent
actions, each call to the action within the test will be
followed by a call to the new (reusable) action. If a
reusable action is called from another test, however,
…… it may cause the calling test to fail.
A) Nesting
B) Splitting
C) Reusing
D) Both A & C

6) You must use the …… Action option in QuickTest
if you want to save an action under another name.
A) Resave
B) Rename
C) Reuse
D) Split

7) When you remove an external action, you remove all
calls and the action from the action list. The original
action is also affected.
A) True
B) False

8) You can also press …… to open the Rename Action
dialog box
A) Shift + F2
B) Shift + F3
C) Shift + F4
D) Shift + F5

9) If you want to include one or more statements in
every new action in your test, you can create an ….
A) reusable action
B) split action
C) Function
D) action template

11) Only the file name …… is recognized as an
action template
A) ActionTemplate.mst
B) Action_Template.mst
C) Action-Template.mst
D) ActionTemplates.mstAnswers:
1) a 2) d 3) c 4) b 5) b 6) b 7) b 8) a 9) d 11) a

QTP Sample paper – Part 13 – **** Mostly asked questing in QTP Cerification – 4…

1. When a procedure is created in the Function Library editor, what is the extension on the file?

A. .INI
B. .TXT
C. .QFL
D. .VBS

2. What are the categories in the Step Generator?

A. Object, Operation, Value
B. Library, Built-in, Local Script
C. Operation, Arguments, Return Value
D. Test Objects, Utility Objects, Functions

3. In Test Settings ->Run the Data Table iteration options are for which data sheet?

A. Local
B. Global
C. Run-time Data Table
D. Design-time Data Table

4. What can you use to handle unpredictable testing exceptions?

A. A Do Loop
B. Recovery Scenario
C. IFHEN statement
D. Selectase statement

5. In which command can you associate a function library to a test?

A. Run Options
B. Test Settings
C. View Options
D. Function Definition Generator

6. Where do you set the action iterations for a specified action?

A. Action Settings
B. Action Properties
C. Action Run Settings
D. Action Call Properties

7. Where do you mark an action as reusable?

A. Action Settings
B. Action Properties
C. Action Run Settings
D. Action Call Properties

8. After running a test that contains both input and output parameters, where can the results of an
output parameter be found?

A. Local DataSheet
B. Global DataSheet
C. Run-time Data Table
D. Design-time Data Table

9. If you have a Virtual Object Collection stored on your machine, and you don’t want to use it, what
must you do?

A. Disable Virtual Objects in Test Settings
B. Remove the Collection from your machine
C. Disable Virtual Objects in General Options
D. Remove the Collections from the Resources list

10. Which method for the DataTable utility object will allow you to retrieve information from the Data
Table during a test run?

A. Value
B. Import
C. GetCell
D. GetValue
Answers:
1 2 3 4 5 6 7 8 9 10
C D B B B D B C C A

QTP Sample paper – Part 12 – **** Mostly asked questing in QTP Cerification – 3…

1) You can import and export object repositories from
and to …. files.
A) XML
B) MTS
C) TSR
D) XLS

2) In general, the ……. object repository is
easiest to use when you are creating simple record and
run tests.
A) Shared
B) Local
C) Both
D) None

3) The Object Repository automation object model
enables you to manipulate QuickTest ……. object
repositories and their contents from outside of
QuickTest.
A) Shared
B) Local
C) Both
D) None

4) Before using the Object Repository automation
object model to manipulate shared object repository
stored in Quality Center, you must download the shared
object repository and save it to the file system.
A) True
B) False

5) SetTOProperty changes the property values used to
identify an object during the test run. It also effects
the values saved in the Object Repository for the
object.
A) True
B) False

6) After creating or editing an object repository XML
file, it is recommended to use the QuickTest
……….functionality to verify that your file
conforms to the QuickTest object repository schema.
A) Schema Verification
B) Schema Validation
C) XML Validation
D) XML Verification

7) To display the Comment in the Object Repository
dialog box, you must use the attribute name ………
A) miccommentproperty
B) commentproperty
C) mic_comment_property
D) None of above

8) ObjectRepositoryUtil Object Enables you to
manipulate …..object repository files from outside of
QuickTest Professional.
A) Shared
B) Local
C) Both
D) None

9) You can use the Object Repository Merge Tool to
merge objects from ……
A) two shared object repositories into a single shared
object repository.
B) the local object repository of one or more actions or
components into a shared object repository.
C) Both A & B
D) None

10) GetTOProperty method returns the value of a
specified property for a test object from the Object
Repository.
A) True
B) False
Answers:
1)a 2)b 3)a 4)a 5)b 6)b 7)a 8)c 9)c 10)a

QTP Certification HP0-M16 Practice Questions – Set 10

91) An …….. assigns a numerical value to a test object that indicates its order or location relative to other objects with an otherwise identical description (objects that have the same values for all properties)
A) Index identifier.
B) ordinal identifier.
C) SMART ID identifier.
D) original identifier.

92) You can add an object to the local object repository only if that object does not already exist in a shared object repository that is associated with the action. If an object already exists in an associated shared object repository, you can add it to the local object repository using the …….. option.
A) Copy from Shared Repository
B) Copy from Shared Object Repository
C) Copy to Local
D) Copy to Local repository

93) You can copy, paste, and move objects in the local object repository using the Object Repository window, and copy, paste, and move objects both within a shared object repository and between shared object repositories using the Object Repository Manager. But you cannot copy objects from a shared object repository to the local object repository to modify them locally
A) True
B) False

94) At the time of copying, pasting and moving objects, you cannot move an object to any of its descendants.
A) True
B) False

95) When you remove a step from your test, its corresponding object is also removed from the object repository
A) True
B) False

96) You can use the Find and Replace dialog box to replace property or object names.
A) True
B) False

97) The Object Repository window is …… during record and run sessions
A) read-only
B) read-write only
C) read-write and enable
D) None of above

98) In the Associated Repositories tab of the Action Properties dialog box, the ……object repository is always listed first and cannot be moved down the priority list or deleted.
A) local
B) shared
C) Both
D) None

99) In the Associated Repositories tab of the Action Properties dialog box, although we can order the object repositories according to our choice except the fact that Shared Repository remains the first one and cannot be removed.
A) True
B) False

100) If your object repositories are stored in the file system and you want other users or Mercury products to be able to run this action on other computers, you should set the file path as a
A) Absolute path
B) relative path
C) both
D) None of above

Answers
91) B, 92) C, 93) B, 94) A, 95) B, 96) B, 97) A, 98) A, 99) B, 100) B

QTP Certification HP0-M16 Practice Questions – Set 9

81) In the Object Repository window:.
A) Local objects are editable (black)
B) Shared objects are in read-only format (gray)
C) Local objects are in read-only format (gray)
D) Shared objects are editable (black)
82) Mark true statement(s):.
A) You can delete objects from a shared object repository using the Object Repository window.
B) You can delete objects from the local object repository using the Object Repository Manager
C) You can delete objects from the local object repository using the Object Repository window
D) You can delete objects from a shared object repository using the Object Repository Manager

83) You can modify an object stored in a shared object repository.
A) using the Object Repository Manager
B) using the Object Repository window
C) you can copy it to the local object repository and then modify its properties
D) you cannot modify properties of objects stored in Shared object repository
84) If an object is contained in both local and shared repositories then, during a run session.
A) QuickTest will use the object in the local object repository
B) QuickTest will use the object in the Shared object repository
C) There will be a conflict
D) QuickTest will use Descriptive Programming
85) When you copy an object to the local object repository
A) its parent objects are also copied to the local object repository
B) its parent objects are not copied to the local object repository
C) You have to manually copy its parent objects are also copied to the local object repository
D) You have to manually drag and drop its parent objects
86) For tests, you can also view test object properties and property values for objects in the Active Screen, regardless of whether the objects are
stored in the object repository.
A) True
B) False
87) Object Properties window differs for objects stored in Shared and Local object repository.
A) True
B) False
88) You can rename objects in the shared object repository using the Object Repository Manager
A) True
B) False, you cannot rename objects in shared object repository
89) When you modify the name of an object in the local object repository, the name is automatically updated in ……. for all occurrences of the object..
A) in the Keyword View
B) in the Expert View
C) Both Keyword and Expert View
D) Changing name of an object doest not effect keyword or expert view
90) When you modify the name of an object in a shared repository, the name is automatically updated in all tests open on the same computer that use the object repository as soon as you make the change, even if you have not yet saved the object repository with your changes.
A) True
B) False

81) A,B, 82) C,D, 83) A,C, 84) A, 85) A, 86) A, 87) A, 88) A, 89) C, 90) A

QTP Certification HP0-M16 Practice Questions – Set 8

71) QuickTest processes a comments when it runs a test.

A) True
B) False

72) Press ….. to add a new step below the currently selected step.

A) F8
B) Shift + A
C) F0
D) Shift + A + Q

73) While working with the Keyword View, you can …… steps to move
them to a different location in a test or in an action

A) Copy and Paste
B) Cut and Paste
C) Drag and drop
D) Both A) and C)

74) You can specify the order in which the columns are displayed in the

Keyword view.

A) True
B) False

75) You can view ……. while working with keyword view.

A) object properties
B) action properties
C) action call properties
D) checkpoint properties
E) Output value properties
F) None of the above
G) All of above

76) You cannot manage some aspects of a local object repository using
the QuickTest Object Repository automation object model..

A) True
B) False

77) For each action, you can use a combination of objects from your
local and shared object repositories.

A) True
B) False

78) QuickTest adds all new objects to the local object repository even
if one or more shared object repositories are already associated with
the action assuming that an object with the same description does not
already exist in one of the associated shared object repositories..

A) True
B) False

79) If a child object is added to a local object repository, and its
parents are in a shared object repository, then you have to manually
drag and drop its parent objects from shared object repository to local
object repository.

A) True
B) False

80) The ……. is not accessible as a separate file

A) local object repository
B) shared object repository
C) Both
D) None

Answers

71) B, 72) A, 73) D, 74) A, 75) G, 76) B, 77) A, 78) A, 79) B, 80) A