Targeted Practice Flashcards
L1
1) What is a computer?
2) How can computer systems be categorised?
3) What do these systems mean?
1) A computer is a programmable device that takes in data, processes it into useful information, and then outputs the information so it can be used.
2) Computer systems can be categorized as either:
- General purpose
- Embedded systems
3) General purpose computers are devices that have a variety of uses, the user chooses the task for the computer to complete.
An embedded system is a computer system with a specific purpose or function, which is built into a physical device or machine.
L2
What are the functions of these CPU components?
1) Buses
2) Registers
3) Clock
1) Buses: many parallel wires connecting components, which transfer data or instructions between different CPU components.
2) Registers: holds data used when executing an instruction, and holds the result of executing an instruction.
3) Clock: it controls the number of instructions carried out each second and manages cycles per second.
L5
1) What are the characteristics of solid-state storage?
2) What are the advantages of solid-state storage?
3) What are the disadvantages of solid-state storage?
1) Solid-state consists of:
- No moving parts to read or write data
- A collection of circuits wired together to store binary data
- The collection of circuits are wired to form a grid
2) Advantages of solid-state storage:
- Fast
- Lightweight
- Durable: they last a long time as they have no moving parts
3) Disadvantages of solid-storage:
- Expensive cost per MB
- Typically a lower capacity than hard drives
- They have limited read/writes
L6
1) What are the advantages of magnetic storage (state 4)?
2) What are the disadvantages of magnetic storage (state 3)?
1) Advantages of magnetic storage:
- Cheap for large capacities
- Infinitely rewritable
- Reliable for long periods of time
- Faster read speeds than optical
2) Disadvantages of magnetic storage:
- Damaged if dropped or exposed to a magnetic field
- Slower read speeds than solid state
- Require a lot of power to run
L3
Explain the fetch-decode-excecute cycle in detail
Instructions are loaded into RAM from secondary memory.
The instructions are stored in RAM in numbered memory locations.
Fetch:
The CPU sends a signal along the address bus requesting an instruction from a specific numbered location in RAM.
The instruction is transferred via the data bus to the CPU.
Decode:
The CPU decodes the instruction.
The CPU may fetch data held in memory if referenced in the instruction.
Execute:
The CPU executes the instruction.
The result may be stored back into RAM.
The cycle repeats.
L10
1) State the different types of programming languages
2) Explain the main differences between the two
1) There are different levels of programming language:
- low-level language
- high-level language
2) High-level languages require the use of a compiler or an interpreter for their translation into the machine code. Low-level language requires an assembler for directly translating the instructions of the machine language.
L11
1) What are the two types of low level languages?
2) What are the differences between the two types of low level languages?
3) Describe what assembly language is used for
4) What kind of code is executed by the processor?
1) Machine code and assembly language are low-level languages.
2) Machine code is a low level language that is directly understood by the CPU, and is written in binary. It is specific to a processor or family of processors.
3) Assembly language is often used to develop software for embedded systems and for controlling specific hardware components. Assembly language has a 1:1 correspondence with machine code.
4) Processors execute machine code. Each type of processor has its own specific machine code instruction set.
All programming code written in high-level or assembly languages must be translated.
L11
1) State the different types of programming languages
2) State the three common types of program translator
3) Explain the main differences between these three types of translator
1) There are different levels of
programming language:
- low-level language
- high-level language
2) There are three common types of program translator:
- Interpreter
- Compiler
- Assembler
3) A compiler translates high level programming languages into machine code. It translates all the code in one go.
An assembler translates assembly languages into machine code, and each line of assembly language is assembled into a single machine code instruction.
An interpreter translates high level programming languages into machine code. An interpreter translates source code into machine code one instruction at a time. The resulting machine code is then executed immediately. Interpreters do not produce any machine code so the program needs to be translated each time it is executed. They call machine code subroutines within their own code to carry out commands and directly execute the instruction. If a runtime error is found the interpreter stops.
What is the function of the following registers:
1) Current instruction register (CIR)
2) Memory address register (MAR)
3) Memory data register (MDR)
1) Current instruction register (CIR): Holds the current instruction that the processor is executing
2) Memory address register (MAR): Temporarily stores the memory addresses used when searching for data in RAM
3) Memory data register (MDR): Temporarily holds the data (data values or instructions) that are read from or written to the main memory
What is the function of the following registers:
1) Program counter (PC)
2) accumulator (ACC)
1) Program counter (PC): Holds the address of the next instruction to be executed by the processor
2) Accumulator (AC): Stores the result of any calculation
Describe the functions performed by the operating system (state 5)
- Memory management: it manages the computer’s memory, and can control which parts of memory are being used by which process.
- Input/ output management: it manages input/ output devices, controls network communication and allows devices to send and receive data.
- Managing storage: it manages secondary storage devices, manages loading data and programs into the computer’s memory and manages storage space.
- Managing security: it manages user authentication, protects against malware, and blocks access to specific vulnerable operations or system areas (such as installing software).
- Managing applications: it controls access to applications and prevents users or processes from using unauthorised programs.
L8
1) What is main memory?
2) Explain how main memory is used?
1) Main memory is any form of memory that is directly accessible by the CPU, except for cache and registers.
2) It stores instructions whilst a program is being executed. The CPU fetches instructions from main memory to decode, and stores the results of the execution of the instructions in the main memory.
L10
1) Explain why most programs are written using high level languages (state 9)
2) State the advantages of low-level language programming compared with high-level language programming (state 3)
1) - High-level languages have built-in functions
- High-level languages have built-in libraries
- High-level languages have more support
- High-level languages can be less machine dependent/more portable
- High-level lanugages usually requires fewer lines of code to be written
- Usually quicker to develop code in high-level languages
- It is easier to find mistakes in code
- The code is easier to understand and maintain
- It is easier to structure code in high-level languages
2) Programs written in assembly or machine code run faster, programs require less memory when executing and programs written in assembly language have no extra code added by the computer.
1) What is hardware?
2) What is software?
1) Hardware is the physical components of a computer system.
2) Software is the programs, code or instructions that are executed by the hardware.
1) Explain why secondary storage is required in a computer system
2) State 3 examples of volatile memory in a computer system
1) Secondary storage stores all the user’s files, applications and operating systems. Secondary storage is needed to store data or files when the computer is switched off on a long term basis.
2) RAM, cache and registers
L1
1) What are the advantages of the peer-to-peer model?
2) What are the disadvantages of the peer-to-peer model?
1) Advantages of the peer-to-peer model:
- Clients are not dependent on one single server
- Resources can be shared between computers (e.g. printers)
- It doesn’t require expensive equipment to set up
- If more than one computer in the network hosts a file, then the client can request it from the device that is closest
2) Disadvantages of the peer-to-peer model:
- Using a shared peripheral, like a printer, can lead to a computer slowing down whilst processing many requests
- If a host computer breaks down, this can cause files or peripherals that are hosted by it to be unavailable
- There is no central backup system
- There is no central way to provide security for the network