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 the tool(s) is/are available along with the installation of UFT?

  1. Silent Test Runner

  2. Test Batch Runner

  3. Script Batch Runner

  4. Test Result Creation Tool

  5. HP Video Player

  6. Remote Agent

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

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

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

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

Answer : D

Explanation

The tools that are available along with the installation of UFT are Silent Test Runner, Test Batch Runner, Remote Agent, HP Micro Player, Test Result Deletion tool.

Q 2 - How can you remove a stored movie from the test result?

  1. Selecting File > Remove Movie from Results.

  2. Selecting Tools > Remove Movie from Results.

  3. Delete physical movie file from the result location.

  4. once recorded you can not remove the movie from test result.

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

B - (3) Only

C - (2) and(4) Only

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

Answer : C

Explanation

To remove recorded movie from the test result, you can either select ‘Remove Movie from Results’ in File menu or you can delete the physical movie file at result location.

Q 3 - Which is the best match for the regular expression for dee(r|d)ees

  1. deer

  2. deedees

  3. deerees

  4. dees

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

B - (2) and (3) Only

C - (1) and (4) Only

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

Answer : B

Explanation

‘|’ instructs QTP to match one of a choice of expression, ‘(‘ groups the expression.

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.

Answer : B

Explanation

Update from Local Repository Tool is the option to be used for merging OR.

Answer : D

Explanation

There are four capture levels available in UFT - None, Minimum, Partial and Complete. Can be found under Tools > Options> Active Screen.

Q 7 - You can use regular expressions to define the value range for a checkpoint.

A - True

B - False

Answer : A

Explanation

Regular expression can be used in checkpoint to define the value range.

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 - There are two objects on a webpage with same description. How will you distinguish between these two objects?

A - using 'text' property

B - using 'class name' property

C - using 'index' property

D - using 'html tag' property

Answer : C

Explanation

For more than one object with same description, you can define the index property for the description.

Q 10 - If a list of recovery scenarios are made default for all new tests that you create. What happens if you make any changes to this list for a new test?

A - it affects the current test only

B - it affects all the existing tests

C - the defined default list changes.

D - there will be no affect at all.

Answer : A

Explanation

If you make any changes to the default list of recovery scenarios, it affects the current test only where the changes have been made.


qtp_questions_answers.htm

Advertisements