Full width home advertisement

Grade 10 Revision

Post Page Advertisement [Top]

Debugging Class 9

Debugging Class 9




1.  Re-write the given program after correcting the bugs.

REM QBASIC program to find the difference

START

70=A

10=B

C=B- A

PRINT “The difference is”; C

TERMINATE


2. Re-write the given program after correcting the bugs.

REM QBASIC program to find the product of two numbers 

CLR

A=70

10=B

P= A* B

DISPLAY “The Product is”; K

END


3. Re-write the given program after correcting the bugs.

REM QBASIC program to find the difference

START

70=A

10=B

C=B- A

PRINT “The difference is”; C

TERMINATE



4.Re-write the given program after correcting the bugs.

REM QBASIC program to find the sum of 7 and 10

START

A=7

10=B

SUM=A-B

PRINT “Sum of two numbers is”; SUM

THE END


5. Re-write the given program after correcting the bugs.

REM QBASIC program to find the profit 

BEGIN

CP=700

1000=SP

PROFIT=SP- CP

PRINT “The profit is”; CP

STOP


No comments:

Post a Comment

Bottom Ad [Post Page]