Difference between revisions of "CS Terms - Getting Started"

From Computer Science
Jump to: navigation, search
(Created page with "=Storage= * bit is 0 or 1, stands for “binary digit” * byte is 8 bits, written for example like 1001 0101 * B - abbreviation for byte * b - abbreviation for bit * KB - kil...")
 
(Storage)
Line 4: Line 4:
 
* B - abbreviation for byte
 
* B - abbreviation for byte
 
* b - abbreviation for bit
 
* b - abbreviation for bit
* KB - kilobyte, 210 = 1024 bytes
+
* KB - kilobyte, 1000 bytes
* MB - megabyte, 220, roughly 1 million bytes
+
* MB - megabyte, 1 million bytes
* GB - gigabyte, 230, roughly 1 billion bytes
+
* GB - gigabyte, 1 billion bytes
* TB - terabyte, 240, roughly 1 trillion bytes
+
* TB - terabyte, 1 trillion bytes
  
 
=Binary/Hex/integer limits=
 
=Binary/Hex/integer limits=

Revision as of 20:17, 6 January 2020

Storage

  • bit is 0 or 1, stands for “binary digit”
  • byte is 8 bits, written for example like 1001 0101
  • B - abbreviation for byte
  • b - abbreviation for bit
  • KB - kilobyte, 1000 bytes
  • MB - megabyte, 1 million bytes
  • GB - gigabyte, 1 billion bytes
  • TB - terabyte, 1 trillion bytes

Binary/Hex/integer limits

  • 15 = 1111 binary = F hex
  • 255 = 1111 1111 binary = FF hex
  • unsigned 8 bit integer is at most 255
  • signed 8 bit integer is between -128 and 127
  • unsigned 32 bit integer ranges from 0 to 232-1, about 4 billion
  • signed 32 bit integer ranges from -231 to 231-1, about +/-2 billion
  • unsigned k bit integer at most 2k-1