Consider the following section of pseudocode:
function getPassword() {
var x;
var y;
var z;
var passwordGood = false
// Get password from user, user is allowed 3 tries
do until x = 3
call getPassword (password)
if password is good
x = 3
passwordGood = true
else
X = X + 1
display ''Password is not valid, try again''
endif
If passwordGood <> true
display ''You exceeded the number of tries to enter a password. Your account is now locked. Call customer service.''
endif
endloop
}
For this section of code, which of the following issues should be identified during a code review?
Variables have not been properly defined with meaningful names
There are unused variables defined
Divisors are not tested for zero
Loop counters are not properly initialized
There are endless loops
There are statements within the loop that should be outside the loop
Rueben
9 months agoChantell
9 months agoMarion
10 months agoFranklyn
10 months agoCarri
10 months agoJesusa
10 months agoNieves
10 months agoAleta
11 months agoPauline
11 months agoAbel
11 months agoLettie
11 months agoGilbert
11 months agoPortia
1 year agoDanica
1 year agoZack
1 year agoCallie
1 year agoJennie
1 year agoJesusa
1 year agoBuck
1 year agoJeniffer
1 year agoBernadine
1 year agoTamie
1 year agoKati
1 year agoWalker
1 year agoTula
1 year agoAnnett
1 year agoLeonora
1 year agoShanda
1 year ago