1.2.4 Flashcards

1
Q

What is a programming paradigm?

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 are imperative paradigms?

A

Involve identify the actions that need to be performed to solve the problem

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

What are procedural languages?

A

These use a sequence of instructions that are carried out step by step

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

What are OOP languages?

A

These use the idea of classes and objects which have certain attributes

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

What are declarative programming paradigms?

A

These focus on stating the desired result

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

What are functional paradigms?

A

These reuse a set of functions which make up the core program

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

What are logical paradigms?

A

These work by defining a set of facts and rules for the problem and using these to create a solution

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

What is assembly language?

A
  • next step up from machine code
  • converted to machine code using an assembler
  • use easy to remember mnemonics
  • processor specific
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is immediate addressing?

A

The operand is the actual data

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

What is direct addressing?

A

The operand is the memory address of the data

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

What is indirect addressing?

A

The operand is the memory address of the address of the data

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

What is indexed addressing?

A

The operand is added to the index register

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

What is instansiation ?

A

Creating an instance of a class

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

What is encapsulation?

A

Where attributes are declared as private so they can only be altered by public methods

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

What is polymorphism?

A

Objects can behave differently depending on their class

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