Docsity

Understanding Data Representation and Transmission in Computing, Summaries of Computer Science

Partial preview of the text

Download Understanding Data Representation and Transmission in Computing and more Summaries Computer Science in PDF only on Docsity!

B. Christian,

Computer science

Mr. Partington’s iGCSE Computer Science Revision Notes

Paper 1

Exam Technique

Know what the examiners can ask you questions about Have a look at the IGCSE Computer Science syllabus that you have been studying and are going to be taking the exam for. The list of topics will make a great checklist for your revision. If you find something that you don’t understand or haven’t made any notes about, then find out about it. Anything that is mentioned in the syllabus could be used in an examination question. Read and understand examination questions What are you being asked to do?

  1. Read the question
  2. Understand the type of instruction you are being given: Complete, Describe, Draw, Explain, Give and State all require different actions.
  3. If the question makes use of a specific scenario or context then make sure that all of your answers are relevant to that context. For example if the question is about security measures for an offline device, then using a internet based firewall would not be appropriate!
  4. Decide on the information required but remember that you are sitting an iGCSE examination and most answers will require more than just a single word. If you have finished well before the time allotted, you may well have fallen into this trap.
  5. Always use correct technical terms and avoid the use of trade names. For example, talk about the use of an operating system rather than the use of ‘Windows 10’.
  6. Decide how much information is required to fulfill the number of marks available and if in doubt, add more! Help the examiner help you!
  • Make sure your answers are easy to read (if in doubt, write it again, clearer!).
  • Read through the entire question before you start to answer it, give yourself thinking time and decide how you will format your answer before writing.
  • Make it easy for the examiner to see where he/she should give you the marks. This also helps you make sure that you will can gain every mark available.
  • Answer every question! There is no point leaving blank spaces, you will not lose marks for incorrect answers, so you may as well have a guess.

d) Use binary in computer registers for a given application A register is a place to store a group of bits. 8 bit registers are often used to control electronic devices. Each bit is used to control a specific value. For example: 1 0 1 0 0 1 1 0 Motor A on Motor A off Motor B on Motor B off A direction forward A direction backward B direction forward B direction backward This means that motor A and B are both on. Motor B is rotating forward and motor A is rotating backwards.

1.1.2 Hexadecimal

a) represent positive numbers in hexadecimal notation Hexadecimal is a base 16 number system that uses the digits 0 to 9 and the letters A to F to represent each hexadecimal digit. Denary, Binary, Hexadecimal 0 1 2 3 4 5 6 7 0000 0001 0010 0011 0100 0101 0110 0111 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1000 1001 1010 1011 1100 1101 1110 1111 8 9 A B C D E F b) show understanding of the reasons for choosing hexadecimal notation to represent numbers Hexadecimal: ● Is easier/quicker to read than binary ● Is easier/quicker to write/type than binary ● Takes up less room on the screen than binary ● Is easier to debug than binary ● Is less prone to human error than binary

c) convert positive hexadecimal integers to and from denary (a maximum of four hexadecimal digits will be required) To convert hexadecimal integers to and from denary it is often easier to go through binary. To start, write out each hexadecimal digit as 4 binary bits. For example: 4AE would become 0100 1010

  1. Then convert the number to denary as described in 1.1.1 (b). 0100 1010 1110 = 1024 + 128 + 32 + 8 + 4 + 2 = 1198. d) represent numbers stored in registers and main memory as hexadecimal A register is a place to store a group of bits. We can use our knowledge of how to convert between base 2, base 10 and base 16 to represent numbers stored in registers and main memory as hexadecimal. e) identify current uses of hexadecimal numbers in computing, such as defining colours in Hypertext Markup Language (HTML), Media Access Control (MAC) addresses, assembly languages and machine code, debugging The hexadecimal system is used for: 1. Memory Dumps - useful when developing new software, this allows the contents of the memory to be seen by the writer, thus enabling errors to be detected; also used in diagnostics when a computer malfunctions, hex is used since it is easier to use than a long string of binary values. 2. HTML Colours - hypertext markup language uses 6 digit hexadecimal codes to represent colours. The first two digits represent the amount of red, the next two represent green and the last two represent the amount of blue. 3. MAC Address - See 1.2.2 e) 4. Web addresses - ASCII code can be used to replace the URL or parts of the URL. 5. Assembly code/machine code - using hex can make it easier and faster to write and less error-prone than writing code in binary.
1.1.3 Data Storage

a) show understanding that sound (music), pictures, video, text and numbers are stored in different formats Examples of various file formats are shown below: Sound .aif, .iff, .m4a, .mid, .mp3, .wav, .wma Pictures .bmp, .gif, .jpg, .png, .psd, .tiff Video .3gp, .avi, .flv, .m4v, .mov, .mp4, .mpg, .vob, .wmv Text .doc, .docx, .odt, .pages, .rtf, .txt, .wpd Numbers .xls, .xls, .db, .sheets

Joint Photographic Experts Group (JPEG) files JPEG files use a lossy format file compression method. JPEG is used to store photographs as a reduced file size. They rely on certain properties of the human eye (e.g. its inability to detect small brightness differences or colour hues). d) show understanding of the principles of data compression (lossless and lossy) applied to music/ video, photos and text files Lossless and lossy file formats With lossless file compression, all the data from the original files is reconstructed when the file is uncompressed. There is no loss in quality or loss in data when using lossless compression. With lossy file compression, unnecessary data is eliminated forming a file and it can’t be reconstructed to get back to the original file. For example: sending a large image file might be unnecessary for the purpose you need it for, so the image is compressed first to make the file take less time to upload and send.

1.2 - Communication and Internet Technologies

1.2.1 Data Transmission

a) show understanding of what is meant by transmission of data Data transmission is where digital data is transferred from one device or component to another. Data transmission can be wireless (wifi, bluetooth, NFC, 3g/4G/5G etc.) , or send along a physical medium, such as a copper network cable, fibre optic cable etc. b) distinguish between serial and parallel data transmission Serial data transmission is where data is sent one bit at a time over a single wire or channel. Parallel data transmission is where data is sent several bits at a time over multiple wires or channels. c) distinguish between simplex, duplex and half-duplex data transmission Simplex data transmission is where data is sent in one direction only. Half-duplex data transmission is where data is sent in two directions, but not at the same time. Duplex data transmission is where data is sent in two directions at the same time.

d) show understanding of the reasons for choosing serial or parallel data transmission Serial data transmission is slower than parallel, but is good for long distances as the data cannot become skewed. Parallel data transmission is faster than serial, but data can become skewed over long distances (so is more suitable for short distances) e) show understanding of the need to check for errors Data transmission is susceptible to interference. This can be electrical, environmental, physical, magnetic etc. Interference will cause data to become skewed and not arrive in the correct order, or for some data to not arrive at all. This is why we must check that a data transmission was successful using an error checking method. f) explain how parity bits are used for error detection A parity bit is added to data to give it even or odd parity. It is usually added at the beginning or the end of the data, or each byte of data. See 1.1.3 b). g) show understanding of the use of serial and parallel data transmission, in Universal Serial Bus (USB) and Integrated Circuit (IC) As its name suggests, USB uses serial data transmission, an IC normally uses parallel data transmission.

1.2.2 Security Aspects

a) show understanding of the security aspects of using the Internet and understand what methods are available to help minimise the risks Firewalls Firewalls can help stop unauthorised access from the internet by examining the traffic between a user’s computer or local network and a public network (e.g. the internet). A firewall: ● Monitors incoming and outgoing traffic on a network ● Checks whether incoming and outgoing traffic meet certain criteria, if data fails criteria, the firewall blocks the traffic and warns the user ● can log all incoming and outgoing traffic ● Criteria can be set to prevent access to certain websites, this can be done by the firewall keeping a list of all undesirable IP addresses (a blacklist) ● Warns the user if software tries to access an external data source b) show understanding of the Internet risks associated with malware, including viruses, spyware and hacking Hacking

This gathers data by monitoring key presses on user’s keyboards and sending the data back to the person who sent the spyware. Sends important data, such as passwords back to the originator of the spyware. Prevented by use of anti-spyware or antivirus software or the use of a mouse or drop down box to enter passwords rather than a keyboard. c) explain how anti-virus and other protection software helps to protect the user from security risks Anti-virus software can scan for and detect viruses, quarantine viruses and delete viruses from a computer system. It can be set to automatically scan new files, and periodically scan an entire system. It will warn the user using an interrupt if it finds a virus. A false positive is when anti-virus software flags something as a virus when it is not a virus. Anti-spyware software can scan for and detect spyware. It will warn the user using an interrupt if it detects spyware. It can delete spyware from a computer system. Auto-Update software will download and install updates for your software as and when they are available. It is good to keep programs updated as updates are often more secure (vulnerabilities have been identified and fixed), more features have been added, or compatibility may have been improved.

1.2.3 Internet Principles of Operation

a) show understanding of the role of the browser An internet browser is software which allows the user to display a web page on the computer screen. The software interprets/translates the HTML from the website and shows the result. b) show understanding of the role of an Internet Service Provider (ISP) An ISP is company that provides the user with access to the internet; they usually charge a monthly fee. The ISP gives the user an account and sometimes provides the user with an email address. c) show understanding of what is meant by hypertext transfer protocol (http and https) and HTML Hypertext Transfer Protocol (http) is a set of rules that must be obeyed when transferring files across the internet, this may include web pages or individual files. Http s indicates that the protocol is using SSL encryption to send files or web pages securely. d) distinguish between HTML structure and presentation

are used to define structure (these do not make much difference to the front-end of the website, for example and tags). Other tags are used to define presentation (these are used to define how items are displayed on the page, for example would make text appear bold. e) show understanding of the concepts of MAC address, Internet Protocol (IP) address, Uniform Resource Locator (URL) and cookies MAC address a media access control address is used to uniquely identify a device on a network. The first 6 hex digits represent the manufacturer and the latter 6 are unique to that specific device. MAC addresses can be UAA (a universally administered address) or LAA (a locally administered address). IP (Internet Protocol) address Each device is given an IP address as soon as it connects to the internet. The IP address will be different each time the device connects. URL (Uniform Resource Locator) A URL is the address that you type in to access a website. It is made up of different parts, for example: https://www.google.co.uk/index.html Protocol Hostname or Domain Name File name Cookies Pieces of data which allow detection of web pages viewed by a user and to store their preferences. Cookies can be deleted from the user’s desktop although this can remove some of the features of certain websites.

1.3 Hardware and Software

1.3.1 Logic gates

a) use logic gates to create electronic circuits A logic gate takes in binary inputs and produces a binary output. Logic circuits are made up of several logic gates and are designed to carry out a specific function. b) understand and define the functions of NOT, AND, OR, NAND, NOR and XOR (EOR) gates, including the binary output produced from all the possible binary inputs (all gates, except the NOT gate, will have 2 inputs only) See below (d)

NOR
XOR
A B ¬(A V B)
A B A ⊻ B

e) Produce truth tables for given logic circuits. If you are asked to do this you will be given a space to show your working. It is a good idea to annotate the circuit adding in some locations where you will work out the intermediate answers before you evaluate your overall answer. An example might be: The student has added in locations d and e to help them work out the overall answer. With the truth table: Inputs Working Output A B C D E X 0 0 0 0 0 0 0 0 1 0 1 1 0 1 0 0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 1 0 1 0 1 1 1 1 0 1 0 1 1 1 1 1 0 1 f) Produce a logic circuit to solve a given problem or to implement a given written logic statement. This is perhaps one of the hardest things you will be asked to do. It is useful to annotate the question (particularly if it is quite wordy) highlighting the key words such as AND, OR, NOT. It is also worth annotating what value is meant by the wording in the question (for example it might say “if the temperature is over 25 degrees” in logic terms, this means something like T=1).

b) describe the stages of the fetch-execute cycle, including the use of registers and buses

1.3.3 Input devices

a) describe the principles of operation (how each device works) of these input devices: 2D and 3D scanners, barcode readers, Quick Response (QR) code readers, digital cameras, keyboards, mice, touch screens, interactive whiteboards, microphones 2D Scanners These convert hard-copy documents into an digital format which can be stored in a computer memory. Scanners operate by using a scan head which moves across the document shining a bright light which reflects and produces an image which is sent to a lens via a series of mirrors. Applications of 2D scanner include: scanning passports at airports, scanning newspapers for archives, scanning textbooks for digital reading, scanning worksheets to complete online. 3D Scanners

3D scanners scan solid objects and produce an electronic 3D image. They use light or lasers and measure their reflections to calculate the dimensions of an object. 3D scanners produce a 3D model of a solid object. Barcode Readers Barcodes consist of a series of dark and light lines of varying thickness. Each digit or character is represented by a number of lines. A barcode reader uses light or a laser to detect the series of lines and input this as a series of characters into the computer. Advantages of using barcode readers include: ● Allows for automatic stock control ● Allows for faster checkouts in shops ● Can check customer’s buying habits and customise offers based on trends ● Less chance of errors at tills QR (quick response) codes QR codes are a type of barcode. However, they can hold considerably more data. QR codes are usually read by built-in cameras in smartphones or tablets using an app, but can be read by conventional barcode scanners. Digital Cameras Digital cameras contain a microprocessor which automatically: ● Adjust shutter speed ● Focus the lense(s) ● Operates the flash ● Adjusts the aperture ● Removes ‘red eye’ ● Reduce hand shake Etc. Images are captured when light passes through the lens onto a light-sensitive cell, which is made up of thousands of tiny elements to capture each pixel. Keyboards/keypads Keyboards are the most common input device. Keys are pressed by the operator to enter data directly into the computer. When a key is pressed, it completes a circuit and a signal is sent to the microprocessor which interprets which key has been pressed. Pointing Devices The most common pointing devices are the mouse and the trackpad. They are used to control a cursor on a screen or to select options from menus. Other pointing devices include: interactive whiteboards and graphics tablets. Microphone Microphones are used to input sound into a computer. When the microphone picks up sound, a diaphragm vibrates producing an electric signal. A analogue to digital converter then converts the signal into digital values which can be processed by the computer. Voice and speech recognition systems both use microphones.

c) describe how a range of sensors can be used to input data into a computer system, including light, temperature, magnetic field, gas, pressure, moisture, humidity, pH and motion Sensors Sensors send data from the real world to a computer. They often require an analogue to digital converter (ADC) to change the data into a format that the computer (or microprocessor) can understand. Sensors form part of many monitoring or control systems. d) describe how these sensors are used in real-life scenarios, for example: street lights, security devices, pollution control, games, and household and industrial applications ● Sensors continuously send a signal to the system ● The signal is sent through a analogue to digital converter ● The value is compared to a predefined value. ● If the value is outside the acceptable range then a signal is sent to an actuator or alarm ● If the value is within the acceptable range then the system continuously checks the incoming values

1.3.4 Output devices

a) describe the principles of operation of the following output devices: inkjet, laser and 3D printers; 2D and 3D cutters; speakers and headphones; actuators; flat-panel display screens, such as Liquid Crystal Display (LCD) and Light-Emitting Diodes (LED) display; LCD projectors and Digital Light Projectors (DLP) Printers The three most common types of printer are: laser, inkjet and dot matrix. Type of Printer How it works Advantages Disadvantages Laser Printer - Uses positive and negative charges on the print drum and paper.

  • Toner sticks to the paper where it is charged
  • Toner permanently fixed using a fuser
    • high quality of printing
    • relatively inexpensive to buy printer
    • large toner cartridges and large paper trays
    • very fast printing of documents
      • can be expensive to maintain
      • produce health hazards such as ozone or toner particles in the air Inkjet - Use liquid ink system which sprays ink onto the paper line by line as the paper moves through the printer.
  • The ink system uses either thermal bubble or piezoelectric
  • very high quality of printing
  • suitable for printing photos
  • inexpensive to buy printer
  • ink is expensive to buy and quickly runs out on a large print run
  • usually have small paper trays
  • can be noisy in operation compared

technologies. to laser printer Dot Matrix Printer - Use a matrix of pins which strike an inked ribbon to produce characters in a matrix on the paper.

  • not adversely affected by damp or dusty atmospheres
  • allows use of multipart stationery (i.e. carbon copies)
  • allows use of continuous/fan-folde d stationery
    • relatively expensive to buy printer
    • poor print quality
    • very noisy and very slow at printing 3D Printer 3D printers produce an actual solid objects. They are built up in the printer in a number of think layers. Can use a number of different materials: powdered resin, powdered metal, ceramic power, plastic reel, or even paper. 3D printer have been used to make prosthetic limbs, aerospace parts, fashion and art item and even to make parts that are no longer in production by conventional manufacturing. 2D/3D Cutters These are used to cut into materials to form 3D objects and are controlled by computers and software (CAD/CAM). Common materials include glass, crystal, metal, plastics and wood. Headphones/Loudspeakers Headphones and loudspeakers convert analogue voltages into sound. If the output is form a computer, the digital signals are first converted into analogue voltages using a digital to analogue converter. Actuators An actuator is a component of a machine that is responsible for moving and controlling a mechanism or system, for example by opening a valve. LCD and LED monitors Modern flat screen monitors are usually either LCD or LED (sometimes OLED). LCD monitors use liquid crystal to generate the image and require a backlight as LCD does not produce its own light. LED and OLED screens use lots of light emitting diodes to generate coloured light that makes up a display. Light Projectors DLP (digital light projectors) use millions of micro mirrors which can switch on or off several thousand times a second creating various shades of light. Colour filters allow the shades of light to be converted into colours which are projected onto a large screen. LCD projectors use chromatic-coated mirrors which reflect light at different wavelengths. The light components pass through three LCD screens which are then recombined using a prism to produce the colour image which is projected onto a large screen.