Translators Flashcards

1
Q

Advantages of High level
language

A
  • Easier for programmers to read, write and understand programs
  • Less likely to make mistakes
  • Easier to debug
  • Machine independent, the code is portable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Disadvantages of high level language

A
  • The program may be less memory effecient
  • Needs to be translated to machine code before running
  • The user is not able to directly manipulate the hardware
  • May not be able to make use of special hardware
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Whats a low-level language

A

programming languages that are similiar to a computer’s instruction set. These are basic instructions that the CPU will understand

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

A list of machine code commands that a CPU can process:

A

Instruction Set

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

Low-level language examples and what they’re written in.

A
  1. Assembly language, written in mnemonics
  2. Machine code, written in binary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Disadvantages of low-level language

A
  • Take a longer time to write and debug programs
  • Programs are more difficult to understand/read/learn
  • Programs are not portable (machine dependent)
  • More prone to errors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What translates assembly language into machine code

A

Assembler

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

How compiler translates a program

A
  • It translates high level language to machine code.
  • It translates ALL the code BEFORE it is executed
  • Creates an executable file.
  • Compiled programs are run without the compiler.
  • Provides error report for whole code if error is detected
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How interpreter translates a program

A
  • It translates high level language to machine code.
  • translates one line of code and then executes it before moving on to the next line.
  • Stops execution of program when an error is found
  • Allows error correction in real time.
  • No executable file is produced.
  • Interpreted programs cannot be run without the interpreter.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When to use compiler, interpreter, and assembly language.

A
  • Compiler: compiled program usually distributed for general use.
  • Interpreter: when a program is being developed.
  • Assembler: assembled program usually distributed for general use.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Compiler advantages

A
  • Original source code is hidden, preventing program from being copied
  • Compiled programs can be run without the compiler
  • Compiled programs take up less space in memory when executed
  • Compiled program is executed in a shorter time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Compiler disadvantages

A
  • Takes a longer time to write, test and debug program during development
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Interpreter disadvantages

A
  • Programs cannot be run without the interpreter
  • Programs can take longer to execute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Integrated development environment (IDE) meaning

A

Software that consolidates basic tools required to write and test programs to make a programmer’s journey effective and useful.

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

IDE Features

A
  • Auto-completion
  • Auto-correction
  • Error diagnostics
  • Translators (compiler/interpreter)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How assembler translates a program

A
  • Translates a low-level assembly language program into machine code.
  • An executable file is produced
  • Assembled programs are run without the assembler.
17
Q

Interpreter advantages

A
  • Easier and quicker to debug programs during development
  • as errors are immediately reported when detected
18
Q

Advantages of low-level language

A
  • More efficient use of memory
  • Allows for direct manipulation of hardware
  • Takes up less storage space
  • Can use special machine-dependent instructions
19
Q

Whats a high level language

A

A programming language that makes use of English like statements. which need to be translated to machine code