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 - When you call a sub procedure, you can use the call statement as

  1. call mySubProc(argument)

  2. Also,you can omit the call statement and just use − mySubProc(argument)

A - True

B - False

Answer : B


When you don't use call statement, parenthesis can not be used while calling a sub.

Q 2 - How can you create a .zip file of your test?

  1. File > Export Test to zip file

  2. File > Save as zip file

  3. File > Save Test with sources and select Archive test and resource files in a zip file check box


  5. you can not create a .zip file of the test.

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

B - (4) Only

C - (1) and(3) Only

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

Answer : A


UFT has a feature to export youur test to a zip file. you can do this by selecting ‘File >> Export Test to zip file’ (CTRL+ALT+S) menu options, or while saving the test with resources(File>Save Test with Resources) and select Archive test and resource files in a zip file check box.

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.

Answer : A


Any object in UFT is identified with the help of its class and object’s properties.

Q 5 - How can you pause and interact with the playback of a test?

A - Add a wait statement.

B - Add a breakpoint.

C - Add a delay.

D - Add a stop point.

Answer : B


Testers has to add a break point to debug or to pause and interact with the playback of a test.

Answer : A


If is best to use when we work with properties and methods of an object not in the object repository.

Q 7 - Which of the following file is recognized as an action template?

A - ActionTemplate.mst

B - ActionTemplate.mts

C - ActionTemplate.qsr

D - ActionTemplate.tmp

Answer : A


Only the file name ActionTemplate.mst is recognized as an action template.

Answer : C


To call a test script in another script, you need to make the actions in corresponding script reusable.

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


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

Q 10 - In the test results, square brackets around a test object name indicate that the test object was dynamically created using which functions? (Select two.)

  1. Child Objects method

  2. Smart Identification

  3. DynamicBuild method

  4. Create method

  5. Programmatic Description

A - (2) and (5)

B - (3) and (1)

C - (2) and (4)

D - (1) and (5)

Answer : D


Child Objects method and Programmatic Description