ANSWERS PLUS RATIONALES | EXAM ALREADY GRADED A+ |
LATEST EXAM
1. What is the default scripting language used in UFT?
A) JavaScript
B) Python
C) VBScript
D) C#
Answer: C) VBScript
Rationale: UFT uses VBScript as its primary scripting language for creating automated
tests.
2. Which feature allows UFT to store information about GUI objects?
A) Recovery Scenarios
B) Object Repository
C) Descriptive Programming
D) Checkpoints
Answer: B) Object Repository
Rationale: The Object Repository stores properties of GUI objects to identify them during
test execution.
3. In Keyword-Driven testing, what is the primary focus?
A) Writing code manually
B) Using keywords to represent actions
C) Checking system logs
D) Descriptive Programming only
Answer: B) Using keywords to represent actions
Rationale: Keyword-Driven testing uses predefined keywords to perform actions on the
application without writing detailed code.
4. What is Descriptive Programming used for?
A) Recording GUI operations
B) Defining objects dynamically without Object Repository
C) Running recovery scenarios
D) Generating test reports
Answer: B) Defining objects dynamically without Object Repository
Rationale: Descriptive Programming allows the tester to describe objects at runtime
instead of relying on the Object Repository.
5. Which type of checkpoint verifies the data in a database?
A) Standard Checkpoint
B) Database Checkpoint
C) Text Checkpoint
D) Bitmap Checkpoint
Answer: B) Database Checkpoint
Rationale: Database checkpoints validate the contents of a database table against
expected values.
,6. What happens when a test encounters an unexpected pop-up and no recovery scenario is
defined?
A) UFT ignores it and continues
B) Test fails
C) Test pauses indefinitely
D) UFT logs a warning and skips it
Answer: B) Test fails
Rationale: If no recovery scenario is defined, unexpected pop-ups or errors cause the test
to fail.
7. Which UFT feature allows multiple sets of input data to be used with the same test?
A) Descriptive Programming
B) Data-Driven Testing
C) Recovery Scenario
D) Standard Checkpoints
Answer: B) Data-Driven Testing
Rationale: Data-Driven Testing allows tests to run multiple times with different sets of
data from external sources.
8. Which of the following is a valid VBScript variable declaration?
A) Dim x
B) int x
C) var x
D) set x
Answer: A) Dim x
Rationale: VBScript uses the 'Dim' statement to declare variables.
9. How does UFT identify objects during test execution?
A) Using object properties stored in the Object Repository
B) By random selection
C) Using the test script name
D) By GUI screenshots only
Answer: A) Using object properties stored in the Object Repository
Rationale: UFT identifies objects based on their properties stored in the Object
Repository.
10. Which type of checkpoint verifies the text displayed on a web page?
A) Text Checkpoint
B) Database Checkpoint
C) Page Checkpoint
D) Standard Checkpoint
Answer: A) Text Checkpoint
Rationale: Text checkpoints compare expected text with actual text displayed in the
application.
11. What is the purpose of the Recovery Scenario Manager in UFT?
A) To create test scripts automatically
B) To handle unexpected events during test execution
C) To store object properties
D) To generate test reports
, Answer: B) To handle unexpected events during test execution
Rationale: Recovery scenarios help the test recover from unexpected pop-ups or errors.
12. Which method is used to run a UFT test from the command line?
A) RunTest.exe
B) QTPTestRunner.exe
C) AutomationRunner.vbs
D) UFTBatchRunner.exe
Answer: A) RunTest.exe
Rationale: UFT tests can be executed from the command line using RunTest.exe with
appropriate arguments.
13. What is the purpose of a Bitmap Checkpoint?
A) Verifying database values
B) Checking visual content like images or screenshots
C) Testing file content
D) Running recovery scenarios
Answer: B) Checking visual content like images or screenshots
Rationale: Bitmap checkpoints compare the expected image or bitmap against the actual
application image.
14. Which UFT method is used to click a button object using Descriptive Programming?
A) Button("Submit").Select
B) Button("Submit").Click
C) Button("Submit").Press
D) Button("Submit").Activate
Answer: B) Button("Submit").Click
Rationale: The Click method performs a mouse click action on the specified object.
15. What is the default Object Repository type in UFT?
A) Shared Object Repository
B) Local Object Repository
C) Global Object Repository
D) External Repository
Answer: B) Local Object Repository
Rationale: By default, each test uses a Local Object Repository to store object
information.
16. Which VBScript operator is used for string concatenation?
A) +
B) &
C) .
D) %
Answer: B) &
Rationale: In VBScript, the '&' operator concatenates strings.
17. Which type of UFT checkpoint verifies the properties of a GUI object?
A) Standard Checkpoint
B) Text Checkpoint
C) Database Checkpoint
D) Bitmap Checkpoint
Answer: A) Standard Checkpoint
, Rationale: Standard checkpoints validate the properties of GUI objects against expected
values.
18. Which recovery operation is used to close a pop-up window?
A) Click Recovery
B) Send Keys
C) Close Window
D) Restart Test
Answer: C) Close Window
Rationale: The Close Window recovery operation closes the pop-up to allow the test to
continue.
19. What is the purpose of the Test Flow in UFT?
A) To display GUI object properties
B) To show the sequence of actions in a test
C) To write VBScript code
D) To create checkpoints
Answer: B) To show the sequence of actions in a test
Rationale: Test Flow visually represents the sequence of steps and actions in a UFT test.
20. Which file format is used for exporting data from UFT Data Tables?
A) .txt
B) .xls or .xlsx
C) .csv only
D) .xml
Answer: B) .xls or .xlsx
Rationale: UFT Data Tables can be exported to Excel formats for external data
manipulation.
21. How can UFT interact with Web Services for testing?
A) Using GUI objects only
B) Using API Testing features
C) Using Bitmap Checkpoints
D) Using Keyword-Driven testing only
Answer: B) Using API Testing features
Rationale: UFT can test Web Services by sending requests and validating responses
using its API testing capabilities.
22. Which VBScript function returns the length of a string?
A) Len()
B) Length()
C) Size()
D) Count()
Answer: A) Len()
Rationale: Len() returns the number of characters in a string.
23. Which checkpoint is used to verify the content of an entire web page?
A) Page Checkpoint
B) Standard Checkpoint
C) Text Checkpoint
D) Database Checkpoint