1.2.4 Types of programming language Flashcards
what are programming paradigms?
different approaches to using a
programming language to solve a problem
what categories are programming paradigms split into?
-imperative
-declarative
what are the benefits of procedural programming?
-can be applied to a wide range of
problems.
-relatively easy to write and interpret
what are the drawbacks of procedural programming?
not reusable
what does STA mean?
storing the value in the accumulator at the given memory address
what does BRP mean?
branches to a given address if the value in the accumulator is positive (it is a conditional branch)
what is a class?
a template for an object that defines the state and behaviour of an object
(an object is an instance of a class)
what are benefits of object oriented languages?
-reusable
-security because encapsulation keeps sensitive data safe and protects an object’s internal state
what are weaknesses of object oriented languages?
-requires a different style of thinking which can be difficult for programmers accustomed to other
paradigms to pick up
-OOP may not be suited to all types of problems
-generally unsuitable for smaller problems