Chapter 3: Part 2 Flashcards

1
Q

What is the difference between applications and
systems software?

A

Applications software is utilised directly
by the end-user whereas systems
software ensures the high performance
of the computer.

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

Give 3 examples of utilities

A

Three from
- Compression
- Disk defragmentation
- Antivirus
- Automatic backup
- Automatic updating
- Encryption software

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

Give one advantage of using closed source code

A
  • Thorough, regular and well-tested updates
  • Expert support and user manuals from company
  • High levels of security as it is developed in a professional,
    controlled environment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

State two features of open source code

A
  • Does not require a license to be used
  • Distributed with the source code
  • Can be modified and sold on
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Give two advantages of using compiled code over
interpreted code

A
  • Faster to execute
  • Does not require compiler to run
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Give two advantages of using interpreted
code over compiled code

A

Two from:
- Is platform independent
- Runs instantly without time waiting for compilation
- Useful for debugging

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

What is assembly language?

A

A low-level language that has almost a
one-to-one relationship with machine
code. It is platform specific.

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

What are the stages of compilation?

A

● Lexical analysis
● Syntax analysis
● Code generation
● Optimisation

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

What happens during syntax analysis?

A

-Parsning: Tokens are compared to the rules of the
programming language
- Syntax errors are identified
- Symbol table updated with more details
- Semantic analysis (finding logic errors)
- Syntax Tree created

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

What are the similarities and differences between
static and dynamic linkers?

A

Similarities: Both link external modules and libraries to main
program
Static: Library code copied into the file. File size increased.
Dynamic: Addresses of libraries included within file. External
updates automatically feed through to main program.

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

Give three advantages of using libraries.

A
  • Error-free
  • Save time
  • Re-usable
  • No need to ‘reinvent the wheel’
  • Designed by experts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Describe the function of a loader

A

Provided by the operating system, a loader
retrieves the library or subroutine from the given
memory location.

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

What is the purpose of the optimisation stage of
compilation?

A

● Reduce execution time
● Reduce inefficient sections of code
● Remove redundant code

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