Data types, variables and constants (Edexcel GCSE Computer Science): Flashcards

📚Flashcards
Data types, variables and constants
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

13 cards from this deck

Show

What are variables?

Named storage areas in memory with specific data type

Constants

Named storage areas whose values never change during program execution

Key characteristic of variables

Contents can change but data type stays the same

Integer data type

Stores whole numbers

Real or Float data type

Stores numbers with decimal points/fractional parts

Boolean data type

Stores only True or False values

String data type

Stores text values between single or double quotes

Declaration

Allocates memory space for a variable

Initialization

Sets the first value in memory space

Implicit data typing

Data type determined from first assignment

Constants naming convention

Written in UPPER CASE letters

Why use constants

Reduces errors; only define value once

Why data types matter

Computer knows memory to allocate & operations allowed

Join 100,000+ GCSE students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.