Multiple choice

What occurs if the first statement after a block IF statement is non-executable such as a REM statement?

  1. An error message is displayed.

  2. The program will execute the statement immediately before the block IF statement.

  3. The block IF statement is executed again.

  4. The first statement following the non-executable statement is executed.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Non-executable statements like REM (remark/comment) are ignored during program execution. When a non-executable statement appears after a block IF, the program simply skips it and continues to the next executable statement. The block IF has already been evaluated, and execution proceeds to the first executable instruction following the REM statement. No error occurs, and the IF is not re-executed.