High-level code and Low-Level coding languages: Flashcards

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

What is machine code?

A

= Binary representation of instructions.
= Format the CPU can decode and execute.
= Has an operation code (opcode) instruction.
= Address and data to use (operand).

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

What are low-level languages?

A

= Written in assembly language.
= Translated by an assembler into machine code.
= Used for embedded systems, device drivers where instructing the hardware directley is needed.
= ONE INSTRUCTION IS TRANSLATED INTO ONE MACHINE CODE INSTRUCTION.

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

What are the advantages of low-level code?

A

= Memory efficient.
= Code is fast to execute.
y.

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

What are the disadvantages of low-level code?

A

= Code is harder to write and understand.

= = = Works on one type of processor + Works with memory directl

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

What are high-level languages?

A

= Written in source code (PYTHON, C++,JAVA, VISUAL BASIC).
= Translated by a compiler or interpreter into machine code.
= Uses commands similar to english: easier to write code.
= ONE SOURCE CODE INSTRUCTION TRANSLATES TO MANY MACHINE CODE INSTRUCTIONS.

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

What are the advantages of high-level languages?

A

= Code is quicker and easier to understand and write.
= Runs on different types of processors.
= Lots of data structures to use.

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

What are the disadvantages of high-level code?

A

= Code can be slower to execute if not optimised.

= Less memory efficient.

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