QTP Practice Test Set2

15 Questions | Total Attempts: 346

SettingsSettingsSettings
Please wait...
QTP Practice Test Set2

QTP Practice Test


Questions and Answers
  • 1. 
    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

  • 2. 
    If the Local Data sheet contains two rows of data, how many times will the actioniterate, by default?
    • A. 

      1

    • B. 

      2

    • C. 

      3

    • D. 

      4

    • E. 

      5

  • 3. 
    How do you close the database session after examining the results of an SQLquery?
    • A. 

      Call the ADO.Close function

    • B. 

      Use the close method for the Record Set object

    • C. 

      Set the RecordSet and Connection objects equal to Nothing

    • D. 

      Use the close method for the RecordSet and Connection objects

  • 4. 
    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 name error, QTP crash

    • D. 

      Pop-up window, object state, test run error, application crash

  • 5. 
    What is the key word used to define how the counter variable in a or lext loopincrements?
    • A. 

      ++

    • B. 

      Next

    • C. 

      Skip

    • D. 

      Step

  • 6. 
    What are the two most commonly used ADO objects?
    • A. 

      Fields

    • B. 

      Execute

    • C. 

      Connection, RecordSet

    • D. 

      Open, ConnectionString

  • 7. 
    How do you declare a constant?
    • A. 

      Dim statement

    • B. 

      Con statement

    • C. 

      Const statement

    • D. 

      Option Explicit statement

  • 8. 
    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

  • 9. 
    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

  • 10. 
    What does the ChildObjects method return?
    • A. 

      A Collection object

    • B. 

      A strim true/false

    • C. 

      A Boolean TRUE/FALSE

    • D. 

      The number of objects matching the ChildObject description

  • 11. 
    What object is used to read information from a text file?
    • A. 

      Read

    • B. 

      ReadLine

    • C. 

      TextStream

    • D. 

      File System

    • E. 

      Open Text File

  • 12. 
    If you are typing in Expert View and you type an object followed by a dot whatdoes 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

  • 13. 
    By default, how does QuickTest pass arguments to the procedure?
    • A. 

      ByVal

    • B. 

      ByRef

    • C. 

      ByArg

    • D. 

      ByRes

  • 14. 
    What object is used to send information to test results at the completion of the testrun?
    • A. 

      Result

    • B. 

      Reporter

    • C. 

      ReportEvent

    • D. 

      ResultReport

  • 15. 
    If a procedure is defined in a test script that procedure is accessible to whichtests/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