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 - Which of the following statement can be used if you want a run session to wait until the a webedit field is enabled?.

  1. Browser("Browser").Page("Page").WebEdit("Edit").WaitProperty("disabled",0)

  2. Browser("Browser").Page("Page").WebEdit("Edit").WaitProperty("disabled",1)

  3. Browser("Browser").Page("Page").WebEdit("Edit").WaitProperty("enabled",1)

  4. Browser("Browser").Page("Page").WebEdit("Edit").Enabled = True

  5. Browser("Browser").Page("Page").WebEdit("Edit").Enabled(5)

  6. Browser("Browser").Page("Page").WebEdit("Edit").Enabled = True

A - (1) and (3) only

B - (1) (3) and (5) Only

C - (2) (4) and (6) Only

D - (1) (2) (4) and (6)

Answer : A

Explanation

You can either use enabled or disabled property to check whether webEdit field is enabled. if enabled value will be 1 else 0.

Q 2 - Which function can be used to convert data from one subtype to another?

  1. Date

  2. Format

  3. CInt

  4. CStr

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

B - (3) Only

C - (1) and(3) Only

D - (3) and (4) only

Answer : D

Explanation

CInt converts to Integer and CStr converts to string.

Q 3 - If you drag-drop a function into your test, UFT removes that function from Available Keywords pane and inserts a call to the function in the test.

A - True

B - False

Answer : B

Explanation

UFT does not remove the function from Available keywords pane if you drag-drop any function to the test.

Answer : A

Explanation

Any object in UFT is identified with the help of its class and object’s properties.

Q 5 - Which feature requires a connection to ALM?

  1. Version Control

  2. Jump to Step

  3. System Monitor

  4. Save Test with Resources

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

B - (3) Only

C - (1) Only

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

Answer : C

Explanation

User has to connect to ALM if Version Control is enabled for the project.

Answer : B

Explanation

WebEdit("Name:=Author" , "Index:=3") is the correct syntax of descriptive programming.

Answer : B

Explanation

There are three options are there to define table checkpoint row range – All Rows, Visible Rows and Another Range

Answer : C

Explanation

To call a test script in another script, you need to make the actions in corresponding script reusable.

Answer : B

Explanation

Childobjects returns the collection of child objects contained within the object.

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