Question 1
What is the primary purpose of a Cucumber Feature File?
To write automated tests in a programming language
To define application behavior in a human-readable format using Gherkin syntax
To provide live documentation for the project
To map Java methods to Gherkin steps
Question 2
Which of the following is not a component of Cucumber?
Feature Files
Step Definitions
Selenium WebDriver
Reports
Question 3
In a Cucumber Feature File, which keyword is used to define the expected outcome of an action?
Given
When
Then
But
Question 4
What is the purpose of the @CucumberOptions annotation in the TestRunner class?
To link Feature Files with the Step Definitions
To provide the configuration for running tests
 To set up Selenium WebDriver configurations
To clean up after the tests
Question 5
Which file extension is used for Cucumber Feature Files?
.java
.xml
.feature
.json
Question 6
What is the role of Step Definitions in Cucumber testing?
 To define the test scenarios in human-readable language
To implement actions that correspond to the steps in Feature Files
To execute the tests
To generate reports
Question 7
What is the first step when setting up a Cucumber project in an IDE?
 Install the Selenium WebDriver
Create a Maven Project and add dependencies
Write Feature Files
Write Step Definitions
Question 8
What is the first step when setting up a Cucumber project in an IDE?
@Then
@Given
@Before
@After
Question 9
What happens when you run a Cucumber test using TestNG?
 It only runs Feature Files
It executes the Java code directly without checking for feature files
It runs the Feature Files, maps them to Step Definitions, and generates reports
It skips running tests and only generates the report
Question 10
How does Cucumber contribute to Behavior-Driven Development (BDD)?
It allows writing tests in a technical language only
 It ensures that only developers write the test cases
 It promotes collaboration among stakeholders by defining behavior in a shared language
 It focuses only on technical aspects of the software
There are 10 questions to complete.