Skip to content
Learn Netverks

Lesson

Step 2/5 40% through track

what-is-a-program

What is a program?

Last reviewed Jun 1, 2026 Content v20260601
Track mode
none
Means
Read / quiz
Reading
~1 min
Level
beginner

This lesson

This lesson covers What is a program? as part of the Intro to Programming track.

Every language track assumes you know what code, input, and output mean.

Bootcamps, self-paced learning, and first internships where fundamentals are assumed.

Read, complete the self-check without peeking, then use MCQs to confirm understanding.

Immediately after the previous lesson in this track.

A program is a precise set of instructions that a computer executes. Source code is human-readable text; the machine runs a translated form (interpreted line-by-line or compiled ahead of time).

Input, process, output

Most beginner programs follow IPO:

  • Input — keyboard, files, sensors, HTTP requests.
  • Process — calculations, decisions, loops, data transforms.
  • Output — text on screen, files, API responses, HTML sent to a browser.

Syntax vs semantics

Syntax is whether tokens are valid (if (x < 0)). Semantics is what happens when it runs (does it handle negative numbers correctly?). Both matter in interviews and code review.

Self-check

  1. Give an example of input and output for a “hello name” CLI program.
  2. What is one syntax error and one logic (semantic) error?

Interview prep

Why do small syntax errors sometimes cause big runtime failures?

Languages have strict grammars; a parser or runtime may misinterpret the rest of the file after a single invalid token, producing cascading errors that look worse than the root cause.

What is the difference between syntax and semantics?

Syntax is whether tokens are valid. Semantics is what a valid program means when executed—two snippets can be syntactically valid but one be logically wrong.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • What part of this lesson needs a second read?
  • What would you try differently in a real project?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump