WGU Scripting-and-Programming-Foundations Question Answer
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
WGU Scripting-and-Programming-Foundations Summary
- Vendor: WGU
- Product: Scripting-and-Programming-Foundations
- Update on: Jul 21, 2025
- Questions: 138