Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

iSQI Exam CTAL-ATT Topic 3 Question 48 Discussion

Actual exam question for iSQI's CTAL-ATT exam
Question #: 48
Topic #: 3
[All CTAL-ATT Questions]

You need to implement a Java class that validates a password entry field. The validation critena 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 next9

SELECT ONE OPTION

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Maynard
14 days ago
I think the best approach is to repair the failing code and re-execute the test class. Once that's done, you can move on to implementing the special character validation. Gotta walk before you can run, you know?
upvoted 0 times
...
Tu
15 days ago
Haha, I like how the question is asking what to do 'next' when the test class has already failed. Looks like someone needs to brush up on their testing skills!
upvoted 0 times
Novella
2 days ago
Let's repair the failing code and re-execute it.
upvoted 0 times
...
...
Clare
18 days ago
Hold on, why would you develop a new test class for the special character validation? That's just adding more complexity. Focus on the problem at hand and fix the existing test class.
upvoted 0 times
...
Markus
2 months ago
Okay, so the issue is with the password length validation. We need to fix that first before moving on to the special character validation. Repair the failing code and re-execute the test class to make sure it passes.
upvoted 0 times
India
25 days ago
Okay, let's focus on fixing the password length validation first.
upvoted 0 times
...
Caprice
1 months ago
A) Repair the failing code and re-execute it for the test class
upvoted 0 times
...
...
Erick
2 months ago
I think we should also develop a test class with a 9 character password to cover all scenarios.
upvoted 0 times
...
Clemencia
2 months ago
I agree with Eden, let's fix the code first before moving on.
upvoted 0 times
...
Eden
2 months ago
I think we should repair the failing code and re-execute it.
upvoted 0 times
...

Save Cancel