QTP Online Quiz


Advertisements


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 - Which of these checkpoints does not require the test to be in recording mode?.

  1. Standard checkpoint

  2. Database checkpoint

  3. XML checkpoint

  4. Page checkpoint

  5. Bitmap Checkpoint

A - (1) and (2) only

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

C - (2) and (3) Only

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

Answer : C

Explanation

You can insert database and xml checkpoint without being in recording mode.

Q 2 - Which of these Add-ins QTP currently supports to work with Extensibility?

  1. .Net

  2. Visual Basic

  3. Delphi

  4. Web

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

B - (3) Only

C - (1) and(3) Only

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

Answer : D

Explanation

Currently UFT supports Web, .Net, Java and Delphi Add-ins for Extensibility.

Q 3 - Which UFT View Option will show you the repositories associated with each action?

  1. Resources

  2. Information

  3. Script Repository

  4. Active Screen

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

B - (1) Only

C - (1) and(3) Only

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

Answer : B

Explanation

Resources pane shows the repositories associated with each action.

Answer : A

Explanation

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

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.

Q 6 -If you need to add the steps or update the object repository while running your test, which run mode can be used?

A - Normal Run mode

B - Maintenance Run mode

C - Update Run mode

D - Debug mode

Answer : B

Explanation

Maintenance Run mode can be used to repair your test during run session.

Q 7 - A checkpoint returns a _________ value.

A - Integer

B - Float

C - Boolean

D - Checkpoint does not return a value

Answer : C

Explanation

Checkpoint returns a Boolean value.

Q 8 - What is the equivalent method available in vbscript for ExecuteFile method in UFT?

A - ExecuteGlobal

B - ExecuteLocal

C - Execute

D - ExecuteFile

Answer : A

Explanation

The ExecuteFile statement utilizes the VBScript ExecuteGlobal statement.

Q 9 - Which environment variable can be used to determine the path of the folder in which the test is located?

A - ProductDir

B - TestDir

C - ResultDir

D - None of the above

Answer : B

Explanation

Environement varaible ‘TestDir’ is used to get the test location.

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