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

Explanation

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 - 'Exit For' can be used as an alternate way to exit from the loop of _______________.

  1. Do...While

  2. For...Loop

  3. For...Next

  4. For Each...Next

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

B - (3) Only

C - (1) and(3) Only

D -(3) and (4) only

Answer : D

Explanation

Exit For can be used to exit from a For..Next and For Each Next loop.

Q 3 - What are the default add-ins checked for installation in UFT

  1. .NET

  2. ActiveX

  3. HTML

  4. Web

  5. Java

  6. Visual Basic

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

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

C - (1) and(4) Only

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

Answer : B

Explanation

While installing UFT, the .NET, Wen and VB plugins are activated by default for installation

Q 4 - Which Checkpoint validate the image color.

A - Standard

B - Bitmap

C - Page

D - Picture

Answer : B

Explanation

Bitmap checkpoint helps us to validate the image color.

Q 6 - Which method retrieves a property of a runtime object?

A - GetROProperty

B - GetTOProperty

C - GetRuntimeObjectProperty

D - GetRTProperty

Answer : A

Explanation

GetROProperty retrieves a property of a runtime object.

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

Explanation

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 - When you set the path of your application at 'Record and Run Setting' to automatically open the application on recording, what is the statement that gets added in expert view for this step of opening application?

A - SystemUtil.Run

B - ExecuteFile

C - InvokeApplication

D - QTP does not add a statement for this statement.

Answer : D

Explanation

When you specify an application to open using the Record and Run Settings dialog box, QuickTest does not add a SystemUtil.Run or any other statement to your test.

Q 9 - Which statement can be used to handle unexpected errors in your test?

A - On Error Goto 0

B - On Error Goto ErrHandler

C - On Error Resume Next

D - ON Error SKIP

Answer : C

Explanation

We can use On error resume next in UFT script to handle unexpected errors.

Q 10 - Which tool can be used to merge checkpoints and output objects from primary or secondary object repository into a shared object repository?

A - Object Spy

B - Object Repository Merge Tool

C - Object Repository Comparison Tool

D - No tool can merge checkpoint or output objects

Answer : D

Explanation

There is no tool available to merge checkpoint or output objects.

qtp_questions_answers.htm
Advertisements