Friday, June 4, 2010

QTP Function Libraries - Multiple Choice Questions

QTP Function Libraries - Multiple Choice Questions

1)
You can generate statements in a Function Library in the following ways:

A) You can use the Step Generator to add steps that use methods and functions.
B) You can manually insert VBScript statements that perform operations.
C) You can import from Excel or Word.
D) Both A & B

2)
When you type in a function library, IntelliSense (the statement completion feature included with QuickTest) enables you to select the ...... for your statement from a drop-down list and view the relevant syntax.

A) variable,
B) test object,
C) operation,
D) property,
E) collection

3)
If you type a period after an object that you created in your script (using the CreateObject method, for example), QuickTest displays the ...... that you can use for that object.

A) operations
B) properties
C) collection
D) variable

4)
If you press CTRL+SPACE, QuickTest displays a list of the relevant test objects, operations, properties, collections, VBScript functions, user-defined functions, VBScript constants, and utility objects that you can add. This list is displayed even if you typed an object that has not yet been added to the object repository. If the test contains a function, or is associated with a function library, the functions are also displayed in the list.

A) True
B) False

5)
When the Auto-expand VBScript syntax option is enabled and you start to type a VBScript keyword in a function library, QuickTest automatically recognizes the first two characters of the keyword and adds the relevant VBScript syntax or blocks to the script.

A) True
B) False

6)
You can use the ......... to jump to a specific line in a function library.

A) Go To dialog box
B) Bookmarks
C) PINUPS
D) Both A & B

7)
You cannot use Find & Replace option in Function Library.

A) True
B) False

8)
When you are in function library, both the below statements are identical.

Browser("Mercury").Page("Find a Flight:").WebList("toDay").Select "31"
browser("mercury").page("find a flight:").weblist("today").select "31"

A) True
B) False

9)
You can comment a statement by clicking ......... of/in the statement and clicking the Comment Block button.

A) in the middle
B) at the begining
C) anywhere
D) at the end

10)
You cannot change the font style and size of text in your scripts and function libraries, but can change the color of different elements, including comments, strings, QuickTest reserved words, operators, and numbers.

A) True
B) False

1) d, 2) a, b, c, d, e 3) a, b, 4) a, 5) a, 6) d, 7) b, 8) a, 9) c, 10) b