QTP Objective Questions-Series 2A

1) Identify the recording mode, by which you can record the non-standard object in
QTP
A) Standard recording
B) Analog recording
C) Low level recording
D) None

2) By default, how many no of tables would be there in a script?
a) One
b) Two
c) Three
d) Four

3) By default, how many no of actions would be there in a script?
a) One
b) Two
c) Three
d) Four

4) The file extension of Local object repository file is
a) .MTR
b) .TSR
c) .QRS
d) None

5) The file extension of Shared object repository file is
a. .MTR
b. .TSR
c. .QRS
d. None

6) When a procedure is created in the Function Library editor, what is the extension of the file?
A. .INI
B. .TXT
C. .QFL
D. .VBS

7) What are the categories in the Step Generator?
a. Object, Operation, Value
b. Library, Built-in, Local Script
c. Operation, Arguments, Return Value
d. Test Objects, Utility Objects, Functions

8- In Test Settings -> Run the Data Table iteration options are for which data sheet?
a. Local
b. Global
c. Run-time Data Table
d. Design-time Data Table

9) What can you use to handle unpredictable testing exceptions?
a. A Do Loop
b. Recovery Scenario
c. IF Then statement
d. Select Case statement

10) In which command can you associate a function library to a test?
a. Run Options
b. Test Settings
c. View Options
d. Function Definition Generator

11) To invoke the function which does not return any value, we can use
a. call function name
b. function name
c. Both A & B
d. None

12) The result of the checkpoints can be stored in a variable
a. True
b. False

13) Parameterization generally involves
a. Data table
b. Random number
c. Environment
d. Both A & B
e. Both A, B & C

14) The file which is used for recovering from the run time errors known as
a. QRS
b. TSR
c. PNG
d. DAT

15) Among the following recording modes, which method uses both the objects and
mouse coordinates
a. Normal
b. Low level
c. Analog
d. All of the above

16) Where do you set the action iterations for a specified action?
a. Action Settings
b. Action Properties
c. Action Run Properties
d. Action Call Properties

17) Where do you mark an action as reusable?
a. Action Settings
b. Action Properties
c. Action Run Properties
d. Action Call Properties

18) After running a test that contains both input and output parameters, where can the results of
an output parameter be found?
a. Local Data Sheet
b. Global Data Sheet
c. Run-time Data Table
d. Design-time Data Table

19) If you have a Virtual Object Collection stored on your machine, and you don’t want to use it
what you must do?
a. Disable Virtual Objects in Test Settings
b. Remove the Collection from your machine
c. Disable Virtual Objects in General Options
d. Remove the Collections from the Resources list

20) Which method for the Data Table utility object will allow you to retrieve information from
the Data Table during a test run?
a. Value
b. Import
c. GetCell
d. GetValue

21) Statement to return the value from the function
a. Return (return value)
b. Exit (Return value)
c. Function name = Return value
d. None

22) constant “2” with the reporter statement returns
a. Pass
b. Fail
c. Done
d. Warning

23) The standard timing delay for windows application is
a. 20 seconds
b. 60 seconds
c. Infinite
d. 100 seconds

24) The standard timing delay for web based application is
a. 20 seconds
b. 60 seconds
c. Infinite
d. 100 seconds

25) In VB Script functions, which one is false among the following
a. Variables must be declared before use
b. Variables may not be declared before use
c. Variables may be declared without data types
None

26) What does the source property of a database checkpoint object represent?
A. The SQL query
B. The identification number of the database
C. The number of rows returned from the query
D. The connection string used to connect to the database

27) What is created, by default, with each new action?
A. Local Data Sheet, Global Data Sheet, Folder
B. Local Object Repository, Local Data Sheet, Folder
C. Global Data Sheet, Local Object Repository, Folder
D. Local Data Sheet, Global Data Sheet, Local Object Repository

28) What are the available environment variable types?
A. Built-in
B. User-defined
C. User-function
D. Built-in, User-defined
E. Built-in, User-function

29) If the Global Data sheet contains no data and the Local Datasheet contains two rows of data,
how many times will the test iterate?
A. 1
B. 2
C. 3
D. 5

30) What is the first thing that must be defined in a Recovery Scenario?
A. Trigger
B. Recovery Operation
C. Recovery Scenario Name
D. The Function used in the scenario

31) To count the no of rows in a table
a. getrowcount
b. Getlinecount
c. Getcount
d. Count

32) Object which is used for calling the win32 api functions in QTP, we use
i. extern
ii. description
iii. environment
iv. None

33) By default, the all actions in QTP are
a. non – reusable
b. reusable
c. external
d. None

34) The active screen images are stored in a file called
a. GIF
b. BMP
c. JPEG
d. PNG

35) To refer the global data sheet, we can use the statement
a. dtglobalsheet
b. Global
c. Both A & B
d. None

36) What are bitmap checkpoints sensitive to?
A. Image size and object type
B. Object type and image type
C. Screen resolution and object type
D. Screen Resolution and image size

37) If the Local Data sheet contains two rows of data, how many times will the action iterate, by
default?
A. 1
B. 2
C. 3
D. 5

38) How do you close the database session after examining the results of an SQL query?
A. Call the ADO.Close function
B. Use the close method for the RecordSet object
C. Set the RecordSet and Connection objects equal to Nothing
D. Use the close method for the RecordSet and Connection objects

39) What are the available trigger event types?
A. Pop-up window, object state, VBScript event
B. Object state, VBScript event, Application crash
C. Pop-up window, object state, test run error, QTP crash
D. Pop-up window, object state, test run error, Application crash

40) What is the keyword used to define how the counter variable in a For Next loop increments?
A. ++
B. Next
C. Skip
D. Step

41) Select Case statement is end with
a. end case
b. exit case
c. esac
d. end select

42) To specify the “Not Equal to” in QTP, symbol used is
A. !=
B. <>
C. NOT =
D. ==

43) which one is the default data type of QTP
A. integer
B. String
C. Variant
D. Double

44) To differentiate similar objects in one screen, QTP uses
A. object identification
B. Smart identification
C. Object repository
D. Object spy

45) To use the non-standard windows object, we can go for
A. Object spy
B. Virtual objects
C. Object identification
D. None

46) What are the two most commonly used ADO objects?
A. Fields
B. Execute
C. Connection, RecordSet
D. Open, ConnectionString

47) How do you declare a constant?
A. Dim statement
B. Con statement
C. Const statement
D. Option Explicit statement

48) What method is used to retrieve the number of columns in the query results?
A. Fields.Count
B. Fields.Item(EOF)
C. Fields.Count(BOF)
D. Fields.Count.Value

49) To bypass the Object Repository you can:
A. Turn the Object Repository off
B. Use a programmatic description
C. Delete all objects in all repositories
D. Add the object to the Object Repository Manager

50) What does the ChildObjects method return?
A. A Collection object
B. A string true/ false
C. A Boolean TRUE/ FALSE
D. The number of objects matching the ChildObject description