Answer:

Enter the password
? secret
permission denied

The user typed lower case letters, and they do not match the upper case letters in SECRET.

More Practice

A relational expression gives a TRUE value or a FALSE value. Here are some examples.

"Secret" = "Secret"         true
"Secret" = "secret"         false
"secret" = "secret"         true
"flute" = "tuba"         false
"red shift" = "red shift"         true
"red shift" = "redshift"         false (because spaces matter)

Here is the program again:

' Password checker
'
PRINT "Enter the password"
INPUT WORD$
IF WORD$ = "SECRET" THEN
  PRINT "permission granted"
ELSE
  PRINT "permission denied"
END IF
'
END

QUESTION 13:

Say that the user just hit Enter immediately after the program asked for the password. What will the program print?