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 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 - When you split an action in your test that uses a local repository, Quick Test makes a copy of the local object repository and if you add objects to one of the split actions, the new object are added only to the corresponding repository.

A - True

B - False

Answer : A

Explanation

Yes, When you split an action in your test that uses a local repository, Quick Test makes a copy of the local object repository and if you add objects to one of the split actions, the new object are added only to the corresponding repository.

Q 3 - Which is the best match for the regular expression for dee(r|d)ees

  1. deer

  2. deedees

  3. deerees

  4. dees

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

B - (2) and (3) Only

C - (1) and (4) Only

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

Answer : B

Explanation

‘|’ instructs QTP to match one of a choice of expression, ‘(‘ groups the expression.

Q 4 - Which UFT feature should you use to view methods and properties of objects in your application?

A - Spy Object

B - Object Repository

C - Object Spy

D - Object Viewer

Answer : C

Explanation

Object Spy tool helps tester to view methods and properties of objects.

Q 5 - A tester uses UFT connected to Quality Center (ALM) and the tests are stored in ALM. At an upcoming conference, this tester wants to demonstrate a new UFT test. The test makes calls to reusable actions from other QuickTest Professional tests stored in Quality Center. What is the simplest way to make the test portable so it can run disconnected from Quality Center?

A - Use the QuickTest Professional Save test with resources feature.

B - Change the calls to the reusable actions, use copies of the reusable actions, and then use the QuickTest Professional Save test with resources feature.

C - Use the QuickTest Professional Save test with resources feature for main test and do the same for the test that contains the called reusable actions.

D - Use the QuickTest Professional Export to zip feature.

Answer : A

Explanation

Tester should use the QuickTest Professional Save test with resources feature to demonstrate a new UFT test inorder to make the test portable so it can run disconnected from Quality Center.

Answer : A

Explanation

DataTable.Export (Filename) to be used to export all sheets in a datatable.

Answer : A

Explanation

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

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.

Answer : C

Explanation

A date constant must start and end with a # e.g. Const sDate = #30-04-2014#

Q 10 - Err object contains information about the run time error. Which one of the following is the default property for Err object?

A - Source

B - Description

C - Number

D - HelpText

Answer : C

Explanation

Err object has a total of 5 properties and 2 methods associated with it. Number is the default

qtp_questions_answers.htm
Advertisements