1.
Not a Behavior-Driven Development tools
Correct Answer
D. Concordat
2.
Check if all the steps have the step definition before execute
Correct Answer
A. DryRun
Explanation
The correct answer is "DryRun" because the concept of dry run is used to check if all the steps in a program have their corresponding step definitions before executing the program. It is a way to validate the syntax and structure of the code without actually running it. By performing a dry run, developers can catch any missing step definitions or errors in the code before executing it, thereby saving time and effort in debugging later on.
3.
Which is not a Cucumber Report
Correct Answer
E. None of the above
Explanation
The given options json, progress, Html, and rerun are all types of Cucumber Reports. Therefore, the correct answer is "None of the above" as it is the only option that is not a type of Cucumber Report.
4.
______________is the actual code implementation of the feature mentioned in feature file.
Correct Answer
B. Step definition
Explanation
The correct answer is "Step definition" because the step definition is the actual code implementation of the feature mentioned in the feature file. The feature file contains the high-level description of the feature and its scenarios, while the step definition file contains the actual code that defines the steps to be executed for each scenario. The step definition file is where the automation logic is written to interact with the application and validate the expected behavior. The test runner is responsible for executing the feature file and the associated step definitions.
5.
What does Cucumber do?
Correct Answer
B. Cucumber tests other software
Explanation
Cucumber is a software tool used for behavior-driven development (BDD) that allows developers to write tests in a natural language format. These tests are written in a way that non-technical stakeholders can understand and participate in the testing process. Cucumber is not specifically designed to test web page safety, proxy status, or phishing malware. Instead, it is used to test other software applications and ensure their functionality and behavior align with the desired specifications.
6.
In which programming language was Cucumber originally written?
Correct Answer
D. Ruby
Explanation
Cucumber was originally written in Ruby. Ruby is a dynamic, object-oriented programming language known for its simplicity and readability. It is often used for web development and has a strong focus on human-friendly syntax. Cucumber, a popular testing tool, utilizes the Ruby programming language to create executable specifications for software behavior.
7.
What language does Cucumber use?
Correct Answer
C. Gherkin
Explanation
Cucumber uses the language Gherkin. Gherkin is a simple and readable language that is used to describe the behavior of software in a structured and easily understandable way. It is a domain-specific language that allows stakeholders, developers, and testers to collaborate and define the expected behavior of a system using plain text. Gherkin is then used by Cucumber to automate the testing process and generate executable tests based on the defined behavior.
8.
What does Gherkin do?
Correct Answer
B. Translates computer codes for people to understand them
Explanation
Gherkin is a language used for writing test scenarios in a human-readable format. It acts as a bridge between the technical language of computer codes and the non-technical language of people. By translating computer codes into a format that is easily understandable by humans, Gherkin helps in facilitating communication and collaboration between technical and non-technical team members. It allows stakeholders, such as business analysts and product owners, to easily understand and review the test scenarios, ensuring that everyone is on the same page and reducing misunderstandings.
9.
Which sign is used in Gherkin's syntax?
Correct Answer
A. #
Explanation
The correct answer is "#". In Gherkin's syntax, the "#" sign is used to indicate comments. Comments are used to provide additional information or explanations within the code, but they are ignored by the interpreter or compiler when executing the program.
10.
Which file extension do all Gherkin files have?
Correct Answer
B. .feature
Explanation
Gherkin is a language used for writing behavior-driven development (BDD) tests, which are often used in software development. The file extension ".feature" is commonly used for Gherkin files. This extension helps developers easily identify and distinguish Gherkin files from other types of files. It is a convention in the BDD community to use the ".feature" extension for Gherkin files, making it the correct answer.
11.
What is Cucumber?
Correct Answer
A. A tool
Explanation
Cucumber is a tool used for behavior-driven development (BDD) testing. It allows software developers to write tests in a natural language format that is easily understandable by non-technical stakeholders. With Cucumber, tests can be written in a plain text format called Gherkin, which describes the expected behavior of the software. This tool helps to bridge the communication gap between technical and non-technical team members, enabling collaboration and ensuring that the software meets the desired requirements.
12.
____________is a process of developing software based on behavioral specification of software units.
Correct Answer
A. BDD
Explanation
Behavior-Driven Development (BDD) is a process of developing software based on behavioral specifications of software units. BDD emphasizes collaboration between developers, testers, and business stakeholders to ensure that the software meets the desired behavior. It involves writing scenarios in a human-readable format that describe the expected behavior of the software. These scenarios serve as acceptance criteria and guide the development process. BDD encourages the use of specific tools and frameworks to automate the execution of these scenarios, ensuring that the software behaves as expected. Therefore, BDD aligns the development process with the desired behavior of the software units.
13.
___________is a software development technique where automated tests are written before the code.
Correct Answer
A. TDD
Explanation
TDD stands for Test-Driven Development, which is a software development technique where automated tests are written before the code. This approach helps in ensuring that the code meets the desired functionality and passes all the defined test cases. By writing tests first, developers can have a clear understanding of the expected behavior of the code and can focus on writing code that fulfills those requirements. TDD also promotes better code design, maintainability, and reduces the chances of introducing bugs or regressions.
14.
This person is most concerned with the scope of the application. This involves translating user stories into a series of features.
Correct Answer
A. Product Owner
Explanation
The person who is most concerned with the scope of the application and translating user stories into a series of features is the Product Owner. The Product Owner is responsible for understanding the needs and requirements of the users and stakeholders, and then prioritizing and communicating those requirements to the development team. They work closely with the stakeholders to define the scope of the project and ensure that the final product meets their expectations. The Product Owner also plays a key role in defining the product roadmap and making decisions about what features should be included in each release.
15.
What's the subdivision of Gherkin's features?
Correct Answer
C. Scenarios
Explanation
The subdivision of Gherkin's features is referred to as "Scenarios". This refers to a specific use case or instance of the feature being described. Scenarios help to provide a clear and concise understanding of how the feature should behave in different situations. They outline the steps and expected outcomes for each scenario, allowing for effective testing and communication between stakeholders.
16.
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 test scenarios in Behavior-Driven Development (BDD). 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 the context for the scenarios, and the Scenario keyword which defines a specific test scenario. These three parts are essential in organizing and structuring the test scenarios in a Gherkin feature.
17.
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.
18.
Which languages does Cucumber not support?
Correct Answer
A. C
Explanation
Cucumber does not support the C language. Cucumber is primarily used for behavior-driven development (BDD) and is designed to work with languages that have a more expressive syntax, such as Ruby, .Net, and Python. C, being a low-level programming language, does not have the necessary features and syntax to work effectively with Cucumber's BDD framework. Therefore, Cucumber does not support the C language.
19.
What software is needed to run a Cucumber Web Test?
Correct Answer
D. All of the above
Explanation
All of the above options are needed to run a Cucumber Web Test. Ruby and its Development Kit are required as Cucumber is written in Ruby. Additionally, Cucumber itself is needed to execute the test scenarios. An IDE like ActiveState can be used to write and manage the Cucumber test scripts. Therefore, all the given options are necessary for running a Cucumber Web Test.
20.
What are the advantages of Cucumber?
Correct Answer
D. All of the above
Explanation
Cucumber has several advantages. Firstly, Cucumber acceptance tests are written from the user's perspective, which helps in ensuring that the software meets the user's requirements. Secondly, Cucumber promotes team collaboration as it involves various stakeholders such as product owners, business analysts, developers, and testers in writing scenarios. This helps in better understanding and alignment of the requirements. Lastly, Cucumber allows tests to be written in plain-text English, making it accessible to individuals with less technical skills. Therefore, all of the given options are advantages of using Cucumber.