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 - When you call a sub procedure, you can use the call statement as

  1. call mySubProc(argument)

  2. Also,you can omit the call statement and just use − mySubProc(argument)

A - True

B - False

Answer : B

Explanation

When you don't use call statement, parenthesis can not be used while calling a sub.

Q 2 - What can be used to capture timings in your test?

  1. StartTransaction and EndTransaction

  2. StartTime and EndTime

  3. Timer

  4. Sync

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

B - (3) and (4) Only

C - (1) and (3) Only

D - (2) and (4)

Answer : C

Explanation

StartTransaction and EndTransaction can be used to capture timings, instead of this you can also use Timer function.

Q 3 - How can you add recordable or non-recordable operations to your test?

  1. Use the Step Generator

  2. Insert through Keyword View.

  3. Drag objects from Available Keywords.

  4. Drag objects from the Data Table.

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

B - (3) and (4) Only

C - (1) (2) and(3) Only

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

Answer : C

Explanation

It can be added using step generator or through keyword view or it can be dragged objects from available keywords.

Q 4 - Which step categories can be added using the Step Generator Tool ?

  1. run-time objects

  2. default object types

  3. test objects

  4. utility objects

  5. data objects

  6. Functions

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

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

C - (1) (5) and(6) Only

D - (3) (4) and (6)

Answer : D

Explanation

Test object, utility objects and functions can be added using the step generator tool.

Q 5 - Which conflicts does the Objects Repositories Merge Tool detect? (Select three)

  1. same object different parent

  2. same name different description

  3. same description different name

  4. same name extra properties

  5. similar description

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

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

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

D - (2) (3) and (5)

Answer : D

Explanation

OR Merge tool looks for 3 conflicts - same name different description, same description different name and similar description.

Answer : A

Explanation

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

Q 7 - A checkpoint returns a _________ value.

A - Integer

B - Float

C - Boolean

D - Checkpoint does not return a value

Answer : C

Explanation

Checkpoint returns a Boolean value.

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 - If not explicitly defined, a function procedure is ..... by Default

A - Private

B - Public

C - Protected

D - Preserve

Answer : B

Explanation

By Default, a function created is Public.

qtp_questions_answers.htm
Advertisements