codesegment

noun
UK /ˈkəʊdˌsɛɡmənt/
US /ˈkoʊdˌsɛɡmənt/

A small piece of a computer program.

The teacher showed us a code segment that makes the robot move.


OTHER MEANINGS

2. A section of written instructions that a computer follows.

He fixed the bug in the first code segment.

3. A part of a secret message written in symbols.

The spy read only one code segment before hiding the paper.

4. A short block of code used in a lesson or test.

Each code segment in the quiz had one mistake.