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...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[https://www.khanacademy.org/computing/ap-computer-science-principles Khan Academy AP CS Principles] and [https://www.khanacademy.org/computing/computer-science Khan Academy Computing] are good resources to learn and refresh some of this information.
 +
 
=Storage=
 
=Storage=
 
* bit is 0 or 1, stands for “binary digit”
 
* bit is 0 or 1, stands for “binary digit”
Line 4: Line 6:
 
* 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=
+
=Base systems=
 +
* Able to convert between decimal, binary, hexadecimal, octal
 
* 15 = 1111 binary = F hex
 
* 15 = 1111 binary = F hex
 
* 255 = 1111 1111 binary = FF hex
 
* 255 = 1111 1111 binary = FF hex
* unsigned 8 bit integer is at most 255
+
* unsigned 8 bit integer ranges from 0 to 255
 
* signed 8 bit integer is between -128 and 127
 
* signed 8 bit integer is between -128 and 127
 
* unsigned 32 bit integer ranges from 0 to  2<sup>32</sup>-1, about 4 billion
 
* unsigned 32 bit integer ranges from 0 to  2<sup>32</sup>-1, about 4 billion
 
* signed 32 bit integer ranges from -2<sup>31</sup> to 2<sup>31</sup>-1, about +/-2 billion
 
* signed 32 bit integer ranges from -2<sup>31</sup> to 2<sup>31</sup>-1, about +/-2 billion
 
* unsigned k bit integer at most 2<sup>k</sup>-1
 
* unsigned k bit integer at most 2<sup>k</sup>-1
 +
 +
=Computer components=
 +
* RAM - random access memory.  The kind of memory used in computers, random access means any part of memory can be accessed without having to look at the rest of memory (same amount of time to look up any part of RAM).
 +
* Hard drive / Hard disk - one of the two main long-term storage used in most computers.  Physically, data is stored on magnetic platters that spin around very fast (spinning much like CD/DVD/record players)
 +
* Solid state drive - the other main long-term storage used in most computers.  Physically, data is normally stored in flash memory.  SSDs are typically faster than HDDs but more expensive and have different error behavior. 
 +
* CPU - central processing unit - the part of the computer that is "in charge".  Executes programs that are in "machine code".
 +
* input devices - used to bring data into the computer - hard drive, keyboard, mouse, touch screen, modem
 +
* output devices - computer sends data out to these - hard drive, screen, printer

Latest revision as of 02:26, 7 January 2020

Khan Academy AP CS Principles and Khan Academy Computing are good resources to learn and refresh some of this information.

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

Base systems

  • Able to convert between decimal, binary, hexadecimal, octal
  • 15 = 1111 binary = F hex
  • 255 = 1111 1111 binary = FF hex
  • unsigned 8 bit integer ranges from 0 to 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

Computer components

  • RAM - random access memory. The kind of memory used in computers, random access means any part of memory can be accessed without having to look at the rest of memory (same amount of time to look up any part of RAM).
  • Hard drive / Hard disk - one of the two main long-term storage used in most computers. Physically, data is stored on magnetic platters that spin around very fast (spinning much like CD/DVD/record players)
  • Solid state drive - the other main long-term storage used in most computers. Physically, data is normally stored in flash memory. SSDs are typically faster than HDDs but more expensive and have different error behavior.
  • CPU - central processing unit - the part of the computer that is "in charge". Executes programs that are in "machine code".
  • input devices - used to bring data into the computer - hard drive, keyboard, mouse, touch screen, modem
  • output devices - computer sends data out to these - hard drive, screen, printer