Difficulty: Easy
Average Score: 88%

Which line is a loop variable update statement in the sample code?
integer h = 0do
Put "What is the password?" to output
String userInput Get next input
if userInput != pwd
Put "Incorrect." to output
h = h + 1while (userInput ! pwd) and (h <= 10) if userInput pwd
Put "Access granted." to outputelse
Put "Access denied." to output

Report an Issue

Help us improve by flagging this content.

Rate this Practice Test

How helpful was this material?

Chat on WhatsApp