1. data representation Flashcards
how and why computers use binary
to represent all forms of data
Any form of data needs to be converted to binary to be processed by a computer
Data is processed using logic gates and stored in registers
difference between denary, binary and
hexadecimal number systems
Denary is a base 10 system
Binary is a base 2 system
Hexadecimal is a base 16 system
positive denary -> positive binary
and vice versa
practice
positive denary -> positive hexadecimal
and vice versa
practice
positive hexadecimal -> positive binary
and vice versa
practice
what is hexadecimal? what is its function
base 16 system used to represent binary numbers in a more human-friendly form,A simpler way to remember binary-equivalent values, more possible values with a smaller/ shorter representation, and finally its used normally for colours and error messages
adding binary
practice
subtracting binary
practice
what is an overflow and why does it happen in binary addition
Overflow errors occur when a computer system attempts to occupy its registers with value that is one bit larger than its capacity
perform left and right logical shifts
practice
what happens to the denary value of a binary number when performing a left logical shift
multiplies depending on the amount of shift 1= x2
what happens to the denary value of a binary number when performing a right logical shift
divides depending on the amount of shifts eg 1= /2
Use two’s complement to represent positive and negative 8-bit binary integers
practice
Convert a positive binary or denary integer to a two’s complement 8-bit integer and vice versa
practice
Convert a negative binary or denary integer to a two’s complement 8-bit integer and vice versa
practice