SuperExamSuperExam
Search papers…
Menu
DashboardBrowse papersRevision notesBooksSavedRevision packsMy progressAchievementsAI TutorMessages

Unlock worked solutions

Step-by-step answers by examiners. From €5/mo.

Try Premium free →
← Computer Science notes
Edexcel ·Computer Science·Cambridge IGCSE Computer Science

Programming Concepts

16 min read

Variables and constants, data types, sequence, selection and iteration, arrays, and procedures and functions.

Variables, constants and data types

    A variable is a named storage location whose value can change while the program runs.
    A constant holds a value that does not change (e.g. Pi ← 3.142).
    Declaring a variable reserves it and (in many languages) sets its data type.
Data typeStoresExample
Integerwhole numbers42, -7
Realnumbers with a decimal point3.14
Chara single character'A'
Stringtext (sequence of characters)"Hello"
BooleanTRUE or FALSETRUE

Viewing only

This content is free to read on superexams.com and cannot be printed or downloaded.

Read the full note — free

Create a free account to read this note in full. Every free account gets 2 complete revision notes — no card needed.

Sign up free →Log in

More Computer Science notes

Data Representation

Data Compression & Encryption

Data Transmission

Hardware: the CPU & the Fetch–Decode–Execute Cycle