Google News
logo
QTP/UFT - Quiz(MCQ)
A)
Yes
B)
No
C)
Can not say
D)
--

Correct Answer :   Yes

A)
TSR
B)
PNG
C)
QRS
D)
DAT

Correct Answer :   QRS

A)
XML
B)
text
C)
enabled
D)
standard

Correct Answer :   standard

A)
parameter
B)
regular expression
C)
constant expression
D)
Both (A) and (C)

Correct Answer :   regular expression

A)
1
B)
2
C)
3
D)
4

Correct Answer :   2

A)
Debug the script
B)
Stop script execution completely
C)
Temporary halt in script execution
D)
None of the above

Correct Answer :   Temporary halt in script execution

7 .
How can you can hide Item column in keyword view?
 
1. Right click on column header and unselect item
 
2. Right click select 'view options' and remove item from visible column list
 
3. Select Item column at Tools > View Options
 
4. you cannot hide Item column in keyword view
A)
(1) and (3) only
B)
(1) and (2) Only
C)
(1) (2) and (3) Only
D)
(4) only

Correct Answer :   (1) and (3) only


Explaination :

You can hide a column in keyword view by right clicking on column header and unselect the header name or select view Option and remove the header from visible column list.

8 .
Which of these Add-ins QTP currently supports to work with Extensibility?
 
1. .Net
 
2. Visual Basic
 
3. Delphi
 
4. Web
A)
(1) and(3) Only
B)
(3) Only
C)
(1) (3) and (4)
D)
(1) (2) and (3) only

Correct Answer :   (1) (3) and (4)


Explaination : Currently UFT supports Web, .Net, Java and Delphi Add-ins for Extensibility.

A)
Open Local object repository
B)
Edit the logical name in the Keyword View
C)
Edit the logical name in the Expert view
D)
Edit the logical name in the Local Object Repository

Correct Answer :   Open Local object repository

10 .
Instead of using File > Open Test to open an existing test, what other possible way(s) you can use to open an existing test?
 
1. Select Test from the recent file list in the File menu
 
2. Select Test from the recent file list in the start page
 
3. dragging a test from windows explorer
 
4. Selecting Right click in test editor and select Open Test
A)
(1) (2) and (3) only
B)
(1) and(3) Only
C)
(3) Only
D)
All (1) (2) (3) and (4)

Correct Answer :   All (1) (2) (3) and (4)


Explaination : You can open a test by dragging it from windows explorer , also for a recent file used you can select the test from Recent file list.

A)
QTP datatable
B)
Run time datatable
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Run time datatable

A)
Deep link
B)
Location link
C)
Remarketing link
D)
Location extension

Correct Answer :   Deep link

A)
Run Options
B)
View Options
C)
Function Definition Generator
D)
Test Settings

Correct Answer :   Test Settings

A)
The summary reports DONE
B)
The summary reports FAIL because all iterations did not pass
C)
The summary reports the status for each iteration
D)
The summary reports PASS because more iterations passed than failed

Correct Answer :   The summary reports the status for each iteration


Explanation : The summary reports the status for each iteration in the test result summary page.

A)
When object hierarchy is changed.
B)
Copy, paste, or move an object from a shared object repository to the local object repository.
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Both (A) and (B)

A)
Copy and Paste
B)
Drag and drop
C)
Cut and Paste
D)
None of the above

Correct Answer :   Drag and drop

A)
to bypass the object repository when identifying an object at runtime
B)
to data-drive logical names and make the test more generic
C)
to make it easier to retrieve child objects using the ChildObjects method
D)
to programmatically modify a test object's definition directly in the object repository

Correct Answer :   to bypass the object repository when identifying an object at runtime


Explanation : To avoid the object repository when identifying an object at runtime.

A)
after the selected step.
B)
at the end of steps.
C)
at the beginning of steps
D)
by replacing the current step.

Correct Answer :   after the selected step.


Explanation :

When you add a new step using step generator, it is added to the test after the selected step.

A)
Shared
B)
Local
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Local

A)
MTS
B)
JSON
C)
HTML
D)
XML

Correct Answer :   XML

A)
Data table
B)
Random number
C)
Environment variable
D)
All of the above

Correct Answer :   All of the above

A)
Normal
B)
Analog
C)
Low Level
D)
Both (A) and (B)

Correct Answer :   Low Level

A)
Action Folder
B)
Snapshots folder
C)
Test script folder
D)
None of the above

Correct Answer :   None of the above

A)
The x axis and y axis co-ordinates
B)
The Red Blue Green color combination
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   The x axis and y axis co-ordinates

A)
Test objects merge tool
B)
Object repository Merge tool
C)
Shared Object repository Merge tool
D)
None of the above

Correct Answer :   Object repository Merge tool

A)
Text
B)
Text Area
C)
Standard
D)
Accessibility

Correct Answer :   Text Area

A)
Item
B)
Library
C)
Operation
D)
Arguments

Correct Answer :   Operation


Explanation : After registering a function to a test object using RegisterUserFunc, it is displayed as Operation in Keyword view and Step Generator.

A)
Action Settings
B)
Action Call Properties
C)
Action Run Properties
D)
Action Properties

Correct Answer :   Action Properties

A)
Run-time Data Table
B)
Local Data Sheet
C)
Global Data Sheet
D)
Design-time Data Table

Correct Answer :   Run-time Data Table

A)
To identify customized test objects
B)
To identify only run time properties of test objects
C)
To identify unrecognized test objects
D)
All of the above

Correct Answer :   To identify unrecognized test objects

A)
Wait
B)
WaitForProperty
C)
Exit
D)
None of the above

Correct Answer :   WaitForProperty

A)
Action 0 folder
B)
Snapshots folder
C)
Local Object Repository
D)
All of the above

Correct Answer :   All of the above

A)
Disable Virtual Objects in Test Settings
B)
Disable Virtual Objects in General Options
C)
Remove the Collection from your machine
D)
Remove the Collection from the Resources List

Correct Answer :   Disable Virtual Objects in General Options

A)
Tester cannot edit the script
B)
Tester can view the script
C)
Tester can edit the script
D)
None of the above

Correct Answer :   Tester cannot edit the script

A)
Virtual Object Manager
B)
Recovery Scenario Manager
C)
Object Repository Manager
D)
None of the above

Correct Answer :   Object Repository Manager

A)
Action sheet gets deleted
B)
Action sheet gets renamed
C)
Action sheet gets created
D)
Both (B) and (C)

Correct Answer :   Both (B) and (C)

A)
Local Repository
B)
Shared Repository
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Local Repository

38 .
What does the following statement return? 

str = "QuickTestProfessional"

msgbox mid(str,instr(str,"P"),len(str))​
A)
TestPro
B)
Professional
C)
QuickTest
D)
Run Error / Syntax Error

Correct Answer :   Professional

A)
.Net, Delphi, Windows
B)
Windows, Web, Active X
C)
Active X, Web, Visual basic
D)
None of the above

Correct Answer :   Active X, Web, Visual basic

A)
True
B)
False
C)
Can not say
D)
--

Correct Answer :   False


Explanation : We cannot edit Analog recording steps

41 .
Which QuickTest operation can not be performed on a virtual object?
 
1. cannot be used in expert view
 
2. cannot insert a standard checkpoint
 
3. cannot insert a image checkpoint
 
4. cannot use object spy
A)
(3) Only
B)
(1) and(3) Only
C)
(1) (2) and (3) only
D)
(2) (3) and (4) Only

Correct Answer :   (2) (3) and (4) Only


Explaination : You cannot insert any type of checkpoint on a virtual object, or use the Object Spy to view its properties.

A)
Reusable
B)
External
C)
Non-Reusable
D)
None of the above

Correct Answer :   Reusable

A)
In Action call properties
B)
In Test Settings window
C)
In Action properties
D)
None of the above

Correct Answer :   In Action properties

A)
10 seconds
B)
20 seconds
C)
100 seconds
D)
Infinite

Correct Answer :   20 seconds

A)
CALL function name
B)
function name
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   CALL function name

A)
Count
B)
Getcount
C)
getlinecount
D)
getrowcount

Correct Answer :   getrowcount

A)
Variables may not be declared before use.
B)
Variables may be declared without data type.
C)
Variables must be declared before use.
D)
None of the above.

Correct Answer :   Variables must be declared before use.

48 .
Which names are used to identify the status of your application before and after your automated test executes?
 
1. initial condition
 
2. static state
 
3. end condition
 
4. done condition
A)
(3) Only
B)
(1) and(3) Only
C)
(1) (2) and (3) only
D)
All (1) (2) (3) and (4)

Correct Answer :   (1) and(3) Only


Explaination : A point to note here is that when you are iterating over a specific business process the initial and end conditions should be same.

49 .
Which statement(s) can be used to declare a variable explicitly?
 
1. Dim
 
2. ReDim
 
3. Static
 
4. protected
 
5. DECLARE
A)
(1) and (2) only
B)
(2) and (3) only
C)
(3) and (5) only
D)
(4) and (5) only

Correct Answer :   (1) and (2) only


Explaination : A variable can be declared explicitly using Dim, ReDim, Private, Public

A)
Test Properties
B)
Native Properties
C)
Description Properties
D)
Test Object Properties

Correct Answer :   Test Object Properties


Explanation : Object properties which does not change during run time are known as Test Object Properties.

51 .
Which statement should you use to export all sheets in the Data Table?
A)
DataTable.Export ("C:\flights.xls" , ALL)
B)
DataTable.ExportAllSheets ("C:\flights.xls")
C)
DataTable.Export ("C:\flights.xls")
D)
DataTable.ExportSheet ("C\flights.xls.", ALL)

Correct Answer :   DataTable.Export ("C:\flights.xls")


Explaination : DataTable.Export (Filename) to be used to export all sheets in a datatable.

A)
Float
B)
Boolean
C)
Integer
D)
Checkpoint does not return a value

Correct Answer :   Boolean

A)
F8
B)
F10
C)
F11
D)
F12

Correct Answer :   F12


Explanation : Shortcut key for the standard checkpoint is F12.

54 .
How can the Data Table be used in a custom checkpoint?
 
1. to store output values
 
2. to use formulas
 
3. to access global values
 
4. to compare columns
A)
(1) and (3) only
B)
(1) and (4) only
C)
(2) and (4) Only
D)
(2) and (3) only

Correct Answer :   (1) and (3) only


Explaination : Data Table can be used as a custom checkpoint to store output values and to access global values.

55 .
Which conflicts does the Objects Repositories Merge Tool detect? (Select three)
 
1. same object different parent
 
2. same name different description
 
3. same description different name
 
4. same name extra properties
 
5. similar description
A)
(1) (2) and (3) only
B)
(1) (4) and (5) Only
C)
(2) (3) and (5) Only
D)
(1) (2) and (4) Only

Correct Answer :   (2) (3) and (5) Only


Explaination : OR Merge tool looks for 3 conflicts - same name different description, same description different name and similar description.