Question from the Algorithmics - Fundamentals test

Archived

What is the result of this code?

        password  = “HelloTheDevs2022!”
        If password has less than 10 letters     
        {
            display ''low security, attention imminent attack, it takes at least 10 letters and a capital letter'';
        } 
       Else if password has less than 10 lettres & at least 1      capital letter
       {
            display ''the password is accepted'';
        } 
       Else if password has more than 10 letters & at least 1 capital letter & at least 1 number 
        {          
            display ''Strong security, sleep soundly''; 
         } 
        Else 
        {
            display ''Please note that the password must contain at least one capital letter to be validated.'';
        }

Author: KahinaStatus: Archived(New question!)Question passed 24 times
0
Community EvaluationsNo one has reviewed this question yet, be the first!