Programming languages Flashcards

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

List two types of low level languages

A

machine language

assembly language

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

machine language (4)

A

processors only understand instructions written in 1s and 0s

computer programs are in binary form at the processing level

this is known as machine code or machine language

it is a low level language

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

assembly language (3)

A

low level language

each instruction is directly equivalent to one in machine code

words called mnemonics are used to replace the command represented as strings of binary in machine code

e.g. ADD is a mnemonic used to replace the binary command to add numbers together

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

high level language (4)

A

high level languages are programming languages that resemble human languages

they use key words, such as ‘print’, or ‘then’

they address the programming logic rather than dealing with hardware issues such as memory addressing

most programs are written in high level languages

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

use of low level languages (3)

A
  • assembly language is often used in programs in embedded systems (cameras, microwaves) as it can be used to directly control system hardware
  • they are used to write device drivers and real-time systems where speed is essential

-assembly languages are specific to each type of CPU
programs written for one type cannot be used on others

  • embedded systems - directly controls hardware
  • device drivers/real-time systems, speed
  • specific to types of CPU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

use of high level language (3)

A

-most software is developed using a high level language
it is less time consuming to write and quicker to test

  • programs are portable from one machine to another
  • most of them can be used with different types of CPU
  • software - quicker to write/test
  • programs portable between machines
  • used with different types of CPU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A program is being developed using a high level programming language.

a) Explain what is meant by a high level programming language. [2]
b) State two advantages of using a high-level language for software development [2]

A

a) it is similar to a natural human language
it uses key words such as ‘print’ ‘if’ and ‘then’
programs written in a high level language have to be translated into machine code to operate

b) it is quicker to develop and test the software
the software will be able to run on computers with different types of processor

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

State what is meant by an embedded system. [1]

A

an embedded system is a computer system built within a larger device in order to control it

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

Explain why assembly language is often used to write software for embedded systems. [2]

A

using assembly language allows hardware components of the device to be controlled directly

the software will be specific to the particular processor in the embedded system and will not need to be used on other types

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