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
3 months agoChantell
3 months agoMarion
4 months agoFranklyn
4 months agoCarri
4 months agoJesusa
4 months agoNieves
4 months agoAleta
5 months agoPauline
5 months agoAbel
5 months agoLettie
5 months agoGilbert
5 months agoPortia
10 months agoDanica
8 months agoZack
9 months agoCallie
9 months agoJennie
9 months agoJesusa
9 months agoBuck
9 months agoJeniffer
10 months agoBernadine
10 months agoTamie
10 months agoKati
11 months agoWalker
9 months agoTula
10 months agoAnnett
11 months agoLeonora
11 months agoShanda
11 months ago