W3 - Primitive Data Types Flashcards
What are the 5 types of data types
Real/float, Boolean, integer, string and character
What is an integer?
Whole numbers without decimal places
What is a float/real?
Numeric value that has decimal places
What is Boolean
Holds one of two values - true/false, 1/0 etc
What is character?
A single character
What is string?
String is a collection of characters
What is ASCII?
ASCII stands for American Standard Code for Information Interchange and is a set of digital codes which are used to represent 128 different characters (numbers, letters and symbols)
What is ASCII used for?
Used as a standard format in the transfer of text between computer systems.
How do Parity Checks work?
A bit is assigned to be a parity bit. It is then entered to be a 0 or 1 (depending on if we are looking for odd or even parity). Then it sees if there are an even number of 1s and 0s if you are looking for even parity and vice versa
What are the main problem with Parity Checks?
2 bit changes cannot be detected
What is Unicode?
It is a globally recognised system to maintain all character sets by mapping different binary values to them. It can represent more characters than ASCII but it has larger file sizes and data transmission times
What is Parity?
A function that provides a check on a set of binary values to see if the data has changed during transmission