Interview Questions, Answers and Tutorials

QTP Multiple Choice Questions Set 18 – Function Library

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 manually or using the Step Generator.
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:
A) Choose 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 RegisterUserFunc statement after your function
A) RegisterUserFunction
B) RegisterUserFunc
C) RegUserFunc
D) Both A & B

Answer Here…