Fichas
4. Data Representation and Data Types
Fichas del conjunto (4)
- 1Representation of data as bit patternsBit - Smallest unit of data as a single binary value, either 1 or 0.
Byte - A sequence of bits, usually 8 bits.
Word - Fixed-sized piece of data handled as a unit by the instruction set or the hardware of the processor. Usual word size of 32 or 64 bits. - 2Storage of charactersAny kind of data needs to be converted into binary for the computer to understand it.
Therefore represented as a series of 1's and 0's unique to each character.
An example of a character set would be ASCII which assigns a binary number to each character on the keyboard. - 3Data typesBoolean - Only holds one or two set values, either true or false.
Character - Any one character, stored in one byte. E.g. "e"
String - A block of text. E.g. "Hello"
Integer - Stores whole numbers. E.g. "23"
Real - Numerical data which can hold decimals. E.g. "4.67" - 4Representation of numbers as bit patternsRules of Binary addition:
0 + 0 = 0
1 + 0 = 1
0 + 1 = 1
1 + 1 = 0, and carry to the next bit.
Rules of binary subtraction:
0 - 0 = 0
1 - 0 = 1
0 - 1 = 1, and borrow 1 from next bit.
1 - 1 = 0
Información
- Descripción
- AS - Level (Fundamentals) Computer Science Fichas sobre 4. Data Representation and Data Types, creado por Clark McDonald el 05/06/2016.
- Creado por
- Clark McDonald
- Visitas
- 0
- Valoración