data representation Flashcards
what is data representation
it refers to the form in which date is stored, processed and transferred
what is a bit
it is the smallest unit of data in computers, it represents a binary state of 0 and 1
why do we need hexadecimal
. computers operate with binary numbers represented with 0 and 1
. can be very long and hard for humans to understand
. hexadecimal is shorter and easier to understand
uses of hexadecimal
. color codes in websites
.machine code and assembly language
. mac address
what is binary coded decimal
it is a way of representing decimal numbers using binary digits. each decimal number is represented by a group of 4 binary digits
uses of bcd
any scenario where a single digit needs to be displayed eh calculator and digital clock
describe how danery integers larger than 9 can be converted into bcd
each danery digit would be written as a 4 bit binary number for eg 46 would be 0100 0110
describe how a 8 bit bcd can be converted into a danery digit
the binary digits will be split into groups of 4 bits, starting from the right
unsigned binary numbers
a way of representing numbers using 1 and 0, there is no concept of positive or negative numbers
signed binary numbers
a way of representing numbers using both negative and positive values , 0 means positive and 1 means negative
state how an overflow can occur when adding two binary numbers
computers have fixed memory spaces, sometimes after calculation the number of bits end up being more than the amount which can be stored
why was ASCII developed
back then different manufacturers used different character codes, this made it difficult for computers of different companies to communicate, ASCII was developed to set the same codes for text characters
describe charcteristics of ASCII
A= 65 a= 97
there is 7 bits
128 characters can be represented 0-127
it is standard american code
64 32 16 8 4 2 1
charcteristics of extended ASCII
8 bits
256 characters can be represented
128 64 32 16 8 4 2 1
128 to 255
what are disadvantages of ASCII codes
only 128 characters can be represented
many characters in other languages cannot be represented
in extended ASCII the characters from 128-255 may be coded differently in different systems
how unicode is designed to overcome the disadvantages of ASCII
unicode uses upto 32 bits
it is designed to be a superset if ASCII
it is designed so most characters in other languages can be represented