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 - How can you can hide Item column in keyword view?

  1. Right click on column header and unselect item

  2. Right click select 'view options' and remove item from visible column list

  3. Select Item column at Tools > View Options

  4. you cannot hide Item column in keyword view

A - (1) and (3) only

B - (1) and (2) Only

C - (1) (2) and (3) Only

D - (4) only

Answer : A


You can hide a column in keyword view by right clicking on column header and unselect the header name or select view Option and remove the header from visible column list.

Q 2 - Which property/method can be used as custom checkpoints in UFT?

  1. Wait

  2. Exist

  3. Sync

  4. GetROProperty

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

B - (1) (2) and (4) Only

C - (1) and(3) Only

D - (2) and (3)

Answer : D


Exist and Sync can be used as custom checkpoints.

Q 3 - When you use 'Object' Property of an object. What does it imply?

  1. you get a reference to the DOM object

  2. you can access the internal methods and properties of the object

  3. you can use an object that is not in Object Repository

  4. you can access the test object properties of an object from object repository

A - (1) and (2) only

B - (3) Only

C - (1) and(3) Only

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

Answer : A


Object property accesses the internal methods and properties also references to the DOM object.

Q 4 - Which UFT feature confirms that the application is functioning correctly?

A - parameterization

B - checkpoint

C - breakpoint

D - validation

Answer : B


Checkpoint confirms if the application is functioning correctly.

Q 5 - Which Recording mode records mouse and keyboard operations.

A - Analog

B - Low

C - Normal

D - Insight

Answer : A


Analog Recording mode records mouse and Keyboard Operations.

Answer : B


WebEdit("Name:=Author" , "Index:=3") is the correct syntax of descriptive programming.

Q 7 - You need to run an action (Action1) for one iteration with 2 inputs ("input1? and "input2?) and 1 output (output1) parameter but you just want to pass only 1 input("input1?) parameter and get the output, which of the below statements can be used in such a scenario?

A - RunAction "Action1", oneIteration, "input1", ,output1

B - RunAction "Action1", oneIteration, "input1", output1

C - RunAction "Action1", 1, "input1", output1

D - RunAction "Action1", 1, "input1", "",output1

Answer : A


Parameters should be passed in the same order as they are specified for an action. All input parameters should be passed first and then output parameters.

Q 8 - What will happen if more than one function of same name exists in the test or function library.

A - UFT stops and returns error

B - UFT gives a warning and continue running

C - UFT always considers the last function

D - UFT always considers the first function

Answer : C


When more than one function with the same name exists in the test script or function library, the last function will always be called.

Q 9 - Which toolbar contains pause button, to interrupt a run session?

A - Automation toolbar

B - Debug toolbar

C - Edit Toolbar

D - Action Toolbar

Answer : B


The pause button is contained in Debug toolbar.

Q 10 - How does HP UFT identify each object you record? (Select two.)

  1. by class

  2. by properties

  3. by methods

  4. by ID

  5. by name

A - (1) and (3) only

B - (2) and (4) only

C - (1) and (2) only

D - (4) and (5) only

Answer : C


UFT recognizes objects through class and properties