Week 1 Flashcards
What is OOP
Object-orientated programming is concerned with constructing computer systems out of units of code called classes which are templates for creating objects.
what is the OS resposnsible for?
The operating System is responsible for the control and management of hardware and basic system operations, as well as running application software.
What are 7 of the things the OS does?
Management of memory Coordination and control of peripheral devices Scheduling of access to the processor Provision of basic utilities Provision of an interface between applications/programs and hardware Provision of a user interface Booting your computer
How does the OS manage memory?
it allocates appropriately sized areas of memory to each program and to ensure that program instructions and date do not interfere with each other.
How does the OS Coordinate and control peripheral devices?
The OS cooridnates the Input (from keyboards and Mouse) reading a file from a storage device, output to a display device and maintaining a connection to a network.
How does the OS schedule access to the processor?
The OS priotises jobs to run and ensures that the processor is used efficiently. for example if the current program finishes then another program is given access to the processor.
How does the OS provide basic utilities?
OS provide disk formatting facilities, file management systems and software installation wizards.
How does the OS provide an interface between applications/programs and hardware?
The OS provides a an application programming interface (API) which is a set of high-level instructions ( a protocol) through which an application can talk to the OS to request services such as printing or sasving. so for example instead of a program asking the printer to print the program asks the OS to ask the printer to print. This helps with computers working across different computers.
How does the OS provide a user interface?
Most Interfaces are GUI’s with hidden away text baed interfaces. GUI’s are more intuitive and easier to learn and use.
How does the OS boot your computer?
there is a boot program stored in the computers ROM and is often called firmware. firmware consists of prorams that provide core functionality to a device that will not disappear when power is lost.
What is the difference between a compiler and an interpreter?
a compiler will translate an entire program from source code to machine code, whilst an interpreter will only translate a line of code as and when required.
What is bytecode?
It is an example of an intermediate code, which could be thought of as machine code for a virtual machine. Using this intermediate code means that code can be moved unchanged between different computer systems.
what is the advantage to using a compilation model that makes use of virtual machines?
it ensures that the intermediate code, no matter on what machine it was compiled it can be translated for execution on many different computers, so long as each computer has the correct virtual machine.
Why is Java software relatively portable between different platforms?
Java software is portable because it runs on a VM, and the JVM masks inherent differences between the underlying architectures and operating systems on different computer platforms. As long as you have a suitable JVM for a platform, you should be able to run Java software on that platform.
What is/was procedural programming?
is so called because the program code gives a step-by-step procedure (i.e an algorithm) for solving ‘the problem’.