- What is the difference between system software and application software?
- System software provides the services that the computer requires, and it manages and maintains the hardware and software. Application software provides the services that the user requires, so it allows the user to perform tasks. System software includes the operating system and utility software.
- What are the functions of an operating system?
- An operating system manages files, handles interrupts, provides an interface, manages peripherals and drivers, manages memory, manages multitasking, provides a platform for running applications, provides system security and manages user accounts. Each function has a role: managing memory makes sure that two processes do not access the same memory location at the same time.
- What is firmware?
- Firmware is instructions written into non-volatile or read only memory (ROM). It is used to configure, set up, control or run the hardware, and it provides the operating system with a platform to run. Firmware is not hardware, and the BIOS is only an example of it.
- What is an interrupt, and what are some examples?
- An interrupt is a signal sent to the CPU. Hardware interrupts include pressing a key on the keyboard and moving the mouse. Software interrupts include division by zero and two processes trying to access the same memory location.
- How does the operating system handle an interrupt?
- The operating system checks the source of the interrupt, and it assigns or checks the priority of the interrupt to find the highest priority interrupt. It controls or checks the interrupt queue, and it calls the interrupt service routine (ISR), which is used to handle the interrupt.
- What is a common mistake when giving examples of hardware and software interrupts?
- A common mistake is to give a device, such as a keyboard or a mouse, as an example. These are only devices and not examples of interrupt. A hardware interrupt is pressing a key on the keyboard or moving the mouse, and a software interrupt is division by zero.
- What is a high-level language?
- A high-level language is written in English-like statements. It needs translating before it can be run, and it is machine independent, so the same program can be used on any computer. A low-level language is closer to binary or machine code.
- What is the difference between a high-level language and a low-level language?
- A low-level language can directly manipulate the hardware, and its programs run faster and use memory more efficiently. A high-level language is easier to read, write, understand and debug, and it is machine independent. A low-level language is harder to debug and is not portable.
- What is an assembler, and what does it translate?
- An assembler is needed to translate an assembly language program into machine code. Assembly language is a form of low-level language that uses mnemonics. A compiler translates a high-level language, not assembly language.
- What is the difference between a compiler and an interpreter?
- A compiler translates the whole code at once before it is executed, and it produces an executable file. An interpreter translates and executes the code line by line, and it stops when it finds an error. A compiler gives an error report for the whole code.
- Why does a programmer use an interpreter during development and a compiler for the final program?
- An interpreter can run sections of the code before the whole program is complete, and it stops at an error so the programmer can debug as the program runs. A compiler is used for the final program. Its error report lists all the errors so they can be fixed together, and the final program executes faster because the compiler optimises the code.
- What is a common mistake when describing what a compiler does?
- A common mistake is to describe the benefits of a compiler rather than its operation. Candidates need to say that a compiler translates the whole code at once. Errors are reported during runtime with an interpreter, but at the end of translation with a compiler.