Lesson 1 of 1 · GCSE level, ages 14 to 16
Common data types
By the end: I can identify different data types and explain how they are processed.
Key learning points
- Common data types include integers, floating point numbers, strings, and Booleans.
- Casting allows data types to be converted.
- Using incorrect data types can cause errors.
Keywords
- data type
- defines the kind of data a computer can store and the actions you can perform on it
- casting
- changing the data type of a piece of data from one type to another
A common mistake
Mistake: The order of instructions in a program doesn't really matter, as long as all the instructions are there.
In fact: Computers execute code line by line, in the order it's written. If you change the sequence, you're changing the steps the computer takes, and that will change the output.
Check what you learned
From Oak National Academy's exit quiz. Choose every answer that is right.
A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0. Read the licence