You are a reviewing the following Java function that determines whether a number, input by the user, is Even or Odd:
You are guided by the following checklist:
All variables must start with a Capital letter.
All output messages must start with a Capital letter.
There must be a comment line explaining the purpose of the class.
How many checklist items have been fulfilled?
Correct Answer:
B
🗳️
Which requirements engineering technique would BEST identify how different groups of users may interact with a system, helping to identify gaps and inconsistencies in a user story?
Correct Answer:
C
🗳️
You are an experienced tester on an Agile team that is producing a new application. The product backlog has been refined sufficiently to begin development for the first release.
This stories in the backlog contain a mixture of functional and non-functional requirements, as well as some technical stories that will provide elements of the application’s infrastructure.
The developers have decided to use TDD as a development approach but automation of the acceptance tests is not yet planned.
You have been asked to recommend whether or not the team should take an ATDD approach as well as TDD. What would be the BEST recommendation in these circumstances?
Correct Answer:
C
🗳️
You need to implement a Java class that validates a password entry field. The validation criteria states that the password must:
1. be a minimum of 8 characters.
2. contain at least one special character.
You are focusing on validation criterion 1 and have written a test class that checks that a 7 character password entry will fail validation.
You have written code designed to make this test class pass, however, on first execution of the test class it has failed.
What should you do next?
Correct Answer:
C
🗳️