Designing, Creating & Refining Algorithms (OCR GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
15 cards from this deck
ShowHide
Practise the cards
15 cards from this deck
Algorithm
Algorithm
Sequence of steps to solve a problem
3 ways to represent algorithms
3 ways to represent algorithms
Pseudocode, flowcharts, programming languages
Inputs in an algorithm
Inputs in an algorithm
Data items provided to the program
Processes in an algorithm
Processes in an algorithm
Operations/calculations performed on inputs
Outputs in an algorithm
Outputs in an algorithm
Final result produced after processing
Sequence structure
Sequence structure
Following instructions in exact order they appear
Selection structure
Selection structure
Decision-making based on a condition (e.g., IF-ELSE)
Iteration structure
Iteration structure
Repeating same instructions multiple times (loops)
Flowchart
Flowchart
Diagram showing steps in a process using shapes & arrows
Trace table
Trace table
Technique to follow algorithm step-by-step to check behaviour
Syntax error
Syntax error
Code breaks rules of programming language
Logic error
Logic error
Code runs but doesn't produce expected result
Runtime error
Runtime error
Error occurring while program is running (e.g., divide by 0)
Nesting
Nesting
Putting one structure inside another (e.g., IF in loop)
Casting
Casting
Converting one data type into another
