Summer Special Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: vce65

Which line is a loop variable update statement in the sample code?

Which line is a loop variable update statement in the sample code?

integer h = 0

do

Put "What is the password?" to output

String userInput = Get next input

if userInput != pwd

Put "Incorrect." to output

h = h + 1

while (userInput != pwd) and (h <= 10)

if userInput = pwd

Put "Access granted." to output

else

Put "Access denied." to output

A.

if userInput = pwd

B.

h = h + 1

C.

(userInput != pwd) and (h <= 10)

D.

integer h = 0

WGU Scripting-and-Programming-Foundations Summary

  • Vendor: WGU
  • Product: Scripting-and-Programming-Foundations
  • Update on: Jul 21, 2025
  • Questions: 138
Price: $52.5  $149.99
Buy Now Scripting-and-Programming-Foundations PDF + Testing Engine Pack

Payments We Accept

Your purchase with ExamsVCE is safe and fast. Your products will be available for immediate download after your payment has been received.
The ExamsVCE website is protected by 256-bit SSL from McAfee, the leader in online security.

examsvce payment method