Home »
MCQs
Cucumber Testing Multiple-Choice Questions (MCQs)
Cucumber testing is a software testing process that deals with an application's behavior. It tests applications as a behavior-driven development (BDD) style.
Cucumber Testing MCQs: This section contains multiple-choice questions and answers on the various topics of Cucumber Testing. Practice these MCQs to test and enhance your skills on Cucumber Testing.
List of Cucumber Testing MCQs
1. Test cases are developed using Cucumber, a tool used in Behavior Driven Development.
- Testing
- Cucumber
- Both A and B
- None of the above
Answer: B) Cucumber
Explanation:
Test cases are developed using Cucumber, a tool used in Behavior Driven Development.
Discuss this Question
2. What is the full form of BDD?
- Behavior Driven Development
- Behind Driven Development
- Behavior Data Development
- Behavior Driven Database
Answer: A) Behavior Driven Development
Explanation:
The full form of BDD is Behavior Driven Development.
Discuss this Question
3. The software development approach BDD (Behavioral Driven Development) evolved from TDD (Test Driven Development).
- Test Driven Development
- Tapper Driven Development
- Test Database Development
- None of the above
Answer: A) Test Driven Development
Explanation:
The software development approach BDD (Behavioral Driven Development) evolved from TDD (Test Driven Development).
Discuss this Question
4. Ruby was the original programming language used to create the Cucumber tool.
- Java
- C
- C++
- Ruby
Answer: D) Ruby
Explanation:
Ruby was the original programming language used to create the Cucumber tool.
Discuss this Question
5. What is/are the basic term(s) of Cucumber?
- Feature File
- Features
- Tags
- All of the above
Answer: D) All of the above
Explanation:
The basic terms of Cucumber are -
- Feature File
- Features
- Tags
Discuss this Question
6. What is/are TRUE about Cucumber Testing?
- Gherkin or plain English text may be written inside a feature file and read by the Cucumber tool.
- Every step in the step definition file is searched for an exact match.
- It is important that the code for the software developed matches the scripts for the tests defined by BDD.
- All of the above
Answer: D) All of the above
Explanation:
The things TRUE about Cucumber Testing are -
- Gherkin or plain English text may be written inside a feature file and read by the Cucumber tool.
- Every step in the step definition file is searched for an exact match.
- It is important that the code for the software developed matches the scripts for the tests defined by BDD.
Discuss this Question
7. Software tools such as Selenium and Ruby on Rails may be used to execute the piece of code for testing.
- Selenium
- Ruby on Rails
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
Software tools such as Selenium and Ruby on Rails may be used to execute the piece of code for testing.
Discuss this Question
8. The popularity of Cucumber is due to its ability to support almost all popular software platforms, as opposed to JDave, EasyB, JBehave, etc.
- JDave
- EasyB
- JBehave
- All of the above
Answer: D) All of the above
Explanation:
The popularity of Cucumber is due to its ability to support almost all popular software platforms, as opposed to JDave, EasyB, JBehave, etc.
Discuss this Question
9. What is/are the advantage(s) of the Cucumber Tool?
- Cucumber Testing focuses primarily on the end-user experience since the end-user experience ultimately determines the success of software.
- There is no difficulty in writing test cases.
- In contrast to other tools, it provides a framework for testing an entire application.
- All of the above
Answer: D) All of the above
Explanation:
The advantage of the Cucumber Tool are -
- Cucumber Testing focuses primarily on the end-user experience since the end-user experience ultimately determines the success of software.
- There is no difficulty in writing test cases.
- In contrast to other tools, it provides a framework for testing an entire application.
Discuss this Question
10. Web UI (User Interface) automation testing is most commonly done with Selenium, an open-source software application.
- Cucumber
- Selenium
- Both A and B
- None of the above
Answer: B) Selenium
Explanation:
Web UI (User Interface) automation testing is most commonly done with Selenium, an open-source software application.
Discuss this Question
11. C#, Java, Perl, PHP, Python, Ruby, and Perl are some of the languages supported by Selenium.
- C#
- Java
- Perl
- All of the above
Answer: D) All of the above
Explanation:
C#, Java, Perl, PHP, Python, Ruby, and Perl are some of the languages supported by Selenium.
Discuss this Question
12. What is the full form of QTP?
- Quick Test Professional
- Quick Tear Professional
- Quarrel Test Professional
- Query Test Professional
Answer: A) Quick Test Professional
Explanation:
The full form of QTP is Quick Test Professional.
Discuss this Question
13. Test script development is completed only after automated functional testing has been completed in QTP.
- Before
- After
- In the Middle
- None
Answer: B) After
Explanation:
Test script development is completed only after automated functional testing has been completed in QTP.
Discuss this Question
14. The automated testing of software applications is carried out using Visual Basic Scripting (VBScript).
- Visual Basic
- Velocity Basic
- Visual Binary
- Velocity Binary
Answer: A) Visual Basic
Explanation:
The automated testing of software applications is carried out using Visual Basic Scripting (VBScript).
Discuss this Question
15. VBScript is a/an -
- Object-based
- Object-oriented
- HTML
- CSS
Answer: A) Object-based
Explanation:
VBScript is an Object-based language.
Discuss this Question
16. What is/are the characteristic(s) of BDD?
- Strong Collaboration
- High Visibility
- Lower Costs
- All of the above
Answer: D) All of the above
Explanation:
The characteristics of BDD are -
- Strong Collaboration
- High Visibility
- Lower Costs
Discuss this Question
17. Test features, scenario descriptions, and feature descriptions are usually stored in a feature file.
- Test features
- Scenario descriptions
- Feature descriptions
- All of the above
Answer: D) All of the above
Explanation:
Test features, scenario descriptions, and feature descriptions are usually stored in a feature file.
Discuss this Question
18. Files with the extension ".feature" are feature files.
- .f
- .fea
- .feat
- .feature
Answer: D) .feature
Explanation:
Files with the extension ".feature" are feature files.
Discuss this Question
19. When using Eclipse, you can use block comments or multi-line comments by selecting all lines and pressing Ctrl + /.
- /
- \
- [
- ]
Answer: A) /
Explanation:
When using Eclipse, you can use block comments or multi-line comments by selecting all lines and pressing Ctrl + /.
Discuss this Question
20. Tags are declared using the @ symbol.
- @
- #
- $
- &
Answer: A) @
Explanation:
Tags are declared using the @ symbol.
Discuss this Question
21. Operators can be used to test multiple tags:
- OR operator
- AND operator
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
Two operators can be used to test multiple tags:
- OR operator
- AND operator
Discuss this Question
22. In order to skip the test, a special symbol '~' can be used within the tag.
- ~
- /
- \
- !
Answer: A) ~
Explanation:
In order to skip the test, a special symbol '~' can be used within the tag.
Discuss this Question
23. Scenarios and features can also be skipped using Special Characters.
- Scenarios
- Features
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
Scenarios and features can also be skipped using Special Characters.
Discuss this Question
24. The Gherkin programming language is used for the creation of these executable test scripts.
- Gherkin
- Gerkin
- Gerin
- Gerkn
Answer: A) Gherkin
Explanation:
The Gherkin programming language is used for the creation of these executable test scripts.
Discuss this Question
25. In the feature file, Gherkin provides the following specific keyword(s):
- Given
- When
- Then
- All of the above
Answer: D) All of the above
Explanation:
In the feature file, Gherkin provides the following specific keywords:
- Given
- When
- Then
Discuss this Question
26. There is a feature keyword at the beginning of every Cucumber testing feature file.
- Feature
- Scenario
- Then
- When
Answer: A) Feature
Explanation:
There is a feature keyword at the beginning of every Cucumber testing feature file.
Discuss this Question
27. The preconditions of a test are described by the given keyword.
- Given
- When
- Then
- Feature
Answer: A) Given
Explanation:
Preconditions of a test are described by the given keyword.
Discuss this Question
28. A user's actions are normally executed when they are defined as ___.
- Then
- When
- For
- Given
Answer: B) When
Explanation:
A user's actions are normally executed when they are defined as when.
Discuss this Question
29. A keyword called '___' pertains to what happens after a previous step or action.
- Then
- When
- Given
- But
Answer: A) Then
Explanation:
A keyword called 'Then' pertains to what happens after a previous step or action.
Discuss this Question
30. Negative conditions are added with the '___' keyword.
- Background
- But
- And
- Or
Answer: B) But
Explanation:
Negative conditions are added with the 'But' keyword.
Discuss this Question
31. When you add conditions to your steps, you use the '___' keyword.
- And
- But
- Background
- For
Answer: A) And
Explanation:
When you add conditions to your steps, you use the 'And' keyword.
Discuss this Question
32. Tests in a feature file use the '___' keyword to define common steps.
- Back
- Ground
- Background
- For
Answer: C) Background
Explanation:
Tests in a feature file use the 'Background' keyword to define common steps.
Discuss this Question
33. The term "___" refers to a function of a software application or a standalone unit.
- Feature
- Scenario
- Both A and B
- None of the above
Answer: A) Feature
Explanation:
The term "feature" refers to a function of a software application or a standalone unit.
Discuss this Question
34. We use data tables for testing web applications that require multiple input parameters.
- Web
- Mobile
- Both A and B
- None of the above
Answer: A) Web
Explanation:
We use data tables for testing web applications that require multiple input parameters.
Discuss this Question
35. Cucumber uses the annotations ___ and ___ to define the hook for each scenario in the step definition file.
- @Before
- @After
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
Cucumber uses the annotations @Before and @After to define the hook for each scenario in the step definition file.
Discuss this Question
36. Our cucumber hook significantly improves our code workflow and reduces code redundancy.
- Improves our code workflow
- Reduces code redundancy
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
Our cucumber hook significantly improves our code workflow and reduces code redundancy.
Discuss this Question