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 - What type of image format UFT supports for CaptureBitmap method?

  1. bmp

  2. jpg

  3. png

  4. gif

A - (1) and (2) only

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

C - (1) and (3) Only

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

Answer : C

Explanation

UFT supports only bmp and png types only using captureBitmap Method.

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 - 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 - Which statement type can you use in your test to wait for a condition to be met and fail the test if it times out before meeting the condition?

A - pause method

B - exist method

C - standard checkpoint

D - wait statement

Answer : C

Explanation

Standard Checkpoint helps testers to wait for a condition to be met and fail the test if it times out before meeting the condition

Q 5 - Identify UFT resources. (Select three.)

  1. test versions

  2. actions

  3. checkpoints

  4. function libraries

  5. images

  6. recovery scenarios

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

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

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

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

Answer : D

Explanation

UFT Resources in the above list are actions, checkpoints and recovery scenarios

Answer : B

Explanation

Active screen stores the path to images and other resources on the page.

Q 7 - If you have defined an input parameter for an action as "TestId", which of the following can be used to retrieve this parameter value?

A - Parameter("TESTID")

B - Parameter("TestId")

C - Parameter("testid")

D - Parameter("TestID")

Answer : B

Explanation

Input or output action parameter names are case sensitive.

Answer : B

Explanation

To disable a virtual object collection, select ‘Disable virtual objects in General options'.

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

Data is overwritten when column headers in Excel and the data table match.

qtp_questions_answers.htm
Advertisements