0

testing Online Quiz - 117

Description: testing Online Quiz - 117
Number of Questions: 20
Created by:
Tags: testing
Attempted 0/20 Correct 0 Score 0

Where do you mark an action as reusable?

  1. A. Action Settings

  2. B. Action Properties

  3. C. Action Run Settings

  4. D. Action Call Properties


Correct Option: B

which method for the DataTable utility object will allow you to retrieve information from the Data Table during a test run?

  1. A. Value

  2. B. Import

  3. C. GetCell

  4. D. GetValue


Correct Option: A

AI Explanation

To answer this question, you need to understand the DataTable utility object and its methods. Let's go through each option to understand why it is correct or incorrect:

Option A) A. Value - This option is incorrect because there is no method called "Value" in the DataTable utility object.

Option B) B. Import - This option is incorrect because the "Import" method is used to import data from an external file into the DataTable, not to retrieve information during a test run.

Option C) C. GetCell - This option is incorrect because there is no method called "GetCell" in the DataTable utility object.

Option D) D. GetValue - This option is correct because the "GetValue" method is used to retrieve information from the DataTable during a test run. It allows you to specify the column name and row index to get the value of a specific cell in the DataTable.

The correct answer is D. GetValue. This option is correct because it is the method that allows you to retrieve information from the DataTable during a test run.

In Test Settings ->Run the Data Table iteration options are for which data sheet?

  1. A. Local

  2. B. Global

  3. C. Run-time Data Table

  4. D. Design-time Data Table


Correct Option: B

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

  1. A. Action Settings

  2. B. Action Properties

  3. C. Action Run Settings

  4. D. Action Call Properties


Correct Option: D

AI Explanation

To answer this question, you need to understand where action iterations can be set for a specified action.

Option A) Action Settings - This option is incorrect because Action Settings typically refer to general settings that apply to the entire action, such as timeouts or error handling. It does not specifically refer to setting action iterations.

Option B) Action Properties - This option is incorrect because Action Properties generally include information about the action, such as its name, description, or input/output parameters. It does not specifically refer to setting action iterations.

Option C) Action Run Settings - This option is incorrect because Action Run Settings typically include settings related to how the action is executed, such as the environment or data source. It does not specifically refer to setting action iterations.

Option D) Action Call Properties - This option is correct because Action Call Properties allow you to set the action iterations for a specified action. Action iterations determine how many times an action is executed when it is called. By specifying the number of iterations, you can control how many times the action will be repeated.

The correct answer is Option D) Action Call Properties. This option is correct because it specifically refers to setting action iterations for a specified action.

What does the source property of a database checkpoint object represent?

  1. A. The SQL query

  2. B. The identification number of the database

  3. C. The number of rows returned from the query

  4. D. The connectionstring used to connect to the database


Correct Option: A

What are the available trigger event types?

  1. A. Pop-up window, object state, VBScript event

  2. B. Object State, VBScript event, Application crash

  3. C. Pop-up window, object state, test run error, QTP crash

  4. D. Pop-up win


Correct Option: C

what is the keyword used to define how the counter variable in a or lext loop increments?

  1. A. ++

  2. B. Next

  3. C. Skip

  4. D. Step


Correct Option: D

If you have a Virtual Object Collection stored on your machine, and you don't want to use it, what must you do?

  1. A. Disable Virtual Objects in Test Settings

  2. B. Remove the Collection from your machine

  3. C. Disable Virtual Objects in General Options

  4. D. Remove the Collections from the Resources list


Correct Option: C

AI Explanation

To answer this question, you need to understand how virtual object collections work and how to disable them. Let's go through each option to understand why it is correct or incorrect:

Option A) Disable Virtual Objects in Test Settings - This option is incorrect because disabling virtual objects in test settings only affects the specific test or action being executed. It does not permanently disable virtual object collections on your machine.

Option B) Remove the Collection from your machine - This option is incorrect because removing the collection from your machine is not necessary to disable virtual objects. Virtual object collections can still be disabled without removing them.

Option C) Disable Virtual Objects in General Options - This option is correct because disabling virtual objects in the general options settings will globally disable virtual object collections on your machine. This means that virtual objects will not be recognized or used during test execution.

Option D) Remove the Collections from the Resources list - This option is incorrect because removing the collections from the resources list does not disable virtual objects. It only removes the references to the collections, but the virtual objects can still be recognized and used.

The correct answer is C) Disable Virtual Objects in General Options. This option is correct because it globally disables virtual object collections on your machine, ensuring that they are not used during test execution.

What can you use to handle unpredictable testing exceptions?

  1. A. A Do Loop

  2. B. Recovery Scenario

  3. C. IFHEN statement

  4. D. Selectase statement


Correct Option: B
Explanation:

To handle unpredictable testing exceptions, one can use recovery scenarios.

Option A, Do Loop, is a programming construct used to execute a block of code repeatedly. It is not relevant to handling unpredictable testing exceptions.

Option B, Recovery Scenario, is a feature of automation testing tools that allows you to define a set of actions to be taken when a particular exception or error occurs during test execution. This option is the correct answer.

Option C, IFTHEN statement, is a conditional statement used in programming to execute a block of code based on a particular condition. It is not directly relevant to handling unpredictable testing exceptions.

Option D, Selectase statement, is not a valid programming construct or feature of automation testing tools.

Therefore, the correct answer is:

The Answer is: B. Recovery Scenario.

In which command can you associate a function library to a test?

  1. A. Run Options

  2. B. Test Settings

  3. C. View Options

  4. D. Function Definition Generator


Correct Option: B
  1. A. Local Data Sheet, Global Data Sheet, Folder

  2. B. Local Object Repository, Local Data Sheet, Folder

  3. C. Global Data Sheet, Local Object Repository, Folder

  4. D. Local Data Sheet, Global Data Sheet, Local Object Repository


Correct Option: B

How do you close the database session after examining the results of an SQL query?

  1. A. Call the ADO.Close function

  2. B. Use the close method for the RecordSet object

  3. C. Set the RecordSet and Connection objects equal to Nothing

  4. D. Use the close method for the RecordSet and Connection objects


Correct Option: D

AI Explanation

To close the database session after examining the results of an SQL query, you can use the close method for the RecordSet and Connection objects.

Let's go through each option to understand why it is correct or incorrect:

Option A) Call the ADO.Close function - This option is incorrect because there is no specific ADO.Close function to close the database session. ADO (ActiveX Data Objects) is a library used for database access, but it doesn't have a Close function for closing the session.

Option B) Use the close method for the RecordSet object - This option is incorrect because closing only the RecordSet object is not sufficient to close the entire database session. The RecordSet object represents the results of the query, but there is still an active connection to the database that needs to be closed.

Option C) Set the RecordSet and Connection objects equal to Nothing - This option is incorrect because setting the objects equal to Nothing in many programming languages is a way to release the memory occupied by the objects, but it does not close the actual database session. It may help with memory management, but the session connection will still remain open.

Option D) Use the close method for the RecordSet and Connection objects - This option is correct because it ensures that both the RecordSet object and the Connection object are closed properly. By calling the close method for both objects, you are closing the database session and releasing any resources associated with it.

The correct answer is D. Using the close method for the RecordSet and Connection objects. This option is correct because it closes both the RecordSet object and the Connection object, effectively closing the entire database session.

what are the two most commonly used ADO objects?

  1. A. Fields

  2. B. Execute

  3. C. Connection, RecordSet

  4. D. Open, ConnectionString


Correct Option: C
  1. A. Existing action, new action, copy of an existing action, WinRunner action

  2. B. Existing action, new action, copy of action

  3. C. External action, Reusable action

  4. D. None


Correct Option: A

If you are typing in expert view and u type an object followed by dot, what does quick test display?

  1. a)Nothing

  2. b)The Orguments for that object

  3. c)the methods and properties for that object

  4. d)The child Objects and methods for that object


Correct Option: D

Browser navigation timeout is in which tab of test setting (File>settings) window

  1. a. Properties

  2. b. Resources

  3. c. Web

  4. d. Web settings


Correct Option: C

what will be the output of Dim MyDay MyDay = Day("October 19, 1962")?

  1. 1962

  2. 19

  3. october

  4. monday


Correct Option: B

What will be the output ? Dim MyDate MyDate = Date

  1. current date

  2. current system date

  3. future date

  4. previous date


Correct Option: B

What will be the output ? Dim MyVar MyVar = Now

  1. Current date and time

  2. current date

  3. current time

  4. current date and future date


Correct Option: A

What will be the output ? Dim MyVar MyVar = Month(Now)

  1. current date

  2. current time

  3. current year

  4. current month


Correct Option: D
- Hide questions