Flashcards
Primitive Data Types
Cards in this deck (5)
- 1IntegerA whole number - may be positive or negative (often 32 bits)
- 2Real/FloatA floating-point number - may be positive or negative (again, often 32 bits - some languages have a 64-bit floating-point type known as a double)
- 3BooleanCan only take the value of TRUE or FALSE (may be capitalised differently in other languages)
- 4CharacterAny single item found on the keyboard - may be letters, numbers, punctuation or otherwise.
Represented by a character set, so the character '4' will be different from the integer 4 or the float 4.0.
Tends to be represented in single quotes ('') - 5StringA line of characters
Denoted by double quotes ("")
Information
- Description
- A level OCR A level Computer Science (Topic 6 - Data Types) Flashcards on Primitive Data Types, created by James Norman on 11/02/2020.
- Created by
- James Norman
- Views
- 3
- Rating