💻 Computer Science · Topic 40 of 97

Programming Paradigms

Programming paradigms are styles of programming, such as procedural, object-oriented and functional.

▶ Interact

Play with the controls to see the idea in action.

Loading animation…

📘 Learn

Programming paradigms are styles of programming, such as procedural, object-oriented and functional.

  • Procedural uses step-by-step instructions
  • Object-oriented uses objects and classes
  • Different problems suit different styles

🧠 Quick quiz

Three questions. Score 2 or more to complete the topic.

What is Programming Paradigms?

Within Computer Science, which covers algorithms, programming, data, networks, hardware and safe, responsible use of technology, this topic explains Programming Paradigms. Computing topics explain how software, hardware and data work, with diagrams and models that show each step in order.

Check that you can explain Programming Paradigms in your own words and give one example from everyday life. If you can do that, you have understood the core idea.

Understanding Programming Paradigms helps you design, test and explain programs, websites and systems, from small projects to exam questions.

Programming Paradigms in detail

A programming paradigm is a style or approach to programming. Procedural programming organises code as a sequence of instructions grouped into procedures and functions, as in C and Python scripts. Object-oriented programming models the world as objects with data and methods, as in Java.

Functional programming treats computation as evaluating functions without changing state (Haskell), and declarative programming states what is wanted rather than how (SQL). Many languages support several styles. Choosing a paradigm depends on the problem: events suit GUIs, and objects suit large simulations.

How the interactive helps you understand Programming Paradigms

Click a card to flip it and reveal the answer, then move on to the next one.

Before you change anything, predict the result. Then change one value at a time and check whether your prediction was right. This is a quick way to build a correct mental model of Programming Paradigms.

Real-life uses and examples

Common mistakes to avoid

Frequently asked questions about Programming Paradigms

What is Programming Paradigms?

Programming paradigms are styles of programming, such as procedural, object-oriented and functional.

What are the most important points about Programming Paradigms?

The main points are: Procedural uses step-by-step instructions; Object-oriented uses objects and classes; Different problems suit different styles.

Why is Programming Paradigms useful?

Understanding Programming Paradigms helps you design, test and explain programs, websites and systems, from small projects to exam questions.

How can I practise Programming Paradigms?

Open the interactive at the top of this page and change the controls one at a time. Predict the result before each change, then take the three-question quiz. A score of two or more marks the topic as complete on this device.

Which topics are related to Programming Paradigms?

Related topics in Computer Science include Compilers and Interpreters, Introduction to CSS, How the Internet Works.

← PreviousRecursionNext →Object-Oriented Programming

Keep exploring Computer Science