Computer Science Programming Basics - Data Types 0.0 / 5 ? ComputingProgrammingRepresenting dataGCSENone Created by: x.precious.xCreated on: 12-05-20 10:00 The five main data types of programming languages Integer, Real, Boolean, Character and String 1 of 22 The characteristic of this data type is whole numbers only Integer 2 of 22 The characteristic of this data type is numbers that have a decimal part Real 3 of 22 The characteristic of this data type is can only take one or two values Boolean 4 of 22 The characteristic of this data type is a single letter, number or symbol Character 5 of 22 The characteristic of this data type is used to represent text in a collection of characters String 6 of 22 The typical amount of memory taken up by this data type is 2 or 4 bytes Integer 7 of 22 The typical amount of memory taken up by this data type is 4 or 8 bytes Real 8 of 22 The typical amount of memory taken up by this data type is 1 bit but usually 1 byte Boolean 9 of 22 The typical amount of memory taken up by this data type is 1 byte Character 10 of 22 The typical amount of memory taken up by this data type is 1 byte for each character String 11 of 22 Using the correct data types helps the code with this Memory efficiency, robust and predictability 12 of 22 Weakly typed languages can lead to this Unpredictable results and less errors 13 of 22 Strongly types languages can lead to this Predictable results but more errors 14 of 22 This is used to change the data type Casting 15 of 22 Definition of casting Manually converting between data types 16 of 22 You can use the ASC() and CHR() functions to find this The ASCII number 17 of 22 This data type should be used to store the initial of a first name Character 18 of 22 This data type should be used to store a surname String 19 of 22 This data type should be used to store an age Integer 20 of 22 This data type should be used to store a height Real 21 of 22 This data type should be used to store male or female Boolean 22 of 22
Comments
No comments have yet been made