QTP Online Quiz


Advertisements

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.

Questions and Answers

Q 1 - While merging two object repositories using Merge Tool, if an object in the secondary repository has the same name, description properties and values as an object in the primary object repository which has some additional properties and values, how this conflict can be handled?

  1. By keeping the object added from the primary object repository only.

  2. By keeping the object added from secondary repository only.

  3. By keeping the object added from both the repository.

  4. by ignoring both repository and adding a fresh new object.

A - (1) (2) and (3) only

B - (2) and (4) Only

C - (2) and (3) Only

D - (3) and (4) only

Answer : A

Explanation

You can handle this conflict by either adding objects from primary object repository only or only from secondary object repository or both..

Q 2 - Which is the best match for the regular expression for deer|dees

  1. deer

  2. deedess

  3. deerees

  4. dees

A - (1) (2) and (3) only

B - (3) Only

C - (1) and(4) Only

D - All (1) (2) (3) and (4)

Answer : C

Explanation

'|' instructs UFT to match one of a choice of expressions.

Q 3 - Which UFT View Option will show you the repositories associated with each action?

  1. Resources

  2. Information

  3. Script Repository

  4. Active Screen

A - (1) (2) and (3) only

B - (1) Only

C - (1) and(3) Only

D - All (1) (2) (3) and (4)

Answer : B

Explanation

Resources pane shows the repositories associated with each action.

Answer : B

Explanation

The summary reports the status for each iteration in the test result summary page.

Q 6 - What is the shortcut key to expand all the branches in the keyword view?

A +

B -

C ctrl+ENTER

D *

Answer : D

Explanation

Asterisk can be used to expand all the branches in the keyword view.

Answer : B

Explanation

There are three options are there to define table checkpoint row range All Rows, Visible Rows and Another Range

Q 8 - When you use Option Explicit and try to use an undeclared variable name, what is the error that occurs?

A - Variable is undefined

B - Option Explicit Violation Error

C - Value cannot be assigned to variable

D - General Run Error

Answer : A

Explanation

Using an undeclared variable implicitly will cause an error - Variable is unidentified.

Q 9 - How many types of ordinal identifiers are there in UFT?

A - 3

B - 2

C - 4

D - 5

Answer : A

Explanation

Index, Location and CreationTime.

Q 10 - Which statement(s) can be used to declare a variable explicitly?

  1. Dim

  2. ReDim

  3. Static

  4. protected

  5. DECLARE

A - (1) and (2) only

B - (2) and (3) only

C - (3) and (5) only

D - (4) and (5) only

Answer : A

Explanation

A variable can be declared explicitly using Dim, ReDim, Private, Public

qtp_questions_answers.htm
Advertisements