Docsity

computer science revision, Summaries of Environmental science

Toggle sidebar
bg1
Page 1 of 56
GCSE Computer Science Revision and Workbook
Read, make notes, test yourself using the end-of-chapter questions.
Click the links below to take you to that part of the document. You might have to scroll up or down
a little bit to get to the start of the section.
Systems Architecture (computer hardware)
The CPU and registers
Embedded Systems
Storage and Memory
Types of Networks (LAN and WAN)
Network Topologies (star and mesh)
Network Hardware (switch, router, etc.)
The Internet and the WWW (includes DNS)
Network Protocols (HTTP, TCP/IP, etc.) and Layers
System Security
System Software (operating system and utilities)
Legal, Cultural, Societal and Environmental Issues
Algorithms (searching, sorting and pseudocode/flowcharts)
SQL and Databases
Programming
Arrays (including 2D arrays)
Sub-Routines (functions and procedures)
Defensive Design (creating robust programs)
Backup (tertiary storage)
Logic Gates (AND, OR, NOT)
Data Representation (binary, audio, images, text)
Number Conversion (binary, hexadecimal, denary)
ASCII and Unicode
Images (colour depth and resolution)
Sound (sample rate, bit depth and bit rate)
Translators (interpreters, compilers, assemblers)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38

Partial preview of the text

Download computer science revision and more Summaries Environmental science in PDF only on Docsity!

GCSE Computer Science Revision and Workbook

Read, make notes, test yourself using the end-of-chapter questions.

Click the links below to take you to that part of the document. You might have to scroll up or down

a little bit to get to the start of the section.

Systems Architecture (computer hardware)

The CPU and registers

Embedded Systems

Storage and Memory

Types of Networks (LAN and WAN)

Network Topologies (star and mesh)

Network Hardware (switch, router, etc.)

The Internet and the WWW (includes DNS)

Network Protocols (HTTP, TCP/IP, etc.) and Layers

System Security

System Software (operating system and utilities)

Legal, Cultural, Societal and Environmental Issues

Algorithms (searching, sorting and pseudocode/flowcharts)

SQL and Databases

Programming

Arrays (including 2D arrays)

Sub-Routines (functions and procedures)

Defensive Design (creating robust programs)

Backup (tertiary storage)

Logic Gates (AND, OR, NOT)

Data Representation (binary, audio, images, text)

Number Conversion (binary, hexadecimal, denary)

ASCII and Unicode

Images (colour depth and resolution)

Sound (sample rate, bit depth and bit rate)

Translators (interpreters, compilers, assemblers)

GCSE Computer Science Exam Workbook

Systems Architecture

The Von Neumann Architecture refers to any computer system that consists of input and output devices, with memory and a central processor. It also refers to both the instructions and the data being stored in RAM together. The processor can tell the difference between instructions and data by knowing how long instructions are (how many bits in length) and that the data must come after the instruction. Almost all modern computers are based on the Von Neumann architecture. Other architectures store the instructions and data in separate pieces of memory – weird huh? Computers require a way on inputting data, processing data, storing data and outputting data. Internal components are links up via the system bus. The system bus is a set of parallel wires that carry data and control signals between components connected to the motherboard. The system bus consists of three parts:

  • Control bus – carries control signals from the CPU’s Control Unit to other components (e.g. RAM)
  • Address bus – carries the address of instructions to be fetched from RAM.
  • Data bus – carries the actual instruction and data from RAM to the CPU for processing.

CPU Registers (temporary stores for instructions being processed):

  • Program Counter – keeps track of where the CPU is in the program. Points to the next instruction in the cycle.
  • Memory Address Register (MAR) – holds the address of the instruction to be fetched.
  • Memory Data Register (MDR) – stores the instruction about to be executed.
  • Accumulator – stores the most recent result of processing. Main CPU components:
  • Control Unit (CU) – controls the fetch, decode, execute cycle. Sends control signals to CPU components and timing signals to coordinate the CPU.
  • Arithmetic Logic Unit (ALU) – Carries out calculations and logical comparisons (e.g. greater than, less than).
  • Cache – High speed memory, very close to the CPU, stores regularly used instructions for fast access. The CPU instruction cycle: When a program is loaded, all the program’s instructions are placed into RAM.
  1. The Program Counter points to the RAM address of the first instruction.
  2. The Control Unit tells the Program Counter to place the RAM address into the Memory Address Register (MAR).
  3. The Memory Address Register sends the address down the address bus and locate the instruction in RAM.
  4. The instruction travels from RAM, down the data bus and into the Memory Data Register (MDR).
  5. The instruction is then decoded by breaking it into two parts (opcode and operand). The opcode is looked up in the instruction set so that the CPU can understand what to do with it.
  6. The instruction is then executed by the Arithmetic Logic Unit (ALU) which carries out any calculations and logical comparisons.
  7. The result is stored in the Accumulator.
  8. The CPU then fetches the next instruction, and so on! Note: While this has been going on the Program Counter has incremented, ready to point the MAR to the next instruction to be fetched.

The CPU clock keeps strict timings that the Control Unit uses to keep control over the fetch, decode, execute cycle. The clock speed is the number of instruction cycles per second; that is the number of times the CPU can fetch, decode and execute and instruction per second. One instruction cycle = 1 Hertz (Hz). Modern CPUs often run at over 3 GHz (3 Billion cycles per second). The higher the clock speed, the faster a CPU can process data. Older CPUs only contained a single core, which meant that it could only process one task at a time. Obviously, most people want to have multiple programs and files open at the same time. CPUs got around this by multitasking. Multitasking is when a CPU rapidly switches between programs, giving a few clock cycles to each program to create the illusion that it is running them at the same time. The user does not usually notice this, but it can cause the computer to slow down if too many programs are open. Most modern CPUs contain multiple cores. This is like having more than one CPU to process data. More cores mean the CPU can run more programs at the same time. In theory a dual-core CPU could process two programs at once, or process twice as fast. Although in reality, other factors prevent it from being twice as fast. But more cores definitely means better performance.

Storage and memory:

Primary Storage (memory)

Primary storage = Registers, cache and RAM. Random Access Memory (RAM) is a type of volatile primary storage that stores programs and files that are currently in use. Volatile means that when the power is turned off, the contents are lost. RAM is used because it is much faster for a CPU to access RAM than it is to access secondary storage such as a Hard Disk Drive (HDD). Virtual Memory is when a portion of the Hard Disk Drive (HDD) is used as though it is RAM (hence “virtual”). When RAM fills up, in order to keep the computer running and allow the user to have more programs open, the operating system will take a snapshot of the programs running in RAM and temporarily place some of them back on the HDD. This slows the computer down a bit, but at least it keeps the programs running. When the user wants to interact the program again, it is quickly placed back into RAM in the state that it was in before.

Primary storage

(volatile memory)

Secondary storage

Cache is very high speed memory next to the CPU that stores regularly used instructions. It’s almost like carrying around tools that you use all the time on a toolbelt so that they are right next to you, ready to use. Analogy: RAM would be a bit like keeping them in a toolbox just down the hall. Secondary storage would be like keeping them in the shed at the bottom of the garden. Read-Only Memory (ROM) is a type of storage that can only be read from and not written to. The most common use of ROM is to store the BIOS settings that boot up the computer. There is a small amount of ROM on the motherboard, when you press the “ON” button, the CPU looks in this ROM and uses it to start up the PC.

Secondary Storage:

Secondary storage is non-volatile, long term storage for programs, files and other data. Hard Disk Drives (HDD), Solid State Drives (SSD), optical discs (CDs/DVDs) and USB Flash Drives are all examples of secondary storage. Secondary storage is needed to store programs and save files for later use. Obviously, RAM cannot be used to store anything that you want to use again in the future! Optical storage includes CDs and DVDs. Magnetic storage includes Hard Disk Drives. It uses a moving read-write head that passes over magnetised platters. HDDs can be a bit unreliable due to moving parts than can wear out and break. Solid state includes Flash storage which has no moving parts and is much faster and more durable than a Hard Disk Drive.

3. Describe the function of RAM.

4. Describe the function of cache memory.

5. Explain what is meant by virtual memory.

6. State three characteristics of secondary storage.

7. Explain why HDDs are not suitable for use in a SatNav (refer to the characteristics of

storage).

8. What is the smallest unit of data?

9. How many bits in a Byte?

10. How many Bytes in a KiloByte?

11. How many KiloBytes in a MegaByte?

12. Explain why optical storage is becoming a thing of the past.

Types of networks:

  • LAN (Local Area Network) A computer network over a small geographical area, such as an office or a school.
  • WAN (Wide Area Network) A computer network over a large geographical area. WANs are usually made up of interconnected LANs.

A Wireless Local Area Network is simply a LAN that you can connect to using Wi-Fi.

Hardware for a Wireless LAN:

  • Wireless Access Point (WAP)
  • Network Interface Cards (NIC) that support Wi-Fi – think “antenna!”
  • A central switch to connect the WAP to.
  • If you also want Internet connection you wil need a router and modem.
  • Most wireless LANs in the home and small offices are peer-to-peer.
  • If you want it to be a client-server Wireless LAN you will need a server. But what exactly is Wi-Fi? Wi-Fi (wireless Ethernet) uses short-range, high frequency radio signals to send data between devices on a Local Area Network. What is a Wi-Fi channel? Because Wi-Fi is a type of radio communication, different channels run on different frequencies. Much like the radio or TV channels. If one channel is very busy, then this can slow a network down. Changing to a clearer channel will help to solve the problem. What does Wi-Fi frequency mean? Frequency is the number of radio waves per second. Each frequency relates to a certain channel.

Peer-to-peer network: Computers are all at the same level and connected to each other. There is no central server. Peer-peer networks are easy to set up, but there is no way to centrally manage them. For example, if software needs to be installed or updated, a technician will have to walk around to each computer and manually install the software. This type of network might be used at home or in a small office. Types of Network and Wi-Fi (wireless) Hardware Exam-Style Questions

1. Identify two pieces of Wi-Fi LAN hardware.

2. Define the term “Local Area Network”.

3. State what is meant by bandwidth.

4. Describe what is meant by a Wi-Fi channel?

5. Why are there different Wi-Fi channels?

6. Explain why a WAP is needed to allow Wi-Fi devices to connect to a LAN.

Network topologies: A network topology is the physical layout of the network (when viewed from above). Mesh topology:

  • All devices (nodes) connected to all other devices (nodes)
  • Very fault-tolerant (if a cable or node fails, all the others can still communicate).
  • Lots of cables
  • Expensive to set up
  • Difficult to add in more computers Mesh topology

Star topology:

  • Uses a central switch, with all devices (nodes) connected to the central switch.
  • Easy to add in more devices (simply connect them to the switch).
  • A disadvantage is that if the switch breaks the network will fail. One way to get around this is to connect all devices to another switch, so that if one fails, the other can take over. Star topology Network hardware: Wireless Access Points (WAPs) – allow wireless (Wi-Fi) connections to a LAN. Routers – allow Internet connection (forwards data packets onto the Internet) and can be used to create WANs. Switches – connect devices over a LAN (using MAC addresses to get the data across the Local Area Network). Network Interface Controller/Card (NIC) – a piece of hardware inside each computer that allows it to connect to a LAN. NICs contain the MAC address. Transmission media – Cat-5 (Ethernet cables) and fibre-optic cables. Cat-5 cables are copper cables that transmit data across a LAN. They are OK for short distances and low traffic. For example, from a single computer to a switch. Cat-5 cables suffer with interference and signal loss over longer distances. Fibre-optic cables have a high bandwidth so can transfer more data per second and do not suffer with interference. Fibre-optic can be used for long distance communication and/or where there is high traffic (e.g. from a switch to the server room). Wireless Access Point (WAP) Allows Wi-Fi connection to LAN. Router Allows Internet access. Looks at IP addresses and forwards them on. Switch Connects devices on a LAN.

Domain Name System (DNS):

DNS converts human-readable domain names (such as google.com) into computer-readable IP addresses (such as 243.6.83.5) Why do we need DNS? Humans can’t remember IP addresses! Computers can’t read domain names! Therefore there has to be a system to convert them. How DNS works:

  1. User types in a domain name (stuff.com) or a specific URL (e.g. http://www.stuff.com/chickens) into a web browser such as Firefox.
  2. DNS then looks for the IP address of stuff.com in web browser’s DNS cache (a table of domain names and their matching IP addresses – a bit like a phone book).
  3. If DNS doesn’t find the IP address here, it goes out to the Internet Service Provider’s (ISP) domain name table.
  4. It DNS doesn’t find the IP address here, it goes to higher level DNS server, and so on…
  5. Eventually (if it hasn’t found the IP address) it will ask an authoritative name server which will know the IP address.
  6. Once it has found the correct IP address, DNS sends the IP address to the web browser which can then use that to locate and communicate with the website (stuff.com).
  7. The web browser’s own DNS cache will also be updated, so that next time it needs stuff.com it will know the IP address. Clearing your browser history usually deletes these saved IP addresses. DNS in action – converting domain name to IP address. The Internet and the WWW Exam-Style Questions

1. Describe the key differences between the Internet and the World Wide Web.

2. State the function of DNS.

3. Why is DNS needed?

4. List the key steps of how DNS works.

Web hosting:

Paying a company (such as GoDaddy) to store your website online. They store your HTML files on their servers and allow people to view your website using their web browsers. Before hosting, you will also need to get your domain name registered (which also allocates an IP address to it and puts the IP address on the Doman Name System so that you website can be found!)

The cloud:

The cloud is simply another word for “ online ”. Cloud storage is where you store your data remotely. Usually you would pay a company to store your data. Advantages:

  • You can view your files from anywhere in the world.
  • You don’t have to buy and manage your own backup hardware. Disadvantages:
  • Can you trust the company storing it? Are there data protection laws in the country where your data is being stored?
  • How vulnerable are their systems to attack?
  • Have you got a backup plan if the Internet fails or they lose your data? Cloud computing is when you use software that is being run on a remote computer. For example, a powerful server might be running the software and you will be able to view the results on your own computer. This is great if your Internet is fast and reliable! A Virtual Private Network (VPN) appears to network users like they are connected to a physical LAN or WAN without needing to be anywhere near the physical part of the network. They need to login with a username and password. Once logged in, they can access files, folders and software as though they were physically in the same building as the network. Users can log in from anywhere in the world and the data is sent securely (using encryption) through the Internet. It is helpful to think of it as an “encrypted tunnel” through the Internet. Travelling business people rely heavily on VPNs.

HTTP (Hyper Text Transfer Protocol) HTTP allows web browsers to request websites from web servers (this runs on port 80). For example, you might type in HTTP://www.google.com/examples HTTPS (Hyper Text Transfer Protocol Secure) HTTPS is the secure (encrypted) version of HTTP, suitable for exchanging sensitive information, e.g. bank details. HTTP vs. HTTPS FTP (File Transfer Protocol) FTP allows large files and folders to be transferred across the Internet. Website developers might use this to upload their HTML files to be hosted on a web server. Or movie fans might use it to illegally download movies!

The three email protocols:

POP (Post Office Protocol) Allows users to download an email ONCE ONLY. When it has been downloaded, it is removed from the email server. This is only OK for people that check their emails on one device. IMAP (Internet Message Access Protocol) This is a modern email protocol that allows users to view their emails on the email server and download as many emails as they want on multiple devices.

SMTP (Simple Mail Transfer Protocol) This is used for sending emails and for transferring emails from one email server to another. For example, it will send an email from Hotmail’s email server to Gmail’s email server.

Network layers

The TCP/IP four-layer model is a something that network engineers use to understand and troubleshoot network problems. When data (for example an image) is sent across a network, it goes down through the layers and has wrappers put around each data packet, then on the receiving side, the data packets move up through the layers and the wrappers are removed. Putting data in these “wrappers” is known as encapsulation. TCP/IP four-layer model: