WAEC offline past questions - with all answers and explanations in one app - Download for free
WAEC Past Questions, Objective & Theory, Study 100% offline, Download app now - 24709

The commands used for adding comments in QBASIC programming is

Computer Studies
WAEC 2023

The commands used for adding comments in QBASIC programming is

  • A. PRINT
  • B. REM
  • C. CLS.
  • D. INPUT
WAEC May/June 2024 - Practice for Objective & Theory - From 1988 till date, download app now - 99995
Post-UTME Past Questions - Original materials are available here - Download PDF for your school of choice + 1 year SMS alerts
WAEC offline past questions - with all answers and explanations in one app - Download for free
Correct Answer: Option B
Explanation

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.


Report an Error Ask A Question Download App
WAEC May/June 2024 - Practice for Objective & Theory - From 1988 till date, download app now - 99995
Post-UTME Past Questions - Original materials are available here - Download PDF for your school of choice + 1 year SMS alerts
WAEC Past Questions, Objective & Theory, Study 100% offline, Download app now - 24709

Contributions ({{ comment_count }})

Please wait...

{{ settings.no_comment_msg ? settings.no_comment_msg : 'There are no comments' }}

Quick Questions

Post your Contribution

Please don't post or ask to join a "Group" or "Whatsapp Group" as a comment. It will be deleted. To join or start a group, please click here

{{ quote.posted_by.display_name }}
{{ settings.form_textarea_description }}
 
WAEC May/June 2024 - Practice for Objective & Theory - From 1988 till date, download app now - 99995
Post-UTME Past Questions - Original materials are available here - Download PDF for your school of choice + 1 year SMS alerts
WAEC Past Questions, Objective & Theory, Study 100% offline, Download app now - 24709
WAEC offline past questions - with all answers and explanations in one app - Download for free
WAEC offline past questions - with all answers and explanations in one app - Download for free
WAEC May/June 2024 - Practice for Objective & Theory - From 1988 till date, download app now - 99995
WAEC Past Questions, Objective & Theory, Study 100% offline, Download app now - 24709
Post-UTME Past Questions - Original materials are available here - Download PDF for your school of choice + 1 year SMS alerts