Structural components of programs (Edexcel GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
14 cards from this deck
ShowHide
Practise the cards
14 cards from this deck
Structural components
Structural components
Building blocks that make up computer programs
Constants
Constants
Fixed values that never change during program execution
Naming convention for constants
Naming convention for constants
Written in ALL_UPPERCASE letters
Variables
Variables
Storage boxes with names that hold changeable values
Declaration
Declaration
Creating a variable & specifying its data type
Initialisation
Initialisation
Giving a variable its first value
Assignment statement
Assignment statement
Giving a value to a variable using =
= sign in programming
= sign in programming
Store this value (not 'equal to' like in maths)
Selection structures
Selection structures
Allow programs to make decisions using conditions
Keywords for selection
Keywords for selection
if, elif, else
Repetition/iteration
Repetition/iteration
Repeating actions using loops (for/while)
input() function
input() function
Gets text/data from the keyboard
print() function
print() function
Displays information on the screen
Parameters
Parameters
Values passed into functions to customise how they work
