Binary to Decimal Flashcards
(8 cards)
ASCII
Each character of the alphabet, some special symbols and control codes are represented by a agreed binary patterns using 8-bit .(limit for characters is 256)
Primitive Data types
> Integer (whole number)
Boolean (value of true or false)
Real /Float (a number with a fractional part(3.45.-6.25))
character (a letter, number or special symbol))
string (anything enclosed with quotation marks)
Unicode
> Originally 16-bit code allowing for more than 65,000 characters to be represented.
Then updated to remove the 16-bit restriction by using a series of code pages with each page being chosen language symbols
original ASCII includes.
Bases of code systems
>Denary
>Binary
>Hex
> Denary base^10
Binary base^2
Hex base^16
MSB and LSB
> MSB = Most Significant Bit
> LSB = Least Significant Bit
Binary Addition rules
0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 0 carry the 1 1 + 1 + 1= 1 carry the 1
Binary Subtraction rules
0 - 0 =0
1 - 1 = 0
1 - 0 = 1
0 - 1 = 1 (after borrowing 2 from the left)
Why use hex?
> Easier to read and remember
> Quicker to use and write