4.2 Software TYPES OF PROGRAMMING LANGUAGE, TRANSLATORS AND INTEGRATED DEVELOPMENT ENVIRONMENTS (IDES) Flashcards

1
Q

Define machine code

A

The list of instructions that a CPU can process, written in binary.

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

Name the two types of programming languages (2)

A

High level lanugages

low level languages

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

Advantages of high level languages (5)

A

easier to read, write and understand programs

No knowledge of underlying hardware required

quicker to write programs

programs are easier and quicker to debug

easier to maintain programs in use

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

disadvantages of high level languages (3)

A

programs can be larger

programs can take longer to execute

programs 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
5
Q

Advantages of low level languages (4)

A

can make use of special hardware

includes special machine dependent instructions

can write code that doesn’t take up much space in the primary memory

can write code that performs tasks very quickly

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

Disadvantages of low level languages (2)

A

programs more difficult to understand

takes longer time to write and debug programs

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

Name one type of low level language (1)

A

assembly language

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

Feature of assembly language

A

uses short abbreviations known as mnemonics

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

Which type of translator translates assembly language into machine code

A

assembler

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

Define assembler

A

A type of translator that translates assembly language into machine code.

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

What are the 3 types of translators

A

interpreters

compilers

assemblers

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

Define translator

A

Software that translates code into machine code to be executed by the CPU.

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

Features of interpreters (3)

A

translates and executes the code
line-by-line

stops execution when an error is
found

Since an interpreter translates code each time a program is run, the interpreter software is required every time you run the program.

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

Features of compilers ()

A

translates the whole code at once before executing it, producing an executable file

A compiler provides an error report for the whole
code if errors are detected (unable to run program until error is fixed)

Once a program has been compiled the compiler software is no longer required to run the program, as an executable file has been produced.

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

Which programming languages does the compiler and intrepreter translate

A

high level lanugages

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

Advantages of compilers (2)

A

The executable file produced by the compiler will execute quicker than interpreted code.

An executable file (object code) is produced which can be executed without the compiler or other additional software.

17
Q

Disadvantages of compilers (3)

A

The compilation process can take time, which slows down testing.

The executable file created by the compiler (object code) is not cross-platform.

Code must be free of syntax errors before compilation can succeed.

18
Q

Advantages of intrepreters (2)

A

Code can be tested even if it contains errors, up to the point of the error. This aids debugging.

The edit–test process is faster as there is no need to wait for the compilation process. This can speed up debugging.

19
Q

Disadvantages of interpreters (2)

A

Interpretation slows down the execution of code.

Interpreter software is required every time the code is executed.

20
Q

Define IDE

A

software application specifically designed to help programmers create software

21
Q

Features of IDE (7)

A

Code editor- allowing code to be entered.

Code formatting(prettyprint) - indentation and syntax highlighting, to make code easier to read

Auto-complete - offers a list of options when programmers start to type key words.

Auto-correction - corrects minor typing mistakes, similar to auto-correct in a word processor.

A translator (a compiler and/or an interpreter) built in for convenience.

A run time environment- allow programs to be run and tested within the IDE.

Error diagnostics- highlights potential errors in code and provides hints and suggestions about possible solutions.

22
Q

Define low level language

A

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

23
Q

Define high - level language

A

languages which use English-like statements which allow users to program with easy code

24
Q
A