QTP Objective Questions-Series 2B

51) To use the constant timing delay between process, QTP uses,
a. wait
b. pause
c. Synchronization point
d. None

52) To terminate the script execution, during running, QTP uses
a. Exit run
b. Stop run
c. Quit
d. None

53) We can access the objects of the application without using object repository.
a. True
b. False

54) Checkpoints statements can be manually added to the script without using menus.
a. True
b. False

55) while statement always end with
a. end while
b. End do
c. Wend
d. Loop

56) What object is used to read information from a text file?
a. Read
b. ReadLine
c. TextStream
d. FileSystem
e. OpenTextFile

57) If you are typing in Expert View and you type an object followed by a dot, what does th
QuickTest display?
a. Nothing
b. The arguments for that object
c. The methods and properties for that object
d. The child objects and methods for that object

58) By default, how does QuickTest pass arguments to the procedure?
a. ByVal
b. ByRef
c. ByArg
d. ByRes

59) What object is used to send information to test results at the completion of the test run
a. Result
b. Reporter
c. ReportEvent
d. ResultReport

60) If a procedure is defined in a test script, that procedure is accessible to which tests/ scripts?
a. Only to other procedures
b. It is not usable to any test scripts
c. The test script in which it is defined
d. Using the Step Generator, it is available to any test script

61) Do statement always end with
a. end while
b. End do
c. Wend
d. Loop

62) Utility to measure the timing delays between transactions, we use
a. synchronization
b. sync
c. services
d. wait

63) If the same object is present in the local and shared repository, QTP will refer which
one?
a. shared
b. Local
c. Both A & B
d. None

64) The default addins with QTP are
a. Active X
b. Visual Basic
c. Web
d. All of the above

65) Which one is not true about “Copy of action”
a. Tester can edit the script
b. Tester can’t edit the script
c. Tester can view the script
d. None

66) When does a Do loop statements evaluate for continuation?
A. At the end of the loop
B. At the start of the loop
C. At the start or the end of the loop
D. This loop uses a counter varaible

67) How can you retrieve the number of items in the list for a WebList object?
A. GetList
B. GetItem
C. GetItemsCount
D. GetROProperty

68) What is the difference between a subroutine and a function?
A. A subroutine can call itself; a function cannot
B. A function returns a value; a subroutine cannot
C. A function can accept arguments; a subroutine cannot
D. A subroutine can call other procedures; a function cannot

69) What method is used to send a run-time Data sheet to an Excel file?
A. Send
B. Export
C. SendSheet
D. ExportSheet

70) What looping statements are available in QuickTest?
A. While end, Do Loop, If Then
B. Switch Case, If Then, For Next
C. For Next, While end, Do Loop
D. For Next, Do Loop Switch Case

71) Which one is not true about “Call of action”
A. Tester can edit the script
B. Tester can’t edit the script
C. Tester can view the script
D. None

72) Which one is true about “Do” statement
a. End with “Loop while false”
b. End with “Until True”
c. End with “Wend”
d. Both A and B

73) Checkpoint which is being used for verifying the web page with W3C standard is
A. Bitmap checkpoint
B. Standard checkpoint
C. Accessibility checkpoint
D. XML checkpoint

74) Planning for the no of iteration for the action is done at
a. Action properties
b. Action call properties
c. Call to existing action
d. None

75) To enter the non-executable statement in QTP , we use
A. single quotes
B. Rem
C. Both A and B
D. None

76) What does the GetTOProperty method do?
A. Retrieves the value of a property from a test object
B. Retrieves the available properties from a test object
C. Retrieves the value of a property from a run-time object
D. Retrieves the available properties from a run-time object

77) To use low-level recording, what must you do first?
A. Start a new test
B. Be in the Keyword view
C. Be recording in Normal mode
D. Click Low Level Recoding under the Automation Menu

78) What is the correct set of add-ins installed automatically with QuickTest 9.2?
A. Net, Web, Java
B. Web, SAP, Visual Basic
C. Active X, Visual Basic, Web
D. Active X, TE, Web Services

79) What information can be seen in the information pane?
A. Syntax errors
B. The test name and author
C. The QTP license information
D. The machine id and operating system

80) What does a breakpoint do?
A. Stops test execution at the specified step, after executing that step
B. Stops test execution at the specified step, before executing that step
C. Pauses test execution at the specified step, after executing that step
D. Pauses test execution at the specified step, before executing that step

81) Which of the following is an example of a missing resource?
A. An object
B. Run Results
C. A Regular Action
D. An External Action

82) What are the available step commands in QuickTest?
A. Step, step Into, Step Out
B. Step Into, Step Over, Step Out
C. Step Test, Step Action, Step Function
D. Run from Step, Debug from Step, Run from Step

83) When a test is run in update mode, what is updated?
A. The test results
B. The object descriptions
C. The action names in the test
D. The logical names in the test

84) What are the phases in the QuickTest workflow?
A. Plan, Record, Enhance, Run
B. Prepare, Record, Verify, Run
C. Plan, Create, Verify & Enhance
D. Prepare, Create, Verify & Enhance, Integrate

85) Why is low-level recording mode useful?
A. It records exact keyboard operations on an object.
B. It records exact coordinates of all mouse movements.
C. It uses the object repository to determine what methods can be used.

86) What are test object properties?
A. Those properties as defined in a description object.
B. Those properties as defined in Object Identification
C. Those properties displayed by an object at run-time
D. Those properties used in the Object Repository for an object identification

87) What is the function of the Object Repository Manager?
A. Assign variable names to test objects
B. View/ Make/ Modify a Local Object Repository
C. View/ Make/ Modify a Shared Object Repository
D. Define new test objects using programmatic descriptions

88) Where are virtual object collections stored?
A. In a Function Library
B. In the local Object Repository
C. In the Object Repository Manager
D. Dat folder inside of the QTP installation directory

89) In the Object Identification dialog box, which properties can be viewed?
A. The base filter and optional properties
B. The mandatory and optional properties
C. The base filter and assistive properties
D. The mandatory and assistive properties

90) Where do you turn Smart Identification IN?
A. The Object Repository
B. The Test Settings dialog
C. The General Options dialog
D. The Object Identification dialog

91) How do you know if Smart Identification has been used in a test?
A. The Smart Identification icon appears in the test results
B. The test results will show a run error, causing a test failure
C. The properties used by the object repository will be changed
D. The Object Repository will show the Smart Identification icon

92) What options are available to filter objects in the Target Object Repository pane when
merging object repositories?
A. Show all objects or Show only objects with conflicting object types
B. Show all objects or Show only objects with conflicting descriptions
C. Show only objects with conflicting logical names or Show only objects with conflicting
object types
D. Show only objects with conflicting logical names or Show only objects with conflicting
descriptions

93) What is the default ordinal identifier?
A. The location
B. The object id
C. The nativeclass
D. The index number

94) Which statement is used to associate a procedure with a test object class?
A. RegisterFunction
B. RegisterUserProc
C. RegisterUserFunc
D. RegisterProcedure