OpenExamsFREE PRACTICE — ANY EXAM

Free National 5 Computing Science Practice Questions

100 free questions · Answer explanations · No signup required

View examination details, outline and sources

Loading selected examination banks…

Sample Practice Questions

Try these 10 sample questions from the National 5 Computing Science practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.

  1. 1A program receives the length and width of a rectangular noticeboard in metres and displays its area. Which item is a process requirement?

    1. A.Multiply the length by the width.Correct answer: A
    2. B.Read the length from the keyboard.
    3. C.Display the calculated area.
    4. D.Read the width from the keyboard.

    Explanation: The specification identifies "inputs  processes  outputs". Multiplication transforms the two inputs into the required area. Reading either dimension supplies input; displaying the area is output.

    Reference: National 5 Computing Science Course Specification — p.4 — Software design and development: Analysis

  2. 2A designer needs to describe the steps of an algorithm in structured English before selecting a programming language. Which representation fits this purpose?

    1. A.A data dictionary.
    2. B.A CSS stylesheet.
    3. C.Pseudocode.Correct answer: C
    4. D.An entity-relationship diagram.

    Explanation: The source states: "Pseudocode is a natural language-based design methodology used to define an algorithm and refinement." Pseudocode expresses the algorithm for human reading. A dictionary describes data attributes, a stylesheet describes presentation, and an ER diagram describes entities and relationships.

    Reference: National 5 Computing Science Course Specification — p.48 — Pseudocode

  3. 3After these Python assignments, what value remains stored in b? a = 6 b = a a = 11 print(b)

    1. A.6Correct answer: A
    2. B.11
    3. C.17
    4. D.0

    Explanation: The documentation states: "The equal sign (=) is used to assign a value to a variable." b receives the integer6 before a is reassigned. Reassigning a does not change b.11 follows the later a;17 incorrectly adds assignments;0 is never assigned.

    Reference: Python Tutorial — An Informal Introduction — An Informal Introduction to Python — Numbers

  4. 4A program accepts integer quantities from 5 to 25 inclusive. Which value is normal test data lying strictly inside the permitted range?

    1. A.4
    2. B.15Correct answer: B
    3. C.26
    4. D.30

    Explanation: The source states: "normal data would fall within the range of data a program is expected to process" 15 is a permitted interior value.4,26 and30 lie outside the accepted range and test rejection rather than normal acceptance.

    Reference: SQA — Software Development: Implementation and Testing — p.8 — Outcome2, test plan

  5. 5Two versions of a program give identical correct results. One uses variables a, b and c with no comments; the other uses subtotal, tax and total with a short comment explaining a non-obvious calculation. Which evaluation criterion has been directly improved?

    1. A.Robustness.
    2. B.Readability.Correct answer: B
    3. C.Output accuracy.
    4. D.Input validation.

    Explanation: The specification states: " readability: — internal commentary — meaningful identifiers" Meaningful identifiers and useful internal commentary aid understanding. The scenario gives no changed input handling, error tolerance or results, so those other criteria are not the direct improvement.

    Reference: National 5 Computing Science Course Specification — p.5 — Software design and development: Evaluation

  6. 6What denary value is represented by the unsigned binary number 00101101?

    1. A.41
    2. B.44
    3. C.46
    4. D.45Correct answer: D

    Explanation: The source states: "Similarly, each binary digit gives a multiple of a power of 2." Using place values128,64,32,16,8,4,2,1, the value is32+8+4+1=45.41 omits4;44 omits1;46 substitutes2 for the final1. No units or rounding apply.

    Reference: Duke University Computer Science — Lab7: Binary Numbers — Part1 — Binary and decimal digits

  7. 7Library staff need to find the books currently on loan to a named borrower. Which statement records the end user's requirement?

    1. A.The database will store a borrower ID field.
    2. B.Staff must be able to view that borrower's current loans.Correct answer: B
    3. C.The tables will use a primary–foreign key link.
    4. D.The query will use a WHERE clause.

    Explanation: The specification identifies "Their requirements are the tasks they expect to be able to do using the database.". The requirement describes what staff need to accomplish. A field, a key link and a SQL clause are design or implementation details for meeting it.

    Reference: National 5 Computing Science Course Specification — p.77 — Appendix14: End-user requirements

  8. 8In a flowchart for a parcel-pricing program, the next step must choose between two routes depending on whether mass exceeds 2 kg. Which symbol role is needed?

    1. A.A decision.Correct answer: A
    2. B.An input/output.
    3. C.A terminal.
    4. D.A process calculation.

    Explanation: The flowchart decision symbol is described as: "Problem may branch or repeat if conditions are met." A condition-based choice needs a decision; input/output transfers data, a terminal marks start/end, and a process represents work such as a calculation.

    Reference: National 5 Computing Science Course Specification — p.44 — Flowcharts

  9. 9A program needs the total cost of 5 items at £3 each plus a £2 delivery charge. Which Python expression calculates that amount?

    1. A.Multiply item count by price plus delivery: 5 * (3 + 2)
    2. B.Add item count to price times delivery: 5 + 3 * 2
    3. C.Multiply count by price, then add delivery: 5 * 3 + 2Correct answer: C
    4. D.Add count to price, then multiply by delivery: (5 + 3) * 2

    Explanation: The documentation states: "operators +, -, * and / can be used to perform arithmetic; parentheses (()) can be used for grouping." The item cost is5×3=15, then delivery adds2, giving£17. The other expressions give£25,£11 and£16 by grouping or combining the quantities incorrectly.

    Reference: Python Tutorial — An Informal Introduction — An Informal Introduction to Python — Numbers

  10. 10A validation routine accepts integer ages from 12 to 18 inclusive. Which pair tests both extreme valid values?

    1. A.11 and 19
    2. B.13 and 17
    3. C.12 and 18Correct answer: C
    4. D.12 and 19

    Explanation: The source states: "extreme data tests the boundaries of the range of data a program is expected to process" The valid endpoints are12 and18.11/19 test outside values,13/17 are interior, and12/19 mixes one valid endpoint with one invalid value.

    Reference: SQA — Software Development: Implementation and Testing — p.8 — Outcome2, test plan

Exam Review

About National 5 Computing Science

National 5 Computing Science · GB

Key exam facts

Provider
Qualifications Scotland is Scotland's national awarding body and now maintains, sets and externally marks the National 5 course assessment. It replaced SQA on 1 February 2026; SQA-branded course documents remain valid. Approved centres conduct assessments.
Format
Centre-based external written question paper: 80 marks, 67% of 120 course marks; supervised open-book practical assignment: 40 marks, 33%, externally marked. The paper includes short stand-alone and multipart context-based questions, restricted/extended responses, solution design and code writing. Software and computer systems are mandatory; database or web questions are optional alternatives, and software plus either database or web assignment tasks are taken. Full four-area scope retained for this bank.
Time limit
Question paper: 1 hour 30 minutes of answering time. Assignment: within 6 hours after all content has been delivered, normally over several shorter supervised sessions. These are distinct from the 160-hour notional course duration.
Passing score
A–D course award based on combined 120-mark course assessment. Notional grade C:50%; A:70%; D:40–49%, and D is itself a course award. Final grade boundaries are set for each course/year and may be adjusted; no permanent fixed percentage pass score is guaranteed.
Exam fee
Entry charges are available on enquiry: Qualifications Scotland's February2026 publication scheme says 'Please contact us' for fees and charges for its functions. It supplies no universal numeric candidate tariff. Ask Qualifications Scotland and the presenting centre for applicable charges in GBP; do not assume zero or apply a historical independent-school fee.

Topics covered

  • Analysis (5%)

  • Design (30%)

  • Implementation (40%)

  • Testing (10%)

  • Evaluation (5%)

  • Systems (10%)

How to prepare

Work through the topics, read the explanation after each answer, and revisit the areas where you miss questions. Use the official outline and reference materials below to guide your study.

These independent practice questions are not actual exam items and do not guarantee a passing result.

Frequently asked questions

What is the exam format?

Centre-based external written question paper: 80 marks, 67% of 120 course marks; supervised open-book practical assignment: 40 marks, 33%, externally marked. The paper includes short stand-alone and multipart context-based questions, restricted/extended responses, solution design and code writing. Software and computer systems are mandatory; database or web questions are optional alternatives, and software plus either database or web assignment tasks are taken. Full four-area scope retained for this bank.

How long is the exam?

Question paper: 1 hour 30 minutes of answering time. Assignment: within 6 hours after all content has been delivered, normally over several shorter supervised sessions. These are distinct from the 160-hour notional course duration.

What is the passing score?

A–D course award based on combined 120-mark course assessment. Notional grade C:50%; A:70%; D:40–49%, and D is itself a course award. Final grade boundaries are set for each course/year and may be adjusted; no permanent fixed percentage pass score is guaranteed.

How much does the exam cost?

Entry charges are available on enquiry: Qualifications Scotland's February2026 publication scheme says 'Please contact us' for fees and charges for its functions. It supplies no universal numeric candidate tariff. Ask Qualifications Scotland and the presenting centre for applicable charges in GBP; do not assume zero or apply a historical independent-school fee.

Official sources and references

Confirm current exam arrangements with the exam provider.