Section I: Questions 1–10
Multiple-choice: 10 marks (10*1=10)
1) What can you use to handle unpredictable testing exceptions?
A. A Do Loop
B. Recovery Scenario
C. IF THEN statement
D. Select Case statement
2) 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
3) How do you close the database session after examining the results of an SQL query?
A. Call the ADO.Close function
B. Use the close method for the RecordSet object
C. Set the RecordSet and Connection objects equal to Nothing
D. Use the close method for the RecordSet and Connection objects
4) 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
5) 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
6) How can you retrieve the number of items in the list for a WebList object?
A. GetList
B. GetItem
C. GetItemsCount
D. GetROProperty
7) 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
8) What is the function of the Object Repository Manager?
A. Assign variable names to test objects
B. View/make/modify a Local Object Repository
C. View/make/modify a Shared Object Repository
D. Define new test objects using programmatic descriptions
9) How do you disable error handling in VBScript?
A. Err.Disable
B. Err.Clear
C. On Error goto 0
D. On Error Resume Next
10) What is not an extension of library file?
A. .QFL
B. .VBS
C. .MTS
D. .TXT
Section II: Questions 11–15
Objective Type: 10 marks (5*2=10)
11) What are the limitations of QuickTest?
12) How test engineer identifies when programmatic descriptions are useful?
13) What is a Regular Expression, where we use this feature in QTP?
14) How do you synchronize QTP with AUT?
15) What is the Difference between “Recovery Scenario” and "On Error Resume Next"?
Section III: Questions 16–25
Script Exercises: 20 marks (10*2=20)
16) Write a program to find number of words in a given string.
17) Write a program to convert an expression to a date and time.
18) Write a program to Perform specified Arithmetic Operation on two given numbers.
19) Write a program to reverse a given string without using “strreverse” function.
20) Write a program to count numeric characters present in a string.
21) Write a program to compare two excel sheets data.
22) Write a program to get data from SQL Server database.
23) Write a script to select all the WebCheckBox available in Frame.
24) Write a script to select an item of WebList available in WebTable.
25) Write a code to associate “recovery scenario” for current test at runtime.
No comments:
Post a Comment