1. Data representation Flashcards
What must any form of data be converted into for a computer to process it?
Binary format
What does the binary number system consist of?
1s and 0s
Why is the binary number system chosn?
Since computers contain millions and millions of tiny ‘switches’, which must be in the ON or OFF position, they can be represented by 1s and 0s.
How and why are switches used?
Switches used in a computer make use of logic gates and are used to store and process data.
How is binary converted to denary?
Each time a 1-value appers in a binary number column, the column value is added to a total.
How is denary converted to binary?
Subtract the largest power of 2 and keep doing this until the value of 0 is reached.
OR
Successively divide by 2 by writing the result of the division including the remainder (even if it is 0) under the dividend until the result is zero. Write down all the remainders in reverse order.
What is the hexadecimal number system?
Hexadecimal is a base 16 system and therefore needs to use 16 different ‘digits’ to represent each value. The numbers 0 to 9 and the letters A to F are used to represent each hexadecimal digit. A in hex = 10 in denary, B = 11, C = 12, D = 13, E = 14, F = 15.
How is binary converted to hexadecimal?
Starting from the right and moving left, split the binary number into groups of 4 bits. If the last group has less than 4 bits, then simply fill in with 0s from the left. Take each group of 4 bits and convert it into the equivalent hexadecimal digit.
How is hexadecimal converted to denary?
Take each of the hexadecimal digits and multiply it by the heading values. Add all the resultant totals together to give the denary number.
How is denary converted to hexadecimal?
Successively divide by 16 by writing the result of the division including the remainder (even if it is 0) under the dividend until the result is zero. Write down all the remainders in reverse order.
Why is hexadecimal more convenient to use than binary?
One hex digit represents four binary digits. The hex number is far easier for humans to remember, copy, and work with.
What are four uses of the hexadecimal system?
Error codes, MAC addresses, IPv6 addresses, HTML colour codes
What are error codes?
Error codes 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 codes.
What are Media Access Control (MAC) addresses?
Media Access Control (MAC) address refers to a number which uniquely identifies a device on a network. The MAC address refers to the network interface card (NIC) which is a part of the device. The MAC address is rarely changed so that a particular device can always be identified no matter where it is. A MAC address is usually made up of 48 bits which are shown as 6 groups of two hexadecimal digits where the first half is the identity number of the manufacturer of the device and the second half is the serial number of the device.
What are Internet Protocal (IP) addresses?
Each device connected to a network is given an address known as the iNternet Protocal (IP) address. An IPv4 address is a 32-bit number written in denary or hexadecimal form. IPv4 has recently been improved upon by the adoption of IPv6. An IPv6 address is a 128-bit number broken down into 16-bit chunks, represented by a hexadecimal number. IPv6 uses a colon (:) rather than a decimal point (.) as used in IPv4.