Chp 1 Flashcards
What’s the basic building block in all computers
Binary number system
Why is the binary number system chosen
It only consists of 1s and 0s since computers contain many switches which must be in or off position, they can be represented by the binary system on is 1 and a off is a 0
Denary is known as a
Base 10 number system
What is the binary number system
Base 2 number system
Convert the number 11101110 into denary
238
Convert 011110001011 into denary
1931
Convert 142 into binary
10001110
Convert 59 into binary
00111011
Hexadecimal number system
Base 16 system
Convert 101111100001 into hex
BE1
Convert 11000011 into hex
C3
Convert 11000011 into hex
C3
Convert 45A into binary
010001011010
Convert BF08 into binary
1011111100001000
45A into denary
4 x 256 + 5 x16 + 10 x1 = 1114
Conger C8F into denary
12 x 256 + 8 x 16 + 15x1 = 3215
Convert 2004 into hex
/ 16
7D4
Convert 2004 into hex
/ 16
7D4
Convert 8463 into hex
210F
Why would you use hex instead of binary i
It’s more convenient to use. The hex number is easier for humans to remember copy and work with
Error codes
Their shown in hex values
These numbers refer to the memory location of the error and are usually automatically generated by the computer. The programmer needs to know how to interpret the hexadecimal error coded.
When is hex used in a computer
Error codes
MAC address
IPv6 addresses
HTML colour codes
MAC addresses (media access control)
Refers to a number which uniquely identifies a device on a network. The Max address refers to the network interface card NIC which is part of the device. The MAC address is rarely changed so that a particular device can always be identified no matter where it is.
Mac address structure
(NN-NN-NN) first half and it indentured the number of manafacturer of the device and the second half (DD-DD-DD) is the serial number of the device
Internet protocol IP address
Each device connected to the internet is given an address known as the IP address. An IP address is 32 but number written in hex form.
Hypertext mark up language HTML colour codes
Mark up language used in the processing definition and presentation of text in a specific color. HTML uses <tags> which are used to bracket a piece of text for example.</tags>
How is HTML often represented
Represents colours on the computer screen. All colours can be made up of different combinations of the three primary Color’s rgb the different intensity if each colour is determined by the hex value. #00 00 00
1st 00 red 2nd are green and the blue
O + 0
0 + 1
1+1
1+ 1 +1’
= 0
1
10
11
Add 00100111+ 01001010
01110001
Convert 126 and 62 into binary and add the.
O1111110 + 00111110 = 10111100
Overflow
That the sim has exceeded this value
Meaning the number is too big to be stored in the computer using 8 buts