User Forum

Subject :ICSO    Class : Class 7

What would be the output of the given QBASIC code?
a = 50
b = 20
add = a + b
PRINT "add"

Aadd
B 70
C add 70
D No output


The reason you get 'add' is because it is in double quotes. Anything that is to be printed and is in double quotes, gets printed exactly as it was given in the double quotes.Here 'add' is in double quotes.So, your output is 'add'.

Post Your Answer