Quick Test Professional and VBScript Fundamentals

Test your knowledge of Quick Test Professional (QTP) automated testing tool and VBScript programming, including object repositories, checkpoints, debugging, loops, arrays, and test automation concepts.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Where can we make an action reusable?

  1. Action Properties
  2. Call Properties
  3. Properties
  4. None
Question 2 Multiple Choice (Single Answer)

What is the default browser navigation time out?

  1. 10 seconds
  2. 60 seconds
  3. 20 seconds
  4. 30 seconds
Question 3 Multiple Choice (Single Answer)

Which statement below is true about Wait method?

  1. Wait – makes a wait for the specified seconds with optional milliseconds
  2. Wait – makes a wait for the specified seconds only
  3. Wait – makes a wait for the specified seconds with mandatory milliseconds
  4. None of the statements are true
Question 4 Multiple Choice (Single Answer)

How many checkpoint types & Output value types are supported by Quick Test?

  1. 6 & 6
  2. 8 & 6
  3. 9 & 9
  4. 8 & 9
Question 5 Multiple Choice (Single Answer)

What is the statement that can be used to make VB Script, mandate variable declaration?

  1. Option Declare
  2. Option Explicit
  3. Option Mandate
  4. None
Question 6 True/False

In VB Script, variables cannot be declared to a specific data type. State true or false

  1. True
  2. False
Question 7 Multiple Choice (Single Answer)

What is the method that can be used to retrive a run time value of any object, say a user input value?

  1. GetTOProperty
  2. SetTOProperty
  3. GetROProperty
  4. None
Question 8 True/False

Output values cannot be used to perform validation checks. State true or false

  1. True
  2. False
Question 9 Multiple Choice (Single Answer)

When we create a 2 dimention array, an element in the created array can be referenced by how many indices?

  1. 2
  2. 1
  3. 3
  4. No index is required for referencing an element in a 2D array. Index is applicable only for 1D arrays.
Question 10 True/False

Regular expressions can be applied to object repositories. State true or false

  1. True
  2. False
Question 11 Multiple Choice (Single Answer)

Which is the deprecated version of loop?

  1. While … Wend
  2. Do While … Loop
  3. Do Until … Loop
  4. VB Script doesn't have any deprecated loops at all.
Question 12 True/False

Subroutines do return values, whereas Functions do not. State true or false

  1. True
  2. False
Question 13 True/False

Local repositories cannot be associated to a test, using Resources menu. State true or false

  1. True
  2. False
Question 14 Multiple Choice (Single Answer)

Predict the output

Set objEdit = Description.Create  
objEdit(“micclass”).Value = “Link”  
objEdit(“name”).Value = “username”  Browser(“...”).Page(“...”).WebEdit(objEdit).Set “test_user_name”
  1. The code is perfectly valid. It sets the specified value in the web
  2. name property is incorrectly defined for the link object
  3. Syntax of Description object is incorrect.
  4. Defined link object is incorrectly used as an edit box object. Hence issuing a Set method is invalid
Question 15 True/False

Breakpoints can be set in the script, to make Quick Test pause script execution, at desirable statements in the script. State true or false

  1. True
  2. False
Question 16 Multiple Choice (Single Answer)

Watch tab of debug viewer

  1. can be used to watch only simple variables
  2. can be used to watch all simple variables and most of the object properties
  3. displays all the variables encountered during the script execution runtime
  4. cannot be used to watch simple variable values
Question 17 Multiple Choice (Single Answer)

Recovery scenario takes us thru the following wizard steps in the following sequence

  1. define a trigger, define the recovery operations, define the post recovery operations
  2. define the recovery operations, define a trigger, define the post recovery operations
  3. can be created in any order
  4. no such wizard is available in Quick Test
Question 18 Multiple Choice (Single Answer)

The word 'bug' is synonymous with which of the following words?

  1. Incident
  2. Defect
  3. Mistake
  4. Error
Question 19 Multiple Choice (Single Answer)

Which of the following is most important to promote and maintain good relationships between testers and developers??

  1. Understanding what managers value about testing
  2. Identifying potential customer work-arounds for bug
  3. Explaining test results in a neutral fashion
  4. All the above
Question 20 Multiple Choice (Single Answer)

Which of the following is a test type??

  1. Component Testing
  2. Functional Testing
  3. Non-functional Testing
  4. Acceptance Testing
  5. Both 2 & 3
  6. Both 1 & 3

Practice this chapter

Synonyms (8649 questions)