Daily Practice · GCSE Computer Science
January 2003 - GCSE Computer Science 5-a-day
Every GCSE Computer Science sheet published in January 2003, with answers. Systems, data representation, networks, algorithms and programming.
Every sheet in January 2003
The same date always regenerates the same five questions, so a sheet you print today is the sheet a classmate prints tomorrow.
- 1st January 2003A function is defined as: FUNCTION addTax(price) RETURN price x 1.2 ENDFUNCTION. Another line of code runs: total <- addTax(20) + addTax(30). Trace both function calls and state the final value of total.
- 2nd January 2003A 1 TB hard disk drive costs 40 pounds. A 500 GB solid-state drive costs 60 pounds. Calculate the cost per gigabyte of each device, and state which is cheaper per GB. Use 1 TB = 1000 GB.
- 3rd January 2003State the layer that IP operates in, and describe its job.
- 4th January 2003A 'quantity' field on a website must only accept whole numbers from 1 to 10. Which validation check identifies that 15 has been entered?
- 5th January 2003A table called staff has fields staffId, name, department and salary, storing these records: staffId | name | department | salary, 1 | Ben | Sales | 24000, 2 | Chloe | IT | 31000, 3 | Dan | Sales | 27000. State which staffId(s) would be returned by: SELECT staffId FROM staff WHERE department = 'Sales' AND salary > 25000;
- 6th January 2003A row of 8 pixels is WWWBBBWW. Use run-length encoding to encode this row as pairs of (colour, run length).
- 7th January 2003An array contains [9, 2, 6], to be sorted using insertion sort. Show the state of the array after each new element has been inserted into its correct position.
- 8th January 2003Complete: NOT 0 = ?
- 9th January 2003Convert the 8-bit binary number 01011010 to denary.
- 10th January 2003State what LAN stands for.
- 11th January 2003Describe what syntax highlighting is and how it helps a programmer.
- 12th January 2003An 8-bit register stores the value 01100000 (denary 96). State the resulting 8-bit binary value after a left shift by 1 place, and state whether an overflow occurs.
- 13th January 2003Which CPU register holds the address of the next instruction to be fetched?
- 14th January 2003Distinguish between the network security threats known as phishing and pharming.
- 15th January 2003Trace this algorithm with data = [4, 9, 2, 9, 7] and state the final output. total = 0; count = 0; for i = 0 to 4: if data[i] > 5 then total = total + data[i] and count = count + 1; next i; print(total, count).
- 16th January 2003A row of pixels is encoded using run-length encoding as: 3W 4B 3W. State the original row of pixels it represents.
- 17th January 2003A photo file is 3.5 MB in size. Calculate its size in kilobytes (KB). Use 1 MB = 1000 KB.
- 18th January 2003A streaming company records which shows each user watches and uses this to recommend similar shows. Explain one ethical concern this could raise, even if the company only uses the data to improve recommendations.
- 19th January 2003State the most appropriate data type for storing a person's shoe size if only whole sizes (e.g. 7, 8, 9) are allowed.
- 20th January 2003Write the pseudocode header and body for a function called isAdult that takes one integer parameter called age and returns True if age is 18 or over.
- 21st January 2003Give one example of an optical secondary storage device.
- 22nd January 2003Explain the role of TCP when a large file is downloaded.
- 23rd January 2003State the term used for realistic data that a program would be expected to handle during normal use.
- 24th January 2003State what a foreign key is used for.
- 25th January 2003State the difference between lossy and lossless compression.
- 26th January 2003State the condition that must be met before a binary search can be used on an array.
- 27th January 2003A logic circuit has inputs C and D. C feeds into a NOT gate; the output of the NOT gate and D feed into an OR gate, giving output Y. Write the Boolean expression for Y and state its value when C = 1 and D = 0.
- 28th January 2003A pseudocode algorithm is: count <- 0, x <- 10, WHILE x > 0, count <- count + 1, x <- x - 3, ENDWHILE, OUTPUT count. Complete a trace table for x and count, laid out as x | count, then state the value output.
- 29th January 2003Which piece of network hardware connects a LAN to another network such as the internet, directing data packets based on IP address?
- 30th January 2003Give one advantage and one disadvantage of using a compiler.
- 31st January 2003Convert the denary number 45 to hexadecimal.