1.2.2 c Flashcards

1
Q

Source code

A

Source code is written by the programmer and refers to object code before it has been compiled. When software is described to be open or closed source, this refers to whether the code is accessible to the public

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

Open source code

A

Code that 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
3
Q

Closed source code

A

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
4
Q

Advantages of open source code

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

Advantages of closed source code

A

. Thorough, regular and well - tested updates
. Company owning software provides expert support and user manuals
. High levels of security as developed professionally

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

Disadvantages of open source code

A

. Support available online may be insufficient or incorrect. No user manuals
. 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
7
Q

Disadvantages of closed source code

A

. License restricts how many people can use the software at once
. Users cannot modify and improve software themselves

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

What must a person consider when choosing source code software

A

. Costs
. Functionality

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

What is a translator

A

A translator is a program that converts high-level source code into low-level object code, which is then ready to be executed by a computer. There are three types of translator that convert different types of code and work in different ways

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

What are the three types of translator

A

. Compiler
. Interpreter
. Assembler

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

Compiler

A

. Compilers translate high-level code into machine code all at once
. This process is longer than interpreters or assemblers, if changes need to be made, the whole program must be recompiled
. Once code has been compiled to produce machine code, it can only be executed on certain devices
. Compiled code is specific to a particular processor type and os
. Code can be run without a translator present

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

Interpreter

A

. Interpreters translate and execute code line-by-line, they stop and produce an error if a line contains a error.
. They are slower than running compiled code as code must be translated every time it is executed with an interpreter
. This makes interpreters useful for testing code
. Interpreted code requires an interpreter in order to run on on different devices. However, code can be executed on a range of platforms as long as the right interpreter is available making interpreted code more portable

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

Assembler

A

. Assembly code is considered a low-level language as it is ‘next up’ from machine code. Assembly code is platform specific as the instructions used are dependent on the instruction set of the processor

. Assemblers translate assembly code into machine code.
. Each line of assembly code is equivalent to almost one line of machine code so code is translated on a one-to-one basis

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