programfragment
nounUK /ˈprəʊ.ɡræm ˈfræɡ.mənt/
US /ˈproʊ.ɡræm ˈfræɡ.mənt/
A small piece of a computer program.
The teacher showed us a programfragment that prints a greeting on the screen.
OTHER MEANINGS
2. A short section of a larger software project that can be reused.
She saved the programfragment in a library for later use.
3. A broken or incomplete part of a program that does not run on its own.
The error came from a programfragment missing its closing bracket.
4. A small sample of code used in a lesson or tutorial.
Each programfragment in the book teaches one new idea.