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 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 - Why do you use Add-in Manager?

  1. to open UFT.

  2. to load objects and properties for testing your application

  3. to load support for testing your application.

  4. to create object repository for testing your application

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

B - (3) Only

C - (1) and(3) Only

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

Answer : B

Explanation

You use the Add-in Manager to load support for testing your applications.

Q 3 - Conditional statements cannot be inserted in Keyword view.

A - True

B - False

Answer : B

Explanation

You can insert conditional statements in keyword as well as expert view.

Q 4 - Which checkpoint type should you use to validate the enabled state of a button?

A - text

B - enabled

C - standard

D - XML

Answer : C

Explanation

Standard checkpoint helps us to validate the enabled state of a button.

Q 5 - What can you do using the To Do pane? (Select two.)

  1. Assign tasks to others.

  2. Mark a task as In progress.

  3. View TODO comments existing in the current test recovery scenarios.

  4. Export TODO comments to comma-separated values or XML format.

  5. View TODO comments existing in the current test checkpoints.

A - (1) and (2) only

B - (3) and (4) Only

C - (4) and (5) Only

D - (1) and (4) Only

Answer : D

Explanation

Once can do : Assign tasks to others, Export TODO comments to comma-separated values or XML format.

Q 6 -If you need to add the steps or update the object repository while running your test, which run mode can be used?

A - Normal Run mode

B - Maintenance Run mode

C - Update Run mode

D - Debug mode

Answer : B

Explanation

Maintenance Run mode can be used to repair your test during run session.

Q 7 - If you have not saved your test with active screen files and later you want to edit your test using active screen options. How can you regenerate the active screen information?

A - you can not edit it now, test should be re-designed.

B - performing the maintenance run.

C - performing the update run.

D - Saving the active screens resources with test.

Answer : C

Explanation

Active screen can be regenerated by performing the update run.

Q 8 - After registering a function to a test object using RegisterUserFunc, it is displayed as .... in Keyword view and Step Generator.

A - Item

B - Operation

C - Library

D - Arguments

Answer : B

Explanation

After registering a function to a test object using RegisterUserFunc, it is displayed as Operation in Keyword view and Step Generator.

Q 9 - What does the following statement return? -

str = "QuickTestProfessional"

msgbox mid(str,instr(str,"P"),len(str))

A - QuickTest

B - Professional

C - TestPro

D - Run Error / Syntax Error

Answer : B

Explanation

str = “QuickTestProfessional”.

Answer : B

Explanation

Description Properties followed by VRI then by Smart identification and finally by ordinal identifier.

qtp_questions_answers.htm
Advertisements