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.

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 - Recovery Scenarios, Object Repository per Action and Shared Object Repository carry extensions

A - qrs, mtr and mtb respectively

B - qrs, mtr and tsr respectively

C - qrs, mtb and mts respectively

D - qrs, mst and mts respectively

Answer : B

Explanation

File Extensions for a Recovery scenario file is qrs, for Per Action Object Repository mtr,shared object repository -tsr Batch Test mtb, Script file mts for action template mst.

Q 3 - Which is the best match for the regular expression for dee(r|d)ees

  1. deer

  2. deedees

  3. deerees

  4. dees

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

B - (2) and (3) Only

C - (1) and (4) Only

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

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?

A - Spy Object

B - Object Repository

C - Object Spy

D - Object Viewer

Answer : C

Explanation

Object Spy tool helps tester to view methods and properties of objects.

Q 5 - What can you do using the To Do pane? (Select two.)

  1. Assign tasks to others.

  2. Mark a task as In progress.

  3. View TODO comments existing in the current test recovery scenarios.

  4. Export TODO comments to comma-separated values or XML format.

  5. View TODO comments existing in the current test checkpoints.

A - (1) and (2) only

B - (3) and (4) Only

C - (4) and (5) Only

D - (1) and (4) Only

Answer : D

Explanation

Once can do : Assign tasks to others, Export TODO comments to comma-separated values or XML format.

Answer : C

Explanation

GetTOProperties fetches test object's properties during the test run.

Q 7 - Which built-in environment variable indicates the test iteration running currently?

A - Action Iteration

B - TestIteration

C - Iteration Id

D - IterationID

Answer : B

Explanation

TestIteration indicates which test iteration is currently running.

Q 8 - After registering a function to a test object using RegisterUserFunc, it is displayed as .... in Keyword view and Step Generator.

A - Item

B - Operation

C - Library

D - Arguments

Answer : B

Explanation

After registering a function to a test object using RegisterUserFunc, it is displayed as Operation in Keyword view and Step Generator.

Q 10 - Err object contains information about the run time error. Which one of the following is the default property for Err object?

A - Source

B - Description

C - Number

D - HelpText

Answer : C

Explanation

Err object has a total of 5 properties and 2 methods associated with it. Number is the default

qtp_questions_answers.htm
Advertisements