Correct Answer Option 1 Option 2 Option 3 Option 4
Correct Answer Option 1 Option 2 Option 3 Option 4
What is the language used for expressing scenario in
D Java VB .NET Gherkin Language
feature file?
Which of the following gem is required for accessing an
C XL extlib Win32OLE yaml
Excel file?
Which of the following gem is required for accessing an CSV
B signet csv uuidtools redcard
file?
What are the 2 files required to execute a Cucumber test
A features,step_definiton features,support support,step_definitions feature,step_definition
scenario?
Which symbol is used to separate columns in Scenario
C / \ | _
Outline?
Which symbol is used as preffix to declare a variable as
D @ ! & $
public?
What are before, after, beforeStep and afterStep in
B support Hooks Tags Drivers
Cucumber?
Which of the following is the correct syntax for command
cucumber cucumber feature-- cucumber -- feature--
A line execution of a feature file named 'MyScript' assuming cucumber features/MyScript.feature
feature/MyScript.feature MyScript.feature MyScript.feature
we are at the project folder in Command Prompt?
Which of the following is the correct syntax for command
line execution of a feature file named 'MyScript' which has cucumber features/tags cucumber features--
A cucumber features --tags @smoke cucumber features/@smoke
a tag named '@smoke' assuming we are at the project @smoke @smoke
folder in Command Prompt?
cucumber
cucumber cucumber features--
Which of the following is the correct syntax for reports cucumber features\Opencart.feature -- features/Opencart.feature --
D features/Opencart.feature -- Opencart.feature --format html
generation via command prompt? format html --out TestReport.html format html --out
format html TestReport.html TestReport.html
TestReport.html
Cucumber tags are used to
Cucumber tags are used to sort the Cucumber tags are used to Cucumber tags are used to name filter the scenarios and
D Why we use the tags for scenarios in Cucumber ?
scenarios give a scenario a layout the scenrios execute the scenarios
based on tags.
C What preffix is used for adding a tag to a scenario? $ & @ %
What is the syntax of executing all the feature files in a
A cucumber features cucumber features/all cucumber/ run features cucumber/ run all
project from command line?
C Where does the Cucumber execution starts from? step_definition hooks support WebDriver
Behaviour Driven
D BDD stands for? Behave Driven Design Behave Driven Development Behaviour Driven Design
Development
D Which of the following is not a Agile methodology? Sprint Scrum Product Backlog BDD
What is the default feature for parameterizing your
D Excel CSV Text file Scenario Outline
scenario in Ruby?
"--------------" is the method available in Ruby Cucumber to
B Instrumentation Interpolation Concatenation L value
use the value of a variable inside a string?
How do we identify a WebElement(Button) in Ruby driver.webbutton(:name=""
B driver.webbutton(:name=>"") driver.button(:name=>"") driver.button(name=>"")
Cucumber? )
driver.radio_button(:value=>"" driver.radio_button(:name=
C How do we identify a RadioButton in Ruby Cucmber? driver.radio(:name=>"") driver.radio(:value=>"")
) >"")
Which one of the following is not a valid String command in
B reverse equal starts_with size
Ruby Cucumber?
The command used for enering data in a text field in Ruby
A .set .type .edit .set_field
Cucumber?
Which command is used to check for the presence of an
C .exist .ispresent .exist? .ispresent?
object in Ruby Cucumber?
Ruby on Rails is an
Ruby on Rails is an open source web Ruby on Rails is an open source
Ruby on Rails is a Gem file in automation framework
C What is Ruby on Rails? application framework for the web application framework for
Ruby designed for Open source
Cucumber programming language the Ruby programming language
tools.
Which of these is not an Environment variable present in
A RUBYLIBRARY RUBYOPT RUBYPATH RUBYLIB_PREFIX
Ruby Cucumber?
To call the superclass
To call the superclass implementation To call the superclass of the To call the superclass of the
D What is the use of the "super" keyword in Ruby Rails? implementation of the
of the default method default method current method
current method
What will be the outcome of the following code:
while i<7 do Error because the value of "i" is
B Prints the value of "i" 7 times Error for "i" not initialized Prints 0
puts(i) not increased
end
What is missing in the following code of Ruby Cucumber:
A :name=> :link=> :value=> :id=>
$driver.text_field("email").set "email"
Cucumber features –Dry-
B How do we do a Dry-run in Ruby Cucumber? Cucumber features –dryrun Cucumber features –dry-run Cucumber features dry-run
Run
Feature: Visit XYZ page in
Feature: Visit XYZ page in
Feature: Visit XYZ page in abc.com abc.com
abc.com
Scenario : Visit abc.com Scenario : Visit abc.com Scenario : Visit abc.com
Which one of the following options is the correct form of
D Given: I am on abc.com Given: I am on abc.com
writing a feature file? Given: I am on abc.com
When: I click on XYZ page When: I click on XYZ page When: I click on XYZ page
When: I click on XYZ page
Then: I should see ABC page Then: I should see ABC page Then: I should see ABC
Then: I should see ABC page
page
"???" loads and processes the Ruby code from a separate
B file, including whatever classes, modules, methods, and env.rb Require() Require_Method() Watir
constants are in that file into the current scope
"-----" exercise the concept – “ You write test cases and
D BDD Gherkin Ruby Cucumber TDD
then develop the product that suits them"
"-----" criteria for the feature can be defined as when The
C Product Owner, a Programmer and a Tester collaborate on BDD TDD Acceptance Regression
system behaviour.
"-----" is a story testing approach.The functionalities
written by the Business Analyst's triggers the testing
D Agile TDD Gherkin BDD
process
"----" is an incremental and iterative software development
A Agile Waterfall Iterative BDD
model
"----" is a framework for writing and executing high level
C descriptions of your software’s functionality. Capybara Calabash Cucumber Keyword Driven
What is the output of the following code:
In End In Begin In End
END {puts "In End"} Error as END is preceding the
C In Begin middle middle
BEGIN {puts "In Begin"} BEGIN command
middle In END In Begin
puts "middle"
What is the output of the following code:
age=3
x="double quoted {age}" double quoted 3 double quoted {age} double quoted 3 double quoted
B
y='single quoted {age}' single quoted {age} single quoted {age} single quoted 3 single quoted
puts x
puts y
What is the output of the following code:
C message="Ruby Programming" Ruby Programming Syntax Error Ruby Program Ruby Programm
puts message[0,message.length-4]
What is the output of the following code:
hello
.3 times do hello Syntax Error as "for/while" is not
A hello hello
puts "hello" hello defined
hello
end
What is the tag used for writing a scenario for Selenium in
C @Test @Scenario @selenium @selenium-cucumber
Ruby Cucumber?
Which of the following is the Object locator used for finding
B find_by_element find_element find xpath
objects through Selenium in Ruby Cucumber?
Which prefix is used to use/call the steps from a pre-
D + & * %
defined scenario in Ruby Cucumber?
What is the output of the following code:
i=10
while i==10
D Hello 10 (10 times) Hello 0 (9 times) Hello {0} (infinite times) Hello {i} (infinite times)
puts "Hello {i}"
end
What is the output of the following code:
Hello
What is the output of the following code: Hello Hello
10.downto(7) do Hello Hello Hello
Error as For/while is not
A puts "Hello" Hello Hello Hello
implemented
end Hello Hello Hello
Hello
Hello
What is the output of the following code:
while i<10
Error because the value of "i" is Error because "i" is not
D puts "Hello" Hello -10 times Hello - 9 times
not increased initialized
end
What is the output of the following code:
i=0
while i<10 Error because the value of
C Hello -10 times Hello - 9 times Hello - infinite times
puts "Hello" "i" is not increased
end
What is the output of the following code:
i=0
while i==10
D Hello -10 times Hello - 9 times Hello - infinite times No Output
puts "Hello"
end
What is the output of the following code:
i=0
while i=10
C Hello -10 times Hello - 9 times Hello - infinite times No Output
puts "Hello"
end
What is the output of the following code:
i=0
while i=10
D Hello 10 (10 times) Hello 0 (9 times) Hello {0} (infinite times) Hello {i} (infinite times)
puts "Hello {i}"
end