Pages

Monday, November 12, 2012

QTP Questions and Answers - 16

Q. 301: What are the two most commonly used ADO objects?
A. Fields
B. Execute
C. Connection, RecordSet
D. Open, ConnectionString
  
Q. 302: How do you declare a constant?
A. Dim Statement
B. Con Statement
C. Const Statement
D. Option Explicit statement
  
Q. 303: 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
  
Q. 304: 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
  
Q. 305: 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
  
Q. 306: What object is used to read information from a text file?
A. Read
B. ReadLine
C. TextStream
D. FileSystem
E. OpenTextFile

Q. 307: If you are typing in Expert View and you type an object followed by a dot, what does 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
  
Q. 308: By default, how does QuickTest pass arguments to the procedure?
A. ByVal
B. ByRef
C. ByArg
D. ByRes

Q. 309: 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

Q. 310: 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

Q. 311: When does a Do loop statement 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 variable

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

Q. 313: 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.

Q. 314: What method is used to send a run-time Data sheet to an Excel file?
A. Send
B. Export
C. SendSheet
D. Exportsheet

Q. 315: What looping statements are available in QuickTest?
A. While end, Do loop, If Then
B. Switch Case, If Ten, For Next
C. For Next, While End, Do Loop
D. For Text, Do Loop, Switch Chase

Q. 316: 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
  
Q. 317: 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 Recording under the Automation Menu
  
Q. 318: 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

Q. 319: 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
  
Q. 320: 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


No comments:

Post a Comment