Professional Documents
Culture Documents
Chapter 1 & 2 Notes Scomp PDF
Chapter 1 & 2 Notes Scomp PDF
Define computer
Electronic device, operating under the control of instructions stored in its own memory, that can
accept data, process the data, produce result and store the result for future use
What is input?
Any data and instructions entered into the memory of the computer
What is output?
Data that has been processed into a useful form
Storage
Question 2 : Siti needs pocket money and calls her father to bank in RM200 into her saving account.
After her father had agreed and done the transaction, she went to the Bank Ceria Berhad to withdraw
the money from the ATM machine. She received 4 pieces of RM50 notes.
Identify two (2) activities involved for process and output operations in the information processing
cycle during the withdrawal process. (PSPM 1 2016/2017).
Tips : explain based on what ATM machine done not user.
- ATM machine verify password
PROCESS - ATM machine verify username
- ATM machine calculate balance
- ATM machine calculate amount of money
- ATM machine display menu to choose
OUTPUT - ATM machine display balance
- ATM machine dispense money
- ATM machine print receipt
Question 3 : Ahmad is travelling from Bukit Jalil to Putrajaya. When he reaches the Putrajaya toll gate,
Ahmad taps his Touch n Go card on the card reader.
Identify two (2) activities for each operation in the Information Processing Cycle involved during that
Touch n Go transaction at Putrajaya toll gate. (PSPM 1 2017/2018).
- Card reader scan the Touch n Go card
INPUT - Card reader read data/read balance/read entrance and exit toll gate
STORAGE - System store balance/store date and time/store exit toll gate location
- System store history of transaction
Example :
Make sure your answer is in exact value.
Convert 5 TB into MB
DO NOT write 5.2 x 103 MB
= 5 x 1024 x 1024
= 5 242 880 MB
= 32 + 0 + 8 + 4 + 0 + 1
= 45
Decimal to binary Divide by 2
Example : 166 to binary
166
2 83 - 0
2 41 - 1
2 20 - 1
2 10 - 0
2 5 - 0
2 2 - 1
2 1 - 0
2 0 - 1
= 101001102
Decimal to Divide by 16
hexadecimal Example : 1777 to hexadecimal
1777
16 111 - 1
16 6 - 15 (F)
16 0 - 6
= 6F116
B (11) 9 1 1
11 x 163 9 x 162 1 x 161 1 x 160
45056 2304 16 1
= 45056 + 2304 + 16 + 1
= 47377
1 0 1 0 1 0 0 0 1
20 23 2 2 2 1 20 2 3 2 2 2 1 20
1 8 4 2 1 8 4 2 1
1 0+4+0+1=5 0+0+0+1=1
= 15116
B (11) 1 3
23 22 21 20 23 22 21 20 23 22 21 20
8 4 2 1 8 4 2 1 8 4 2 1
1 0 1 1 0 0 0 1 0 0 1 1
= 1011000100112
Example :
Given the IP address of a printer as 192.0.0.2. Convert the address to hexadecimal number
Answer : C0.0.0.2
Identify the number of bits and number of bytes used by each coding scheme to represent the
sentence below :
#KMPkdihatiku
LOGIC GATE :
Boolean expression : Y = A . B
Logic gate : AND Truth table
Truth table - use the formula 2n where n is the number of input
A Y 2 input : A and B so there will be 4 output
B
A B Y=A.B
0 0 0
Produce TRUE only when all 0 1 0
inputs are TRUE 1 0 0
1 1 1
Boolean expression : Y = A + B
Logic gate : OR Truth table
Truth table - use the formula 2n where n is the number of input
2 input : A and B so there will be 4 output
A Y
B A B Y=A+B
0 0 0
0 1 1
Produce FALSE only when all 1 0 1
inputs are FALSE 1 1 1
Boolean expression : Y = A’ . B’
Logic gate Truth table
Truth table - use the formula 2n where n is the number of input
2 input : A and B so there will be 4 output
A Y
B A B A’ B’ Y = A’ . B’
0 0 1 1 1
0 1 1 0 0
1 0 0 1 0
1 1 0 0 0
Boolean expression : Y = A’ + B’
Logic gate Truth table
Truth table - use the formula 2n where n is the number of input
2 input : A and B so there will be 4 output
A Y
A B A’ B’ Y = A’ + B’
B 0 0 1 1 1
0 1 1 0 1
1 0 0 1 1
1 1 0 0 0
Boolean expression : Y = ( A . B )’
Logic gate : NAND Truth table
Truth table - use the formula 2n where n is the number of input
2 input : A and B so there will be 4 output
A Y A B A.B Y = ( A . B )’
B 0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
Exclusive OR – XOR
Logic gate Truth table
● If both value for input are the same, the output will be 0
● If the value is different, the output will be 1
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
A B Y
0 0 1
0 1 0
1 0 0
1 1 1
Derive Boolean expression (and truth table) based on a given logic statement
STEP 1 : Identify the output / what happen
STEP 2: Identify the input / causes
STEP 3 : Create the legend based on input and output
Legend :
X – alarm will ring
A – switch ON Boolean expression : X = ( A + B ) . C’
B – switch ON
C – switch ON
Write out the truth table
3 inputs : A, B, C – so there will be 8 output (23 = 8)
A B C C’ A+B X
0 0 0 1 0 0
0 0 1 0 0 0
0 1 0 1 1 1
0 1 1 0 1 0
1 0 0 1 1 1
1 0 1 0 1 0
1 1 0 1 1 1
1 1 1 0 1 0
Truth table : shows the output states for every possible combination of input states
Define network
Collection of computers and mobile devices connected together via communication devices and
transmission media to share resources
TRANSMISSION MEDIA
What is Transmission media?
● Consist of materials or substances capable of carrying one or more signals
Wired / Physical Transmission Media - Physical transmission media use wire, cable and other
tangible materials to send communications signals.
Examples of Wired Explanation
transmission media
Twisted pair cable Consists of one or more twisted-pair wires bundled together
Each twisted-pair wire consists of two separate insulated copper wires
that are twisted together
Coaxial cable Consists of single copper wire surrounded by at least three layers :
insulating material, woven or braided metal, plastic outer coating
Connect computer to modem
Fiber optic cable Consists of dozens or hundreds of thin strands of glass or plastic that
use light to transmit signals
Each strand, called an optical fiber, is as thin as a human hair
Inside the fiber-optic cable, an insulating glass cladding and a protective
coating surround each optical fiber
Longer distance to carry data as pulse of light
Wireless Transmission Media - Wireless transmission media send communications signals through
the air or space
Examples of Wireless Explanation
transmission media
Broadcast radio Is a wireless transmission medium that distributes radio signals
through the air over long distances, such as between cities, regions,
and countries, and short distances, such as within an office or home
Bluetooth, Wi-Fi use broadcast radio signals
Communication Space station that receives microwave signals from an earth-based
satellite station, amplifies (strengthens) the signals and broadcasts the signals
back over a wide area to any number of earth-based stations
Microwaves Radio waves that provide a high speed signal transmission
Often called fixed wireless, involves sending signals from one
microwave station to another
Infrared Wireless transmission media that sends signals using infrared light waves
Disadvantages : Disadvantages :
1. Less security - does not provide the 1. Less reliable because if the server fails / goes
security available on a client / server down, it will affect the whole network
network 2. High cost to setup (because of server) and
2. Data recovery and backup is very difficult maintain the network
because every computer has to maintain 3. Network congestion may occur if too many
its own backup system clients request services from server at the same
time
2.
3.
4.
CLASSIFICATION OF NETWORK : Local Area Network (LAN) and Wide Area Network (WAN)
Types of LAN Personal Area Network (PAN) Home Area Network (HAN)
Computer network used for A residential LAN which is used for
communication among computer and communication between digital
different devices closes to one person. devices typically deployed in the
Examples of devices that are used in a home
PAN are: Usually a small number of PC and
Personal computers accessories such as printer and
Printers mobile computing devices
Telephones Important function - Sharing
PDAs internet access often a broadband
Scanners service through a DSL modem.
Video game consoles
What is INTERNET?
Worldwide collection of computer networks that connects millions of businesses, government
agencies, educational institutions and individuals
Advantages and Disadvantages of Internet – you can give any advantages or disadvantages of
Internet as long as it is suitable
Advantages Disadvantages
Easy to communicate with others via email Easily exposed to virus attacks
and social media such as Whatsapp and
Instagram
Easy to transfer money to other account Users addicted to the Internet and will become
by using online banking such as socially disconnected as they will be drifted apart
Maybank2U, CIMBclicks from their family and friend
Easy to do online shopping as we does not Easy to get involved with violation of privacy when
need to go out from the house such as by we did not protected our personal and confidential
using Shopee, Lazada information properly
INTRANET VS EXTRANET
Intranet Extranet
Definition Private network of an organization Private network of an organization that
that allow its employees to share securely share part of organization’s
organization’s information and information with its suppliers, customers
operations among themselves or vendors
Accessibility Only employees within an Provide limited access to authorized
organization are allowed to access the people outside the company such as
Intranet suppliers, customers or vendors
Example An internal network in a college that Package shipping company that allow their
provides student information system customers to access their network to print
shipment bills
Has 2 parts :
First 3 groups of numbers identifies the network
Last group of number identifies the specific
computer or device
Size of one address : 32 bits Size of one address : 128 bits
Example : Example :
0.0.0.0 – reserved IP address for default network
255.255.255.255 – reserved IP address for network ABCD : 9999 : AB54 : CCDE : ED12 : 9001 :
broadcast D450 : 333F
10.11.12.13
150.19.21.133
Top Level Domain (TLD) : the last section of the domain name
Generic TLD - .edu for educational website
Identifies the type .biz for business website
of organization .gov for government website
associated with the .org for non-profit organization website
domain .com for commercial organizations, businesses and companies
.net for network providers or commercial companies
Domain Name System (DNS) : Method that the Internet uses to store domain names and their
corresponding IP addresses
Domain Name Server : Server on the Internet that translates the domain name into its associated IP
address so that the request can be routed to the correct computer