50 QTP Certification Q & A’s

1. The toolbar enables you to view the details of an individual action or the entire test flow is
1. Testing toolbar
2. None of the above
3. Action toolbar
4. Test Pane
ANSWERE: 3
2. The key that is used to Start/End analog recording mode ?
1. F3
2. SHIFT+ALT+F3
3. CTRL+SHIFT+F3
4. F10
ANSWERE: 2
3.QuickTest supports virtual object for anolog or low-level recording.
1. False
2. True
ANSWERE: 1
4. To use a specific property to identify your object, but that property is not listed in the properties list. Then how do you identify that object?
1. Add the specific property to the list
2. Use the Default property
3. Use some other property to identify your object
ANSWERE: 1
5. The checkpoint used to check the alt attribute exists for all relevant objects (such as images) is
1. DataBase CheckPoint
2. Accessibility checkpoint
3. Bitmap checkpoint
4. Standard checkpoint

ANSWERE: 2

6. Bitmap checkpoint is supported in VB environment.
1. True
2. False
ANSWERE: 1
7.Can we parameterize the checkpoints properties?
1. No
2. Yes
ANSWERE: 2
8. What is the shortcut key that is used for a Standard Checkpoint?
1. F12
2. F2
3. F10
4. F7

ANSWERE: 1

9.Can we change name of checkpoint?
1. No
2. Yes

ANSWERE: 1

10. To compares the values of the specified property during a run session with the values stored for the same test object property within the test.
1. Checkpoint
2. All the above
3. Output Value
4. Compare the object property
ANSWERE: 1
11. You will use the recording mode for an object not recognized by QuickTest.
1. Low-Level Recording Mode
2. Normal recording Mode
3. Analog Mode
ANSWERE: 1
12. The statement that calls the recorded analog file is
1. RunAnalog
2. CallAnalog
3. ExecuteAnalog

ANSWERE: 1

13. An action can be called by other tests or actions is
1. Call Action
2. Split Action
3. Reusable Action
ANSWERE: 3

14. You can replace the page in your Active Screen tab
1. False
2. True

ANSWERE: 2

15. QuickTest adds a checkpoint statement in the Expert View as
1. Check Checkpoint
2. Checkpoint
ANSWERE: 1
16.A Checkpoint checks that a text string is displayed within a defined area in a Windows application is
1. Accessibility
2. Text Area
3. Standard
4. Text
ANSWERE: 2
17. In ActiveX environment an “Accessibility checkpoint” is supported.
1. No
2. Yes

ANSWERE: 1

18. Can we get the execution time for an action in a Test.
1. Yes
2. No

ANSWERE: 1

19. Can we add external library files in QTP?
1. No
2. Yes
ANSWERE: 2
20. The method used to get data from HTML Table is
1. GetData(Row,Col)
2. GetRowValue(Rowid,Colname)
3. GetCellData (Row,Col)

ANSWERE: 3

21.The Command used to insert the transactions in test is,
1. StartTransaction(“Name”), EndTransaction(“Name”)
2. Services.StartTransaction "Name", Services.EndTransaction "Name"
3. StartTransaction.services "Name”, EndTransaction.services "Name”

ANSWERE: 2

22. A step in which one or more values are captured at a specific point in your test and stored for the duration of the run session is
1. Output Value
2. Checkpoints
3. Active Screen
ANSWERE: 1
23. QuickTest can detects an application crash and activate a defined recovery scenario to continue the run session.
1. True
2. false
ANSWERE: 1
24. In Batch Test process, the test list are saved in file format as,
1. *.mtb
2. *.mts
3. *.mbt
4. *.mtr
ANSWERE: 1
25.The command used to invoke other application from QTP,
1. InvokeApplication
2. SystemUtil.Run
3. Run
4. Both b & c
5. Both a & b

ANSWERE: 5

26.The command used to retrieve data from excel sheet is
1. Set ab = Connection("srcfilepath ") , Set ws = ab.getdata(sheetid)
2. Set ab = CreateObject("srcfilepath ") , Set ws = ab.getsheet(sheetid)
3. Set ab = GetObject("srcfilepath") , Set ws = ab.worksheets(sheetid)

ANSWERE: 2

27. The method that explicitly activates the recovery scenario mechanism is,
1. recovery.activate
2. enable
3. recovery.enable
4. activate

ANSWERE: 1

28. The method used for sending information to the test results.
1. Reporter.log()
2. Reporter.reportevent()
3. Reporter.msgbox()
4. Reporter.report()

ANSWERE: 2

29.To terminate an application that is not responding we use,
1. SystemUtil.terminate
2. SystemUtil.Stop
3. SystemUtil.CloseProcessByName

ANSWERE: 3

30.The recovery mechanism does not handle triggers that occur in the last step of a test
1. false
2. True

ANSWERE: 2

31. We can add Test object methods, function calls into the Test using
1. Function generator
2. Step generator
3. Object repository
ANSWERE: 1
32. The method that adds to the test while implementing Synchronization is
1. Synchronize
2. Wait
3. WaitProperty
4. Pause

ANSWERE: 3

33. The mechanism used to identify objects during run session is
1. Recovery scenario
2. Smart identification
3. Handling object

ANSWERE: 2

34.Post-recovery test run options specifies
1. how to continue the run session after QTP identify the event
2. errors while running
3. recovery scenario during a run session
ANSWERE: 1

35. The action that can be called multiple times by the test as well as by other tests is called
1. non-reusable action
2. Reusable action
3. External action

ANSWERE: 2

36. The command used to connect with Database is
1. Createobject(“connectivity name”)
2. dbconnect(“connectivity name”)
3. open(“connectivity name”)
4. None of the above

ANSWERE: 1

37. The method used to retrieve the folders is
1. FileSystemObject.Getfolder()
2. FileSystemObject.selectfolder()
3. FileSystemObject.retrievefolder()

ANSWERE: 1

38. The method used to compare 2 XML files is:
1. XMLfile1.compare(XMLfile2)
2. XMLcompare(file1,file2)
3. compare(XMLfile1,XMLfile2)

ANSWERE: 3

39. The QTP script files are stored in the extension of
1. *.mts
2. *.usr
3. *.mtr
4. *.vbs

ANSWERE: 1

40. The method used to register the user-defined function with test object is
1. setFunc()
2. RegisterUserFunc()
3. RegisterFunc()
ANSWERE: 2
41. The method used to open the specified URL in a browser is
1. openURL()
2. navigateURL()
3. navigate()
ANSWERE: 3
42. The 3 Parameter types available in data driver is
1. DataTable,Environment,Random number
2. DataTable,random number,unique
3. environment,string,numeric

ANSWERE: 1

43. The method added to the test while parameterizing is
1. get Data (variable, dtGlobalSheet)
2. get DataTable(variable, dtGlobalSheet)
3. Set Data(variable, dtGlobalSheet)
4. Set DataTable(variable, dtGlobalSheet)

ANSWERE: 4

44. The length of the array can be get by the method
1. length(array)
2. ubound(array)
3. count(array)
ANSWERE: 2

45. The method used to get the count value of list box or combo box os
1. GetItemsCount
2. GetCount
3. GetItemCount
ANSWERE: 1
46. To retrieve the current property value of the objects in your application during the run session.
1. GetVisibleText
2. GetROProperty
3. SetROProperty
4. GetTOProperty

ANSWERE: 2

47. In data base check point we can not set the expected value from the test?
1. True
2. False
ANSWERE: 2
48. The list of test objects and their properties and values are stored in the
1. Object Repository
2. Object Identification
ANSWERE: 1

49. The method used to continue the test execution after getting run-time error is
1. On Error Resume Next
2. On Error Raise Next
3. On Error Next

ANSWERE: 1

50.Object repository file extension is?

1.  .Obj
2.  .Orf
3.  .Tsr

ANSWERE: 3

Enjoyed! Make sure you subscribe to TJG.