Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

NAVEED MAJEED ACEDEMY CLASS 10TH TEST 16 JULY

Computer Science

Question No 1 Find the Output of the following
10 REM learn on goto
20 CLS
30 INPUT "First Number:" , x
40 INPUT "Second Number:" , y
50 INPUT "Enter 1 to add or 2 to subtract:" , c
60 ON c GOTO 70,
70 PRINT "Difference=" ; x-y
80 END

Question No 2 Write a program to find out the number is positive or the number is negative

Question No 3 Write the Program to Add 2 numbers.

Question No 4 Tell the output of the following If possible otherwise find out the error from it.
10 READ , A ,B,C
20 DATA 10,20,30
30 PRINT A, B ,C
40 END

Question no 5: Write any program using IF statement

You might also like