Computer Science, asked by shantilata1985, 4 months ago

B. Identify the errors:
1. IF A$= 5 THAN GOTO
START​

Answers

Answered by darshan32186
2

Answer:

1- Variable can store only integer.

Therefore, IF A = 5 THEN

                  GOTO START

2- String that is to be printed should always be within " ".

Therefore, IF A>B THEN

                  PRINT "A IS GREATER"

3- Variable can store only integer and String that is to be printed should always be within " ", we cannot print A$ as string variable is not assigned any value.

Therefore, IF A = 10 THEN

                 PRINT "A"  

                  ELSE

                  PRINT "B"

4-  OTHERWISE statement cannot be used in qbasic.

There,fore IF Y$ = "KABIR" THEN

                 GOTO A

                 ELSE GOTO B

5- To store a string we need string variable.

Therefore, IF X$ = "SUNDAY" THEN PRINT "HAVE FUN"

                 ELSE PRINT "FOLLOW THE ROUTINE"

Explanation:

Similar questions