Programming Languages Flashcards

1
Q

What is a computer program?

A

A sequence of instructions that a computer can interpret and execute to accomplish a task or achieve a particular result

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

List 3 levels pf programming languages

A
Machine language (low level)
Assembly language (intermediate level)
English language (high level)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Describe machine language

A

A program written as a series of binary codes that are understandable by the CPU

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

Describe assembly language

A

The source code of programs consists of mnemonic instructions eg move.w#$2,05, each of which corresponds directly to a machine instruction for a particular processor

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

Describe high language

A

Independant of the internal machine code of any particular computer and uses simple english like terms and statements that are easier for the programmer to use and understand. It must be converted into machine language by a compiler or interpreter

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

Describe the purpose of a compiler

A

Converts the entire program source code into the machine language executable code all at once

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

Describe the purpose of an interpreter

A

Reads the high language one instruction at a time, converting instruction into machine language and then executing it, then moving onto the next instruction

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

Describe how a compiler is different from an interpreter

A

compiler converts entire program source into executable code, while an interpreter converts one line of source code (one instruction) at a time, executes the machine code and moves to the next instruction

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