Higher_Computing_Science_2025_Full_Paper
Higher_Computing_Science_2025_Full_Paper
Question Paper
Instructions to Candidates:
- Attempt all questions.
- Use appropriate programming languages or pseudocode where required.
- You may use a calculator where appropriate.
- Show all workings clearly where applicable.
---
1.
(a) Convert the binary number −0.1101 into floating-point representation using 16 bits for
the mantissa (including the sign bit) and 8 bits for the exponent.
(b) Describe how increasing the mantissa to 24 bits and the exponent to 16 bits affects the
values that can be stored.
---
2.
Explain why a processor with a larger cache outperforms one with a smaller cache, even if
all other features are identical.
---
3.
(a) Convert -56 into an 8-bit two's complement number.
(b) State the largest negative integer representable using 8-bit two's complement.
---
4.
Describe two advantages of using the agile methodology over the iterative development
process.
---
5.
A check digit is generated using the line of code:
Write the code for line 33 to calculate: remainder = sum MOD 11
---
6.
A mobile game compares a player's color guess against a secret code.
(a) Complete Line 13: IF found (=TRUE) THEN
(b) Complete Line 47: Call the function to generate feedback using code and guess.
(c) Explain the difference between SUBSTR(secretCode,i,1) and using string as array access.
---
7.
BookFinder stores book records in an array.
(a) Declare a variable to store 500 records using the provided Book record structure.
(b) Write code to display titles and page counts of books matching a given genre and max
page count.
(c) Define a resource starvation Denial of Service (DOS) attack.
(d) State one cost to the site resulting from a DOS attack.
---
8.
A sales program processes item sales.
(a) Complete the data flow table for steps 2–4.
(b) Explain how the data flow design assists implementation.
(c) Design an algorithm for step 3 to calculate average revenue where more than 2 units
were sold.
(d) Write code to output sales exceeding the average revenue to a file.
(e) Describe how modular programming aids efficiency and maintainability.
---
9.
In a roleplaying game, a function checks if a monster is hit.
(a) Identify two input boundaries.
(b)(i) Identify the error in CheckHit.
(b)(ii) Write code to correct the error.
(c) Describe how to make the monster_index function more efficient.
---
10.
A sequence is generated using initial value and ratio.
(a) Fill in missing values A, B, and C in the trace table.
(b) Rewrite Line 17 to correct sequence generation.
(c) Name and describe a debugging technique useful during execution.
---
11.
The SQL query below outputs min/max times for jump types starting with "Base".
Identify three errors in this SQL:
SELECT jumpType, MIN(performanceTime) AS "Slowest Time", MAX(performanceTime) AS
"Fastest Time"
FROM Athlete
WHERE jumpType LIKE "Base%"
---
12.
(a) Based on gallery requirements, identify one functional requirement.
(b) State an aggregate function needed for (a).
(c) Draw an entity-relationship diagram for the database.
---
13.
(a) Design a query to count orders by custID 101 in September 2024.
(b) Design a query to display name and telephone of customers who ordered from the
"Clothing" category.
(c) Write SQL to increase "Footwear" product prices by £10.
(d) Write SQL to show each item’s description and total number ordered, sorted
descending.
---
14.
(a)(i) Given supplier data, write expected output from a GROUP BY city SQL.
(a)(ii) Explain why GROUP BY is necessary.
(b) Write SQL to delete books with genre Fiction or Non-Fiction and salePrice < £10.
---
15.
State HTML5 elements used for labelled parts A and B on a web page wireframe.
---
16.
Refactor the following CSS using grouping selectors:
header {background-color: blue;}
article {background-color: blue; margin: 10px;}
h1 {color: black; font-size: 24px; margin: 10px;}
h3 {margin: 10px;}
footer {background-color: blue;}
---
17.
(a) State a functional requirement of a social video-sharing website.
(b) Draw the website’s navigation structure.
(c) Complete CSS for navigation bar hover effects and horizontal layout.
(d) Explain how descendant selectors work using given examples.
(e)(i) Rewrite HTML line to use an onClick event to trigger a JavaScript function.
(e)(ii) Give two reasons why an image switch on click fails.
(f) Rewrite HTML input to make "Profile Name" required.
---
18.
(a) Complete CSS to format three layout sections as shown in wireframe.
(b) Name two compatibility tests for the video page.
(c) Identify two usability issues in the contact form prototype.
---