Showing posts with label Computer Class IX (BSEK). Show all posts
Showing posts with label Computer Class IX (BSEK). Show all posts

IX Computer Karachi Board of Secondary Education True and False

Write True or False for the following sentences:

1. The central processing Unit (C.P.U) is the brain of computer system.

2. Logical errors are caused by faulty program designs.

3. Diamond-shaped symbol in program flow chart is used for decision points.

4. Dot Matix printers are non-impact printers.

5. Data stored in ROM can be changed.

6. Impact printers work by hitting an inked ribbon against the paper,

7. High level language is used to convert the source program into object program.

8. Mark-1 is the first Digital Computer.

9. ROM stores data or program permanently and RAM stores data or program temporarily.

10. A set of bits considered as a unit, normally consisting of 8 bits is known as Byte.

11. Abacus is an early Electro-Mechanical device for counting.

12. Software comprehends computers programming languages; translates application programs and operating systems programs.

13. Mark-I is the first digital computer.

14. First microprocessor chip INTEL 4004 was developed in 1990.

15. The heavy computers are called “Laptops’.

16. A digital computer can work at high speed.

17. Registers are the part of ROM.

18. RAM stands for Read Access Memory.

19. Convention memory and extended memory almost work at the same speed.

20. EPROM is a special type of RAM.

21. The main memory of CPU is the place where the computer programs and data is stored permanently.

22. RAM is a volatile memory for temporary storage of data or programs.

23. Data processing is the manipulation of data into more useful form.

24. EDP stands for Expanded Data Processing Cycle.

25. An input device receives data from computer.

26. Mouse is an input device.

27. It is possible to display several colors on a monochrome monitor.

28. A printer does not provide a soft copy of output.

29. Impact printers can produce carbon copies.

30. LASER does not stands for Low Amplification by Stimulated Emission of Rays.


31. Keyboard is a backing storage device.

32. Magnetic tape is the fastest media for data storage.

33. There are several tracks on a floppy disk, which are further divided into sectors.

34. 2KB = 2024 bytes.

35. Impact printer work by hitting an inked ribbon against the paper.

36. Backing storage devices are the permanent storage outside the main memory.

37. A mouse is called pointing device.

38. Micro floppy disks were developed before mini floppy disks.

39. 90 IF X$ = “DATA” THEN PRINT “SOFT” is a valid statement.

40. The FOR statement must not be used with NEXT.

41. There is no difference between A1 and A(1) as variable names.

42. 50 PRINT TAB (30); S$; TAB (10); Y$ prints S$ and Y$ on same line.

43. DATA statement is used with INPUT statement.

44. The purpose of GOTO statement is to transfer control.

45. 20 IF A$ = 1234 THEN 50 ELSE 80 is a valid line.

46. When the command AUTO1, 10 is given, then the first line number will be 10.

47. INPUT statement is often useful when no interaction between computer and user is required.

48. It makes a sense to use the condition A = “B” in a IF… Then statement.

49. Formula can be written as T = K/U*(P + A).

50. DATA statement is optional with READ statement.

51. BASIC is a difficult language.

52. User defined functions do not act like library function.

53. There is nothing wrong in NO ERROR GOTO 100 statement.

54. CLS statement can be used to clear half of the screen.

55. The ¸ symbol is used for division in BASIC programs.

56. A subroutine may also be called from with in another subroutine.

57. Software comprehends computer-programming languages, translates application program and operating system programs.

58. Application software is prepared by computer manufacture.

59. Low level language is nearest to machine language.

60. COBOL stands for Commercial Business Oriented language.

61. FORTRAN is an interpreter language.

62. Assembler translates the high level language into machine language.

63. The interpreter is a program that serves the same purpose as des the compiler.

64. Compiler translates the high level language into low level language.

65. RPG stands for Report Program Generator.

66. FORTRAN was basically developed for scientific and engineering data processing purpose.

67. Statement number are must in BASIC program. Since they are required to establish a sequence in which the instructions are to be executed.

68. BASIC uses statement number as address for the conditional and unconditional branching instruction.

69. REM statement cannot be accessed via branching instructions.

70. REM statement should be the first statement in a program.

71. CLS statement cleans the disk.

72. PRINT statement assigns value before printing.

73. PRINT statement prints only values of the variables.

74. LOAD command load a program from the disk.

75. DELETE command delete a line from the disk

76. SAVE command is used to store a program in a computer memory.

77. List command displays the contents of the disk on a screen.

78. GOTO statement unconditionally transfers the program control to the new location.

79. Branching if IF – THEN takes place only if the condition specified in IF is false.

80. In nested loops, the computer reaches the outer most loop before reaching the inner most loop. Therefore, the outer loop is executed completely before taking up the execution of the next inner loop.

81. Line number after ON-GOTO must only be in ascending order other wise error conditions result.

82. One can have more than one NEXT statement for every FOR. However at least one NEXT for every FOR is mandatory.

83. A subroutine contains repetitively used statements. It can be accessed via a GOTO or a GOSUB statement.

84. The computed GOSUB statement is similar to compute GOTO. However, it calls to four subroutine at the maximum.

85. There can be many RETURN statements in a subroutine and they can be placed anywhere, even at the first line of the subroutine.

86. A subroutine may contain any number of RETURN statements. However the last statement must be a RETURN statement.

87. The first statement of the subroutine must be a REM statement.

88. DIM statement can be used to reserve memory space even below 10 spaces reserved implicitly.

89. Array can store only numeric values.

90. DIM statement, like RAM, is a non-executable instruction.

91. DIM statement should be placed before the array is called in the program.

92. Negative sign is allowed in a subscript.

93. A file is a collection of record.

94. A random file record can be read sequentially.

95. CLOSE statement only close the sequential file.

96. FIELD is a key word of BASIC language.

97. READ statement is used to read the record from a file.

IX Computer Karachi Board of Secondary Education BASIC Removal of Errors

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”

IX Computer Karachi Board of Secondary Education Output of BASIC Programs

Write down the output of the following BASIC Programs:




1. 10 READ J, K, L

20 FOR I = J TO K STEP L

30 PRINT I

40 NEXT I

50 DATA 2, 10, 3

60 END




2. 10 CLS

20 FOR I = 1 TO 10

30 PRINT I, “MY NAME”

40 NEXT I

50 END




3. 10 READ A, B, C

20 FOR I = A TO B STEP C

30 PRINT I

40 NEXT I

50 DATA 2, 10, 2

60 END




4. 10 CLS

20 INPUT U, V

30 LET W = U + V

40 LET Y = W * V

50 LET Z = Y/U

60 PRINT U, V

70 PRINT W, Y, Z

80 END




5. 10 CLS

20 LET R = -2

30 FOR T = 2 TO 15

40 LET R = R + 1

50 PRINT R

60 NEXT T

70 END




6. 10 A = 5: B = 13: C = 931

20 C = 5 * A Ù B + B Ù 2/2

30 PRINT C

40 END




7. 10 FOR I = 1 TO 100 STEP 10

20 PRINT I

30 IF I = 10 THEN I = 100

40 NEXT I

50 END




8. 10 CLS

20 N$ = “ABDUS-SAMAD”

30 N1$ = LEFT$ (N$, 1)

40 N2$ = MID$ (N$, 5, 1)

50 N3$ = MID$ (N$, 8, 1)

60 N4$ = RIGHT$ (N$, 1)

70 NN$ = N1$ + N2$ + N3$ + N4$

80 PRINT NN$

90 END




9. 10 X$ = “DATA – SOFT”

20 FOR I = 1 TO 9

30 Y$ = LEFT$ (X$, I)

40 PRINT Y$

50 NEXT I

60 END




10. 10 LET A = 11

20 WHILE A < 99

30 LET A = A + 11

40 PRINT A

50 WEND

60 END


11. 10 LET A = 0

20 LET B = 1

30 LET C = A + B

40 PRINT C

50 LET A = B

60 LET B = C

70 IF C < 21 THEN GOTO 30

80 END




12. 10 CLS

20 FOR I = 1 TO 10

30 FOR J = 1 TO I

40 PRINT I;

50 NEXT J

60 PRINT

70 NEXT I

80 END




13. 10 FOR A = 10 TO 0 STEP –2.5

20 PRINT A

30 LET S = S + A

40 NEXT A

50 ? S

60 END




14. 10 CLS

20 LET K = -1

30 FOR L = 1 TO 20

40 LET K = K + 2

50 PRINT K;

60 NEXT L

70 END




15. 10 ? “This is first line”

20 ? “It is second row”

30 ? “What is it?”

40 ? “Remember where it should be!”




16. 10 CLS

20 FOR I = 1 TO 8

30 PRINT X

40 PRINT I

50 NEXT I

60 END




17. 10 CLS

20 A = A + 1

30 B = A Ù 2

40 C = A Ù 3

50 D = A Ù 4

60 PRINT A, B, C, D

70 IF A = 6 THEN END ELSE GOTO 20




18. 10 LET K = -1

20 FOR I = 1 TO 20

30 LET K = K + I

40 PRINT K

50 NEXT I




19. 10 FOR I = 1 TO 10

20 PRINT I, “PAKISTAN ZINDABAD”

30 NEXT I

40 END




20. 10 FOR X = 0 TO 20 STEP 2

20 SUM = SUM + X

30 PRINT X, SUM

40 NEXT X




21. 10 FOR X = 6 TO 18 STEP 2

20 LET A = X- 4

30 IF A = 10 THEN 60

40 PRINT A, X

50 GOTO 70

60 PRINT “X=”;X

70 NEXT X

80 END

IX Computer Karachi Board of Secondary Education Conversion Decimal to Binary

Convert the following decimal numbers into their binary equivalents:

1. 211

2. 222

3. 333

4. 444

5. 0014

6. 1024

7. 100

8. 786

9. 909

10. 898

11. 386

12. 221

13. 116

14. 8

15. 19


16. 0418

17. 29

18. 333

19. 936

20. 0410

21. 312

22. 217

23. 111

24. 826

25. 999

26. 995

27. 894

28. 402

29. 25

30. 408

31. 1024

32. 001122

33. 801

34. 312

35. 235

36. 211

37. 765

38. 111

39. 0100

40. 26

41. 0

42. 55555

43. 6666

44. 3368

45. 765

46. 1750

47. 826

48. 12

49. 100

50. 1023

51. 4587

52. 69523

53. 8776

54. 328

55. 496

56. 507

IX Computer Karachi Board of Secondary Education Conversion Binary to Decimal

Convert the following binary numbers into their decimal equivalents:

1. 10111

2. 111

3. 101001

4. 100101

5. 101011

6. 0011

7. 1100

8. 1001

9. 1111

10. 10101

11. 010101

12. 000011

13. 1111111

14. 100011

15. 100


16. 10

17. 11101011

18. 000001

19. 101110

20. 0001000

21. 111101

22. 0101011

23. 11111

24. 10101101

25. 1100110

26. 1010101

27. 101

28. 0011101

29. 1100001

30. 110011

31. 111111

32. 101100110

33. 1111010010

34. 1110001

35. 11011

36. 10011

37. 1100110

38. 111101

39. 00011

40. 010111

41. 1110011

42. 10001001

43. 0100111001

44. 0101011

45. 0000

46. 11100111

47. 100011

48. 1001110

49. 101101

50. 10000000000

51. 10100
 

© Copyright 2010-2015 Pk-Sites all rights reserved.

A category of .: SitesPk :.