This introduction covers Different Kinds of Data within Data Types for GCSE Computer Science. Revise Data Types in 3.2 Programming for GCSE Computer Science with 19 exam-style questions and 10 flashcards. This is a high-frequency topic, so it is worth revising until the explanation feels precise and repeatable. It is section 2 of 9 in this topic. Use this introduction to connect the idea to the wider topic before moving on to questions and flashcards.
Different Kinds of Data
Just as you wouldn't store milk in a paper bag, computers store different kinds of data differently. An integer is a whole number (like counting apples: 1, 2, 3). A real/float has decimal places (like money: £19.99). A string is text (like a name: "Alice"). A boolean is true/false (like a light switch: on or off). A character is a single letter ('A'). Choosing the right type matters!
Practice questions for Data Types
Which data type is most appropriate for storing a student's age?
A programmer is creating a system to track gym members. State the most appropriate data type for each of the following and justify your choice: (a) the member's surname, (b) the number of visits this month, (c) whether the membership is active.