The required messages can be displayed using the IF...ELSE statement. The test score will be checked and based on the condition, the appropriate message will be printed using the PRINT statement. The statements need to be enclosed within BEGIN and END keywords as there are multiple statements.