2.5 Programming Languages & IDEs Flashcards

1
Q

What are the instructions that tell a computer what to do written in ?

A

Machine code

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

What is machine code ?

A

A series of numbers written in binary or hexadecimal.

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

What are high-level languages ?

A

languages that are close to the spoken and written language of the programmer.

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

What are the cons of machine code ?

A
  • Difficult to learn
  • Program in
  • Debug
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is source code ?

A

Any program written in a high level language

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

What must happen to source code first ?

A

Translated to machine code before understanding and executing

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

What are low level languages ?

A

A computer programming language which closely represents machine language

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

What are the two types of low level languages ?

A
  • Machine code
  • Assembly
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the pros of machine code ?

A
  • Greater control
  • More complex commands
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Where does assembly language sit ?

A

Between machine code and high level language.

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

What do high level languages use to form instructions ?

A

Statements

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

What does assembly use to form instructions ?

A

Mnemonics

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

What are the pros of using mnemonics ?

A
  • Easier to understand and debug than machine code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is opcode ?

A
  • Operation code
  • Specifies instructions that can executed by a CPU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is operand ?

A

Data that is manipulated by the CPU/processor according to the given opcode

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

What must source code first be changed to ?

A

Object code

17
Q

What are the three types of translators ?

A
  • Compilers
  • Interpreters
  • Assemblers
18
Q

What is the feature of a compiler ?

A
  • Translates source code as a whole in one go.
19
Q

What are pros of a compiler ?

A
  • Run quickly
  • Supplied as an executable file
  • Optimise code (Use less memory)
20
Q

What are cons of compilers ?

A
  • Don’t usually spot errors
  • Source code must be recompiled
  • Source code compiled on one platform won’t run on another
21
Q

What are features of an interpreter ?

A

translates source code into object code one
instruction at a time - Interpretation

22
Q

What are the pros of Interpreters ?

A
  • Executed as soon as translated
  • Require less available memory
  • Spot errors quickly
23
Q

What are cons of of Interpreters ?

A
  • Run more slowly
  • Don’t produce an executable file
  • Don’t optimise code
  • Translated every time it’s run
24
Q

What are features of an IDE ?

A
  • Editors
  • Run-time environments
  • Auto line numbering
  • Colour coding
  • Variable tracing
  • Auto-correct/suggest/indent
  • Interpreters
  • Breakpoints
25
Q

What is a Virtual Machine ?

A

An emulation of a computer system.