Data Types (AQA GCSE Computer Science): Flashcards
Practise the cards
15 cards from this deck
ShowHide
Practise the cards
15 cards from this deck
Data types
Data types
Categories telling computer what kind of data to store & how much memory is needed
Five essential data types for GCSE
Five essential data types for GCSE
Integer, Real, Boolean, Character, String
Integer data type
Integer data type
Whole numbers (positive, negative, or zero), no decimal points
Typical uses of integers
Typical uses of integers
Counting, scores, ages, quantities without fractional parts
Real (floating point) data type
Real (floating point) data type
Numbers that include decimal points or fractions
Typical uses of real numbers
Typical uses of real numbers
Measurements, prices, percentages, fractional calculations
Boolean data type possible values
Boolean data type possible values
Only True or False
Typical uses of Boolean values
Typical uses of Boolean values
Storing condition results, tracking yes/no situations
Character data type
Character data type
Single letter, number, symbol, or space (needs quotation marks)
String data type
String data type
Collection of characters grouped together (needs quotation marks)
Character vs String difference
Character vs String difference
Character holds exactly one item, string holds multiple
Variable definition
Variable definition
Labeled container holding data that can change during program
Variable names can contain
Variable names can contain
Letters, numbers, and underscores
Variable names cannot start with
Variable names cannot start with
A number
Constant definition
Constant definition
Like variable but value cannot change once assigned
