💻 Computer Science · Topic 21 of 80

What Is Programming?

Programs are step-by-step instructions written in a language computers can run.

Interactive labFollow the idea step by step

About this topic

Programming is writing precise instructions, called code, that a computer can follow to solve a problem or perform a task. Programs are written in programming languages such as Python, JavaScript, Java and C, which are translated into machine code by a compiler or run line by line by an interpreter.

A program is built from a few core ideas: sequence (steps run in order), selection (choosing between options), iteration (repeating) and abstraction (naming and reusing pieces). The process usually follows a cycle of understanding the problem, planning with pseudocode or flowcharts, writing code, testing and fixing errors, and improving.

For instance, a program to calculate a tip asks for a bill, multiplies by 0.15, and prints the result. Computers do exactly what the code says, not what the programmer meant, so clear thinking matters more than typing speed. Programming powers websites, apps, games, medical devices and scientific research. A common misconception is that you must be a maths genius; mostly you need patience, logic and practice. Start with small programs, run them often and read error messages carefully.

Key ideas

  1. Source code, compiler or interpreter
  2. Syntax and semantics
  3. Languages like Python, JavaScript, Java

Quick check

Use cases: where What Is Programming? helps

Computing ideas run phones, search engines, games and the wider internet.

Frequently asked questions

What is What Is Programming??

Programs are step-by-step instructions written in a language computers can run.

What will I learn in What Is Programming??

Source code, compiler or interpreter. Syntax and semantics. Languages like Python, JavaScript, Java.

Is What Is Programming? part of Computer Science?

Yes. It is one of 80 Computer Science topics on LearnViz HighSchoolEdu, with 3 key ideas, a live animation and a quick check.

Does the What Is Programming? lab work on a phone or tablet?

Yes. The animation resizes to fit your screen and supports touch, so you can drag, tap and slide with your finger.

How should I study What Is Programming??

Read the summary and key ideas first, play with the interactive lab to see the idea in motion, then answer the quick check. If you get a question wrong, go back to the key idea it tests.

Do I need an account, and is my progress saved?

No account is needed. Marking a topic as learned is saved in your own browser, so it stays on that device and is not sent to a server.

More in Computer Science