



































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




































































Computer Science
Number system Use of Binary in Computers: ā Any form of data needs to be converted to binary to be processed by a computer. ā The basic building block in all computers is the binary number system which consists of 1ās and 0ās only. ā The data is processed using logic gates(AND, OR, XOR, NOT, NAND, NOR and XNOR) and stored in registers. ā These switches make use of logic gates and are used to store & process data. ā A switch in the ON position is represented by 1 and a switch in the OFF position is represented by 0 in binary.
Binary, Denary & Hexadecimal Systems:
Example:
Let's take the number 4829 as an example. Breaking Down the Digits: ā 9 is in the 1's place. ā 2 is in the 10's place. ā 8 is in the 100's place. ā 4 is in the 1000's place. Expressing it Mathematically: Using Place Values: (4Ć1000)+(8Ć100)+(2Ć10)+(9Ć1)=4000+800+20+9= (4Ć1000)+(8Ć100)+(2Ć10)+(9Ć1)=4000+800+20+9=
The binary number system works exactly the same way as the denary system, except that it contains only two digits, 0 and 1. For example, to figure out the value of binary number 1101, you use the similar method described above but with a base of 2 instead of 10 (which means that increasing powers of 2 from right-handside to the left-hand side instead of powers of 10). (1 x 8) + (1 x 4) + (0 x 2) + (1 x 1) = 8 + 4 + 0 + 1 = 13
Conversions: (i) Binary to Denary:
Examples: ā The maximum binary number length for conversion to be used in this syllabus is 16-bit. ā Convert (11101110) 2 to denary [8-bit]:
Conversions: II. Denary to Binary: This method involves successive division by 2; the remainders are then written from bottom to top to give the binary value.
Answer: