Computer programs are a set of step-by-step instructions used to teach the computer how to complete a task.
Computer programs are written using a specific programming language. Nowadays, most programmers would write code using a high-level programming language such as Python, C, C#, Java, Ruby or Basic.
If we were to dissect a computer program, we would find the following elements:
- Reserved Keywords & Built-in Functions
- Identifiers (e.g. for variables and subroutines)
- Values of different data types
- Computing Operators
- Punctuation signs
- Comments/Annotations
Let’s investigate these elements further… Click on the sub sections below to find out more.
Your Task
Your task is to identify all the different elements of the short program below, and drag them in the corresponding sections.
Anatomy of a Computer Program – Drag and DropOpen in New Window

John Von Neumann (1903-1957) was a Hungarian-American mathematician, physicist and computer scientist and a founding figure in computer science, with significant contributions to computing hardware design. 






Do you know your HTML tags used to create a webpage? Do you know how to use CSS to customise the look and feel of all the elements of this page? See how many HTML tags and how many CSS properties you can list in under 5 minutes by completing the following two quizzes.


