Hardware And Software Topic3 Flashcards

1
Q

Machine code

A

A computer programming language consisting of binary or hexadecimal instructions which a computer can respond to directly
A typical instruction holds an operation code

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

An instruction set

A

All the instructions that a computer can understand and execute
Each instruction is held in 8 bits, with 4 bits for the opcode and 4 bits for the operand, the Computer can execute 16 different instructions.

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

assembly language advantages and disadvantages

A

Adv:
It is much easier to write,understand and debug programs in Assembly language
Disad:
The assembly code has to be translated into machine code by an assembler

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

Advantages of high-level vs low-level languages

A

Much easier and faster to write, debug and maintain programs
Different high-level languages have been written specifically for different types of problem
High level language programs are portable - a program written for one type of computer can be recompiled for a different type of computer

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

Disadvantages of high level vs low-level languages

A

The object code may run slower than assembly code or machine code
The object code may occupy more space in RAM- which can be a problem in embedded systems with a small amount of memory
Most high-level languages do not have statements to allow the programmer to manipulate individual bits - essential n some applications

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