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 - When you create a bitmap checkpoint, UFT captures only the visible part of the object as bitmap, it does not capture anything which is scrolled off the screen.

A True

B False

Answer : A

Explanation

QTP/UFT captures only the visible part of the object when using bitmap checkpoint

Q 2 - Recovery Scenarios, Object Repository per Action and Shared Object Repository carry extensions

A - qrs, mtr and mtb respectively

B - qrs, mtr and tsr respectively

C - qrs, mtb and mts respectively

D - qrs, mst and mts respectively

Answer : B

Explanation

File Extensions for a Recovery scenario file is ‘qrs’, for Per Action Object Repository – ‘mtr’,shared object repository -‘tsr’ Batch Test – ‘mtb’, Script file – ‘mts’ for action template – ‘mst’.

Q 3 - You set your Record and Run settings to 'Record and run test on any open browser'. Which applications will be recorded?

  1. Firefox

  2. Safari

  3. Opera

  4. Chrome

  5. Internet Explorer

A - (1) (4) and (5) only

B - (5) Only

C - (1) and (5) Only

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

Answer : C

Explanation

Firefox and IE are used when we set Record and Run settings to 'Record and run test on any open browser'

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

Explanation

Define a monitor limit can be used to cause the test to fail?

Q 7 - The Documentation cell in Keyword view is ____________.

A - Read-only

B - Write-only

C - Read-Write

D - read, write and execute

Answer : A

Explanation

You cannot edit documentation cell in keyword view.

Q 8 - Where can you define or override default shortcut keys for editing?

A - Tools > Options

B - Tools > View Options

C - Tools > Customize

D - Shortcut keys cannot be personalized.

Answer : B

Explanation

You can personalize the default keyboard shortcuts for editing at Tools > View options in key binding tab.

Q 9 - How many times 'LearnQTP' will be Printed?

Dim x, y

For x = 0 to 5 step 2

For y = 5 to 0 step -1

print “LearnQTP”

Next

Next

A - 36

B - 18

C - 15

D - 25

Answer : B

Explanation

Executing the given statements will print 'LearnQTP' 18 times as outer for loop executes for 3 times(index variable incremented by 2) and inner loop by 6 times.

Q 10 - A test, EditShoppingCart, has a call to an external action, SaveCart. The owner of SaveCart needs to perform maintenance on it and has turned off its Reusable property. When testers open the EditShoppingCart test, how will they know that the SaveCart action is unavailable?

A - SaveCart is listed with an explanation in the Details column in the Missing Resources panel.

B - HP UFT pops up an informational message when EditShoppingCart is opened.

C - SaveCart is grayed out in the Test Flow panel.

D - SaveCart is grayed out in the External Actions list in the Resources panel.

Answer : B

Explanation

HP UFT pops up an informational message when EditShoppingCart is opened.

qtp_questions_answers.htm
Advertisements