Answer a question of the attempt on screen, the way a student does: the choice whose label is the answer (true or false, multiple choice), or the answer typed into its field (short answer, numerical). The question is named by its text (or the start of it), or by its number.
Examples
When I answer "True" to the question "Testing can show that defects are present."
When we answer "Unit test" to the question "Which test checks the smallest testable part"
And I answer "defect" to the question "In one word, what do testers call a flaw in the software?"
When I answer "False" to the question "1"
And we answer "bug" to the question "3"
Pattern
When(/^(I |we )*answer "([^"]*)" to the question "([^"]*)"$/, …)
Part of @webship-js/moodle-steps (github.com/webship/moodle-steps), a step pack for Webship-js 2.0.x.