QTP Certification Questions-11


 QTP Certification Questions-11

1) Programmatic description can be very useful if you want to perform an operation on an object that is stored in the object repository.

A) True
B) False

2) There are two types of programmatic descriptions:

A) Static & Dynamic
B) Statement & Dynamic
C) Step & Dynamic
D) Standard & Dynamic

3) You can also use programmatic descriptions to perform the same operation on several objects with certain identical properties, or to perform an operation on an object whose properties match 

a description that you determine dynamically during the run session.
A) True
B) False

4) QuickTest evaluates all property values in programmatic descriptions as regular expressions

A) True
B) False

5) From the below 4 statements which one is invalid:

A) Browser("title:=Mercury Tours").Page("title:=Mercury Tours").WebEdit("Name:=Author", "Index:=3").Set "G C Reddy"
B) Browser("Index").Page(Desc1).Link(docu3)
C) Browser("Mercury Tours").Page("Title:=Mercury Tours").WebEdit("Name:=Author", "Index:=3").Set " G C Reddy"
D) Browser("Title:=Mercury Tours").Page("Title:=Mercury Tours").WebEdit("Author").Set " G C Reddy "

6) When using programmatic descriptions from a specific point within a test object hierarchy, you must continue to use programmatic descriptions from that point onward within the same statement.

A) True
B) False

7) You can run any application from a specified location using a ..... statement.

A) Start.Application
B) System.UtilRun
C) SystemUtil.Run
D) SystemUtii.RUn

8) When creating a programmatic description for an ActiveX test object and the relevant run-time object is windowless (has no window handle associated with it), you must add the ........ property to the description and set its value to True.

A) Window Handle
B) WindowLess
C) Winless
D) None

9) You can compare the run-time value of a specified object property with the expected value of that property using either programmatic descriptions or user-defined functions.

A) True
B) False

10) When you specify an application to open using the Record and Run Settings dialog box, QuickTest adds a SystemUtil.Run statement to your test.

A) True
B) False


11) You can use the Expert View tab to view a text-based version of your test.

A) True
B) False

12) Expert View contains each step as a VBScript line. In object-based steps, the VBScript line defines the ........ hierarchy.

A) Action
B) Object
C) Test
D) Step

13) If you focus on a specific step in the Keyword View and switch to the Expert View, the cursor is located in that ..... line of the test.

A) Next
B) Previous
C) Last
D) Corresponding

14) For each object and method in an Expert View statement, a corresponding row exists in the Keyword View.

A) True
B) False

15) When you switch from the Expert View to the Keyword View, QuickTest automatically checks for syntax errors in your script, and shows them in the Information pane.

A) True
B) False

16) In the Expert View, the ....... is always visible and the Expert View always displays the script for the selected action.

A) Action List
B) Expert List
C) Check List
D) View List

17) You can insert a checkpoint or output value statement in the Expert View manually.

A) True
B) False

18) You can copy a Checkpoint or Output statement from the Expert View to another test.

A) True
B) False

19) You can also manually enter standard VBScript statements, as well as statements using QuickTest test objects and methods, in the Expert View.

A) True
B) False

20) You cannot print the test displayed in the Expert View or a function library.

A) True
B) False

21) When you type in the Expert View or a function library, .......... enables you to select the test object, method, property, or collection for your statement from a drop-down list and view the relevant syntax.

A) Object Property dialog box
B) Web edit Property dialog box
C) Intellisense
D) dropdown list


22) 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

23) Default file extention of function library is

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

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

A) True
B) False

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

A) True
B) False

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

A) True
B) False

27) 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

28) 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

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

A) True
B) False

30) 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

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

A) True
B) False

32) 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

33) 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

0 comments:

Post a Comment