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 - How do you call a function created within your test?

Function Flight(x)
 .. ... ...       
End Function      
  1. Call Flight z

  2. Call Flight(z)

  3. n = Flight(z)

  4. n = Flight z

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

B - (2) and (3) only

C - (1) and (4) only

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

Answer : B

Explanation

Parenthesis should be used while calling a function using a call statement or assigning to a variable.

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

Q 5 - Which Settings tab enables UFT to measure the resources being used by the application?

A - Resources

B - Environment

C - Local System Monitor

D - Run

Answer : C

Explanation

Local System Monitor enables UFT to measure the resources being used by the application.

Answer : B

Explanation

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

Q 7 - You decided to parameterize a value using Random Number parameter, what option you will choose to generate a new number and use it for the parameter throughout the test?

A - Generate new random number for each action iteration

B - Generate new random number once per entire test run

C - Generate new random number for each test iteration

D - None of these

Answer : B

Explanation

Select ‘Generate new random number once per entire test run’ generates a new number which can be used throughout the test.

Q 8 - What will happen if more than one function of same name exists in the test or function library.

A - UFT stops and returns error

B - UFT gives a warning and continue running

C - UFT always considers the last function

D - UFT always considers the first function

Answer : C

Explanation

When more than one function with the same name exists in the test script or function library, the last function will always be called.

Q 9 - Which toolbar contains pause button, to interrupt a run session?

A - Automation toolbar

B - Debug toolbar

C - Edit Toolbar

D - Action Toolbar

Answer : B

Explanation

The pause button is contained in Debug toolbar.

Q 10 - In update run mode, QuickTest saves the updated objects in _________ Repository

A - Local

B - Shared

C - Local and Shared both

D - either Local or Shared

Answer : A

Explanation

UFT saves the updated objects in the local object repository.

qtp_questions_answers.htm
Advertisements