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 - You can modify the concurrent license server.

  1. using License Wizard

  2. by setting LSHOST user variable

  3. by setting LSFORCEHOST user variable

  4. at Help > About dialog box

A - (1) and (2) only

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

C - (1) (2) and (3) Only

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

Answer : C

Explanation

Concurrent license server details can be modified using License Wizard or by setting LSHOST or LSFORCEHOST user variable. It cannot be modified using Help > About Dialog box

Q 2 - The changes made in Call to Action, will be reflected in the original action (from where the script is called) where as in Copy Action , the changes made in the script ,will not effect the original script(Action)

A - True

B - False

Answer : A

Explanation

Seat license is specific to a computer on which it is installed.

Q 3 - During the planning phase, you decide to create multiple actions that can be combined and reused to achieve testing goals. Which element is critical for identifying the actions to be recorded and how to combine them?

A -input data

B - parameters

C -initial and end conditions

D -visual cue

Answer : C

Explanation

Initial and end conditions is critical for identifying and combining them.

Q 4 - Which checkpoint type uses a query to validate expected value?

A - standard

B - table

C - database

D - SQL Checkpoint

Answer : C

Explanation

Database checkpoint is used to query to validate expected value.

Answer : B

Explanation

When call to copy of an action is performed all the steps, checkpoints, parameterizations, action parameters, and object repository are all copied over.

Answer : D

Explanation

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

Answer : A

Explanation

The main difference between function and sub procedure is that function can return a value whereas sub procedure.

Q 8 - When you use Option Explicit and try to use an undeclared variable name, what is the error that occurs?

A - Variable is undefined

B - Option Explicit Violation Error

C - Value cannot be assigned to variable

D - General Run Error

Answer : A

Explanation

Using an undeclared variable implicitly will cause an error - Variable is unidentified.

Q 9 - Which objectRepositoryUtil method is used to add an object to the object repository?

A - Load

B - GetObject

C - AddObject

D - Add

Answer : C

Explanation

You can add an object to Object Repository using the ObjectRepositoryUtil method AddObject.

Q 10 - When inserting a call to a reusable action, which two ways can the tester handle the data resources in that action?

  1. Have the new action refer to a read-only copy of the data in the original action.

  2. Have the action get an empty set of data resources.

  3. Delete the data.

  4. Store an editable copy of the data in the new action.

  5. Have the new action refer with write permissions to the copy of the data in the original action.

A - (1) (2) and (5)

B - (3) (4) and (5)

C - (1) (2) and (3)

D - (1) and (4)

Answer : D

Explanation

Have the new action refer to a read-only copy of the data in the original action and Store an editable copy of the data in the new action.


qtp_questions_answers.htm

Advertisements