Daily Practice · GCSE Computer Science

July 1961 5-a-day

Every sheet in July 1961

The same date always regenerates the same five questions, so a sheet you print today is the sheet a classmate prints tomorrow.

  1. 1st July 1961A 'quantity' field on a website must only accept whole numbers from 1 to 10. Which validation check identifies that 15 has been entered?
  2. 2nd July 1961A table called books has fields bookId, title, authorId and copiesAvailable. Write an SQL statement that selects the title of every book with more than 2 copies available.
  3. 3rd July 1961A row of 8 pixels is WWWBBBWW. Use run-length encoding to encode this row as pairs of (colour, run length).
  4. 4th July 1961An 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.
  5. 5th July 1961Complete: NOT 0 = ?
  6. 6th July 1961State how many different values can be represented using 5 bits, and explain your reasoning.
  7. 7th July 1961State what LAN stands for.
  8. 8th July 1961Describe what syntax highlighting is and how it helps a programmer.
  9. 9th July 1961An 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.
  10. 10th July 1961Which CPU register holds the address of the next instruction to be fetched?
  11. 11th July 1961Distinguish between the network security threats known as phishing and pharming.
  12. 12th July 1961Trace 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).
  13. 13th July 1961A row of pixels is encoded using run-length encoding as: 3W 4B 3W. State the original row of pixels it represents.
  14. 14th July 1961A photo file is 3.5 MB in size. Calculate its size in kilobytes (KB). Use 1 MB = 1000 KB.
  15. 15th July 1961A 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.
  16. 16th July 1961State the most appropriate data type for storing a person's shoe size if only whole sizes (e.g. 7, 8, 9) are allowed.
  17. 17th July 1961State the key difference between a procedure and a function.
  18. 18th July 1961Give one example of an optical secondary storage device.
  19. 19th July 1961Explain the role of TCP when a large file is downloaded.
  20. 20th July 1961State the term used for realistic data that a program would be expected to handle during normal use.
  21. 21st July 1961Give one advantage of a relational database over a flat-file database.
  22. 22nd July 1961State the difference between lossy and lossless compression.
  23. 23rd July 1961State the condition that must be met before a binary search can be used on an array.
  24. 24th July 1961A 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.
  25. 25th July 1961Convert the hexadecimal number 3F to denary.
  26. 26th July 1961Which piece of network hardware connects a LAN to another network such as the internet, directing data packets based on IP address?
  27. 27th July 1961Give one advantage and one disadvantage of using a compiler.
  28. 28th July 1961Convert the denary number 45 to hexadecimal.
  29. 29th July 1961What does the acronym CPU stand for?
  30. 30th July 1961State what the term malware means.
  31. 31st July 1961Write a loop in pseudocode that outputs every element of a 1D array named names of length 6.