ExamPlay Light Logo
로그인

WAEC - Computer Studies (2023 - No. 7)

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

설명

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.

댓글 (0)

댓글을 달려면 로그인하세요
광고
BrainBehindX Inc Logo
©2026; 에 의해 구동 BrainBehindX Inc