Bird
0
0

Identify the error in this use case step:

medium📝 Debug Q14 of 15
Java - Command Line Arguments
Identify the error in this use case step:
Step 2: System checks if user password is correct.
Step 3: If password is wrong, system grants access.
AStep 3 should deny access if password is wrong
BStep 2 should accept any password
CStep 3 should crash the system
DNo error, steps are correct
Step-by-Step Solution
Solution:
  1. Step 1: Review step 3 logic

    Granting access on wrong password is a security error.
  2. Step 2: Correct expected behavior

    System should deny access or show error if password is wrong.
  3. Final Answer:

    Step 3 should deny access if password is wrong -> Option A
  4. Quick Check:

    Wrong password = deny access [OK]
Quick Trick: Wrong password must never grant access [OK]
Common Mistakes:
  • Allowing access on wrong password
  • Ignoring security in use case steps
  • Assuming system crashes on wrong input

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Java Quizzes