Daily Practice · GCSE Computer Science
May 1979 5-a-day
Every sheet in May 1979
The same date always regenerates the same five questions, so a sheet you print today is the sheet a classmate prints tomorrow.
- 1st May 1979State the most appropriate data type for storing a person's shoe size if only whole sizes (e.g. 7, 8, 9) are allowed.
- 2nd May 1979Write 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.
- 3rd May 1979Give one example of an optical secondary storage device.
- 4th May 1979State the layer that IP operates in, and describe its job.
- 5th May 1979State the term used for realistic data that a program would be expected to handle during normal use.
- 6th May 1979State what a foreign key is used for.
- 7th May 1979State the difference between lossy and lossless compression.
- 8th May 1979State the condition that must be met before a binary search can be used on an array.
- 9th May 1979A 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.
- 10th May 1979A 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.
- 11th May 1979Which piece of network hardware connects a LAN to another network such as the internet, directing data packets based on IP address?
- 12th May 1979Describe what syntax highlighting is and how it helps a programmer.
- 13th May 1979Convert the denary number 45 to hexadecimal.
- 14th May 1979What does the acronym CPU stand for?
- 15th May 1979State what the term malware means.
- 16th May 1979Trace 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).
- 17th May 1979An uncompressed file is 6000 KB. After lossless compression it is 1500 KB. Calculate the compression ratio in the form n:1 (original size : compressed size).
- 18th May 1979Which of RAM and ROM is volatile, meaning its contents are lost when the power is removed?
- 19th May 1979Which piece of UK legislation controls how organisations must store and use people's personal data?
- 20th May 1979Given x = 5 and y = 8, state whether x < y AND x > 0 evaluates to True or False.
- 21st May 1979State the value returned by LENGTH(word) if word stores the string 'Computer'.
- 22nd May 1979Give one reason why RAM on its own is not enough, and a computer also needs secondary storage.
- 23rd May 1979Explain the role of TCP when a large file is downloaded.
- 24th May 1979A password field requires between 6 and 12 characters. State two boundary data values that should be used to test this field.
- 25th May 1979A 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.
- 26th May 1979State one function carried out by the operating system of a computer.
- 27th May 1979In computational thinking, what is meant by the term 'decomposition'?
- 28th May 1979Given A = 1 and B = 1, state the value of A AND B.
- 29th May 1979State how many different values can be represented using 5 bits, and explain your reasoning.
- 30th May 1979Define a peer-to-peer network.
- 31st May 1979Give one advantage and one disadvantage of using a compiler.