Are you looking for Ruby Cucumber Interview Questions 2018? If yes, then you are at right place. Here Mindmajix presenting a list of 15 Ruby Cucumber Interview Questions for Experienced & Freshers. These Cucumber interview questions help you in cracking your next job interview and acquire dream career as Ruby Cucumber Developer.
1) What is Cucumber Tool?
A) Cucumber is a software tool used by computer programmers for testing other software. It runs automated acceptance tests written in a behavior-driven development style. Central to the Cucumber BDD approach is its plain language parser called Gherkin.
2) What is Gherkin language?
A) Gherkin is the language that Cucumber uses to define test cases. It is designed to be non-technical and human readable, and collectively describes use cases relating to a software system.
The purpose behind Gherkin's syntax is to promote Behavior Driven Development practices across an entire development team, including business analysts and managers.
3) What is Behavior-driven development (BDD)?
A) Behavior-driven development (BDD) is a software development process that emerged from test-driven development (TDD). The behavior-driven development combines the general techniques and principles of TDD with ideas from domain-driven design and object-oriented analysis and design to provide software development and management teams with shared tools and a shared process to collaborate on software development.
4) Cucumber is written in which programming language?
A) Cucumber is written in the Ruby programming language. It was originally used exclusively for Ruby testing as a complement to the RSpec BDD framework. Cucumber now supports a variety of different programming languages through various implementations.
5) Gherkins files have which file extension?
A) All Gherkin files have the .feature file extension. They contain a single Feature definition for the system under test and are an executable test script.
6) Cucumber tests are divided into how many parts?
A) Cucumber tests are divided into individual Features. These Features are subdivided into Scenarios, which are sequences of Steps.
7) What is a Feature in Cucumber?
A) A feature is a Use Case that describes a specific function of the software being tested. There are three parts to a Feature 
8) What is a Scenario in Cucumber?
A) Each Feature is made of a collection of scenarios. A single scenario is a flow of events through the Feature being described and maps 1:1 with an executable test case for the system. Keeping with the example ATM withdrawal feature, a scenario might describe how a user requests money and what happens to their account.
9) What are Steps in Cucumber?
A) The crux of a Scenario is defined by a sequence of Steps outlining the preconditions and flow of events that will take place. The first word of a step is a keyword, typically one of.
Occasionally, the combination of Given-When-Then uses other keywords to define conjunctions
10) What are Tags in Cucumber?
A) Gherkin's Feature structure forces organization. However, in cases where this default organization is inconvenient or insufficient, Gherkin provides Tags. Tags are @-prefixed strings and can be placed before.
A) Steps in Gherkin's .feature files can be considered a method invocation. Before Cucumber can execute a step it must be told, via a step definition, how that step should be performed.
Definitions are written in Ruby and conventionally filed under features/step_definitions/*_steps.rb. Definitions start with the same keywords as their invocation (including Gherkin's full language support). Each definition takes two arguments.
Either a regular expression or string with $variables
A block containing ruby code to execute
12) What are Hooks in Cucumber?
A) Hooks are Cucumber's way of allowing for setup to be performed prior to tests being run and teardown to be run afterward. They are defined as executable Ruby blocks, similar to JUnit methods marked with @Before, @After annotations. Conventionally they are placed under support/, and are applied globally. Three basic types of hooks exist.
Additional hooks include
13) What are Formatter Plugins in Cucumber?
A) Cucumber uses Formatter Plugins to provide output. Several common formats are provided by default, including
14) How does Cucumber works with Browser Automation?
A) Cucumber does not provide built in browser automation. However, it does work well with existing gems such as Selenium and WATiR-WebDriver. It does support running tests with transactions through leveraging other gems such as ActiveRecord.
15) What is Cucumber Command-Line interface?
A) Cucumber comes with a built-in command line interface that covers a comprehensive list of instructions. Like most command line tools, cucumber provides the --help option that provides a summary of arguments the command accepts.
Get Updates on Tech posts, Interview & Certification questions and training schedules