Multiple choice

If X = 22, which of the following statements is executed? If X <> 8 THEN PRINT "Stop program" END IF

  1. The statement Stop program will be displayed

  2. The THEN part of the statement will not be executed

  3. An error message will result

  4. The number 8 will be assigned to the variable X

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

When X=22, the condition (X <> 8) is true (22 is not equal to 8), so the THEN clause executes and prints 'Stop program'. Option B is incorrect because the THEN clause does execute. No error occurs or value assignment happens.