Upload
clarissa-verne
View
68
Download
8
Embed Size (px)
DESCRIPTION
第 2 章 : 數據的基本概念 Basic Concepts on Data. S.4-5 CS&IT CE Course 中四及中五電腦與資訊科技會考課程. 數據和信息 Data and Information. 數據 Data :. 是各式各樣 未經組織 及 沒有意義 的事實 Consists of all sorts of unorganised and meaningless facts 可以是 數字 、 字符 或 圖形 numbers , characters or graphics. - PowerPoint PPT Presentation
Citation preview
CUHK FAA Thomas Cheung Sec Sch
1
第 2 章 : 數據的基本概念 Basic Concepts on Data
S.4-5 CS&IT CE CourseS.4-5 CS&IT CE Course
中四及中五電腦與資訊科技會考課程中四及中五電腦與資訊科技會考課程
CUHK FAA Thomas Cheung Sec Sch 2
數據 Data :
數據和信息 Data and Information
是各式各樣未經組織及沒有意義的事實 Consists of all sorts of unorganised and meaningless facts
可以是數字、字符或圖形 numbers, characters or graphics
CUHK FAA Thomas Cheung Sec Sch 3
信息 Information
則是一些經過處理、有用及有意義的數據 Is processed data which is meaningful and useful
數據和信息 Data and Information
CUHK FAA Thomas Cheung Sec Sch 4
把原始數據轉化成有用信息的過程,稱為數據處理The process of converting raw data into meaningful information is known as data processing
數據和信息 Data and Information
數據Data
處理 Processing
信息 Information
CUHK FAA Thomas Cheung Sec Sch 5
1. By interviews, questionnaires and forms訪問、問卷和表格
數據可以透過不同的方式取得Data can be obtained in different ways :
數據收集和準備Data Collection and Data
CUHK FAA Thomas Cheung Sec Sch 6
2. 觀察和測量 By Observations and Measurements
CUHK FAA Thomas Cheung Sec Sch 7
3. 實驗 By Experiments
CUHK FAA Thomas Cheung Sec Sch 8
檢查數據的準確性 Checking data for accuracy
重組數據 Structuring data
數據的收集和準備Data Collection and Data
CUHK FAA Thomas Cheung Sec Sch 9
例如:需要檢查填妥的問卷內的資料,看看是否有遺漏、文化上的錯誤eg. a filled-out questionnaire needs to be edited for missed-out data, spelling or grammatical mistakes
檢查數據的準確性 Checking data for accuracy
CUHK FAA Thomas Cheung Sec Sch 10
把數據重組為方便輸入至電腦的形式 Rearranging data in a form that facilitates data input
重組數據 Structuring data
CUHK FAA Thomas Cheung Sec Sch 11
錯誤的來源 Sources of Errors1. 收集數據階段 During data collection2. 準備數據階段 During data preparation3. 輸入數據階段 During data input4. 處理數據階段 During data processing5. 輸出信息階段 During information output
數據管理 Data Management
CUHK FAA Thomas Cheung Sec Sch 12
1. 收集數據階段 During data collection
錯誤的來源 Sources of Errors
CUHK FAA Thomas Cheung Sec Sch 13
2. 準備數據階段 During data preparation
錯誤的來源 Sources of Errors
舉例:為源文件進行編輯時,有可能誤將「 8 」字誤寫為「 3 」
Eg. writing a “3” for an “8”when preparing an edited version of the source document
CUHK FAA Thomas Cheung Sec Sch 14
3. 輸入數據階段 During data input
錯誤的來源 Sources of Errors
輸入數據時,操作員可能會錯誤鍵入、誤讀或遺漏數據,因而做成錯誤When data are inputted into a computer, errors may occur if the operator makes typing mistakes, misread or even leaves out the data
CUHK FAA Thomas Cheung Sec Sch 15
4. 處理數據階段 During data processing
錯誤的來源 Sources of Errors
不正確的電腦程序或處理步驟May come from incorrect programs or procedures
CUHK FAA Thomas Cheung Sec Sch 16
5. 輸出信息階段 During information output
錯誤的來源 Sources of Errors
使用了有問題的輸出設備May be produced by a defective output device
CUHK FAA Thomas Cheung Sec Sch 17
數據控制是為確保輸入數據的準確性和完整性的措施Data control refers to the measures to ensure that the data inputted is accurate and complete
數據控制 Data Control
CUHK FAA Thomas Cheung Sec Sch 18
數據控制 Data Control
數據校驗 Data verification數據有效性檢驗 Data validation
CUHK FAA Thomas Cheung Sec Sch 19
數據校驗 Data Verification
檢查輸入的數據與源文件的數據是否一致Checking of the truth or accuracy of data
CUHK FAA Thomas Cheung Sec Sch 20
輸入的數據會即時輸出,並跟源文件比較以作檢查 Data items entered are outputted immediately for checking
數據校驗 Data Verification
CUHK FAA Thomas Cheung Sec Sch 21
相同的數據會由兩名操作員獨立地輸入Data items are typed into a computer by two different operators independently
數據校驗 Data Verification
CUHK FAA Thomas Cheung Sec Sch 22
數據有效性指輸入的數據是合理和可接受的Refers to the data inputted being acceptable and reasonable
數據有效性檢驗 Data Validation
CUHK FAA Thomas Cheung Sec Sch 23
1. 類型檢查 Type check
2. 範圍檢查 Range check
3. 長度檢查 Length check
4. 合理性檢查 Reasonableness check
5. 數位檢查 Check Digit
數據有效性檢驗的種類Type of Data validation
CUHK FAA Thomas Cheung Sec Sch 24
例如考試分數應該是數字而不會是文字e.g. examination marks should be numbers but not alphabets
類型檢查 Type Check
CUHK FAA Thomas Cheung Sec Sch 25
例如一月的日數應在 1 至 31 之內e.g. the number of days in January should be within 1 – 31
範圍檢查 Range Check
CUHK FAA Thomas Cheung Sec Sch 26
長度檢查 Length Check
例如香港的電話號碼通常是由 8 個數位所組成的A telephone number in Hong Kong has 8 digits
CUHK FAA Thomas Cheung Sec Sch 27
例如一個 200 公斤的 5 歲孩子是很不合理的e.g. a 5-year-old child having a weight of 200 kg is incredible
合理性檢 Reasonableness Check
CUHK FAA Thomas Cheung Sec Sch 28
檢查數位 Check Digit
是附加在某個代碼末尾處的一個數位,在身分證號碼或國際標準書號中都可以找到
An extra digit at the end of a code, e.g. Identity Card Number, International Standard Book Number (ISBN)
CUHK FAA Thomas Cheung Sec Sch 29
十進制數系 Denary number system• 以 0 、 1 、 2 、 3 、 4 、 5 、 6 、 7 、 8 、 9• 十進制數 419210 的展開式為:
十進制數字 Denary Digit
4 1 9 2
位值 Place Value 103 102 101 100 數字值 Digit Value 4×103 1×102 9×101 2×100
即 419210 = 4×103 + 1×102 + 9×101 + 2×100
數據在電腦內的表示方式Representation of Data inside a Computer
十進制、二進制及十六進制數系Denary, Binary and Hexadecimal Number Systems
CUHK FAA Thomas Cheung Sec Sch 30
十進制數系 Denary Number System
十進制數字 Denary Digit 2 1 3 位值 Place Value 10-1 10-2 10-3 數字值 Digit Value 2×10-1 1×10-2 3×10-3
即 0.21310 = 2×10-1 + 1×10-2 + 3×10-3
十進制小數 0.21310 的展開式為:
CUHK FAA Thomas Cheung Sec Sch 31
二進制數系 Binary Number System
即 11112 = 1×23 + 1×22 + 1×21 + 1×20
只以 0 和 1 兩個數字來表示數 only digits 0 and 1 are used數系的底數是 2 a base-2 number system
二進制數 11112 的展開式為 a binary number 11112 in expanded form is:
二進制數字 Binary Digit 1 1 1 1 位值 Place Value 23 22 21 20 數字值 Digit Value 1×23 1×22 1×21 1×20
CUHK FAA Thomas Cheung Sec Sch 32
即 0.10112 = 1×2-1 + 0×2-2 + 1×2-3 + 1×2-4
二進制數字 Binary Digit 1 0 1 1 位值 Place Value 2-1 2-2 2-3 2-4 數字值 Digit Value 1×2-1 0×2-2 1×2-3 1×2-4
二進制小數 0.10112 的展開式為: a binary fraction 0.10112 in expanded form is:
二進制小數系 Binary Fraction Number System
CUHK FAA Thomas Cheung Sec Sch 33
十六進制數系 Hexadecimal Number System
0 、 1 、 2 、 3 、 4 、 5 、 6 、 7 、 8 、 9 、 A 、 B 、 C 、D 、 E 、 F
A = 10B = 11C = 12D = 13E = 14F = 15
CUHK FAA Thomas Cheung Sec Sch 34
即 2C3D16 = 2×163 + C×162 + 3×161 + D×160
十六進制數 2C3D16 的展開式為:Hex. number 2C3D16 in expanded form is:
十六進制數字 Hexadecimal Digit
2 C 3 D
位值 Place Digit 163 162 161 160 數字值 Value Digit 2×163 12×162 3×161 13×160
十六進制數系 Hexadecimal Number System
CUHK FAA Thomas Cheung Sec Sch 35
在電腦內,數據會以二進制數「 0 」和「 1 」表示In a computer, data are represented by binary digits 0 and 1
美國信息交換標準碼 American Standard Code for
Information Interchange (ASCII) 目前最普及的字符編碼系統 the most popular coding
system for characters
使用一個字節作為編碼來表示每個字符 uses a byte as a code to represent each character
使用二進制數字表示數據Using Binary Digits to Represent Data
CUHK FAA Thomas Cheung Sec Sch 36
要表示中文字符,每個中文字編配一個 16 位的「內碼」To represent Chinese characters, each Chinese character is assigned a 16 bits “internal code”
使用二進制數字表示數據Using Binary Digits to Represent Data
中文字 二進制內碼 十六進制內碼一 1010010001000000 A440
乙 1010010001000001 A441
丁 1010010001000010 A442
九 1010010001000101 A445
CUHK FAA Thomas Cheung Sec Sch 37
堂課 Classwork
P.29 MC Q.1-7 P.31 Q.5, 6
CUHK FAA Thomas Cheung Sec Sch 38
功課 Homework
P.30 Q.1-4, 7