InterviewPitch

Land the job you want — prepare
with Real interviews Q&A

Curated interview questions, company-wise guides and coding rounds. Practice mock interviews, improve with feedback, and track your progress.

Q&A
Top curated interview packs
Company-wise & role-wise packs, quality assured.
Mock interview
AI scoring
Coding rounds
Top 10 sets
Beginner
1. What is Gherkin?
Gherkin is a plain-text language used to write behavior-driven development (BDD) scenarios in a human-readable format.
Beginner
2. Where is Gherkin mainly used?
Gherkin is mainly used with BDD tools like Cucumber to describe application behavior.
Beginner
3. What is a Feature in Gherkin?
A Feature describes a high-level functionality of an application.
Beginner
4. What is a Scenario?
A Scenario describes a specific example of how a feature should behave.
Beginner
5. What are Given, When, Then?
Given sets preconditions, When defines the action, Then defines the expected result.
Beginner
6. What is And keyword?
And is used to combine multiple steps of the same type.
Beginner
7. What is But keyword?
But is used to specify a negative condition or exception.
Beginner
8. What is Background?
Background defines steps that run before each scenario in a feature file.
Beginner
9. What is Scenario Outline?
Scenario Outline allows running the same scenario multiple times with different data.
Beginner
10. What is Examples table?
Examples provide test data for Scenario Outline.
Beginner
11. What file extension is used for Gherkin?
.feature
Beginner
12. Is Gherkin case sensitive?
Yes, keywords like Feature, Scenario, Given must start with capital letters.
Beginner
13. What is BDD?
Behavior Driven Development is a methodology that focuses on application behavior from user perspective.
Beginner
14. Can Gherkin be used without automation?
Yes, it can be used for documentation purposes.
Beginner
15. What is step definition?
Step definition maps Gherkin steps to automation code.
Intermediate
16. What is tagging in Gherkin?
Tags are used to group and filter scenarios during execution.
Intermediate
17. How to write multiple scenarios under one feature?
Write multiple Scenario blocks inside a single Feature.
Intermediate
18. What is Data Table?
A structured table format used to pass multiple values into a step.
Intermediate
19. What is Doc String?
Multi-line string enclosed in triple quotes used for large text input.
Intermediate
20. What is Rule keyword?
Rule groups related scenarios under a business rule.
Advanced
36. What is Dry Run in Cucumber?
Dry run checks step definitions without executing tests.
Advanced
37. How to reuse steps?
By creating common step definitions and calling them across scenarios.
Advanced
38. What is Hooks in BDD?
Hooks are code blocks executed before or after scenarios.
Advanced
39. What is parameterization in Gherkin?
Passing dynamic values in steps using placeholders like <value>.
Advanced
40. Can Gherkin support multiple languages?
Yes, Gherkin supports many spoken languages.
Coding Round
46. Write a simple login feature
Feature: Login

Scenario: Valid login
Given user is on login page
When user enters valid credentials
Then user should see dashboard
Coding Round
47. Example of Scenario Outline
Scenario Outline: Login
Given user enters <username> and <password>
Then login should be <result>

Examples:
| username | password | result |
| admin | 1234 | success |
Coding Round
48. Example of Background
Background:
Given user is on homepage
Coding Round
49. Example of Data Table
Given user enters details
| name | age |
| John | 25 |
Coding Round
50. Example of Doc String
Given user enters description
"""
This is a multi-line
description example
"""