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 - How can you open a process that is available for currently open document?

  1. File > Process Guidance Management

  2. Automation > Process Guidance List

  3. Process Guidance Pane

  4. we cannot open a process.

A - (1) and (3) only

B - (2) and (4) Only

C - (2) and (3) Only

D - (1) and (4) only

Answer : C

Explanation

A Process can be viewed in Process Guidance Pane and also can be opened by selecting Automation > Process Guidance list.

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 - How do you synchronize your scripts in QTP ?

  1. Sync

  2. Exist

  3. WaitProperty

  4. Visible

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

B - (3) Only

C - (1) and(3) Only

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

Answer : A

Explanation

You can synchronize script using Sync, Exist or using WaitProperty.

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.

Q 5 - Which steps are required to connect to ALM from UFT? (Select three.)

  1. define a project

  2. connect to the server

  3. authenticate user

  4. create a user

  5. define a domain

  6. select a project

A - (2) (3) and (4)

B - (1) (2) and (3)

C - (2) (3) and (6)

D - (2) (3) and (5)

Answer : C

Explanation

Steps includes connect to the server,authenticate user and selecting a project.

Q 7 - Which built-in environment variable indicates the test iteration running currently?

A - Action Iteration

B - TestIteration

C - Iteration Id

D - IterationID

Answer : B

Explanation

TestIteration indicates which test iteration is currently running.

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