FlashKeepers

Programming Concepts · College · College and University

Programming Paradigms Overview

Imperative, declarative, object-oriented, functional, logic and event-driven paradigms and how languages combine them.

About this set

34 basic cards for College Programming Concepts. It opens with "What is imperative programming?" and "What is declarative programming?". Study it alongside the other College sets below.

34 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What is imperative programming?
Show answerA paradigm where you specify the exact steps and instructions a computer must execute to solve a problem, focusing on how to do something rather than what the end result should be.
What is declarative programming?
Show answerA paradigm where you describe what you want the result to be without explicitly stating how the computer should achieve it.
What is object-oriented programming (OOP)?
Show answerA paradigm that organizes code around objects that contain both data (attributes) and behavior (methods), modeling real-world entities and their interactions.
What is functional programming?
Show answerA paradigm that treats computation as the evaluation of mathematical functions, emphasizing immutability and avoiding changing state and side effects.
What is logic programming?
Show answerA paradigm where you state facts and rules about a problem, and the computer uses logical inference to find solutions that satisfy those rules.
What is event-driven programming?
Show answerA paradigm where the program flow is determined by user actions, messages, or sensor outputs, with code triggered in response to specific events.
How does imperative programming answer the question 'how do I accomplish this task'?
Show answerBy providing explicit sequences of commands and state changes that transform initial conditions into the desired result.
How does declarative programming answer the question 'what do I want'?
Show answerBy specifying the properties and constraints of the desired result, leaving implementation details to the underlying system or compiler.
What is immutability in functional programming?
Show answerThe principle that once a value is created, it cannot be changed. Instead of modifying data, functional programs create new data structures with the desired changes.
What are first-class functions?
Show answerFunctions treated as values that can be passed as arguments to other functions, returned from functions, and assigned to variables, central to functional programming.
What is encapsulation in object-oriented programming?
Show answerThe bundling of data (attributes) and methods (functions) into a single unit called an object, along with hiding internal details and controlling access through public interfaces.
What is the relationship between classes and objects in OOP?
Show answerA class is a blueprint or template that defines the structure and behavior, while an object is a specific instance of that class with its own data values.
What is unification in logic programming?
Show answerThe process of making two terms identical by finding values for variables, used to match patterns and solve equations in logic programs.
What is backtracking in logic programming?
Show answerA search mechanism where the program retreats from a failed path and tries alternative solutions by undoing variable bindings and exploring other possibilities.
What triggers code execution in event-driven programming?
Show answerExternal or internal events such as user interactions (clicks, key presses), system signals, messages, or sensor data that activate registered event handlers or callbacks.

19 more cards in the app

Study this set free