1.2 Software and Software Development Flashcards Preview

Computer Science > 1.2 Software and Software Development > Flashcards

Flashcards in 1.2 Software and Software Development Deck (49):
1

What is the need, function and purpose of an operating system?

An operating system is the software that manages the computer;
- manages the hardware of the system
- manages the interface between the user and the computer
- manages the programs being run and installed
- manages the security of the system

2

What is paging?

Where programs are divided physically into equal sized blocks so that it is using memory efficiently

3

What is segmentation?

Programs are divided logically and split into blocks containing modules or routines

4

What is the role of interrupts?

A signal sent to the processor requesting attention for a particular event. When an interrupt is raised, an ISR is run

5

What is ISR?

Interrupt Service Routine
Only carried out if it has higher priority than the current task
Contents of the CPU are transferred to a stack
ISR is loaded by changing the values of the PC to where it starts in memory
When complete the previous task is loaded from memory into the registers

6

Describe Round Robin

Each process is given a fixed amount of time to execute and if it does not finish it is put onto the back of the queue

7

Describe first come first serve

The first process to arrive will be the first to be dealt with and is completed in its entirety

8

Describe multi-level feedback queues

Uses a number of queues which have different priorities
Jobs can move between queues

9

Describe shortest job first

Needs to know which process will take the shortest and will then complete this one first

10

Describe shortest remaining time

Runs the process that has the least amount of time left
If another process arrived which has a shorter time it will switch jobs

11

Describe and explain the purpose of a distributed os

Allows a group of computers to work on a single task. It can control and co-ordinate many computers, presenting them to the end user as though they were a single system

12

Describe and explain the purpose of an embedded os

Specifically designed for the device on which they run and with efficiency in mind. Operate on low-powered CPU's with little RAM. Will only likely to have one job

13

Describe and explain the purpose of a multi-tasking os

Organises the computer when it is running several applications at once.

14

Describe and explain the purpose of a multi-user os

Allows more than one user to share the computers resources at a time. Common on mainframe systems where there may be many users accessing them simultaneously

15

Describe and explain the purpose of a real time os

Designed to carry out actions in a guaranteed amount of time even when left running for long periods. i.e. hospitals and safety critical systems

16

Describe the purpose of the BIOS

Basic Input Output System - is what allows the computer to start up. Stores the load instructions

17

Describe the purpose of device drivers

A piece of software that is supplied with the device that allows the operating system to communicate with the device

18

What is the purpose of virtual machines?

Runs a simulation of an operating system on top of the current one, so that the user can test a program that may be used on multiple platforms. Often programs may not run on the provided operating system, so a virtual machine may be needed to run the desired program

19

What is the difference between utility and application software?

Application software allows the user to produce something or perform a task whereas utility software is usually a small program concerned with the maintenance of the system

20

What is the difference between open and closed source software?

Open - Software where the source code is publically available, users can modify the software to suit their needs
+ Free
+ Can change code to suit needs
- Coding can be poor
- Subject to viruses as 'hackers' can access code before they have a chance to fix issues
Closed - Software that is only distributed as an executable file
+ Works better as developed by companies
+ Reliable and efficient
- Not always what the customer needs

21

What is an interpreter?

Converts high level language, translates and executes code line by line
+ can find the errors as they occur and give specific direction
+ same piece of code can work across different platforms
- lower performance
JavaScript uses an interpreter

22

What is a compiler?

Converts high level language, translates all the code into object code and then executable code
+ faster to convert
- keeps source code private
- can't use across different platforms

23

What is an assembler?

Converts low level language (assembly code) into machine code

24

State the stages of compilation

Lexical Analysis
Syntax/Semantic Analysis
Code Generation
Code Optimisation

25

What is a linker?

The job of the linker is to include links to any library code required by the object code and put this into one executable file

26

What is a loader?

The loader is responsible for loading the correct files and libraries into the computer memory when the program is run

27

Describe and evaluate the waterfall life cycle

Each stage is started after the previous is finished
Can go back a stage
Works well with a clear expected output at each stage
+ Easy to manage
+ Easy to see if project is running to schedule
- Carries a lot of risk
- Not suitable for complex projects
- Client doesn't see the project until the end
- Misunderstood requirements can lead to a project that is not easy to fix

28

Describe and evaluate agile methodologies

Designed to deal with projects with changing requirements

29

Describe and evaluate the purpose of extreme programming

Example of agile methodologies
Focuses on producing high quality code
Paired programming
Client becomes part of the team
+ High quality code
- Client must be able to commit
- Doesn't work if programmers are distributed geographically

30

Describe and evaluate the spiral model

Designed to manage risk
New prototypes made with each cycle
+ Risk is considered
+ Suitable for large scale projects
- Risk analysis makes it expensive

31

Describe and evaluate rapid application development

Involves a series of prototypes
Continous client involvement to inform the development
Suitable for projects that don't have clear requirements from the start
+ Requirements don't need to be clear
+ Continuous client feedback
- Not suited for projects where code efficiency is important
- Not appropriate for large scale projects
- Regular contact with the client must be maintaned

32

Evaluate high level code

+ easier to code
+ more understandable
+ can code more complicated programs
- lose control over the instructions being executed

33

Evaluate low level code

+ faster to compile
+ more control over the CPU and the instructions executed
- will only work on the CPU with the instructions referenced

34

Describe lexical analysis

Breaks the code down into a series of tokens by; removing white space and comments, remaining code turned into tokens, symbol table is created to keep track of variables and subroutines

35

Describe syntax/semantic analysis

If any tokens break the rules of the language, errors are generated at this point
Abstract syntax tree is built from tokens produced in previous stage

36

Describe code generation

Object code is the machine code before the final step (the linker) is run. Abstract code tree converted into object code

37

Describe code optimisation

Tweaks the code so that it will run as quickly as possible and use as little memory as possible

38

Explain static linking

The code needed to form the libraries is copied and included in the executable file. The code doesn't need to access external libraries during run time, therefore if a library is missing the program will not crash
- can take a long time
- large file size, takes up more space in RAM

39

Explain dynamic linking

Compiled versions of the libraries are stored in the computer and linked with the object code by the OS at run time
+ less memory is needed therefore quicker to process
+ less code needed to compile
- if a library is missing the program will crash

40

What is a library?

Pre-written modules of code for the user to interact with.

41

What is a paradigm?

Different forms of programming languages; low level, high level, imperative, procedural, OOP

42

What is imperative programming?

Mainly used within assembly code. It is a sequence of instructions where subroutines are not used. The program is directed around the code using GOTO statements and branches

43

What is procedural programming?

A sequence of instructions however the code is split into subroutines and the sequence of code is based on these i.e. IF WHILE FOR

44

What is OOP code?

For use in large software projects where code needs to be repeated. Way of inheriting and creating classes

45

What are the 4 addressing modes?

Immediate
Direct
Indirect
Indexed

46

Describe and evaluate intermediate addressing

Addressed from the binary operand value. The operand is not a memory address but the value to be used
+ fastest method as you do not need to access the computers memory

47

Describe and evaluate direct addressing

References the address that the data is stored in
+ quick method however not as quick as intermediate
- relies on the value always being correct at the location specified

48

Describe and evaluate indirect addressing

References a place in memory which then points to the data
- address of where the data is stored must first be looked up

49

Describe and evaluate indexed addressing

Start number then add the address to find the address of where the data is stored
- slower than previous methods but more flexible when loading larger amounts of data
+ good for data structures which require large blocks of data