( 25 )育教日八初月二年未辛臂夏
報日僑.
六期星 日三廿月三 (一九九一 } 年十八國民華中
Computer (25)
If you attempt question 1, fill in the details in the first three boxes above and tie this sheet into your answer book.
CO$1
5 (00000101)
1
Dry run the program using the following, sequence of numbers as input: 7,4,5,0.
0100
1
置
1991 中學會考預習專欄
0101
2
1
明德出版社
MILL & DALE PRESS
Exercise on Computer Operation
Questions on Computer operation is an easy question in paper · 1
if the machine codes are section 8. You can obtain the answer followed (Dry Run) carefully. The whole question 1 looks like those to be examinated in the HKCEE. The answer has to be written on the spaces provided Dry run table is highly recomended even though it iot.required by the question. But you will get the answer and the Pogic of the question easily through the dry run. At last. but not the least, do not forget to tear it off and tie this sheet into the answer book.
1. Here is a program written in assembly language with the operands
represented in binary codes,
2nd pass
K. CHOY
(a) Complete the following table to show the contents of the accumulator and the memory address 1011 immediately after the execution of the instruction at address 0110 for each pass.
0110
2
2
Solution
0111
2
2
accumulator
address 1011
0001
0
2
1st pass
0010
2
1000
1000
2
2
(4 marks)
1001
Display 12:
2.
(b) what is the maximum number of the operation codes that the
computer has?
1010
2
Stop
{2-marks)
(a)
1st pass
accumulator
1
2nd.pass
Address- Op-Code Operand
Assembly Instruction
Meaning
(c) What is the purpose of the program?
address 1011
1
2
0000
1000
1011
CLM:1011
Clear the contents of the memory location.
(2 marks)
(d) What will be the terminal condition for the program?
(1 mark for each correct answer)
(b).The maximum rumber of the operation. codes
0000
0000
INP
Input data Fron
24
16
{2 marks)
(2 marks)
0010
0110
1000
JEQ 1000
(e) What will be the output on the output device If the memory
content of address 0010 is typed as 01101001?.
(c) The program is used to count the negative integers among the
inputting numbers.
(2 marks)
0011
0101
0001
JBN 0001
(2 marks)
(d) If the inputting number is zero, the program will terminate.
(e) The output will be the last number inputted. (i.e. "0")
(2 marks)
(2 marks)
the input device. to accumulator.
Branch to the address 1000, if contents of the accumulator are.
zero.
Branch to the address. 00011F
the rightmost bit
of the accumulator is zero.
0100
0011
1011
LDA 1011
Load the contents of memory address 1011 into the accumulator.
Solution:
(The following dry run table is not required in the question. But 2. (a).Give an example.af high level computer Tanguage. Name the you are advised to use it.)
Dry Run.
Address.
accumulator
'address 1011
jump to.
0000
7
0
0101
0001
0000
INC
Increase the
contents of
·0001
7
0
accumulator by
onė.
0010
7
0
0110
0100
·1011
STA-1011
Store the contents
of the accumulator
0014
7. (00000113
0
in memory address: 1011.
010
0
101
0
319
·0010
0001
JMP 0001
Branch
(unconditénneŤ
0110
address 000-
1000
0011
1011
LDA 1011
Load the contents
01.11.
1.
0001
of memory address 1811 to the
0001
4
0010.
4
1001
0000
DSP
Dipadata from
the accumulator to
0011
4 (00000100)
0001
output device.
·0001
5
1010
1010
0000
STP
Stop the program "execution:
·0010:
„RINTUV50,
80386SX - 20MHZ Turbo $6,990
80386-25/33MHZ DX. $9,990
Auto Office Systems Co.
TEL
New Life Computer Supplys
Macrosoft (HK) Co.
TEL:352-7206109
60286 中央微處理器 1MHZ -
1 MB 高速暫存記憶察置。
·40 MB 硬盤(取存速度 28-MS)
1.2 MB 5.25 吋磁碟機。
1串聯/1並聯大.
101 鍵盤
14 吋黑白雙色顯示器
特價 HK$4,990.00
免費送貨服務
歡迎使用信用咭付款
Giant Win Industrial Co.
FLAT 7, H/P., KINGSFORD INDUSTRIAL CENTRE,
13 HANG HOI FLEM, KCALOON BAY, KEN., HK
TEL: 852-759911L
先進電腦中、
招 生 特價電腦套餐
DBASE PROGRAMMING
ADVANCE LOTUS
電腦入門
DOS
LOTUS 123
DBASE-
WORDSTAR
中文(國喬/倚天
兒童電腦興趣班
會考電腦補習班
BASIC / COBOL
80286-16MHZ Turbo
00286SX - 20MHZ Turbo
80386 25/33MM
(本中心學生另有折扣>
$250
$395
$495
$495
$485
$495
$595
$595
每月$165
每月$195 毎月 $195
$56.00
$7950
$10,500
Aa
dvance
Computer
九龍旺角彌敦道691 號永如大厦 3/F
Tel:3961970
translator that can translate the language into machine code.
(2 marks)
(b) State two advantages of using high level languages in.
developing the computer system?
{4 marks)
(c) Give two functions of the operating system.. Give
operating system used in microcomputer.
(d) What kind of modes of operation for computer system would you suggest for the airline reservation system? What kind of backing storage medium would be appropriate for the system?
(3 marks)
ส
common
(3 marks)
Solution:
(a) BASIC is a high level language. The interpreter translate the
language into machine code.
) (1) It can be easily understand by human beings.
{2} It is portable.
ick Two functions of operating system:
(2 marks)
(2 marks)
(2 marks)
the
ROCKordinate the activities. between the CPU and
peripherals....
mage the memory allocation for program and data.
The common operating system is the MS-DOS.
(2 marks)
(1 mark):
(d) Airline reservation system requires immediate response. Thus
online:system is required.
(2 marks)
The backing storage medium should be magnetic disk. (1 mark)
SPECIAL OFF-SALES FOR EDUCATIONAL
Freecom 286/12 Computer
Basic Unit
80286 CPU 12MHz Û wait state
(16 MM2)
IM Ram en board
-1 2M Floppy Disk Driver
1 Serial 1. Parallel and 1 Gine
Oart
-101-Keys enhanced keyboard
LEO Display
One year full warranty
Freecom 256/12-400
-Dasic Unit +14" Dual Monitor
→ Dual Card
+40MM 2BITS AT Bus Harddisk Wadacint
freecom 286/12-40V
-Basic Unit 14" VGA Monitor
+ VGA Card
+40M 28m3 AT Bus Harddisk
władaptor
Standard Special
4.500.00
3.872.00
8.500,00 7.227.00
12.112.00 18.296 00
留英藏
入中年,
如假包換的丐幫翾。 有一百八十九人參加。他們先
邊靠乞,一邊暢遊山水名勝, 利文姬一聲號令下,居然
公亦有對頭人」。.. 我相信一不招人妒是庸才.」 - 也推估一個
飛過出去
亞洲也沒
努力在本地行乞,儲夠了第一
的人,總比做個庸庸碌碌的多爲好人有意思。 人生在世,就要面對許多仇仇怨怨。 管他拆膈不折祀,做個黑白分明有變有时
拍合影,至少扣了兩卷菲林 行之紀念 - 而且請朋友幫我们
·香港文化中心拍照,作爲她此
- 我勸她:「沒有阻 ,非常擔心 保,明天我反正送你,我們把 行李微去過磅,不會不行
什麽角度的照片都拍了,珍
的 ](七)
徐行
政
Marksdata Computer Limited Unit 10, S/F Kingsford ind. Cu,
13, Wong Hold, Kowloon Bay,
Tal: 751-7863 Fax: 751-7769
HK $700
"SUPREME SHIELD" HX-088
"The State-of-the Art", Break-through Technology and New Concept of microcomputer virus protection card.
電腦證書課程
全港最大電腦訓練中心,面積廣闊,設備完善
保證每人一機,免費講義,全部電腦枱
笹類課程笹星期皆有數班
急聘輔考
班、公司 見。
特
宿
學員可獲10小時免費錄習
阰劃管理程式應用
DOS
$250/$380
領先電腦系統
Dos
File Programming
80286系統
Lotus
Macro Programming AutoCAD 電腦繪圖設計
dBase
dBase Programming
$3900
年21日以 值,有 寄香港 中心及!
Symphony
Framework
$750/$1200
Wordstar
WordPertect
AutoCAD
Basic/Advanced Basic 國中文就全科
兒童興趣班
$200
80386系統
$8400
以上系统包全年上門保變
領先電腦中心
HKD. 6,770.00
Room 1404-5
VS POWER
VS-POWER_80286 12版社
-IM RAM ON BOARD
-AY I/O Card
-1.2M Floppy Disk Drive
-1.44м Floppy Disk Drive -40M Hard Disk (28ms)
-HDD/FDD Controller Card
-Mini Tower or RT Case
with Power Supply
-101-Keys Keyboard
-14" Paper White Monitori
-Dual Display Card
* One Year Warranty
m
萬寶電腦公司
MacroPro Computer Company
Dac Easy
̇儲罐子有網公館:
香港九驢旮復
廠大廈五层
Tel: (852) 389 8262 Telex: 56322 KANH HX
COMPUCON
馬來西亞、印度
286/386
Hong Kong Plaza 186-191
Connaught Rd W Mong kong
樓2/F,全釐(山林備入口)
Tel: 7231834-Fax-1281711
泰國、印尼
菲律賓、馬星泰
中國
省內短綫
澳門旅遊及其他服務
馬來西亞、沙巴
布吉、PP島
五、七天豪華團$4,990起 五天豪華團
沙朥越、古晉、達邁
五天豪華團 $4,790 浮羅交怡、檳城
五天豪華團 $4,390 沙腰越、沙巴
六天豪華團 $6,500 印度八天豪華團 $7,980
$4,000 曼谷、芭堤雅(臘機) 五、七天豪華團 $3,800起 布吉島、曼谷、芭堤雅 七天豪華團 $4,700 七岩、臘榕、曼谷、芭堤雅 七、八天豪華團 $4,290 「印尼峇里島、日惹、槨加達
七天華
$6,490
馬尼拉、碧桃源(蘇碧灣) 五、六天豪華團 $3,250€ 馬尼拉、宿霧(碧桃灣) 五、七天豪華團 $3,700起 菲泰七天豪華團 $4,300 馬星七天超級
炸酱
|北京六天豪塗
磝航團
$3,800起
中山、珠海 二、三天團
$350起
澳門酒店士船巢
海南島五天鐵筆 廐航團
華東七天蔌華 嘸艙豳
54-090
$5,500
昆明四、五天坛 藍航斷
馬星瘲九天 團
$2,400&
西安、郴州、浴八天 豪業直航團
$3,890
印尼爪哇島九天 環遊
$7,290
Canadison
翻雞、武辉山五天 豪磋航蟹
|深圳、小人國
二天圍
「清遠、小三峡、
錦繡中華三天團 $498 鹽慶、腰浴、
凌霖岩三天團、$58 潮州、汕頭、武山 惠州五天團 $1048 南昆山、從化溫泉、 廣州三
$338起
代訂澳門凱悅、東方、粉 齡、高糖、襄地牙哥酒店 請查詢:736 9111
代訂世界各地檢察及酒店, 訓查詢:735 0333
WIOW·ha§: 735 4846
凡有志 並附履 長沙灣 音樂專
锦州編號 350018
星晨旅遊
MorningStar
736 0368 (9) "
日本卡冷€1701~30
$21 8181 (920)
∗凣ő歟邙號銀行中 130-5歲(旺州船賙站)
132 0958 (848) '
新賺中心2107-
9) 7233(542)
8852491 (6)
A BEGIN BEHANG MTFTUR-343 2001 (480)
73-75%2681¢ £82201203 339122
*me fakta 15 ja sam da (1 735 0333 (664) ► 529 Sóng (488)
公
本報
度,有
。
鏈畬先
Page 25Page 26
日八初月二年未辛唇夏
中