Dear Readers, Welcome to QTP Objective Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your Job interview for the subject of QTP MCQs. These objective type QTP questions are very important for campus placement test and job interviews. As per my experience good interviewers hardly plan to ask any particular question during your Job interview and these model questions are asked in the online technical test and interview of many IT companies.
A) Standard recording
B) Analog recording
C) Low level recording
D) None
Ans: B
a) One
b) Two
c) Three
d) Four
Ans: B
a) One
b) Two
c) Three
d) Four
Ans: A
a) .MTR
b) .TSR
c) .QRS
d) None
Ans: A
a. .MTR
b. .TSR
c. .QRS
d. None
Ans: B
A. .INI
B. .TXT
C. .QFL
D. .VBS
Ans: C
A. Run Options
B. Test Settings
C. View Options
D. Function Definition Generator
Ans: B
a. call function name
b. function name
c. Both A & B
d. None
Ans: A
a. True
b. False
Ans: A
a. Data table
b. Random number
c. Environment
d. Both A & B
e. Both A, B & C
Ans: E
A. QRS
B. TSR
C. PNG
D. DAT
Ans: A
a. Normal
b. Low level
c. Analog
d. All of the above
Ans: B
a. Action Settings
b. Action Properties
c. Action Run Properties
d. Action Call Properties
Ans: D
a. Action Settings
b. Action Properties
c. Action Run Properties
d. Action Call Properties
Ans: B
a. Local Data Sheet
b. Global Data Sheet
c. Run-time Data Table
d. Design-time Data Table
Ans: C
a. Disable Virtual Objects in Test Settings
b. Remove the Collection from your machine
c. Disable Virtual Objects in General Options
d. Remove the Collections from the Resources list
Ans: C
a. Value
b. Import
c. GetCell
d. GetValue
Ans: A
A. Return (return value)
B. Exit (Return value)
C. Function name = Return value
D. None
Ans: C
a. Pass
b. Fail
c. Done
d. Warning
Ans: C
A. 20 seconds
B. 60 seconds
C. Infinite
D. 100 seconds
Ans: A
A. 20 seconds
B. 60 seconds
C. Infinite
D. 100 seconds
Ans: B
a. Variables must be declared before use
b. Variables may not be declared before use
c. Variables may be declared without data types
d. None
Ans: A
a. getrowcount
b. Getlinecount
c. Getcount
d. Count
Ans: A
A. extern
B. description
C. environment
D. None
Ans: A
a. non – reusable
b. reusable
c. external
d. None
Ans: A
a. dtglobalsheet
b. Global
c. Both A & B
d. None
Ans: C
A. end case
B. exit case
C. esac
D. end select
Ans: D
A. !=
B. <>
C. NOT =
D. ==
Ans: B
A. integer
B. String
C. Variant
D. Double
Ans: B
A. object identification
B. Smart identification
C. Object repository
D. Object spy
Ans: B
A. Object spy
B. Virtual objects
C. Object identification
D. None
Ans: B
a. wait
b. pause
c. Synchronization point
d. None
Ans: A
a. Exit run
b. Stop run
c. Quit
d. None
Ans: A
a. True
b. False
Ans: A
a. True
b. False
Ans: B
a. end while
b. End do
c. Wend
d. Loop
Ans: C
a. end while
b. End do
c. Wend
d. Loop
Ans: D
a. synchronization
b. sync
c. services
d. wait
Ans: C
a. shared
b. Local
c. Both A & B
d. None
Ans: C
a. Active X
b. Visual Basic
c. Web
d. All of the above
Ans: D
a. Tester can edit the script
b. Tester can’t edit the script
c. Tester can view the script
d. None
Ans: B
A. Tester can edit the script
B. Tester can’t edit the script
C. Tester can view the script
D. None
Ans: A
A. End with “Loop while false”
B. End with “Until True”
C. End with “Wend”
D. Both A and B
Ans: D
A. Bitmap checkpoint
B. Standard checkpoint
C. Accessibility checkpoint
D. XML checkpoint
Ans: C
A. Action properties
B. Action call properties
C. Call to existing action
D. None
Ans: C
A. single quotes
B. Rem
C. Both A and B
D. None.
Ans: A
A. CALL function name
B. function name
C. Both A & B
D. None
Ans: A
A. 20 seconds
B. 60 seconds
C. Infinite
D. 100 seconds
Ans: B
A. 1. Identify the object class. 2. Select object properties. 3. Create a programmatic description.
B. 1. Select object properties. 2. Identify the object class. 3. Create a programmatic description.
C. 1 Create a programmatic description. 2. Select object properties. 3. Identify the object class.
Ans: A
A. YES
B. NO
Ans: A
A. MessageBox
B. InputBox
C. OutputBox
D. DisplayDialog
Ans: B
A. YES
B. NO
Ans: B
A. YES
B. NO
Ans: A
A. YES
B. NO
Ans: A
A. Repository of commonly used Test Scripts
B. Repository of commonly used Test Data
C. Repository of commonly used Test Results
D. User – defined library of important section in function or script
Ans: D
A. An exception occurred
B. Argument not optional
C. Division by zero
D. Error in loading DLL
Ans: A
A. Without QTP interface
B. Without the Application Under Test Interface
C. Without Network and Mouse movement delay
Ans: A
A. YES
B. NO
Ans: A
A. YES
B. NO
Ans: A
A. While…Wend
B. If…Else
C. For…Next
D. Do…Until
Ans: B
A. Pause
B. Step Into
C. Step Over
D. Breakpoint
Ans: D
A. .INI
B. .TXT
C. .QFL
D. .VBS
Ans: C
A. Object, Operation, Value
B. Library, Built-in, Local Script
C. Operation, Arguments, Return Value
D. Test Objects, Utility Objects, Functions
Ans: D
A. Local
B. Global
C. Run-time Data Table
D. Design-time Data Table
Ans: B
A. Do Loop
B. Recovery Scenario
C. IF THEN statement
D. Select case statement
Ans: B
A. Run Options
B. Test Settings
C. View Options
D. Function Definition Generator
Ans: B
A. Action Settings
B. Action Properties
C. Action Run Settings
D. Action Call Properties
Ans: D
A. Disable Virtual Objects in Test Settings
B. Remove the Collection from your machine
C. Disable Virtual Objects in General Options
D. Remove the Collections from the Resources list
Ans: C
A. Value
B. Import
C. GetCell
D. GetValue
Ans: A
A. The SQL query
B. The identification number of the database
C. The number of rows returned from the query
D. The connection string used to connect to the database
Ans: A
A. Local Data Sheet, Global Data Sheet, Folder
B. Local Object Repository, Local Data Sheet, Folder
C. Global Data Sheet, Local Object Repository, Folder
D. Local Data Sheet, Global Data Sheet, Local Object Repository
Ans: B
A. Built-in
B. User-defined
C. User-function
D. Built-in, User-defined
Ans: D
A. 1
B. 2
C. 3
D. 5
Ans: A
A. Trigger
B. Recovery Operation
C. Recovery Scenario Name
D. The Function used in the scenario
Ans: A
A. Image size and object type
B. Object type and image type
C. Screen resolution and object type
D. Screen resolution and image size
Ans: D
A. Start a new test
B. Be in the Keyword view
C. Be recording in Normal mode
D. Click Low Level Recoding under the Automation Menu
Ans: C
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
Ans: D
A. Pop-up window, object state, VBScript event
B. Object State, VBScript event, Application crash
C. Pop-up window, object state, test run error, QTP crash
D. Pop-up window, object state, test run error, application crash
Ans: D
A. Fields
B. Execute
C. Connection, RecordSet
D. Open, ConnectionString
Ans: C
A. Retrieves the value of a property from a 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
Ans: A
A. Bitmap checkpoint
B. Standard checkpoint
C. Accessibility checkpoint
D. XML checkpoint
Ans: C
A. Dim statement
B. Con statement
C. Const statement
D. Option Explicit statement
Ans: A
A. YES
B. NO
Ans: A
A. YES
B. NO
Ans: A
A. YES
B. NO
Ans: B
A. YES
B. NO
Ans: A
A. YES
B. NO
Ans: A
A. Quality Center
B. Winrunner
C. Silk Runner
D. Test Director
Ans: C
A. CallFuncEx ModulePath, Function, RunMinimized, CloseApp [ , Arguments ]
B. CallFuncEx Function, ModulePath, RunMinimized, CloseApp [ , Arguments ]
C. CallFuncEx ModulePath, Function, CloseApp [ , Arguments ] ,RunMinimized
D. CallFuncEx Function ,ModulePath, CloseApp [ , Arguments ] , RunMinimized
Ans: A
A. YES
B. NO
Ans: B
A. YES
B. NO
Ans: B
A. DataTable(“Column Name”, dtGlobalSheet)
B. DataTable(“Column Name”, dtLocalSheet)
C. DataTable(Column ID, Sheet ID)
D. DataTable(Column Name, Sheet ID)
Ans: D
on error resume next
val=DataTable("ParamName",dtGlobalSheet)
if err.number 1 then
'Parameter does not exist
else
'Parameter exists
end if
Code highlighted above is not logically correct. Select the correct code from the options Provided
A. if err.number 2 then
B. if err.number val then
C. if err.number “ParamName” then
D. if err.number 0 then
Ans: D
A. Yes
B. No
Ans: B
A. SetTOProperty
B. GetToProperty
C. SetRoProperty
D. Cannot be set
Ans: D
A. Yes
B. No
Ans: A
A. Test-Time Properties of an Object
B. Test-time Properties and Test-Time Methods of an Object
C. Run-time Properties and Run –Time Methods of an Object
D. Test - time and Run-time Object Properties and Test-time and Run – time Object Methods
Ans: D
98) Can Descriptive Programming be used to create Test Scripts for an application without actually recording on it ?
A. Yes
b. No
Ans: A
StartURL = "http://www.yahoo.com"
Set IE = CreateObject("InternetExplorer ")
IE.Visible = True
IE.Navigate StartURL
Set IE = Nothing
The highlighted line of code is not syntactically correct. Select the correct line of code
A. Set IE = CreateObject('InternetExplorer.Shell')
B. Set IE = CreateObject('InternetExplorer.Run')
C. Set IE = CreateObject('InternetExplorer.Application')
D. Set IE = CreateObject('InternetExplorer.Script')
Ans: C
A. Browser(creationtime=4).Page(title=Editorial CompanySearch).Link(text=Codes).
B. Browser(creationtime:=4).Page(title:=Editorial CompanySearch).Link(text:=Codes).
C. Browser('creationtime:=4').Page('title:=Editorial CompanySearch').Link('text:=Codes').Click
D. Browser('creationtime=4').Page('title=Editorial CompanySearch').Link('text=Codes').Click
Ans: C