Computer 9 Class th

advertisement
Computer 9th Class
FILL IN THE BLANKS
Complete the following blanks with suitable answers:
1.
The processing unit responsible for mathematical computation is called __________.
2.
A kilobyte is equal to __________ bytes.
3.
The electronic technology used in second generation computer system was __________.
4.
A __________ translates program language instructions one at a time.
5.
Output on the screen is called __________ whereas output by the printer on paper is called __________.
6.
IBM stands for __________.
7.
In BASIC, function key F4 is used for __________.
8.
Machine language is a __________ level language.
9.
GOTO statement is known as __________ statement.
10.
__________ is a set of well-defined instructions.
11.
The diagrammatic representation of logic is called __________.
12.
A computer output taken on paper is called the __________ copy.
13.
Monitors and printers are __________ devices.
14.
Mathematical calculation is carried out by __________ of C.P.U.
15.
The use of _________ was a marked feature of the generation of computers.
16.
__________ command branches unconditionally to a specified line number.
17.
Vacuum tubes were used in the __________ generation of computers.
18.
Charles Babbage invented __________.
19.
__________ statement in DOS is used to delete a file from the disk.
20.
The volatile part of internal memory is called __________.
21.
__________ is the set of instructions that tells the computers what to do.
22.
A kilobyte is equal to __________ bytes.
23.
Each statement or command is preceded by a line number in the __________ mode.
24.
The keyboard and the mouse are __________ devices.
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 1
25.
A diagram to plan a program is called __________.
26.
Data processing consists of three basic steps __________, __________ and __________.
27.
28.
29.
__________ memory is that type of memory which does not lose the information stored when the power is
turned off.
Every BASIC statement consists of a __________, keyword and the parameter.
__________ statement is used to transmit numeric or string output data from the computer and displays it
on the screen.
30.
We use __________ to convert the digital data into analog data.
31.
The introduction of __________ brought the computer age into the third generation.
32.
In computer terms 64k means __________ bytes or characters.
33.
A software developed for specific purpose is called an __________ software.
34.
Data processing devices are __________, __________, and __________.
35.
In first generation __________ symbolic languages were used.
36.
Disk oriented computers were introduced in __________ generation.
37.
A micro second is equivalent to 1/__________.
38.
PC stands for __________.
39.
The term VLSI is used for __________.
40.
Humanware is an alternative word for __________.
41.
A firmware is necessary to __________ the computer.
42.
__________ computers have both analog and digital methods of processing information.
43.
The introduction of __________ brought the computer age into fourth generation.
44.
The physical units making up a computer system are known as computer __________.
45.
Charless Babbage is called the father of __________.
46.
EDP stands for __________.
47.
48.
49.
A __________ data processing system consists of various input and output devices connected with an
electronic computer.
A microprocessor chip consists of three basic parts __________, __________ and __________.
A blinking point on the CRT, whose position can be controlled by the operator of the computer, is known as
__________.
50.
The very small bulbs on the keyboard or CPU are called __________.
51.
In BASIC function key F2 is used to __________.
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 2
52.
ASCII stands for __________.
53.
A __________ is used to play games.
54.
__________ and __________ are the latest input devices.
55.
CRT stands for __________.
56.
SVGA stands for __________.
57.
__________ and __________ are impact printers.
58.
__________ and __________ are non-impact printers.
59.
A small spot of light displayed on the screen is called __________.
60.
The devices through which we enter data into the computer are known as __________ devices.
61.
A blinking cell on the display screen is known as __________.
62.
__________ and __________ are the only figures used in binary number system.
63.
DOS is an acronym for __________.
64.
__________ data represents only numbers.
65.
There are three types of languages translators: __________, __________ and __________.
66.
A keyboard has a number of keys, but usually it has __________ keys.
67.
Types of data are __________, __________ and __________.
68.
Types of numeric data are __________ and __________.
69.
Types of numerical real data are __________ and __________.
70.
Machine language programs are usually written in __________ number system.
71.
A program translated by the compiler is called __________.
72.
Destructive programs are classified as __________, __________ and __________.
73.
BASIC is an acronym for __________.
74.
__________ is the lowest limit of line number allowed in BASIC program.
75.
In BASIC each statement must begin with a __________.
76.
__________ statement clears VDU.
77.
The __________ statement accepts data in execution mode.
78.
Before a value is assigned to a numeric variable, its value is assumed to be __________.
79.
__________ command produces the source statements of current program, available in memory, on CRT.
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 3
80.
__________ and __________ statements may be used to define the beginning and the end of a loop.
81.
__________ allows to write more than one statement on a line.
82.
BASIC was developed at __________ by __________ and __________.
83.
__________ command automatically generates line numbers.
84.
BASIC program is a collection of __________.
85.
The purpose of __________ command is to re-sequence the line numbers of the program.
86.
In the year __________ the __________ standardized an essential subset of BASIC, in order to promote
uniformity from one version to another.
87.
The maximum line number in BASIC is __________.
88.
The data can be distributed over __________ statements within a program.
89.
There can be up to __________ characters in a single program line.
90.
Numeric data can be expressed in two ways: __________ and __________.
91.
The use of __________ can alter the normal hierarchy of calculation operations.
92.
BASIC statements are __________ and __________.
93.
REM is used to __________.
94.
__________ is used to reuse the data given in __________ statement (s).
95.
Semicolon is used to suppress __________ in __________ statement.
96.
When a variable name appears in a __________ statement, the contents of location are displayed.
97.
__________ is used to access an individual element from an array.
98.
The __________ statement is used to assign a numerical or string value to a variable.
99.
__________ command prints the source statement of current program available in the memory, on the
printer.
100. A __________ is a quantity that may change during the execution of program.
101. __________ and __________ statements are used to execute a series of statements in a loop as long as
given condition is true.
102. __________ statement is required to create arrays.
103. The purpose of __________ is to part from usual execution in the order given by the line number.
104. __________ notation is used to represent very very small or very very large numbers.
105. Remarks statements are only shown up when you __________ a program.
106. RABs must be in ascending order in a __________ statement.
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 4
107. A set of values arranged in regular order is called __________.
108. The __________ statement in BASIC program has the highest statement number (logically).
109. The symbols <, > and = if used in a program are called __________ operators.
110. A pictorial representation of the sequence of steps of computation for solving a problem is called
__________.
111. __________ command returns control to operating system.
112. __________ statement is used to transmit numeric or string output data from the computer and display it on
the screen.
113. The LINE statement is used to draw a straight line in __________ screen mode.
114. __________ is simply paper work and documentation involved with the operation of computer.
115. __________ software is supplied by the computer manufacture.
116. __________ software is the set of instructions that are developed by the computer user.
117. A computer __________ is a set of instructions sequenced in a logical manner to achieve a definite task.
118. The set of information that are fed to the computer is called __________.
119. __________ is the person who designs and writes the computer program.
120. __________ level language is nearest to the human language.
121. Assembly language is __________ level language.
122. Two classes of High level language are__________ language and __________ language.
123. A __________ is a way of communicating with the computer.
124. Internal Command is a part of __________.
125. CLS is an __________ command.
126. FORMAT is an __________ command.
127. The information stored in computer is in __________ state.
128. The bi-stable state ON is known as the state of __________.
129. The bi-stable state OFF is known as the state of __________.
130. A __________ represent a meaningful information like a number, an alphabet or any special character.
131. The computer stores an extra bit, called __________ bit.
132. The traditional five stages in development of source program are __________, __________, __________,
__________ and __________.
133. An algorithm gives the __________ of solution of a problem.
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 5
134. A flow chart depicts the __________ of solution of a given program.
135. Types of flowchart are __________ and __________.
136. The __________ statement is used to reserve storage for an array.
137. DIM is usually placed at the __________ of the program.
138. A$(5) will reserve __________ spaces in memory.
139. Table is a __________ array.
MATCHING OF COLUMNS
Match the correct answer from Column A to Column B:
Exercise 1
Column A
A set of instruction for
computer
Volatile Memory
Grouping of Bits
Charles Babbage
The
language
that
computer can understand
Exercise 2
Column A
Parallelogram
Diamond
Connector
Rectangle
Flow Lines
Exercise 4
Column A
Vacuum Tube
Integrated Circuit
Artificial Intelligence
Transistors
Physical parts of computer
Large Scale Integrated
Circuit
Url: http://www.pakchoicez.com
Program
RAM
Machine Language
Analytical Engine
Column B
Used to connect page
Process Box
Used to connect symbols
Used for decision
I/O Box
Exercise 3
Column A
Converts
high
level
language
into
machine
language
The manipulation of data
into a more useful form
Permanent storage outside
the computer
An electrical component
which was used in the first
generation of computers.
An internal DOS command
Exercise 5
Column A
Column B
Byte
Column B
Backing Storage
Vacuum Tube
DIR
Data Processing
Compiler
Column B
First Generation
Second Generation
Third Generation
Fourth Generation
Fifth Generation
Hardware
Column B
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 6
Result
Set of instructions
The
process
of
understanding the problem
Algorithm
Manual
Condition box
Block diagram
Exercise 6
Column A
High level language
222
Arithmetic expression
BASIC prompt
Flowchart
Final output
Diamond shape
Program
Documentation of program
Step wise solution
Problem analysis
Column B
BASIC
Ok
Integer value
A = 111 + 111
MULTIPLE CHOICE QUESTIONS
Choose any one of the following correct answers:
1.
__________ is a category of computer hardware.
(Input, Output, Storage, Processing, all of the above)
2.
__________ is an important component of microcomputer system.
(Kilobyte, Microprocessor, Megabyte, Byte, None of the above)
3.
__________ is not found in C.P.U.
(ALU, Control Unit, RAM, Processing Register)
4.
__________ is a type of impact printers.
(Laser, Thermal, Dot-Matrix, Inkjet)
5.
__________ program design technique shows program logic.
(Flow chart, Logical Operation, Computer, None of the above)
6.
__________ is used as counter in BASIC programs.
(A = A+1, A<1, A or 1, None of the above)
7.
__________ characteristic is applied to the third generation of computers.
(Integrated Circuit, Transistor, Vacuum Tubes, All of the above)
8.
The most important characteristic of ROM is __________.
(It performs mathematical calculation, it is volatile, it is non – volatile, None of the above)
9.
__________ statement is used to transfer the control of program conditionally.
(GOTO, ON GOTO, END, All of the above)
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 7
10.
Disk operating system is abbreviated as __________.
(DOS, DS, OS, None of above)
11.
__________ is an example of integer data.
(HASAN, D-143, 143, all of the above)
12.
High level languages were designed in __________.
(Laboratory, Third generation, Computers, New York)
13.
__________ is a high level language.
(BASIC, BESIK, BACIK, BESIC)
14.
Binary number system has __________.
(Ten digits (0,9), Three digits (-1,0,1), One digit (1), Two digits (0,1))
15.
LET statement is __________.
(Optional statement, Assigning statement, Used for expression assignment, all of the above)
16.
DATA statement is __________.
(Executable statement, Non-executable statement, Optional statement, None of the above)
17.
BASIC stands for __________.
(Basic All-purpose Symbolic Instructon Code, Beginners Assembly Symbols Instruction Code, Basic All Standards
In COBOL, Beginners All-purpose Symbolic Instruction Code)
18.
When using READ statement, it must to provide __________.
(PRINT statement, RESTORE statement, INPUT statement, None of above)
19.
ANSI stands for __________.
(All New Small Integration, A National Small Institute, American National Standard Institute, None of the above)
20.
Sign of exclamation is __________.
(!, :, I, %)
21.
The example of random access storage media is __________.
(Floppy disk drive, Hard disk drive, Tape unit, 51/4’’ floppy disk)
22.
The type of memory whose contents can not be changed is __________.
(ROM, RAM, Cache, EAPROM)
23.
The command to see the contents of a disk is __________.
(DIR, CD, MD, TYPE)
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 8
24.
DISKCOPY command can format the destination disk __________.
(Before copying, after copying, can not format, format while copying)
25.
TYPE command is used to __________.
(To see the contents of a file, Chage the type of a file, make a sub directory, Type a file in the computer)
26.
Each statement of BASIC must have a __________.
(Function, Statement number, Program name, File name)
27.
The command to create a sub-directory is __________.
(DIR, CD, MD, APPEND)
28.
TAB () function is used to __________.
(Print, Display, Print and Display, None of the above)
CONVERSION OF ALGEBRAIC EXPRESSIONS TO BASIC EXPRESSIONS
Convert the following algebraic expressions into BASIC Expressions:
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 9
1.
2.
3.
a2 + 2ab + b2
x y
a-b
ab
4.
(a – b)1/2
5.
[2x2 – 4y2]2
6.
x -b
7.
Y = a2 + 2ab + b2
8.
A = a3 – 3a2b + 3ab2 – b3
9.
(a + b) (a – b)
10.
11.
b 2  4ac
2a / 4a
xy
ab
12. 4x2 – y3
13. 4a – 3b
14. a4b2 – 40a2  3ab2
15.
(x - y) - (2x 2 - 3xy)
2
16.
K 2 lm 3  2l m
17.
s
(R  )
t
18.
19.
20.
J(L 
b2 
L
u -5
R
)
150
n -1
2a 2 b - 4ac
2a
1
mn 5
4
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 10
21.
T  40 W 
22.
5x 3 y 2xy 3

xy
6y 2
23.
a c

b d
6u 3 - v 2
u4
24.
x
(2x  ) n 1
y
25.
(a + b)(a3 + b3)  (a2 + b2)
26.
K  L2 (M) k  L

100
N2
27.
(a1 + a2 + a3 + a4 + a5)12
28.
T + T –3T + T
29.
13C + 12C + 11C + 10C + 9C
30.
L
1
mn
4
31.
6ab
7cd

19ab 5d 2
32.
a2b
33.
a
(a 2  )
b
34.
2a3b + 3b3c2 – 4a2b2
35.
(a – b)(a2 – b2)  (a3 + b3)
36.
(2x + y)(3z – 4w)
37.
a
(3  )
b
38.
a -5
m -1
x5
5
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 11
39.
40.
41.
42.
43.
4x2y – 3xy + 7yz3
a
x
b
(2x2 + 4y3 + 2z3)
x2  y2
(x - y 5 )
5
(3 
44.
x
)
y
a-b
CONVERSION OF BINARY NUMBERS INTO THEIR DECIMAL EQUIVALENTS
Convert the following binary numbers into their decimal equivalents:
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 12
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
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 13
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
CONVERSION OF DECIMAL NUMBERS INTO THEIR BINARY EQUIVALENTS
Convert the following decimal numbers into their binary equivalents:
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 14
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
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 15
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
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 16
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
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 17
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)
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 18
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
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 19
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!”
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 20
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
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 21
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
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
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 22
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
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 23
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
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 24
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
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 25
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”
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.
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 26
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.
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 27
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.
T
K
U(P  A) can be written as T = K/U*(P + A).
49.
Formula
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.
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 28
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.
81.
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.
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.
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 29
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.
READ statement is used to read the record from a file.
Url: http://www.pakchoicez.com
| http://www.smsbundle.com | http://www.jazzbudget.com
Page - 30
Download