Use the QBASIC program below to answer question below 10 REM Program to calculate product

COMPUTER
WAEC 2022

Use the QBASIC program below to answer question below

10 REM Program to calculate product of numbers

20 CLS

30 INPUT A

40 INPUT B

50 LET PRODUCT=A*B

60 PRINT PRODUCT

70 END

The QBASIC statement LETX=Y-3 means
  • A. the variables X and Y both receive the value 3
  • B. the variable X receives the value 3.
  • C. the variable X receives the value of Y less 3
  • D. an error message has occured due to type mismatch

Correct Answer: C. the variable X receives the value of Y less 3



Post an Explanation Or Report an Error
If you see any wrong question or answer, please leave a comment below and we'll take a look. If you doubt why the selected answer is correct or need additional more details? Please drop a comment or Contact us directly. Your email address will not be published. Required fields are marked *
Add Math
Don't want to keep filling in name and email whenever you make a contribution? Register or login to make contributing easier.