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 - 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

Explanation

Exist and Sync can be used as custom checkpoints.

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.

Q 4 - User-defined environment variables can be imported from an external file. What is the valid file type that can be imported?

A - txt

B - xml

C - csv

D - html

Answer : B

Explanation

XML files are imported into environmental variables option under Test Settings > Environment > User Defined dropdown option.

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 7 - Which function is used to create an object of specified type?

A - Description.Create

B - CreateObject

C - Object.Create

D - Object.Createtype

Answer : B

Explanation

CreateObject is used to create an object of specified type.

Q 8 - While comparing two object repository using Object Repository Comparison tool, If the same object is contained in both repositories but with different names, how this will be shown in repository?

A - as a single object

B - as two separate objects

C - removes the objects

D - there will be a conflict

Answer : B

Explanation

If the same object is contained in both the object repositories but with different names, they will be shown in the object repositories as two separate objects.

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

GETROPROPERTY - to retrieve a property value of a runtime object

qtp_questions_answers.htm
Advertisements