data rep+fundamentals of algorithm Flashcards
number base
-number of digits used to represent numbers
decimal number base
-base of 10
binary number base
-base=2
hexadecimal number base
-base value 16
purpose of hexadecimal
-large numbers can be shown with fewer digits
-used to show memory addresses
using hexadecimal to write numbers
if number >16, divide by 16 and use the amt it divided by, and the remainder, use each number as a hex
i.e:
8 to hexadecimal:
8
22 to hex:
22/16 = 1 remainder 6
1=Hex 1
6 = hex 6
ans=16
bit
smallest unit of data, rep by 1
byte
8 bits
Kilobyte
1000 bytes
megabyte
1000 kilobytes
gigabyte
1000 megabytes
petabyte
1000 gigabyte
character set
-defined post of recognised characters that can be stored in a computer system
ASCII
—uses 7 bits, up to 128
unicode
-uses 2 bytes, uo to 65k+ characters, universal character set