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 - You can remove the call to an action from a test by selecting the action using

  1. Resource pane

  2. Test Flow pane

  3. Keyword view

  4. Expert view

A - (1) and (3) only

B - (2) and (4) Only

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

D - (3) and (4) only

Answer : C

Explanation

An action call can be removed from the test either from Keyword view or Resource or Test flow pane.

Q 2 - What can be used to capture timings in your test?

  1. StartTransaction and EndTransaction

  2. StartTime and EndTime

  3. Timer

  4. Sync

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

B - (3) and (4) Only

C - (1) and (3) Only

D - (2) and (4)

Answer : C

Explanation

StartTransaction and EndTransaction can be used to capture timings, instead of this you can also use Timer function.

Q 3 - What type of environment variables can be added from Environment view under Test Settings?

A - Built-in and User-defined

B - Static and Dynamic

C - Only Built-in no User-defined

D - Only Static no Dynamic

Answer : A

Explanation

There are two types of environment variable – built-in and User-defined.

Q 4 - What is compared in a bitmap checkpoint?

  1. bits

  2. RGB

  3. pixels

  4. text

  5. jpegs

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

B - (3) Only

C - (4) and(5) Only

D - (1) (3) and (5)

Answer : B

Explanation

Bitmap checkpoint compares pixels only.

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 - What is the shortcut key to expand all the branches in the keyword view?

A +

B -

C ctrl+ENTER

D *

Answer : D

Explanation

Asterisk can be used to expand all the branches in the keyword view.

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 - Which function returns the starting position of the substring or a 0 if the function doesn't find the string?

A - SPLIT

B - MID

C - REVSTR

D - INSTR

Answer : D

Explanation

INSTR function is used to locate a substring in a string.

Q 9 - If not explicitly defined, a function procedure is ..... by Default

A - Private

B - Public

C - Protected

D - Preserve

Answer : B

Explanation

By Default, a function created is Public.

Q 10 - You have defined a global synchronization timeout of 30 seconds for your test. The synchronization point timeout for a button to become enabled is set to 30,000. During playback of the script, what is the maximum amount of time HP UFT will wait for the button to become enabled?

A - 30 seconds

B - 33 seconds

C - 60 seconds

D - 30,030 seconds

Answer : C

Explanation

Synchronization point timeout is in ms. Hence 30,000ms = 30s. UFT will wait for 30+30 = 60seconds.

qtp_questions_answers.htm
Advertisements