4.6.2 Classification of Programming Languages

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/14

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

15 Terms

1
New cards

Why were low-level languages written?

The limited speed and memory of early computers

- Directly manipulated the processor

- Required a great deal of effort

- Prone to errors

2
New cards

What are the types of low level language?

- Machine code

- Assembly language

3
New cards

What is machine code?

Code that directly manipulates the processor

→ Only uses 1s and 0s to represent instructions

4
New cards

What makes up machine code?

- Opcode (instruction)

- Operand (data used to carry out the instruction

5
New cards

What are the advantages of using machine code?

- Very powerful due to its direct manipulation

- No need to translate

6
New cards

What are the disadvantages of using machine code?

- Very long

- Difficult to read and understand

- Prone to errors

- Difficult to debug

7
New cards

What is machine code suited to?

Embedded systems

- Low processing power

- Speed of execution is important

8
New cards

What is assembly language?

Language that makes use of mnemonics in place of binary instructions

9
New cards

What are the advantages of using assembly language?

- More compact

- Less error-prone

- 1-to-1 correlation to machine code

10
New cards

What is a high-level language?

A programming language that is close to human speech

→ e.g. Python

11
New cards

What are the advantages of using high level languages?

- Easier to learn and understand

- Easier to debug

- Not platform specific

12
New cards

What are the disadvantages of high-level languages?

- Must be translated into machine code before use

- Object code may run slower

- Cannot manipulate individual bits

13
New cards

What makes high-level programming easier to debug?

- Named variables

- Indentation

- Commenting

- In-built functions

14
New cards

What is an imperative language?

Focus on how a problem should be solved

→ Requires step-by-step instructions

15
New cards

What is a declarative programming language?

Focus on what needs to be done, rather than how to do it