1.
What is Cucumber?
Correct Answer
A. A tool
Explanation
Cucumber is a tool used for behavior-driven development (BDD) that allows software developers to write tests in a simple and easily understandable format. It is used to automate acceptance tests, making it easier for developers and stakeholders to collaborate and ensure that the software meets the desired requirements. Therefore, the correct answer is "A tool."
2.
What does Cucumber do?
Correct Answer
B. Cucumber tests other software.
Explanation
Cucumber is a testing tool that is primarily used for behavior-driven development (BDD). It allows developers and testers to write executable specifications in a natural language format. These specifications, known as feature files, describe the expected behavior of a software system. Cucumber then reads these feature files and executes the corresponding test scenarios against the software under test. Therefore, the correct answer is that Cucumber tests other software.
3.
In which programming language was Cucumber originally written?
Correct Answer
D. Ruby
Explanation
Cucumber was originally written in Ruby. This means that the programming language used to develop Cucumber was Ruby.
4.
What language does Cucumber use?
Correct Answer
C. Gherkin
Explanation
Cucumber uses Gherkin as its language. Gherkin is a plain-text language that is used to write Cucumber test scenarios. It is designed to be easily understandable by both technical and non-technical stakeholders. Gherkin allows the team to define the behavior of the software in a structured and human-readable format, making it easier to collaborate and ensure that everyone has a clear understanding of the expected outcomes.
5.
What does Gherkin do?
Correct Answer
D. Provides simple documentation of the code under test
Explanation
Gherkin provides simple documentation of the code under test. Gherkin is a language that is used to write acceptance tests in a structured and easily understandable format. It allows stakeholders, such as business analysts and non-technical team members, to read and understand the tests without having to know the intricacies of the underlying code. This documentation serves as a clear and concise reference for the expected behavior of the system being tested.
6.
Which sign is used in Gherkin's syntax?
Correct Answer
A. #
Explanation
The sign "#" is used in Gherkin's syntax. Gherkin is a language used for writing acceptance tests in a structured and readable format. In Gherkin, "#" is used to indicate comments. Comments are lines that are ignored by the Gherkin parser and are used to provide additional information or explanations about the feature being described.
7.
Which file extension do all Gherkin files have?
Correct Answer
B. .feature
Explanation
Gherkin files, which are used for behavior-driven development, always have the file extension ".feature". This extension is specifically chosen to indicate that the file contains feature specifications written in the Gherkin language. The ".closure", ".doc", and ".com" file extensions are unrelated to Gherkin files and do not serve the same purpose.
8.
What's the subdivision of Gherkin's features?
Correct Answer
C. Scenarios
Explanation
The subdivision of Gherkin's features is called scenarios. Scenarios in Gherkin are used to describe a specific behavior or functionality of the software being developed. They outline a sequence of steps and expected outcomes, allowing for clear and concise communication between stakeholders, developers, and testers. By organizing features into scenarios, Gherkin provides a structured approach to defining and understanding the desired behavior of the software.
9.
How many parts does a Gherkin feature have?
Correct Answer
A. 3
Explanation
A Gherkin feature has three parts. Gherkin is a language used for writing tests in a behavior-driven development (BDD) style. The three parts of a Gherkin feature are the Feature keyword, followed by a short description of the feature, the Background keyword (optional) which sets up the preconditions for the scenarios, and the Scenario keyword which describes a specific test scenario. These three parts are essential for organizing and structuring the Gherkin feature and its associated scenarios.
10.
Which one of these Formatter Plugins Cucumber doesn't use to provide output?
Correct Answer
A. Www
Explanation
Cucumber does not use the "www" formatter plugin to provide output.