Back to marketplace

3.3 Programming Paradigms

No description yet. This curated deck is ready for daily study.

Total cards: 17•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (17)

#1
Front (Question)

What is a programming paradigm

Back (Answer)

A style or way of programming

#2
Front (Question)

Imperative programming

Back (Answer)

• Languages which support imperrative programming consist of series of instructions that tell the computer what to do with the input in order to solve the problem • Procedural programming is imperative programming with procedure calls

#3
Front (Question)

Structured programming

Back (Answer)

• A kind of procedural programming paradigm which uses the constructs sequence, selection and iteration and recursion rather than goto statements • Modular techniques are used to split a large program into manageable chunks

#4
Front (Question)

Declarative programming

Back (Answer)

Programming where you write statements that describe the problem to be solved, and the language implementation decides the best way of solving it (SQL)

#5
Front (Question)

Logic programming

Back (Answer)

A form of declarative programming which expresses the logic of a computation without expressing its control flow. They mostly consist of logical statments

#6
Front (Question)

Backtracking

Back (Answer)

Backtracking goes back to the last decision point and try another route until either the goal is achieved or there are no further routes to try Backtracking is important feature of declarative programming

#7
Front (Question)

Applications of declarative programming

Back (Answer)

It is useful for programming expert systems, which embody the facts and rules about a particular field of knowledge It is also useful for processing natural language

#8
Front (Question)

OOP

Back (Answer)

• OOP was made because to abstract details of implementation away from the user • The code is designed to be reusable and easy to maintain • Mainly takes over procedural programming

#9
Front (Question)

Features OOP

Back (Answer)

• Thinking about different methods that the object can represent, for example required tasks • They also can have different attributes specific to that object • Data items are called ‘objects’, where objects are instances of the class

#10
Front (Question)

Encapsulation

Back (Answer)

Attributes are usually only classified as private, so only public methods can only be used as getters

#11
Front (Question)

Information hiding

Back (Answer)

The object’s attributes are hidden, and they can only changed or accessed through the object’s methods

#12
Front (Question)

What are methods used for

Back (Answer)

To set setters and retrieve getters are used in order to get an object’s attributes. In order to interact with an object, its methods must be accessible (public)

#13
Front (Question)

Inheritance

Back (Answer)

• Used when objects are related to other ones in some type of way. • Each class may even have their own attributes and methods to something that was also inherited from a super class • The subclass has the same attributes as the the superclass

#14
Front (Question)

Polymorphism

Back (Answer)

• An inherited class may have methods and attributes that do not exist in the parent class • Polymorphism refers to subclasses adopting different methods (many different ways of doing the same thing specific to that class)

#15
Front (Question)

Functional

Back (Answer)

Functions are used as the fundamental building blocks of a program - Statements are written as a series of functions which accept input data as arguments and return and output

#16
Front (Question)

Procedural programming

Back (Answer)

• A series of instructions that tell the computer what to do with the input in order to solve the problem • Widely used in educational environments, being relatively easy to learn and applicable to a wide variety of problems

#17
Front (Question)

Advantages of the OOP

Back (Answer)

• Forces designers to go through an extensive planning phase which makes for better designs with fewer weaknesses • Encapsulation • A programmer may not need knowledge of how the class methods are used in order to actually use them • Can be re-used easily • Provides a good framework for code libraries with a range of software components that can easily by adapted by a programmer • Software maintenance is usually easier