Summer Special Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 8w52ceb345

Consider the following section of pseudocode:function getPassword() { var x; var y; var z; var...

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

A.

1, 3, 4, 5

B.

2, 3, 4, 6

C.

2, 3, 5, 6

D.

1, 2, 4, 6

CTAL-ATT PDF/Engine
  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions
buy now CTAL-ATT pdf
Get 60% Discount on All Products, Use Coupon: "8w52ceb345"