Inference engine
The part of an expert system that reasons: it matches the user's answers and the knowledge base against the rule base to reach a conclusion. It is the 'brain' of the system.
Understanding Inference engine in IGCSE Computer Science Paper 1
What it does: The inference engine looks at the answers so far and the rules, then decides what the interface should ask next. The inference engine is the reasoning part. The knowledge base only stores the facts it uses. It compares the answers and facts with the rules in the rule base to work out a conclusion.
Common mistakes: The inference engine needs the user's answers as input, so the line should be INPUT answer FROM user. OUTPUT would send data out instead of reading it in. The user's answers come in through the expert system interface, not from the rule base. The rule base only holds the rules. It should be READ answers FROM interface.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 662–678) and word search (Modules 652–678).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
inference engineFill in the Blanks
Spot the Error
Student with a class code? Join your class →