ICT Notes (Comp)
ICT Notes (Comp)
Xtra ............................................................................................................................................................................................................................. 23
Page
Dot pitch vs. dpi Determine the quality................................................................................................................................................ 27
Secondary Storage Device .................................................................................................................................... 27
I. Magnetic Storage Device ........................................................................................................................................................................ 27
II. Optical Storage Device............................................................................................................................................................................. 27
III. Other Forms/ Mixture ......................................................................................................................................................................... 28
IV. Network Storage ................................................................................................................................................................................... 28
應對辦法 .................................................................................................................................................................................................................. 28
Transmission Medium – Cables (EM waves interference ↓ vs. Tel. phone line) .............................. 35
Lv.x 廣告- Basic Operation of Adobe Dreamweaver CS3 in Web Site Development ........................ 47
7
Page
Introduction of Information Processing
Input (e.g. Data of attendance) Process (e.g. Search for absence list) Output (e.g. Attendance report)
Program: A sequence of instructions Instruct the computer Complete 1 specific task per time
Stored program: Inside ROM (Read Only Memory)
Data (Collection of raw fact + Not organised) Processed Information (For Decisions making)
Check Examples
1. Field Presence … Must-fill fields
2. Field Length … 10 digits for address
3. Range … Height of adults
4. Type … Numeric data for age
5. Fixed Value … T/F, M/F
6. Format … Email with ‘… @ …’
7. Check digit Self-checking: Parity Check ISBN, HKID Card
Issue Studies
Applications Rationale Examples
ISBN [𝑆𝑢𝑚 (𝑁 𝑡ℎ 𝑛𝑜. × 𝑁)] 𝑚𝑜𝑑 11, where 1 is the rightmost no. 962-943-717-1
If = 0 , it’s valid 308mod11 = 0 Valid
HKID card [𝑆𝑢𝑚 (𝑁 𝑡ℎ 𝑛𝑜. × 𝑁)] 𝑚𝑜𝑑 11, where 1 is the rightmost no., D288754(2)
no. including character in bracket, A=1, B=2, … 187 mod 11 = 0 Valid
[For check digit in (…), A = 10, B = 11, …] If = 0, it’s valid
Parity check Even parity bit 10110000 1 Make it be
even number of ‘1’
Odd parity bit 10110000 0 Make it be
odd number of ‘1’
10
Page
Number& Character Coding Systems
Just as normal, but for Hex number, 1 digit (Hex. no.) = 4 bit (binary no.). (e.g.) F16 = 11112
8 Bit (Basic unit of binary digit) = 1 Byte (Smallest addressable unit in microprocessor) < 1KB (= 1024B)
Word: Natural unit of data used by computer
Word length: (e.g.) 16 bits, 32 bits, 64 bits
Overflow error (Occur when the number cannot be represented by fixed no. of digits)
Addition of 2 numbers of the same sign (±) + Opposite sign of the result (∓)
Colour depth (bit): No. of bits to represent the colour of a pixel (e.g.) 24 bit true-colour
Resolution: No. of pixels in 2 dimensions
Printing resolution: Measured in ppi (pixel in inch), dpi (Scanned image), dot pitch (Monitor)
(e.g.) bmp (Bit Map), jpeg (Joint Photographer Expert Group), png (Portable Network Graphics)
Bit resolution (bit): No. of bits Represent the amplitude of an audio signal
Sampling rate (Hz): No. of samples taken/s [During conversion]
Determinants: Installation + Maintenance Cost, Compatibility with existing system, Implementation time,
Levels of technical equipment (Should be tailor-made), Physical arrangement of equipment
Template > Theme (Text colour, margins, page borders) > Style (Predefined characters, paragraph format)
Page
Elements Description
Constant Raw Data
Operator Arithmetic operator: + - * / ^ %
Comparison operator: = <> > >= < <=
Text concatenation operator: &
Cell reference Relative Reference Column + Row Interceps ( .g.) A2
Absolute Reference Absolute column + Absolute row (e.g.) $A$2
Mixed Reference Mix with the above (e.g.) $A2, A$2
Function Predefined formula
Sorting (Filter function): Simple sort list/ Sorting with criteria Reorder the records
Filtering (Filter function): Filter out those don’t meet the specified criteria
Reference to other worksheet
o =File + ≠Sheet: ‘<sheet name>’!<cell reference>
o ≠File + ≠Sheet: ‘[<file name>]<sheet name>’!<cell reference>
2 1: Sunday ~ 7: Saturday
Scenario Manager Goal Seek
71 +
51-60
18-20
21-30
31-40
41-50
61-70
GREEN
Report Filter, Row field, Column field, Value Field
17
Page
Database
Creation Methods: Query Wizard, Design View (GUI tool), SQL View (Text-input interface + SQL statement)
19
Page
Methods Explanation
Data Import Import compatible obj. to the destination document
OLE Object Linking Create linked obj. that links to an actual obj.
and Embedding Copy an obj. to destination document
f(Word processor) Integrate structured data source (e.g. Database file) into a doc. template
Produce multiple documents (e.g. letters, email) (merge field)
Presentation of Information
Slide show, Web-based presentation (e.g. Remote slide show), Multimedia document (e.g. Flash video)
Page
The system unit of a Computer System
System unit: A case that contains Circuit boards + Power supply + Storage device
Types of peripherals: Input … + Output … + Storage … + Communication …
4 Evaluated Result
Word width: No. of bits of Data + Instruction 6that CPU can handle/unit time (bs-1) (e.g. 64-bit word width)
Bus width: No. of bits of data can be transferred at a time (e.g. 64-bit data bus)
1. Pipelining 流水線 Technology ( Multi-core): Core that can work in parallel efficiently
Reduce speed-gap between RAM and CPU
2. Parallel processing: Multi-cores work on the same time
CU 發指令載入 Next 指示CU 透過 Control Bus 叫 Main Memory ‘Read’PC 把所需的 Instruction address 拷
23
Page
Input and Output device 可以忽略
Devices Description
Hard Disk Fast + Durable + High-capacity storage medium
(~2TB) With platters with magnetic coating
Performance affected by: Seek time + Drive rotational speed
Magnetic tape(~5TB) Sequential access device Data backup purpose
Floppy Disk Electromagnetic charge on surface (18Sectors8+80Tracks+512B/Sector+2Layers)
(~1.44MB) Back up and transfer a small amount of data between computers
Files attached on a file server on the web, with magnetic tape/ HDD as storage system
NAS: Network-Attached Storage, SAN: Storage Area Network
FYI 1 KB = 1000B, 1 KiB = 1024B The real unit KiB cannot be used in the reality
對於一成不變的人 1 KB = KiB
12 UNIX: Multi-user + Multi-tasking network OS Handle titanic volume of transaction on large-scale computer network
Page
Cross-platform: Development of 1 program for > 1 OSs (e.g.) Java: Using Java Virtual Machine (JVM)
Types Function E.g.
1. Productivity software Perform common tasks in schools and offices Office Word 2010
2. Communication software Communicate + Share info. with others Windows Live Messenger
3. Multimedia software Create + Manage multimedia files iTunes
4. Entertainment software Play computer games + Run multimedia files XBMC (~Media Centre)
5. Education software Facilitate learning process of users Driving Test Software
Sub-defined Types14
14 1) Word Processors, Spreadsheet, Multi-media Presentation Software, Database software, Finance Software 2) FTP
30
program, Internet browser, E-mail program, Instant messaging program 3) Audio editing Software, Web authoring
software, CAD software, Media management software 4) Game and multimedia program 5) Self-learning program,
Page
5. Online Processes data (Incl. update data) after a designate time frame
interactive after the data is entered
system
6. Parallel Consists of a number of CPUs + a Run multiple tasks simultaneously/ Run a
computer memory system: Operate single job consisting of many parallel
independently + in parallel in different processes/ Run a process with degree of
modules pipelining
7. Distributed Collection of computers interconnected by a high-speed network: Contains
processing sophisticated software (Load manager) Detects + Instructs cooperation of
system computers Accomplish a task
Scalable + Fault-tolerable
communication transfer
2. Network 2-way audio& video signals Video signals must be
conferencing compressed
(Network Instant and cost saving
communication)
3. Hardware sharing LAN: sharing hard disks, printers and scanners Better monitoring and
WAN: hard disk storage space utilization
Saving costs
4. Sharing of Among computers simultaneously Lower cost
Sharing
20 Dial-up connection: 56kbps(Vocal signal) | DSL modem: 8Mbps (Downstream) + 1Mbps (Upstream) (Data transmission)
Network Interface Card (NIC): Expansion board Connect a computer to a network.
Each NIC has unique media access control (MAC) address: Identify a computer on the network.
1. Connector BNC and RJ-45
2. Expansion bus ISA, PCI, PCMCIA and USB
3. Bandwidth 10 Mbps, 100 Mbps and 1000 Mbps (1Mb = 1000Kb ≠ 1024Kb)
Communication protocol: A set of rules data formatting/ signalling understood by all the comm. Devices
Communication protocol Application
Transmission Control Protocol/ Network communications over the Internet and intranets
Internet Protocol (TCP/IP)
Simple Mail Transfer Protocol (SMTP) Transferring e-mail messages
Wireless Application Protocol (WAP) Wireless communications for handheld devices
Internet Fax Protocol (IFP) Sending + Receiving fax over the Internet
Voice over Internet Protocol (VoIP) Voice data transmission by Internet phone comm. software
Telnet protocol, Secure Shell (SSH) Establish connection for remote logon (Computers Servers)
HTTP: Port 80, FTP: Port 20, SMTP: Port 25, Telnet: (Data Port) Port 23 (1/no ∝ Security Lv.)
H.264 (3G mobile phone): Video transfer: Macro-blocks (Divided from a frame Re-identify for re-use)
…HSDPA = 3.5G Frame size: 176 x 144 (11:9)
36
Page
Layer Name Key Responsibilities (Senders’ aspect) Data Type Protocols and
Handled Technology
1. Application Interface provision Set up User Data DNS; FTP; SMTP; POP3;
communications application software. IMAP; HTTP; Telnet
2. Presentation Data format conversion Data: Can be Encoded User SSL
transmitted + compatible (receiver’s system) Data
3. Session Set up and maintain the communication Sessions H.245
session (during data transmission)
4. Transport Data + Transport Header(TH)21 Datagram Datagrams / TCP22
Segments
5. Network Datagram + Network Header(NH)23 Packet Datagrams / IP24
加 IP 地址 Packets
26 Data Link Trailer: String of bits Indicates the end of the packet
Communication protocol suite: TCP/IP Construct the internet + computer network
Send data over a Packet Switching Network
Receivers’ aspect Resembles the received data packets into 1 data file
1. Divide data Packets * n 分加 No. IP 層
TCP layer
2. Provide a unique number to each packet
3. Forward packets to the IP layer
Senders’ aspect
1. Each packet + Destination IP address 加 IP 地址分傳
IP layer 2. Packet fragmentation
(Avoid congestion)
3. Select the shortest path to the destination
Search Engine: coordinated set of programs (Spider/Bot + Spider algorithm) Finds Web sites + Web pages
on WWW
Match the keywords (Parameter for search engine Perform searching) with the content of web pages
Search Engine Types E.g.
1. General Search Engine Google.com, Yahoo
2. General Search Engine using natural language Ask.com
3. Specialised Search Engine Bloomberg.com
4. Meta-search (Powered by other engine) Engine WebCrawler
Boolean Search: AND, OR, NOT | ‘…’: Search a whole sentence | …*: Wildcard
Web browsing is referred to as navigating, reading and interacting with web sites on the WWW
Services Explanations/ Functions
HTTP Used by a program (In web server) Exchange data on WWW (≠WAN)
Bitmaps JPG + GIF + PNG + BMP (Uncompressed)
Graphics
Vector graphics WMF + SWF + EPS
Compressed WMA + MP3 + AAC
Audio
Audio streaming WMA
Video Video streaming WMV + RM + MOV ( .avi)
Plug-in Integrated into a web browser Provide additional functions
(Small Standalone Web Browser size ↓
program)
Transfer files (Computers Computers) BY User authentication/ Anonymous FTP
FTP
Send Files: ASCII (Send Plaint Text)/ Binary File (Send bit-by-bit)
Transmission of digital documents (Computers Computers)
Email
Protocol SMTP + POP + IMAP
Newsgroup Read + Post text messages categorized into discussion topics hierarchically
Discussion ≈ Newsgroup. + Post messages (Text + Computer graphics + Hyperlinks)
Forum
1-to-1/ 1-to-many discussions by Voice communications/ Messages (Text +
Online chat
Graphics)
Establish a connection (Computer Server) via the Internet/ Public
Remote Logon communication media.
Protocol Telnet + Secure Shell (SSH) (More secured ∵Encryption)
39
Page
AAC Advanced Audio Coding PNG Portable Network Graphics
EPS Encapsulated Postscript SWF Shockwave Flash
FTP File Transfer Protocol WAV Waveform audio format
GIF Graphics Interchange Format WMA Windows Media Audio
JPEG Joint Photographer Expert Group WMA Windows Media Audio
MP3 MPEG-1 Audio Layer 3 WMF Windows Metafile
Webmail:
E-mail service provided by a web site
(Access through the web browser)
SMTP: Simple Mail Transfer Protocol:
1. Not efficient for binary file transfer
2. No authentication for senders
IMAP: Internet Message Access Protocol:
Download mails to local disks automatically
POP: Post Office Protocol: Mail 下載後會 Delete
Many users to visit at the same time
BCC: Blind Carbon Copy:
Private email copy to the others
Spam Trap:
Trap spam senders by using a new account
Red: Send Path Blue: Receive Path
Send Mail: SMTP; Receive Mail: IMAP
Introduction to HTML
Electronic document written in hypertext format Interpreted + Displayed by a web browser (HTTP client)
1. Arithmetic calculation 2. Pure HTML code: conditional statement (e.g. IF)
Webpage construction language: ASP, PHP, JSP
41
29 ETF: Electronic Funds Transfer: System of transferring money (Bank AC 1 Bank AC2) through computer network
Page
30 EDI: Electronic Data Interchange: Set of data transmission standard Control electronic documents
Tag Representation Define the …
<HTML>…</HTML> HTML doc Start + End of a HTML doc
<HEAD>…</HEAD> Head section Properties: Doc’ title + Additional scripting functions + …
<TITLE>…</TITLE> Doc Title Title of the HTML doc: Shown in browser window’s title bar
<BODY>…</BODY> Body section Main content of the doc ( + HTML tags)
Only contents in <TITLE> of <HEAD> will be displayed
Other reminders
>1 Space/ eoln char in HTML doc: Consider as 1 space character only
To display ‘<’(less than): < To display ‘>’ (greater than): > <! … >: Insert comment
The attribute in HTML tag: “…”, if … doesn’t contain any space character No need the double-quote
Tag Representation
<H1>…</H1> to Section header <H1> is greater than <H6>
<H6>…</H6>
<P>…</P> Paragraph Without </p> is still okay
<BR> Line break Break a new line (vs. <P>: Fewer spacing)
<PRE>…</PRE> Preformatted Display a block of text including extra spaces + eoln char
text
<CENTER>… Centre alignment
</CENTER>
<HR> Horizontal rule
<FRAMESET>… Frameset Space assigned in <FRAMESET> >Screen resolution
</FRAMESET> Resize them proportionally automatically
<FRAME>… Frame Specify the web page to be initially loaded into that frame
</FRAME>
42
Page
Attributes in <H*>, <P>, <HR> 31: <Align = ‘…’> [Centre, Left, Right]
Attribute in <FRAME>
name = “xxx” Name of the frame
scrolling = “xxx” If scrolling is allowed “auto”/ “yes”/ “no”
frameborder = “x” If the frame has a border “1”/ “0”
marginwidth = “x” Width of the frame
marginheight = “x” Height of the frame
noresize Indicator No resize is allowed (No value)
src = “xxx” The link of the web page
target = “xxx” Where the clicked link should go (e.g. “_parent”, “_self”, “_blank”, “_top”)
Tag Representation
<OL>…</OL> Ordered list
<UL>…</UL> Unordered list
<LI>…</LI> List item
43
Page
Tag Representation
<IMG>…</IMG> Inline image </IMG> is not needed
<A>…</A> Anchor
Attributes in <IMG>
src = “xxx.jpg” Image source height = “xxx” Image height
alt = “xxx” Message shown when mouse over width = “xxx” Image width
If the image size < Screen resolution: The images will be duplicated to fill up the screen
Attributes in <A>
href = “<html doc>” Hypertext reference
target = “<frame>” Display the linked file in the frame
name = “xxx” Name of the anchor
Link the anchor of href by using the name of another anchor: <A href = “#example1”>
1. We need a ‘#’, hash symbol 2. 2 anchors should be on the same web page
45
Page
Elementary Web Authoring
Establishing a web site Collection of related web pages Organized + Linked together
Navigation bar
Contents
Adobe Dreamweaver: Web authoring tool Design web pages + Managing web sites visually
Tools Automating Web page design + Web site maintenance
1. Defining Specify Name + Local root folder for a new web site
2. Managing Create web pages + construct the web site’s structure
Manage files in both a local machine + remote site
Keep track of any updates/ broken links among files
3. Designing Tools categorized in bars or panels Build web site
4. Uploading Upload any required files Web server through Files Panel.
47
Page
Problem-solving Procedures
Solve systematically: Top-down approach (Large programme) + Bottom-up approach (Small programme)
Define the requirement for IPO: Types + Precision levels + Units + .etc(Constraints)
elements on UI
i Colour: ii Control objects
3. Well-designed layouts Appropriate (Radio button, check-boxes):
Appropriate
iii Alignment: iv Wording:
Consistent for fields Concise + appropriate
↓Cost of training + technical support
4. UI Design Consistency
(∵ More familiarise with how the programme works)
↓ Chance of getting lost in the UI
5. Fixed path of navigation
↑Efficiency of the use of UI
6. Different versions
(∵ Tailor-made for different types of users)
Constant/ Variable (Δ /Δ = 0) | Data= Unorganized facts | Simple data type: Integer, char, Boolean, real
String= Collection of char | Array: Collection of variables of the same data type + can be accessed by the same
name | Boolean can be manipulated using [relational operator (>, <) + logical operator (AND, OR)]
Linear Search Examine all elements of an array until it’s found From 1st one For unsorted list
Binary Search Examine the middle element From [(n+1) div 2]th one For sorted list
Trace table List the values of the variables through running 1line/time of the programme
Generated intentionally
Check the accuracy of a programme (Correct Program design + Able to handle improper data)
o Types of test data
i Whole range of Valid data
ii Critical values (For boundary case)
iii Invalid data
IO Box
Terminal Box
Terminal Box
Characterized by the fact: We can easily obtain a large amount of information from the internet
Advantages Disadvantage
1. Various kind of information is provided 1. Uncensored information is too much
2. Free of charge information is the majority 2. Unreliability, Fake, Dangerous
3. Up-to-date information is available 3. Addictive to the internet
Growing gap between those people who can (vs. cannot) Access + Make effective use of ICT
Global Digital Divide: Difference in Technology level among countries
♠ Reasons
1 Socio-economics (e.g. Wealth)
2 Race (e.g. Black people)
3 Geographical areas (e.g. Rural and Urban areas)
HKSAR Charity Group
1. ($) Provide free internet access in public 1. ($) Organize campaigns Collect + Mend old
places computers
2. Organize ICT training courses for non- 2. ($) Donate to those who can’t afford new ones
internet users
Rapid ↑ in International trade + Cultural exchanges Changes in society and the world economy
Advancement of IT Pace of globalization
All people regardless their gender should Equally prepared + Equally engaged in the use of technology
♠ To reduce gender inequity
1. Attract more women into Computer science + Related technical fields
2. Make female more comfortable in the Culture of technology
3. Better UI design Cater both gender
2 ↓$ 2 Discipline problems
1. Ergonomics
Science of integrating Efficiency + Safety + Comfort into workplace design
Study of physical relationship between human and their tools
o Ergonomic Devices
1 Image-talk symbol writer (For Speech disordered people)
2 pVoke Software (For those who cannot speak)
The rights granted to Inventors, writers, … and other talents to protect their inventions and products
Single-user licence
For 1 single and separated unit
Multi-user licence (Site licence) (e.g.) Network Licensed Software (Installed on server) (Cloud)
For 1 corporation (Cost depends on no. of employees, the locations) 1 unit 1 site licence is needed
○To ensure that: B is the sole receiver (∵ Decrypt with B’s private key)
○To ensure that: A is the sole sender (∵ Encrypt with A’s private key)
55
Page
Threats and Security on the internet (I)
Browser denies: Execution of these unidentified components/ Alert users when web sites request downloading
Browser identifies: ID of component using Digital signature (e.g.) Public key of the software developer
Firewall:
1. Analyse IP address + Types of
traffic
2. Judge permissions of I/O of data
3. Address translation (IP
Masquerade): Hide LAN from WAN
57
Page
Threats and Security on the internet (II)
Public expectation of privacy in the Collection + Holding + Processing + Use of personal Data
Right of privacy: Fundamental human right
Similar URL Attempts to fake and get Confidential Data (e.g.) Credit card numbers)
To prevent identification of user’s location (IP address) and personal information (ISP)
Proxy server (Computer Server): Route data packets through >1 computers
Strong (> 8 char) + Copies/Share + Δ regularly + Unique + Aware of fake email/ Bogus Websites/ Suspicious
call + Security software
Scan email /Files + Cookies + File sharing + doubtful program installation + Patches
58
Page
Encryption: Conversion with algorithm: Readable data (Plaintext) Unreadable character (Cipher-text)
Length of encryption key: Δ Effectiveness of encryption + Security level (e.g. 128bit is common)
Check P.8
HK Post = Local CA (Certification Authority): Signs + Manage Digital Certificate (= Digital signature)
Use ACLs (Access Control List): Precisely record the security permission (Log-on info + Mode of access to files)