Search Header Logo
Programming Languages. (II)

Programming Languages. (II)

Assessment

Presentation

English, Computers

University

Practice Problem

Medium

Created by

Claudio Cárdenas

Used 34+ times

FREE Resource

10 Slides • 9 Questions

1

Programming Languages

Lesson 2

Slide image

2

High and Low Level Languages

  • A computer program is a list of instructions that enable a computer to perform a specific task.

  • Computer programs can be written in high and low level languages, depending on the task and the hardware being used.

  • So, what’s the difference between high level language and low level language?

3

High Level Languages

  • When we think about computer programmers, we are probably thinking about people who write in high-level programming languages.

  • High level languages are written in a form that is close to our human language, enabling to programmer to just focus on the problem being solved.

Slide image

4


  • No particular knowledge of the hardware is needed as high level languages create programs that are portable and not tied to a particular computer or microchip.

  • These programmer friendly languages are called ‘high level’ as they are far removed from the machine code instructions understood by the computer.

  • Examples include: C++, Java, Pascal, Python, Visual Basic.

Slide image

5

Advantages of high-level languages

  • Easier to modify as it uses English like statements

  • Easier/faster to write code as it uses English like statements

  • Easier to debug during development due to English like statements

  • Portable code – not designed to run on just one type of machine

Slide image

6

Low Level Languages

  • Low level languages are used to write programs that relate to the specific architecture and hardware of a particular type of computer.

  • They are closer to the native language of a computer (binary), making them harder for programmers to understand.

Slide image

7

Examples of low level language:

  • Assembly language

  • Machine code

Slide image

8

Assembly Language

  • Few programmers write programs in low level assembly language, but it is still used for developing code for specialist hardware, such as device drivers.

  • It is easyly distinguishable from a high level language as it contains few recognisable human words but plenty of mnemonic code.

Slide image

9

Advantages of assembly language

  • Can make use of special hardware or special machine-dependent instructions (e.g. on the specific chip)

  • Translated program requires less memory

  • Write code that can be executed faster

  • Total control over the code

  • Can work directly on memory locations

10

Machine Code

  • Programmers rarely write in machine code (binary) as it is difficult to understand.

Slide image

11

Multiple Choice

Question image

Which generation?

1

Machine Code - Low

2

Assembly Code - Low

3

High Level

12

Multiple Choice

Question image

Which generation?

1

Machine Code - Low

2

Assembly Code - Low

3

High Level

13

Multiple Choice

Question image

Which generation?

1

Machine Code - Low

2

Assembly Code - Low

3

High Level

14

Multiple Choice

A disadvantage of programming in Low Level is
1
No technical skill is required
2
Needs to be translated before it can be executed
3
Difficult for humans to debug

15

Multiple Choice

An advantage of programming in Low Level is
1
Easier for us to understand
2
Easier to debug
3
Programs require less file space

16

Multiple Choice

Python is an example of a High Level programming language

1

True

2

False

17

Multiple Choice

Which level would create the easiest code for humans to understand?

1

Low

2

Assembly

3

High

18

Multiple Choice

Which level of a programming language is Assembly Code?

1

Low

2

High

19

Multiple Choice

Which level of a programming language is Machine Code?

1

Low

2

High

Programming Languages

Lesson 2

Slide image

Show answer

Auto Play

Slide 1 / 19

SLIDE