1.2.4 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Programming Paradigm

A

A style of computer programming . Each programming language support tackling problems in different ways

4 major programming paradigms :
- Procedural
- Declarative
- Object-orientated
- Functional

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

Procedural Programming

A
  • Able to be applied to a wide range of problems
  • Easy to write and interpret
  • Written as a sequence of instructions and which are then carried out in a step-by-step manner
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Object-oriented Programming

A

Designed to :
- Abstract details of implementation away from the user
- Make code reusable
- Make programs easy to maintain

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

Declarative Programming

A

User writes statements that describe the problem that needs to be solved and the language decides the best way of solving it

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

Functional Programming

A

Statements are written as a series of functions which accept input data as arguments and return an output

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

Procedural Programming Techniques

A

Uses a list of instructions telling a computer , step-by-step , what to do and usually has a linear order of execution from the first statement to the second

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

Assembly Language

A

A low-level language which closely reflects how opcode and operands work

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

Mnemonics

A

Assembly language instructions use abbreviations called mnemonics

For example :

Load ➡️ LDA
Store ➡️ STA
Subtract ➡️ SUB

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

LMC

A

BRA - Branch always
BRZ - Branch if 0
BRP - Branch if 0 or positive
HLT - Ends LMC program
DAT - Data location

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