Sunday, April 26, 2009

QTP Multiple Choice Questions - Set 18 - Function Library

1)
Using QuickTest, you can define and store your user-defined functions in a .....

A) function library
B) directly in an action within a test.
C) both A & B
D) None

2)
Default file extention of function library is

A) .flf
B) .qtfl
C) .qfl
D) .tfl

3)
When you store a function in a test action, it can be called from any other action or test.

A) True
B) False

4)
You cannot define private functions and store them in a function library.

A) True
B) False

5)
You can drag and drop a function (or part of it) from one document to another.

A) True
B) False

6)
You can add steps to your function library ....

A) Manually
B) using Step Generator
C) Both A & B
D) None

7)
In function libraries, IntelliSense does not enable you to view test object names or collections because function libraries are not connected to object repositories.

A) True
B) False

8)
Function Libraries can be edited during the debug session.

A) True
B) False

9)
To close all open function libraries choose:

A) File > Close All Function Libraries,
B) Window > Close All Function Libraries.
C) Widow > Close All
D) Both A & B

10)
Any text file written in standard VBScript syntax can be used as a function library.

A) True
B) False

11)
If you create a user-defined function manually and do not define the scope as Public or Private, it will be treated as a ..... function, by default.

A) Private
B) Public
C) Both A & B
D) None

12)
If you choose not to register your function at this time, you can manually register it later by adding a ....... statement after your function

A) RegisterUserFunction
B) RegisterUserFunc
C) RegUserFunc
D) Both A & B


1) C, 2) C, 3) B, 4) B, 5) A, 6) C, 7) A, 8) A, 9) A, 10) A, 11) B, 12) B