1.2.4 Types of programming language Flashcards

1
Q

what are programming paradigms?

A

different approaches to using a
programming language to solve a problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what categories are programming paradigms split into?

A

-imperative
-declarative

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are the benefits of procedural programming?

A

-can be applied to a wide range of
problems.
-relatively easy to write and interpret

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what are the drawbacks of procedural programming?

A

not reusable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what does STA mean?

A

storing the value in the accumulator at the given memory address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what does BRP mean?

A

branches to a given address if the value in the accumulator is positive (it is a conditional branch)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is a class?

A

a template for an object that defines the state and behaviour of an object
(an object is an instance of a class)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what are benefits of object oriented languages?

A

-reusable
-security because encapsulation keeps sensitive data safe and protects an object’s internal state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what are weaknesses of object oriented languages?

A

-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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly