1.2.2 Applications generation Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a utility?

A

Utility software includes all systems and programs on a computer system that maintain its functionality.

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

Name 5 types of utility software?

A

File repair
Backup
Data compression
Defragmentation
Anti-malware

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

What does defragmentation software do?

A

Defragmentation reorganises files on a hard disk. putting fragments of files and free space back together

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

Define open source software?

A

Open source code can be used by anyone without a license and is distributed with the source code.

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

Define closed source software?

A

Closed source code requires the user to hold an appropriate license to use it. Users cannot access the source code as the company owns the copyright license.

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

Give 2 advantages of open source software?

A

Can be modified and improved by anyone
Technical support from online community

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

Give a disadvantage of open source software?

A

Lower security as may not be developed in a controlled environment

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

Give 2 advantages of closed software?

A

Thorough, regular and well-tested updates
High levels of security as developed professionally.

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

Give a disadvantage of closed software?

A

Users cannot modify and improve software themselves

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

What is a translator?

A

A translator is a program that converts high-level source code into low-level object 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

Compiler
Interpreter
Assembler

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

What is a compiler?

A

A compilers translate high-level code into machine code all at once, after carrying out a number of checks and reporting back any errors.

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

What is a interpreter?

A

Interpreters translate and execute code line-by-line. They stop and produce an error if a line contains an error.

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

What is a assembler?

A

Assembly code is considered to be a low-level language as it is the ‘next level up’ from machine code.

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

Name 2 advantages of using a compiler?

A

Compiled code tends to run faster than interpreted code because it has been translated into machine code that can be directly executed by the computer’s processor
Compilers allow programmers to write code in a high-level programming language that can be easily translated into machine code for a variety of different platforms.

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

Name 2 disadvantages of using a compiler?

A

Compilation can take a significant amount of time.
If changes need to be made, the whole program must be recompiled.

17
Q

Name 2 advantages of using a interpreter?

A

Executes line by line. Hence, debugging is easy.
No intermediate code hence uses the memory efficiently

18
Q

Name a disadvantages of using a interpreter?

A

Execution time is more.

19
Q

What are the four stages of compilation in order?

A
  1. Lexical analysis
  2. Syntax analysis
  3. Code generation
  4. Code optimisation
20
Q

What 2 steps happen in lexical analysis?

A
  1. Whitespace and comments are removed from the code
  2. The remaining code is analysed for keywords and names of variables and constants, these are replaced with tokens and information about the token associated with each keyword or identifier is stored in the symbol table.
21
Q

What 2 steps happen in syntax analysis?

A

Tokens are analysed against the grammar and rules of the programming language. Any tokens that break the rules of the programming language are flagged up as syntax errors and added to a list of errors.
An abstract syntax tree is produced, which is a representation of the source code in the form of a tree.

22
Q

What step happens in Code generation?

A
23
Q

What is a linker?

A

This is a piece of software that is responsible for linking external modules and libraries included within the code.

24
Q

What are the 2 different types of linkers?

A

Static
Dynamic

25
Q

Describe a static linker?

A

Modules and libraries are added directly into the main file.

26
Q

Describe a dynamic linker?

A

Addresses of modules and libraries are included in the file where they are referenced. When the program is run, the loader retrieves the program at the specified address so it can be executed.

27
Q

What is a loader?

A

Loaders are programs provided by the operating system. When a file is executed, the loader retrieves the library or subroutine from the given memory location.