2.5 - Programming Languages & IDE's Flashcards

1
Q

What is a High Level Language?

A
  • Source code
  • Translated by a compiler/interpreter into machine code
  • Quicker & easier to write/understand
  • Will run on different types of processors
  • Less memory efficient
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Low Level Language?

A
  • Assembly language
  • Translated by an assembler into machine code
  • Harder to write/understand
  • Only works on one type of processor
  • Works directly with memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the difference between HLLs & LLLs?

A

HLL: Translated by compiler/interpreter to machine code
LLL: Uses mnemonics, translated by assembler to machine code, harder to write/understand

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

What are the three main translators?

A
  • Compilers
  • Interpreters
  • Assemblers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the purpose of translators?

A

To convert source code into object code so the computer can understand it

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

What is a compiler?

A
  • Translates source code from HLL to object code then machine code
  • Whole program is translated into machine code before it’s run
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an interpreter?

A
  • Translates source code from HLL to machine code
  • Translated line by line as it’s running
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What’s the difference between compilers and interpreters?

A

Compiler: Translates code all at once
Interpreter: Translates code line by line

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

What are some advantages of a compiler?

A
  • No need for translation software at runtime
  • Speed of execution is faster
  • Code usually optimised
  • Original source code hidden
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are some disadvantages of a compiler?

A
  • Program won’t run with syntax errors in code - more difficult to write
  • Code needs to be recompiled when changed
  • Designed for a specific type of processor
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are some advantages of an interpreter?

A
  • Easy to write - program always runs & stops when it finds syntax error
  • Doesn’t need to be recompiled when changed
  • Easy to try out commands
  • Very easy for beginners
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are some disadvantages of an interpreter?

A
  • Translation software needed at runtime
  • Execution speed is slower
  • Code not optimised
  • Source code is needed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does IDE stand for?

A

Integrated Development Environments

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

What functions does an IDE provide?

A
  • Editors
  • Error diagnostics
  • Run Time Environment
  • Translators
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an editor?

A

Software that allows us to write/edit code in a window
Provides:
- Navigation - showing/hiding sections of code
- Formatting source code - colour coding/indentation
- Find and replace
- Comment regions
- Auto completion

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

What are error diagnostics?

A

Debugging tools for finding logic errors
- Breakpoints (stopping a program at a line of code during execution)
- Checking which lines are executing
- Outputting the values of variables

17
Q

What is run time environment?

A
  • Output window
  • Simulating different devices the program can run on
18
Q

What is the translator in an IDE?

A
  • Typically an interpreter
  • Converts HLL to machine code so that it can be run
19
Q

What is machine code?

A

The binary representation of instructions in a format that CPU can decode and execute
Has an operation code (opcode) instruction and address or data to use (operand)

20
Q

What is a mnemonic?

A

An abbreviation for an operation (like ADD = addition)