Programming Languages Flashcards

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

What is machine code?

A

Commands that the CPU executes, represented as 1s and 0s

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

What is the opcode of instructions for the microprocessor?

A

The opcode specifies the operation that is to be performed.

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

What is the operand of instructions for the microprocessor?

A

The operand is the data or the memory location where the dat can be found

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

What does an assembler do?

A

Translate assembly language programs into machine code

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

What is a high level language?

A

A programming language that is much closer to english that machine code

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

Faster program development
Easier to remember the commands
Portable between different machines, as each assembly language is specific to a particular CPU

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

What are the advantages of using low level languages?

A

They require less memory and execution time than high level languages
They allow the programmer to directly control system hardware

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

What is the difference between a complier and a translator?

A

A compiler reads the whole code, and if there are no errors, translates the code into machine code. A interpreter reads the code one line at a time, converts it into machine code and executes it.

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