ExamPlay Dark Logo
Inloggen

WAEC - Computer Studies (2023 - No. 7)

The commands used for adding comments in QBASIC programming is
PRINT
REM
CLS.
INPUT

Uitleg

The command used for adding comments in QBASIC programming is "REM."

In QBASIC, the "REM" statement is used to insert comments within your code. Comments are lines of text that are ignored by the computer when the program is executed. They are used to provide explanations, notes, or documentation about the code for the programmer's or reader's understanding. Any text following the "REM" keyword on the same line is treated as a comment and is not executed by the program. For example:

REM This is a comment explaining the purpose of the following code.
PRINT "Hello, World!"

In the example above, the text following "REM" is ignored by the program, and only the "PRINT" statement is executed.

The other options are incorrect. CLS is a statement that clears the screen. INPUT is a statement that gets input from the user. PRINT is a statement that prints text to the screen.

Opmerkingen (0)

Log in om te reageren
Advertentie
BrainBehindX Inc Logo
©2026; Aangedreven door BrainBehindX Inc