QTP Practice Test Set3

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Mousumee
M
Mousumee
Community Contributor
Quizzes Created: 2 | Total Attempts: 2,779
Questions: 15 | Attempts: 1,916

SettingsSettingsSettings
Software Quizzes & Trivia

QTP Practice Test


Questions and Answers
  • 1. 

    What is the default Identifier?

    • A.

      The Location.

    • B.

      The Object Id.

    • C.

      The Native Class.

    • D.

      The Index Number.

    Correct Answer
    A. The Location.
    Explanation
    The default identifier refers to the location of an object or element. It is used to uniquely identify and access the object or element within a system or program. The location can be a memory address or a specific location within a data structure. By default, the location serves as the identifier unless a different identifier, such as an object ID or index number, is specified.

    Rate this question:

  • 2. 

    Which of the following is an example of missing resource?

    • A.

      An Object

    • B.

      Run Results.

    • C.

      A Regular Action.

    • D.

      An External Action.

    Correct Answer
    D. An External Action.
    Explanation
    An external action can be considered as a missing resource because it refers to an action that is not available or accessible within the system or environment. This could be due to various reasons such as a broken link, a deleted file, or an unavailable network connection. In contrast, the other options mentioned in the question (an object, run results, a regular action) do not inherently imply a missing resource.

    Rate this question:

  • 3. 

    What are the available Environment Types?

    • A.

      Built-In

    • B.

      User-defined.

    • C.

      User-Function.

    • D.

      Built-In, User-Defined.

    • E.

      Built-In, User-Function.

    Correct Answer
    D. Built-In, User-Defined.
    Explanation
    The available environment types are built-in and user-defined. Built-in environments are pre-defined and come with the system, while user-defined environments are created by the user. This means that users have the option to either use the pre-existing built-in environments or create their own custom environments to suit their specific needs.

    Rate this question:

  • 4. 

    How can you retrieve the number of items in the list of Web List object?

    • A.

      GetList.

    • B.

      GetItem.

    • C.

      GetItems Count.

    • D.

      GetROProperty.

    Correct Answer
    D. GetROProperty.
    Explanation
    The correct answer is "GetROProperty." This method is used to retrieve the number of items in the list of a Web List object. It allows you to obtain the value of a specified property of the object, in this case, the count of items in the list. By using GetROProperty, you can extract this information and use it in your automation script or application.

    Rate this question:

  • 5. 

    What method is used to send run-time Data sheet to an excel sheet?

    • A.

      Send

    • B.

      Export

    • C.

      Sendsheet.

    • D.

      ExportSheet.

    Correct Answer
    D. ExportSheet.
    Explanation
    The method used to send run-time Data sheet to an excel sheet is "ExportSheet." This method allows for the transfer of data from the run-time Data sheet to an excel sheet for further analysis and manipulation.

    Rate this question:

  • 6. 

    What does the GetROProperty method do?

    • A.

      Retrieves the value of a property from the 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.

    Correct Answer
    A. Retrieves the value of a property from the test object.
    Explanation
    The GetROProperty method is used to retrieve the value of a property from the test object. This means that it allows the user to access and retrieve specific properties of a test object during runtime. It is a useful method for gathering information about the properties and characteristics of a test object, which can be used for verification or further processing in the test script.

    Rate this question:

  • 7. 

    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.

    Correct Answer
    A. Trigger.
    Explanation
    In a Recovery Scenario, the first thing that must be defined is the trigger. A trigger is an event or condition that indicates that a recovery operation needs to be executed. It could be an error message, a system crash, or any other event that requires a recovery action. By defining the trigger, the recovery scenario becomes proactive in identifying when a recovery operation should be initiated. Once the trigger is defined, the recovery operation, recovery scenario name, and the function used in the scenario can be determined accordingly.

    Rate this question:

  • 8. 

    If a Procedure is defined in a test script, that procedure is accessible to which test/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.

    Correct Answer
    C. The test script in which it is defined.
    Explanation
    If a procedure is defined in a test script, it is only accessible to the test script in which it is defined. This means that other procedures within the same test script can use this procedure, but it cannot be accessed or used by any other test scripts. The procedure is limited to the scope of the test script in which it is defined.

    Rate this question:

  • 9. 

    Where do you set the action iterations for a specified action?

    • A.

      Action Settings

    • B.

      Action Properties.

    • C.

      Action Run Settings.

    • D.

      Action Call Properties.

    Correct Answer
    D. Action Call Properties.
    Explanation
    In order to set the action iterations for a specified action, you need to go to the Action Call Properties. This is where you can configure the number of times the action should be executed. The Action Settings, Action Properties, and Action Run Settings do not provide the option to set the action iterations. Therefore, the correct answer is Action Call Properties.

    Rate this question:

  • 10. 

    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.

    Correct Answer
    A. The Smart Identification icon appears in the test results.
    Explanation
    The presence of the Smart Identification icon in the test results indicates that Smart Identification has been used in the test. This icon serves as a visual representation that Smart Identification has been employed during the test execution.

    Rate this question:

  • 11. 

    By default, how does Quick Test pass arguments to the procedure?

    • A.

      ByVal

    • B.

      ByRef

    • C.

      ByArg

    • D.

      ByRes

    Correct Answer
    B. ByRef
    Explanation
    By default, Quick Test passes arguments to the procedure using the ByRef method. This means that the procedure receives a reference to the original variable, allowing it to modify the value of the variable directly.

    Rate this question:

  • 12. 

    What looping statments are available in Quick Test?

    • A.

      Whileend, Doloop, Ifthen

    • B.

      Switchcase,ifthen, Fortext

    • C.

      Fortext, Whileend, Doloop.

    • D.

      Fortext, Doloop, Switchcase.

    Correct Answer
    C. Fortext, Whileend, Doloop.
    Explanation
    The correct answer is Fortext, Whileend, Doloop. This is because in Quick Test, the looping statements available are Fortext, which is used to loop a block of statements a specific number of times, Whileend, which is used to loop a block of statements while a condition is true, and Doloop, which is used to loop a block of statements until a condition is true. Switchcase and Ifthen are not looping statements, but rather conditional statements used for decision-making.

    Rate this question:

  • 13. 

    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 used a counter variable.

    Correct Answer
    C. At the Start or the end of the loop
    Explanation
    A Do loop statement evaluates for continuation at the start or the end of the loop. This means that the loop can either continue or terminate based on the condition specified at the beginning or the end of the loop. The loop may use a counter variable to control the number of iterations and determine when to continue or end the loop.

    Rate this question:

  • 14. 

    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.

    Correct Answer
    D. The object Identification dialog.
    Explanation
    In order to turn on Smart Identification, you need to go to the object Identification dialog. This dialog allows you to configure the settings for Smart Identification, which is a feature in test automation tools that helps identify objects even if their properties change. The Object Repository, Test Settings dialog, and General Options dialog do not specifically deal with Smart Identification settings.

    Rate this question:

  • 15. 

    What are test object properties?

    • A.

      Those properties as defined in a description object.

    • B.

      Those properties as defined in Object identificaton.

    • C.

      Thos properties displayed by an object at run-time.

    • D.

      Those properties used in the object repository for object identification.

    Correct Answer
    D. Those properties used in the object repository for object identification.
    Explanation
    Test object properties are the properties used in the object repository for object identification. The object repository is a centralized location where the properties of various objects in an application are stored. These properties are used to uniquely identify and interact with the objects during test execution. By using the test object properties, testers can accurately identify and manipulate the objects in their test scripts, ensuring the reliability and effectiveness of their automated tests.

    Rate this question:

Related Topics

Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.