1.2.2 Applications Generation Flashcards Preview

A-Level OCR Computer Science > 1.2.2 Applications Generation > Flashcards

Flashcards in 1.2.2 Applications Generation Deck (30)
Loading flashcards...
1

What is system software?

Software neede to run the computers application and hardware programs.

2

What is a utility program

A utility performs a specific task related to the upkeep of the system, examples include a firewall or a disk defragmenter.

3

How does a disk defragmenter work?

Files that have been split up and stored all over a magnetic disk are recombined into sequential blocks in order to speed up file reading.

4

What is open source software?

Software licenced for use but free and distributed with the source code with the ability to amend.

5

What is closed source software?

Also known as proprietary software, the software is not free and there are restrictions on its usage.

6

What are the benefits of software being open source?

Free of cost and the ability to tailor the program to specific needs.

7

What are the benefits of software being closed source?

Regular updates and technical support lines are often available.

8

What is assembly code?

Low-level language almost equivalent to machine code.

9

What must happen before assembly code is executed?

It must be translated into the equivalent machine code or an intermediate code (bytecode) by the assembler.

10

What is the input to an assembler called?

Source code.

11

What is the output of an assembler called?

Object code.

12

What is a compiler?

A program that translates high-level language into machine code.

13

How does a compiler work?

The source code is scanned several times each time performing checks and building up tables of information needed to produce the object code.

14

Why might different compilers be needed for different machines?

Machine code instructions a processor can execute is completely dependant on hardware as the instruction sets will be different in different processors, therefore object code is hardware specific so different compilers will be needed dependant on processor architecture.

15

What is an interpreter?

A programming language translator that looks at the source code line by line checking for syntax errors.

16

What is the purpose of an intermediate code?

Intermediate code such as byte code allows for platform independence since the bytecode can be run by a virtual machine, for example, Java Virtual Machine.

17

What are the advantages of using a compiler over an interpreter?

Object code from a compiler executes faster than interpreted code and object code produced by a compiler can be run without the compiler present.

18

What are the advantages an interpreter has an over a compiler?

Platform independence and useful for program development.

19

What is a disadvantage of the interpreter?

An interpreted program might run slower than a compiled one since a statement has to be converted into machine code every time its encountered so if a loop has a single statement repeated 10 times, rather than convert it into machine code once its interpreted 10 times.

20

What are the three stages of compilation?

Lexical analysis, syntax analysis and code generation and optimisation.

21

What happens during lexical analysis?

White space is removed
All comments are removed
Simple error checking (Illegal identifiers and illegal values)
All keywords (variable names) are replaced by tokens.

22

What happens during syntax analysis?

The code is tested to see if it forms a valid sentence in the language, it does this by expressing the language as a set of rules.
Parsing systematically applies the rules of the language to each statement to determine if it's valid or not.
The semantics of the program will also be checked to make sure statements make sense.

23

What happens during code generation?

Most high-level language statements are translated into machine code statements.

24

What happens during code optimisation?

In order to reduce the programs execution time, redundant instructions are removed as well as other things to achieve the same net effect as the original program but by different means.

25

What are the disadvantages of code optimisation?

Increases compilation time and might produce unexpected results.

26

What does a linker do?

a linker can incorporate the code from the library with the main program into a single executable file.

27

What does a loader do?

A loader is a small program held in ROM when the computer is turned on the loader sends instructions to load the OS by copying it from storage into RAM.

28

What are the advantages of using a library?

Saves time and money
Pre-tested functions (so likely to work.)

29

What is the advantage of using assembly code?

Direct control of hardware and the ability to write the exact instructions needed for a task.

30

What is the advantage of high-level languages?

High-level languages are much easier to follow andd high-level code can be recompiled to meet different architectures meaning it's not platform dependent.