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 - Steps recorded using Analog recording can be editable in keyword view.

A - True

B - False

Answer : B

Explanation

We cannot edit Analog recording steps

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 - How do you synchronize your scripts in QTP ?

  1. Sync

  2. Exist

  3. WaitProperty

  4. Visible

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

B - (3) Only

C - (1) and(3) Only

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

Answer : A

Explanation

You can synchronize script using Sync, Exist or using WaitProperty.

Q 4 - Which object repository type is created by default ?

  1. shared

  2. reusable

  3. local

  4. global

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

B - (3) Only

C - (1) and(3) Only

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

Answer : B

Explanation

Local object repository is created by default and carries the extension .bdb.

Q 5 - Identify UFT resources. (Select three.)

  1. test versions

  2. actions

  3. checkpoints

  4. function libraries

  5. images

  6. recovery scenarios

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

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

C - (4) (5) and (6) Only

D - (2) (4) and (6) only

Answer : D

Explanation

UFT Resources in the above list are actions, checkpoints and recovery scenarios

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 - If a non-reusable action is stored with your test and is called only once in the test, how does it affect the test if you remove this action?

A - deletes the selected call to the action.

B - deletes it entirely.

C - deletes the selected call to the action without affecting the action in source test.

D - deletes it entirely, including its corresponding action sheet.

Answer : D

Explanation

When you remove a non-reusable action which is stored with the test and called only once, deletes it entirely including the action sheet from data table.

Q 8 - How can you declare a variable in UFT?

A - Dim MyVar

B - Dim 123MyVar

C - Dim MyVar, 123MyVar

D - Dim My.Var

Answer : A

Explanation

A variable should not begin with a numeric character and should not contain an embedded period.

Q 9 - Which of the following statements can be used to clear the errors occurred in earlier statements if any?

A - Err.Raise

B - Err.Delete

C - Err.Clear

D - Err.Number = 0

Answer : C

Explanation

Err.Clear statement is used to clear the errors occured earlier in the statements, if any.

Answer : A

Explanation

Contains information about license code and can be found under C:\Program Files\Common Files\HP\License Manager\lservrc

qtp_questions_answers.htm
Advertisements