Structural components of programs (Edexcel GCSE Computer Science): Flashcards

📚Flashcards
Structural components of programs
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

14 cards from this deck

Show

Structural components

Building blocks that make up computer programs

Constants

Fixed values that never change during program execution

Naming convention for constants

Written in ALL_UPPERCASE letters

Variables

Storage boxes with names that hold changeable values

Declaration

Creating a variable & specifying its data type

Initialisation

Giving a variable its first value

Assignment statement

Giving a value to a variable using =

= sign in programming

Store this value (not 'equal to' like in maths)

Selection structures

Allow programs to make decisions using conditions

Keywords for selection

if, elif, else

Repetition/iteration

Repeating actions using loops (for/while)

input() function

Gets text/data from the keyboard

print() function

Displays information on the screen

Parameters

Values passed into functions to customise how they work

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

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