QTP 10.0 Sample Questions Set - 16



  1. What are the two most commonly used ADO objects?

A.    Fields
B.    Execute
C.    Connection, RecordSet
D.   Open, ConnectionString

  1. How do you declare a constant?

A.    Dim Statement
B.    Con Statement
C.    Const Statement
D.   Option Explicit statement

  1. 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

  1. 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

  1. 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

  1. What object is used to read information from a text file?

A.    Read
B.    ReadLine
C.    TextStream
D.   FileSystem
E.    OpenTextFile

  1. 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

  1. By default, how does QuickTest pass arguments to the procedure?

A.    ByVal
B.    ByRef
C.    ByArg
D.   ByRes

  1. 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

  1. 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

  1. 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

  1. How can you retrieve the number of items in the list for a WebList object?

A.    GetList
B.    GetItem
C.    GetItemsCount
D.   GetROProperty

  1. 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.

  1. What method is used to send a run-time Data sheet to an Excel file?

A.    Send
B.    Export
C.    SendSheet
D.   Exportsheet

  1. 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

  1. 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

  1. 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

  1. 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

  1. 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

  1. 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

1
2
3
4
5
6
7
8
9
10
C
C
A
B
A
C
D
B
B
C
11
12
13
14
15
16
17
18
19
20
C
D
B
D
C
A
C
C
A
D

No comments:

Post a Comment