Application Generation Flashcards

Be able to justify suitable applications for a specific purpose Utilities Open source vs Closed source Translators: interpreters, compilers and assemblers Stages of compilation Linkers and loaders and use of libraries

1
Q

Define open source software

A

Software for which the original source code is made freely available and may be redistributed and modified

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

Define closed source software

A

Type of software for which the code is not shared with the public for anyone to look at or make changes to

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

What is source code?

A

Original code types in by the programmer in the native language

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

What is a translator?

A

A program that translates a program in assembly language into machine code

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

What is an interpreter?

A

A program that translates and executes a program one statement at a time

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

What is a compiler?

A

A program that translates a high-level language program, source code, into a computer’s machine code

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

What is compilation?

A

The translation process that produces an equivalent program in a low-level language

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

Describe the process of compilation

A

Involves analysing the language structure of the source program, determines if its valid, and proceeding suitable machine code

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

What is lexical analysis?

A

The stage in compilation of a program that puts each statement into the form best suited to the syntax analyser

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

Describe what happens in lexical analysis

A

The standard components of each statement (e.g.PRINT) are replaced by their tokens
Programmer defined names are entered into a symbol table
Unnecessary characters like spaces, tabs and coder comments are removed

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

What is syntax analysis?

A

The stage in compilation where language statements are checked against the rules of the language
Errors are reported if a statement is not valid

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

What is code generation?

A

The stage in compilation that produces a machine-code program that is equivalent to the source program

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

What is optimisation?

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