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

QTP Certification HP0-M16 Practice Questions – Set 7

Read QTP Certification sample Questions – Part 6
61) You can use the Keyword View to add a step ……….in your test.

A) at the end
B) below the currently selected step
C) at the beginning
D) at anypoint

62) The Documentation cell is ………….

A) Read-only
B) Write-only
C) Read and Write
D) Read, write & execute

63) An Item column can be any of the following:

A) A test object
B) A statement like Dim
C) A step generated by step generator
D) All of above

64) The Operation cell in the keyword view specifies the operation to be
performed on the item listed in the ……….. column.

A) Operation
B) Documentation
C) Item
D) Value

65) Even if the Item column in the Keyword View is displayed to the
right of the Operation column, you must still first select an item to
view the list of available operations in the Operation column.

A) True
B) False

66) The Value cell in the keyword view can contain…….. value

A) Constant
B) Parameter
C) Both A) & B)
D) None of these

67)The …………… enables you to encode your passwords and place
secure values into the Data Table.

A) Password Encoder
B) Password Decoder
C) Password Encode
D) Password Decode

68) You can also encrypt strings in Data Table cells using the ………
option in the Data Table menu.

A) Decrypt
B) Encrypt
C) Encrypt Code
D) Decrypt Code

69) In addition to adding standard statement steps to your test using
the Keyword View, you can also insert

A) Checkpoint step
B) Output value step
C) Comment step
D) All of above

70) The correct syntax of the conditiona statement starting with Do is…..

A) Do…While
B) Do…Until
C) Do…Next
D) Both A) and B)

Answers

61) D, 62) A, 63) D, 64) C, 65) A, 66) C, 67) A, 68) B, 69) D, 70) D