ExamGecko
Question list
Search
Search

Related questions











Question 241 - CTFL-2018 discussion

Report
Export

A system sets new users' password to a temporary password

The temporary password is a random number based on the first sft: characters of the username.

If the username is shorter than 6 characters, the system displays an error message.

Which of the following is a possible representation of equivalence classes for the username string?

A.
{Random number} {Error message}
Answers
A.
{Random number} {Error message}
B.
{Error message displayed} {Error message not displayed}
Answers
B.
{Error message displayed} {Error message not displayed}
C.
{Username shorter than 6 characters} {Username equal to or longer than 6 characters}
Answers
C.
{Username shorter than 6 characters} {Username equal to or longer than 6 characters}
D.
{Username with a permanent password} {Username with a temporary password}
Answers
D.
{Username with a permanent password} {Username with a temporary password}
Suggested answer: C

Explanation:

The equivalence classes for the username string are based on the length of the string, not on the type of password or the error message. Therefore, option C is correct, as it divides the username string into two equivalence classes: shorter than 6 characters and equal to or longer than 6 characters. Option A is incorrect, as it does not consider the length of the username string. Option B is incorrect, as it does not specify the criteria for displaying or not displaying the error message. Option D is incorrect, as it confuses the username string with the password string.

asked 18/09/2024
Robert Thompson
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first