Computer Science 10th
-
Upload
muhammad-dawood -
Category
Documents
-
view
216 -
download
0
Transcript of Computer Science 10th
-
8/12/2019 Computer Science 10th
1/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