Translators and Facilities of Languages (2.5) Flashcards

1
Q

What is high level languages

A
  • easier to write and program as no expertise is needed (closest to human language and understanding). More translation needed to convert into machine code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are some examples of high level language

A
  • Python, Java, C++
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the advantages of high level languages

A
  • easier to program and modify
  • programs can be written much faster
  • code can be debugged easily
  • code is portable across multiple platforms
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the disadvantages of high level languages

A
  • requires more memory than low level languages

- translation takes longer and less control over hardware

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

What is a low level language

A
  • programs written related to specific computer hardware and architecture, so less translation needed to convert into machine code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an example of low level languages

A
  • Assembly language, machine code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the advantages of low level languages

A
  • assembly language uses English like statements

- translated programs require less memory

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

What are the disadvantages of low level languages

A
  • machine code is difficult to understand and takes longer time to write programs
  • code is machine dependant (not portable)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a translator

A
  • A translator converts programming language and instructions into machine code, to be executed by the computer (using binary). There are TWO main types of translators
    (for HLLs):
    1 - Compiler
    2 - Interpreter
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a compiler

A
  • translates all the code into machine code in one go, producing an executable file which can be run.
  • Much faster to run than an interpreter,
  • but not as effective to debug for errors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is an interpreter

A
  • translates the code one line at a time, into machine code during program execution.
  • Much more effective to debug for individual errors,
  • but interpreter code is far less slow than compiled code.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is an IDE

A
  • An IDE is a software program which provides programmers with many different tools and features to help aid program and software development
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Code editors (IDE)

A
  • (allowing program code to be written and edited, often highlighting keywords and syntax with colours
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Debugging (IDE)

A
  • (find/diagnose and fix errors and also show information about the errors e.g. syntax or runtime errors as well as where they occur). Some IDEs also suggest solutions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Run Time Environment (IDE)

A
  • (enables the program to be run straight after you have written it, to check for run time errors). Also allows testing of the program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Translators (IDE)

A
  • (built in translators to convert the high level code into machine code, allowing the code to be executed/run).