Skip to main content

BASIC Removal of Errors (Computer Note IX Class)



Remove the errors in the following BASIC Statements, if any:

1. 5 REEM ** MARKS SHEET **
2. 5.5 INPUT TAB (90) “NAME”: N$
3. –65 PRINT “MY SCHOOL”
4. 100S$ = MID$(A$5)
5. 99 READ 4, 5, SIX: DATA A, B, C$
6. 25 GOSUB R
7. 10 IF A = 10 TO 50 THEN END
8. 15 LET X “=” A “*” B
9. 80 FOR I = 20 TO 10 STEP –2
10. 18 LOCATE (5, 10): PRINT “ME”
11. 10 LET Z = “PAKISTAN”
12. 06 PRINT RIGHT (8, A$)
13. 20 IF X $ = 6 THEN: GOTO 120
14. 41 DATA 18, CLASS, SCHOOL: READ N, P, C
15. 5.5 INPUT “YOU NAME” N
16. RAM TO CALCULATE NUMBERS
17. –8 ON GOTO CH 100, 200, 300
18. 66 A$ = 5 TO 1 STEP –1
19. PRINT “OK”: TAB (10)
20. 50.5 PRIT “MY SCHOOL”
21. 38 REED A: DATA 40
22. 141 RAM “PRACTICAL EXAM”
23. 80 FOR R = IT 0010: NEXTR
24. 100 PRINT TAB (10); PAKISTAN
25. –32C= 10 TO 20 STEP –2
26. 53 READ A$; B; C$ : DATA AEROPLANE ; 200; CARD
27. 200 INPUT; “WHAT IS YOU NAME?”; A$
28. 10IF A = 100 THEN GOTO R
29. 20 REEM ABC
30. 10 LET A = “Karachi City”
31. 06 PRINT RIGHT (A$, 8)
32. 20 IF X$ = 6 THEN GOTO 120
33. 41 DATA. 18, page, Cat: READ N; P$; C$
34. 50.5 INPUT “What is your age?” A
35. 66 PRINT TAB (2): “ALL”; TAB (7); “The”; TAB (12) “Best”
36. 32 SCREEN 86
37. 706 LINE (40, 80) (300, 150); 3
38. 25 LOCATE 12.30: PRINT “Friendship”
39. 14 PRINT MID$ (A$, 10, 3)
40. 10 For X = 1 TO 5 STEP –1
20 J=X = 10
30 IF J = 80 THEN 100
40 NEXT Y
50 END
41. 10 INPUT
20 B – C = D
30 B = A * 2
40 PRINT E
50 END
42. 10 CLS
20 FOR I = 1 TO 10
30 LET A = 1
40 ? A
60 ? “This is the end of program.”
70 END
43. 10 INPUT A.B
20 LET A = A * 5
30 LET B = B * 2
40 TAB 20, 30: PRINT A;B
50 FINISH
44. 10 LOCATE 75, 10
20 PRINTER “Am I wrong?”;
30 LET T = 25 X 4 + 60
40 PRINTER T
50 END
45. 10 LET A = “KARACHI CITY”
46. 06 PRINT RIGHT (A$, 8)
47. 20 IF X$ = 6 THEN GOTO 120
48. 41 DTA 18, PAGE, CAT: READ N; P$; C$
49. 50.5 INPUT “WHAT IS YOU AGE?” A
50. 66 PRINT TAB (2); “ALI”; TAB (7); “THE” ; TAB (12); “BEST”
51. 32 SCREEN 86]
52. 70.6 LINE (40, 80) – (300 – 150) ;3
53. 25 LOCATE 12, 30 : PRINT “FRIENDSHIP”
54. 14 PRINT MID$ (A$, 10, 3)
55. 10 GOTO 60, 70
56. 20 FOR I=1 10 STEP 2
57. 14 S$ = PAKISTAN
58. 26 READ P$, X: DATA THRE, 3
59. 65 PRINT A = A, B, C
60. 121 IF X = 20: THEN GOTO 20
61. 70 LET X = LAE A + Y
62. 20 “INPUT ENTER YOU NAME”;N
63. 46.5 IF C$= COMPUTER THEN END
64. –25 C$ = A4 + B + C
65. 10 CLS, X = X + 1
66. 55 Z$ = CHR (29)
67. 129 READ 50, 100 :DATA A, B
68. 30 FOR 50 = A TO B
69. 40 GOTO CLS
70. 66 IF X$ = 50THEN GOTO A$ ELSE GOTO 30
71. 55 REM REM
72. 100 LET P$ = X
73. 123 LOCATE 35, 90 : PRINT “PAKISTAN”
74. 999 PRINT TAB (90) STRING$ (120, “-“
75. 50 N$ = RIGHT$ (C$, 3)
76. 7 A = LET M +1
77. 10 LPRINT = A, B, CAT
78. AN INPUT “STUDENT ROLL NUMBER “;SRN
79. 8 SCREEN: COLOUR A, B
80. 41 C = 10 TO 20 STEP 2
81. 100 GOTO 4
82. 265 IF W$ = “YES” THEN STOP
83. 2C LINE (20, 50) – (300, 150) ,2
84. PRINT A$ , B$, C
85. 10 PRINT 5(2 + 7)
86. 20 PRINT 8x8
87. 20 PRINT X = 15
88. 20 PRINT NAME IS =; N$
89. 30 PRINT: PRINT
90. PRINT “PAKISTAN ZINDABAD”
91. 10 PRINT “TEMPERATURE =; T; C
92. 10 INPUT ‘CAPITAL IS =’ C$
93. 30 INPUT ENTER VALUES OF A, B AND C
94. 50 AND “PROGRAM IS FINISH”

Comments

Popular posts from this blog

Chrysler Deletes Its Dating Apps, Decides To Remain Single For Now

They say you can’t have a healthy relationship until you’re happy with yourself. That appears to be the new mantra for Fiat Chrysler: After several attempts to woo General Motors and more recently Volkswagen , the carmaker’s top executive says he plans to ditch his lovelorn ways to concentrate on his company’s bottom line.  Bloomberg reports that CEO Sergio Marchionne has turned his focus to eliminating FCA’s debt rather than eliminating its single status. Marchionne has set a goal of erasing FCA’s debt by 2019, the same year he’s set to retire. To do that, he says the company needs to do a little work on itself. “We need to be very careful that we don’t start unrealistic dreams about consolidation as we are on our way to achieve historically important results and a debt-free position,” Marchionne told investors at the carmaker’s annual meeting in Amsterdam, as reported by Bloomberg. “We are not at a point of time to discuss any alliance.” Yes, you heard that right: The man w...

Study Claims 43% Of “Wild” Salmon In Stores & Restaurants Isn’t Wild At All

That wild salmon entrée calling to you from the menu at dinner might not be all it’s advertised. In fact a new study released Wednesday found evidence of mislabeling in nearly half of all salmon sold in restaurants and grocery stores.  The study [ PDF ] from international environmental advocacy group, Oceana, analyzed 82 salmon samples from restaurants and grocery stores, finding that 43% of the products were mislabeled. DNA testing confirmed that 69% of the mislabeled product consisted of farmed Atlantic salmon being sold as wild-caught product. According to the report, consumers satisfying their salmon craving in restaurants are misled about 67% of the time, while those who buy their seafood in a grocery store are misled 20% of the time. “Americans might love salmon, but as our study reveals, they may be falling victim to a bait and switch,” Beth Lowell, senior campaign director at Oceana, said . “When consumers opt for wild-caught U.S. salmon, they don’t expect to get a far...

Introduction to Biology (IX Biology Notes Chapter 01)

Science: Our universe operates under certain principles. For understanding of these principles, the experiments are done and observations are made; on the basis of which logical conclusions are drawn. Such a study is called "Science". In brief science is the knowledge based on experiments and observations. Biology: The Scientific study of living organisms is called Biology. The word biology is derived from two Greek words "bios" meaning life and "logos" meaning thought, discourse, reasoning or study. It means that all aspects of life and every type of living organism are discussed in biology. Branches of Biology: Biology is divided into following branches: Morphology The study of form and structure of living organisms is called morphology. It can be further divided into following two parts: 1. The study of external parts of living organism is called external morphology. 2. The study of internal parts of living organism is calle...