Fundamental Programming Concepts (OCR GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
13 cards from this deck
ShowHide
Practise the cards
13 cards from this deck
Variable
Variable
Named storage location in memory holding changeable data
Constant
Constant
Named value that doesn't change during program execution
Key difference: variable vs constant
Key difference: variable vs constant
Variable value can change; constant value stays fixed
Operators
Operators
Symbols that perform operations on variables or values
Arithmetic operators
Arithmetic operators
- (add), - (subtract), * (multiply), / (divide)
Comparison operators
Comparison operators
== (equal), != (not equal), < (less), > (greater)
Boolean operators
Boolean operators
AND, OR, NOT
Inputs
Inputs
Data/values user or system provides to program during execution
input() function purpose
input() function purpose
Captures user input in most high-level languages
Outputs
Outputs
Results/info program sends to user or another system
print() function purpose
print() function purpose
Displays output in many programming languages
Assignment
Assignment
Process of storing a value in a variable using =
Assignment operator
Assignment operator
=
