Paper 1 Exam Questions Flashcards
Compare the use of ASCII and Extended ASCII to represent characters
1 mark per bullet, max 2.
Extended ASCII uses more bits // ASCII uses fewer bits
Extended ASCII can represent more characters //
ASCII can represent fewer characters
… by example (e.g. extended ASCII can represent
European symbols / other languages)
1 (a) A radio station records an interview with a computer scientist using a computer and audio recording software.
(i) Explain how sampling is used to store audio recordings.
Height/amplitude of waveform is sampled/measured
Converted to / stored as binary/digital
Sample / measurements taken at a regular interval / set interval / by sensible example (eg 44,000 times per second)
The radio station uses a digital camera to take a photograph of the computer scientist for their website. The photograph is stored as a bitmap image.
(i) Describe how bitmap images are represented in binary
Image made of / split up into pixels
Each pixel given a binary code which represents the colour of that pixel
Each colour is given a different/unique binary code.
Metadata stored alongside the image
(ii) Explain why computers represent data in binary form.
Computers consist of transistors / switches / logic circuits / gates which only have two values / on or off / 1 or 0 / open or closed
Explain the advantages of lossy compression
Advantages
File size is reduced / gets smaller // image contains less data
..so quicker to upload / download / load / transfer
…takes up less storage space // space on the web server
…less (mobile) data usage
Explain the disadvantages of using lossy compression
Disadvantages
Quality of image is reduced (compared to original)
…because data is lost / removed // by example (eg fewer colours / lower resolution)
…reduction is permanent / not reversible
Remember
- sound file size = sample rate(Hz) x duration (it has to be in seconds) x bit depth
- Analogue sounds must be stored in binary
- image file size = colour depth x image height (px) x image width (px)
- text file size = bits per character x number of characters
Remember
o Bit o Nibble (4 bits)
o Byte (8 bits)
o Kilobyte (1,000 bytes or 1 KB)
o Megabyte (1,000 KB)
o Gigabyte (1,000 MB)
o Terabyte (1,000 GB)
o Petabyte (1,000 TB)
OCR Land regularly emails discount codes to customers. Each discount code includes a check digit as the last character.
(i) Give one benefit of using a check digit for the discount code.
Check that the code is valid / real
Check it has been entered / sent / received correctly.
Makes it harder for people to make up discount codes
Describe how a character set is used to represent the string value stored in the variable “name”
- Each character in character set has a unique binary number/value
- Each character in the string is assigned its associated number/value
- The binary value of each character is stored/combined (in order)
- … by example e.g. The binary value for D, then for r, then for u
• Uses ASCII/Extended ASCII/Unicode
Give two reasons why computer scientists use hexadecimal to represent numbers instead of binary
- Easier/quicker to communicate / enter / write / read / remember
- Less chance of input errors
- They are shorter
- Easy to convert between binary and Hexadecimal
(a) State what is meant by the term image resolution[1]
5 a)
• Number of pixels (in an image)
OR
• Height and width (of an image)
(b) Calculate the fewest number of bits that could be used to store the logo as a bitmap image. You must show your working. [4]
- 15* 6 = 90 (pixels in an image)
- Multiply pixels x bits per pixel
- …2 bits required per pixel because there are 3 colours
- 180 bits overall answer
(c) Give two ways that the file size of the image could be reduced.[2]
- Reduce number of pixels / resolution
- Reduce number of colours
- Use lossy compression
- Use lossless compression
What is the role of switch
A switch performs a similar role to a hub and a bridge but is more powerful. It stores the MAC addresses of devices on a network and filters data packets to see which devices have asked for them. This makes a switch more efficient when demand is high. If, for example, a game involved lots of data being passed between machines, then a switch could reduce the amount of latency.