10th Class Computer Science — MCQs & Practice Questions

64 multiple-choice questions and 48 exam-style questions with mark schemes, organised by chapter, with answers you can check as you go. Free, no sign-up.

New to a topic? Read the 10th Class Computer Science notes first, then come back to practise.

01

Operating Systems: Structure and Services

Multiple choice · 8

Q1The always-resident core of an operating system is called the:

  1. Ashell
  2. Bkernel
  3. Cdriver
  4. DBIOS
Show answer

Correct answer: B — kernel

The kernel manages the CPU, memory and devices and stays in memory throughout. The shell is the user interface and can be replaced.

Q2Twenty programs appear to run at once on one core because the OS:

  1. Auses more cores
  2. Bswitches between them very quickly
  3. Ccompresses them
  4. Druns them on the GPU
Show answer

Correct answer: B — switches between them very quickly

Time-slicing gives each a few milliseconds in turn. Only one instruction actually executes at any moment.

Q3A slow machine with constant disk activity most likely indicates:

  1. Aa virus
  2. BRAM is full and the OS is paging
  3. Ca broken monitor
  4. Dtoo few cores
Show answer

Correct answer: B — RAM is full and the OS is paging

The disk is busy because memory pages are being written out and read back. If the CPU were the bottleneck the processor, not the disk, would be saturated.

Q4Which operating system type guarantees a maximum response time?

  1. AMulti-user
  2. BReal-time
  3. CSingle-tasking
  4. DDistributed
Show answer

Correct answer: B — Real-time

A real-time OS is used where a late response is as dangerous as a wrong one — patient monitors, vehicle control, industrial machinery.

Q5File permissions typically control:

  1. Afile size
  2. Bread, write and execute rights
  3. Cthe file format
  4. Ddisk speed
Show answer

Correct answer: B — read, write and execute rights

Each is granted separately to the owner, a group and everyone else, which is how a system lets some users read a file while preventing them from changing it.

Q6Emptying the recycle bin means the data is:

  1. Asecurely erased
  2. Bstill on the disk until overwritten
  3. Cmoved to the cloud
  4. Dcompressed
Show answer

Correct answer: B — still on the disk until overwritten

Only the index entry is removed. Recovery software can retrieve the contents, which is why a disk being sold must be securely wiped.

Q7Virtual memory addressing allows the OS to:

  1. Aincrease physical RAM
  2. Bgive each program a private address space mapped onto real RAM
  3. Cspeed up the CPU
  4. Dremove the need for a disk
Show answer

Correct answer: B — give each program a private address space mapped onto real RAM

Programs are written without knowing where they will sit in memory, and the mapping is what prevents one program from reading another's data.

Q8Adding RAM helps a heavily paging machine more than a faster SSD because it:

  1. Aremoves the need to page at all
  2. Bmakes the disk faster
  3. Creduces CPU load
  4. Dincreases clock speed
Show answer

Correct answer: A — removes the need to page at all

A faster disk shortens each swap; more RAM means the swap never has to happen. Removing the cause beats reducing the symptom.

Exam-style questions · 6

Q1[2 marks]
What is the kernel of an operating system?
Answer

The core of the OS, permanently resident in memory, which manages the CPU, memory and devices and controls access to them. Other parts of the OS such as the user interface can be restarted or replaced; the kernel cannot.

Q2[2 marks]
Explain how a single-core processor appears to run several programs at once.
Answer

Through time-slicing: the operating system gives each program a few milliseconds of CPU time in turn and switches between them far faster than a person can perceive. Only one instruction is ever executing, so the simultaneity is an illusion.

Q3[2 marks]
Why should everyday work not be done from an administrator account?
Answer

Any program that runs inherits the permissions of the account that started it. Malware launched from an administrator account can therefore alter system files and install itself permanently, whereas the same malware run from a standard account is confined to that user's own files.

Q4[4 marks]
Describe four services provided by an operating system.
Mark scheme
  1. Process management — scheduling which program uses the CPU and for how long[1]
  2. Memory management — allocating RAM to each program and keeping them separate[1]
  3. File management — organising storage into files and folders and controlling access to them[1]
  4. Device management — communicating with hardware through drivers; also accept security and user accounts[1]

Process, memory, file and device management — plus security and the user interface.

Q5[4 marks]
A computer with 4 GB of RAM becomes extremely slow when many applications are open, and the disk activity light stays on. Explain the cause and suggest two solutions.
Mark scheme
  1. RAM has filled, so the OS is moving pages of memory out to disk — paging or swappingthe constant disk light is the clue[1]
  2. Disk access is thousands of times slower than RAM, so every switch between programs now waits on the diskthe speed gap is the explanation[1]
  3. Solution: close unused applications and reduce the number of programs starting automatically[1]
  4. Solution: install more RAM, which removes the need to page rather than merely making paging fasteran SSD helps but does not fix the cause[1]

RAM is full and the OS is paging to disk. Close programs, or add RAM.

Q6[6 marks]
A hospital uses computers for two very different jobs: office machines for administration, and a monitor attached to a patient that must raise an alarm within a guaranteed time.
  1. State the type of operating system suited to each, with a reason.
  2. Explain what "real-time" guarantees and why it matters here.
  3. Explain one way file permissions protect patient records on the office machines.
Mark scheme
  1. Office machines: a single-user multi-tasking operating system, since one person at a time runs several applications togetheraccept multi-user for shared machines[1]
  2. Patient monitor: a real-time operating system[1]
  3. Real-time guarantees that a response occurs within a fixed maximum time, not merely quickly on averagethe guarantee is the distinguishing feature[1]
  4. For a patient monitor an alarm raised late is as dangerous as no alarm, so a predictable worst case matters more than average speed[1]
  5. File permissions grant read, write and execute rights separately to the owner, a group and others[1]
  6. So clinical staff can be given read access to records while administrative staff cannot open them at all, and only authorised users may alter themthe example must fit the hospital[1]

(a) multi-tasking for the office, real-time for the monitor (b) a guaranteed maximum response time (c) separate read and write rights per group

02

System Recovery and Advanced Maintenance

Multiple choice · 8

Q1A system restore point will recover:

  1. Adeleted documents
  2. Bsystem settings and installed programs
  3. Ca failed hard disk
  4. Da forgotten password
Show answer

Correct answer: B — system settings and installed programs

Restore points roll back system configuration. They do not touch user documents, which is why they are the wrong tool for data loss.

Q2A computer is stable in safe mode but crashes normally. This suggests:

  1. Aa failed disk
  2. Ba driver or startup program is at fault
  3. Cinsufficient RAM
  4. Da virus in the BIOS
Show answer

Correct answer: B — a driver or startup program is at fault

Safe mode omits exactly those items. If the fault vanishes when they are not loaded, one of them is responsible.

Q3Recovery media must be created:

  1. Aafter the machine fails
  2. Bwhile the machine still works
  3. Cby the manufacturer only
  4. Devery day
Show answer

Correct answer: B — while the machine still works

A machine that will not boot cannot be used to write its own rescue disk. Preparing it in advance is the entire point.

Q4Defragmenting an SSD is:

  1. Aessential monthly
  2. Bharmful and pointless
  3. Cfaster than on a hard disk
  4. Drequired before backup
Show answer

Correct answer: B — harmful and pointless

There is no seek time to save, and the millions of extra writes consume the flash cells' limited endurance.

Q5Storing a backup on a second partition of the same disk is inadequate because:

  1. Apartitions are slower
  2. Ba disk failure destroys both partitions
  3. Cpartitions cannot hold backups
  4. Dit uses more power
Show answer

Correct answer: B — a disk failure destroys both partitions

A partition is a logical division of one physical device. When the device fails, every partition on it fails together.

Q6Which recovers a machine after total disk failure with least effort?

  1. AA file backup
  2. BA restore point
  3. CA system image
  4. DSafe mode
Show answer

Correct answer: C — A system image

The image contains the operating system, programs and settings as well as the data, so the replacement disk is restored exactly rather than rebuilt from scratch.

Q7Disk health monitoring is useful because it:

  1. Aspeeds up the disk
  2. Boften warns of failure before it happens
  3. Crecovers deleted files
  4. Ddefragments automatically
Show answer

Correct answer: B — often warns of failure before it happens

Drives track their own error counters, and a rising count frequently gives days of notice — enough time to copy the data off.

Q8The most important property of a backup arrangement is that it is:

  1. Alarge
  2. Bautomatic and tested
  3. Cstored on the same machine
  4. Dcompressed
Show answer

Correct answer: B — automatic and tested

A backup depending on someone remembering will eventually be forgotten, and one never restored from is only assumed to work.

Exam-style questions · 6

Q1[2 marks]
Differentiate between a system restore point and a file backup.
Answer

A system restore point saves system files, settings and installed programs, and is used to undo a bad update or driver. A file backup copies the user's own documents. A restore point will not recover a deleted file, and a backup will not repair a broken operating system.

Q2[2 marks]
What is safe mode, and what does it tell you?
Answer

Safe mode starts the operating system with only essential drivers and no startup programs. If the machine is stable in safe mode, the fault must lie in one of the drivers or startup programs that safe mode did not load — which narrows the search considerably.

Q3[2 marks]
Why should an SSD not be defragmented?
Answer

An SSD has no moving parts and reaches every location equally quickly, so there is no time to be saved. Defragmentation performs a very large number of writes, and each flash cell tolerates only a limited number, so it shortens the drive's life for no benefit.

Q4[4 marks]
A user's computer will not start after installing a new graphics driver. Describe the steps to recover it.
Mark scheme
  1. Boot into safe mode, which loads a basic display driver instead of the new one[1]
  2. Uninstall the new driver, or use Device Manager to roll it back to the previous version[1]
  3. Alternatively use a system restore point created before the driver was installedthis is exactly what restore points are for[1]
  4. Restart normally and confirm the machine boots; then install a driver version known to workverification is part of the process[1]

Safe mode, then roll back or uninstall the driver — or restore to a point from before the installation.

Q5[4 marks]
Explain the difference between a system image and a file backup, and state when each should be used.
Mark scheme
  1. A system image is a complete copy of the entire drive, including the operating system, programs and settings[1]
  2. A file backup copies only the user's chosen documents and data[1]
  3. Use an image after a total disk failure or major corruption, so the machine is restored exactly without reinstalling everything[1]
  4. Use file backups frequently, since documents change daily, whereas an image is large and slow and is made occasionallythe frequency point is the practical insight[1]

An image restores the whole machine; a backup restores the documents. Image occasionally, files frequently.

Q6[6 marks]
A small office has ten computers with no backup arrangements. One has just failed, losing three years of records.
  1. Recommend a backup strategy, explaining the role of each part.
  2. Explain why storing the backup on a second partition of the same disk would be inadequate.
  3. Suggest one maintenance task that might have given warning before the disk failed.
Mark scheme
  1. Automatic daily file backups of documents, so no more than one day's work is ever lostautomatic, not left to the user[1]
  2. Periodic system images so a failed machine can be restored without reinstalling everything[1]
  3. Follow the 3-2-1 rule — three copies, two media types, one off-site or in the cloud — and test a restorean untested backup is an assumption[1]
  4. A second partition is on the same physical disk, so a disk failure destroys both partitions at oncethe key point[1]
  5. It also offers no protection against theft, fire or ransomware, all of which reach everything on the machine[1]
  6. Disk health monitoring reports the drive's own error counters and often warns of impending failure days in advanceaccept regular disk checks[1]

(a) daily automatic file backups plus periodic images, following 3-2-1 and tested (b) a partition shares the physical disk, so both die together (c) disk health monitoring

03

Introduction to Python Programming

Multiple choice · 8

Q1What does input() return?

  1. Aan integer
  2. Ba string
  3. Ca float
  4. Dwhatever type was typed
Show answer

Correct answer: B — a string

Always a string. Python cannot know what you intended, so it hands back the characters and leaves the conversion to you.

Q2If the user types 4 and 6 into a = input(); b = input(); print(a + b), the output is:

  1. A10
  2. B46
  3. Can error
  4. D4 6
Show answer

Correct answer: B — 46

Both are strings, so + joins them into "46". No error is raised, which is why this bug is so easy to miss.

Q39 // 4 evaluates to:

  1. A2.25
  2. B2
  3. C1
  4. D2.0
Show answer

Correct answer: B — 2

Integer division discards the fractional part and returns a whole number. 9 / 4 would give 2.25.

Q410 % 3 evaluates to:

  1. A3
  2. B1
  3. C3.33
  4. D0
Show answer

Correct answer: B — 1

10 divided by 3 is 3 remainder 1, and % returns the remainder. This is how you test divisibility: a remainder of 0 means it divides exactly.

Q5Which is a valid Python variable name?

  1. A2marks
  2. Btotal marks
  3. Ctotal_marks
  4. Dprint
Show answer

Correct answer: C — total_marks

Names cannot start with a digit or contain spaces, and print is a built-in that should not be reused. Underscores are the usual way to join words.

Q6x = 5 followed by x = 8 results in:

  1. Atwo variables
  2. Bx holding 8
  3. Can error
  4. Dx holding 13
Show answer

Correct answer: B — x holding 8

The second assignment points the same name at a new value. The 5 is simply discarded.

Q7To compare whether two values are equal you use:

  1. A=
  2. B==
  3. C=>
  4. D!=
Show answer

Correct answer: B — ==

A single = assigns. A double == compares and produces True or False; != tests for inequality.

Q8Swapping the values of a and b requires:

  1. Aa = b then b = a
  2. Ba third temporary variable
  3. Cnothing — Python swaps automatically
  4. Da loop
Show answer

Correct answer: B — a third temporary variable

After a = b the original value of a is gone, so b = a just copies b back to itself. Saving the old value in temp first is what makes the swap work.

Exam-style questions · 6

Q1[2 marks]
What is a variable, and what does x = 10 do?
Answer

A variable is a named location in memory holding a value. x = 10 creates the name x and assigns the integer value 10 to it. Assigning again later replaces the value rather than creating a second variable.

Q2[2 marks]
Why must int() often be used with input()?
Answer

Because input() always returns a string, even when the user types digits. Without conversion, + would join the text instead of adding — "5" + "3" gives "53" — and comparisons would compare text rather than numeric value.

Q3[2 marks]
State the difference between = and ==.
Answer

= is the assignment operator, storing a value in a variable. == is the comparison operator, testing whether two values are equal and producing True or False.

Q4[4 marks]
Write a Python program that asks the user for the length and width of a rectangle and prints its area.
Mark scheme
  1. length = float(input("Enter length: "))float rather than int allows decimal measurements[1]
  2. width = float(input("Enter width: "))[1]
  3. area = length * widtha meaningful variable name is expected[1]
  4. print("The area is", area)output must be labelled, not a bare number[1]

Read both values as floats, multiply, and print with a label.

Q5[4 marks]
State the output of each: (i) print(7 // 2) (ii) print(7 % 2) (iii) print(7 / 2) (iv) print(2 ** 3)
Mark scheme
  1. (i) 3 — integer division discards the remaindernot 3.5[1]
  2. (ii) 1 — the remainder when 7 is divided by 2[1]
  3. (iii) 3.5 — / always produces a floatnote the decimal point[1]
  4. (iv) 8 — ** is the power operator2 cubed[1]

(i) 3 (ii) 1 (iii) 3.5 (iv) 8

Q6[6 marks]
A student writes this program to calculate a average of two test marks: a = input("Mark 1: "), b = input("Mark 2: "), avg = a + b / 2, print(avg)
  1. Identify two errors in this program.
  2. Write a corrected version.
  3. Explain how you would test that your corrected version works.
Mark scheme
  1. Error 1: the inputs are strings, so they are joined rather than addedint() or float() is missing[1]
  2. Error 2: operator precedence — a + b / 2 divides b by 2 first, so brackets are needed: (a + b) / 2this error survives even after the type is fixed[1]
  3. Corrected input lines using float(input(…))[1]
  4. avg = (a + b) / 2 followed by a labelled print[1]
  5. Test with normal data, such as 60 and 80, and check the answer is 70a value you can verify by hand[1]
  6. Test with boundary data such as 0 and 100, and with erroneous data such as text, to see how it behavesall three kinds of test data[1]

(a) inputs not converted, and missing brackets (b) float(input(…)) and (a+b)/2 (c) normal, boundary and erroneous data

04

Control Structures in Python

Multiple choice · 8

Q1How many times does for i in range(3, 8): repeat?

  1. A3
  2. B5
  3. C8
  4. D6
Show answer

Correct answer: B — 5

i takes the values 3, 4, 5, 6, 7 — five values. The upper bound 8 is where it stops and is never used.

Q2Which loop suits "keep asking until the password is correct"?

  1. Afor
  2. Bwhile
  3. Cif
  4. Drange
Show answer

Correct answer: B — while

The number of attempts is unknown in advance and depends on what the user types, which is exactly the condition-controlled case.

Q3In Python, what determines which lines are inside an if block?

  1. Acurly brackets
  2. Bsemicolons
  3. Cindentation
  4. Dthe end keyword
Show answer

Correct answer: C — indentation

Indentation is grammatical in Python. Moving a line by four spaces changes which block it belongs to and therefore what the program does.

Q4With m = 90, the chain if m>=40 … elif m>=80 … prints the grade for 40 because:

  1. A90 is not 80
  2. BPython stops at the first true condition
  3. Celif is not allowed
  4. Dthe indentation is wrong
Show answer

Correct answer: B — Python stops at the first true condition

The first test succeeds, so the chain ends there and the later branches are never examined. Conditions must run from most restrictive to least.

Q5A while loop that never ends usually means:

  1. Athe condition is too complex
  2. Bnothing inside changes the condition variable
  3. Cthe loop is nested
  4. Drange was used
Show answer

Correct answer: B — nothing inside changes the condition variable

If the variable the condition tests is never modified, the condition stays true for ever. Every while loop needs something inside it that moves towards stopping.

Q6Two nested loops each running 5 times execute the inner body:

  1. A5 times
  2. B10 times
  3. C25 times
  4. Dunknown
Show answer

Correct answer: C — 25 times

The inner loop runs completely for every pass of the outer one, so 5 × 5 = 25.

Q7Where should total = 0 be placed when summing values in a loop?

  1. Ainside the loop
  2. Bbefore the loop
  3. Cafter the loop
  4. Dit does not matter
Show answer

Correct answer: B — before the loop

Inside, it would reset to zero on every pass and the final total would be just the last value added.

Q8break in a loop:

  1. Askips one pass
  2. Bexits the loop immediately
  3. Crestarts the loop
  4. Dcauses an error
Show answer

Correct answer: B — exits the loop immediately

It leaves the loop entirely. continue is the one that skips only the current pass.

Exam-style questions · 6

Q1[2 marks]
Name the three control structures and give one Python keyword for each.
Answer

Sequence — statements written one after another, needing no keyword. Selectionif. Iterationfor or while.

Q2[2 marks]
When should a while loop be used instead of a for loop?
Answer

When the number of repetitions is not known in advance and depends on a condition evaluated during the loop — for example repeating until the user enters valid input or types "quit". A for loop is used when the count is fixed beforehand.

Q3[2 marks]
How many times does the body of for i in range(2, 7): execute?
Answer

Five times, with i taking the values 2, 3, 4, 5 and 6. The upper bound 7 is where the sequence stops and is not itself used.

Q4[4 marks]
Write a Python program that prints the numbers from 1 to 20 that are divisible by 3.
Mark scheme
  1. for n in range(1, 21): — the upper bound must be 21 to include 20the off-by-one is examined here[1]
  2. if n % 3 == 0:the remainder test for divisibility[1]
  3. print(n) correctly indented inside the ifindentation is part of the mark[1]
  4. Output: 3, 6, 9, 12, 15, 18[1]

A for loop over range(1, 21) with an if n % 3 == 0 test inside.

Q5[4 marks]
This code is intended to count down from 5 to 1 but instead runs for ever. Identify the fault and correct it. count = 5 / while count > 0: / print(count)
Mark scheme
  1. Nothing inside the loop changes count[1]
  2. So the condition count > 0 is true on every pass and never becomes false — an infinite loopnaming it as infinite is expected[1]
  3. Add count = count - 1 inside the loopaccept count -= 1[1]
  4. It must be indented inside the loop; placed outside it would run only once, after the loopthe indentation point is a mark[1]

The loop variable is never decremented. Add count = count - 1 indented inside the loop.

Q6[6 marks]
A program should read ten test marks, count how many are 50 or above, and print both the count and the average.
  1. State which loop type is appropriate and why.
  2. Write the program.
  3. Explain where the print statements must be placed and why.
Mark scheme
  1. A for loop, because the number of marks is known in advance to be tenthe reason must be given[1]
  2. Initialise total = 0 and passes = 0 before the loopaccumulators must start outside the loop[1]
  3. for i in range(10): then read a mark and add it to total[1]
  4. if mark >= 50: passes = passes + 1, correctly indented inside the loop[1]
  5. After the loop: print(passes) and print(total / 10)[1]
  6. The prints must be outside the loop, because inside they would run on every pass and print ten partial results instead of one final answerthe reason is the mark[1]

(a) for, since ten is known (b) accumulators before, loop reads and tests, prints after (c) outside, or they print ten partial results

05

Data Science

Multiple choice · 8

Q1The numbers 12, 45, 78 with no context are an example of:

  1. Ainformation
  2. Bdata
  3. Cknowledge
  4. Danalysis
Show answer

Correct answer: B — data

They are raw facts with no meaning attached. Adding context — "marks out of 100 in a test" — turns them into information.

Q2Which is primary data?

  1. AGovernment census figures
  2. BA survey you conducted yourself
  3. CA published research paper
  4. DLast year's school records
Show answer

Correct answer: B — A survey you conducted yourself

Primary data is gathered by you for your own question. The other three already existed and were collected for other purposes.

Q3Data cleaning includes:

  1. Adrawing charts
  2. Bremoving duplicates and correcting errors
  3. Cwriting the report
  4. Dchoosing a sample
Show answer

Correct answer: B — removing duplicates and correcting errors

Cleaning happens between collection and analysis, and it typically takes longer than the analysis itself.

Q4A survey of internet use asks only people in an internet café. This sample is:

  1. Arandom
  2. Bstratified
  3. Cbiased
  4. Dtoo large
Show answer

Correct answer: C — biased

Everyone asked is already an internet user, so people without access — the group whose answers would differ most — are excluded entirely.

Q5Increasing a biased sample from 100 to 5000 people:

  1. Aremoves the bias
  2. Bmeasures the wrong thing more precisely
  3. Cmakes it random
  4. Dhas no effect at all
Show answer

Correct answer: B — measures the wrong thing more precisely

Bias is a fault in who is included. A larger sample narrows the uncertainty around an answer that is still systematically wrong.

Q6Which chart best shows monthly rainfall across one year?

  1. APie chart
  2. BLine graph
  3. CScatter plot
  4. DVenn diagram
Show answer

Correct answer: B — Line graph

The data is ordered in time and continuous, so a line graph reveals the seasonal trend. A pie chart would show proportions and hide the pattern.

Q7A scatter plot shows ice cream sales rising with drowning deaths. This means:

  1. Aice cream causes drowning
  2. Bthere is a correlation but not necessarily a cause
  3. Cthe data is wrong
  4. Ddrowning causes ice cream sales
Show answer

Correct answer: B — there is a correlation but not necessarily a cause

Hot weather increases both independently. Correlation shows two things move together; establishing a cause needs a separate investigation.

Q8In a dataset of daily temperatures, three readings of 400 °C should be:

  1. Akept, as they may be real
  2. Btreated as errors and removed
  3. Creplaced with zero
  4. Daveraged with the others
Show answer

Correct answer: B — treated as errors and removed

They are physically impossible and are sensor faults. Averaging them in would raise the mean substantially and produce a confident, wrong conclusion.

Exam-style questions · 6

Q1[2 marks]
Differentiate between data and information, with an example.
Answer

Data is raw unprocessed facts with no context, such as the numbers 45, 62, 71. Information is data that has been given meaning — those are three students' marks out of 100 in a physics test.

Q2[2 marks]
State one advantage and one disadvantage of secondary data.
Answer

Advantage: it already exists, so it is quick and cheap to obtain and often covers a far larger population than you could survey. Disadvantage: it was collected for a different purpose, so it may be out of date or may not exactly answer your question, and you cannot verify how carefully it was gathered.

Q3[2 marks]
What is meant by bias in a sample?
Answer

Bias occurs when the sample is not representative of the population, so certain groups are over- or under-represented and the results are systematically wrong. For example, surveying only smartphone owners about internet access excludes exactly the people whose answers would differ.

Q4[4 marks]
Describe the stages of the data science process.
Mark scheme
  1. Define the question or problem to be answeredcollecting before deciding what you want to know produces unusable data[1]
  2. Collect the data from appropriate primary or secondary sources[1]
  3. Clean it — remove duplicates, correct errors and handle missing valuesthe stage most often omitted[1]
  4. Analyse it, then present the findings in a suitable visual form[1]

Define the question, collect, clean, analyse, present.

Q5[4 marks]
A school surveys students about canteen food by asking the first 30 students to arrive one morning.
  1. Explain why this sample may be biased.
  2. Suggest a better sampling method and justify it.
Mark scheme
  1. The first students to arrive are not typical — they may live nearby, travel by a particular route, or be in certain year groups[1]
  2. Their views on the canteen may differ systematically from those of students who arrive later, so the sample is unrepresentativethe link to unrepresentativeness is the mark[1]
  3. A stratified sample would divide students by year group and sample each in proportion to its sizeaccept random sampling from the full roll[1]
  4. This ensures every year group is represented in the correct proportion, so the results reflect the whole schoolthe justification is required[1]

(a) early arrivals are not typical of the school (b) stratified sampling by year group, so each is represented proportionally

Q6[6 marks]
A researcher collects daily temperature readings from an automatic sensor for one year.
  1. Give two advantages of using a sensor rather than manual readings.
  2. The dataset contains three days recorded as 400 °C and eleven days with no reading at all. Describe how you would handle each.
  3. Suggest the most suitable chart for showing how temperature varied over the year, and justify your choice.
Mark scheme
  1. A sensor records continuously and automatically, so no readings are forgotten and none are affected by human error in reading a scale[1]
  2. It can record far more frequently than a person could, and at times when nobody is present[1]
  3. The 400 °C values are clearly impossible and are sensor errors, so they should be removed or marked as invalid rather than analysedidentifying them as outliers or errors[1]
  4. The missing days should be recorded as missing, not as zero — entering 0 °C would drag the mean down and invent a cold spell that never happenedthis is the key insight[1]
  5. A line graph, with date on the horizontal axis and temperature on the vertical[1]
  6. Because the data is continuous and ordered in time, a line graph shows the trend and the seasonal pattern that separate bars would obscurethe justification is the mark[1]

(a) continuous automatic recording, no human error (b) discard the impossible values; mark the gaps as missing, never as zero (c) a line graph, because the data is continuous over time

06

Introduction to Artificial Intelligence and Machine Learning

Multiple choice · 8

Q1In machine learning, the computer produces:

  1. Athe data
  2. Bthe rules
  3. Cthe hardware
  4. Dthe labels
Show answer

Correct answer: B — the rules

You supply data and answers; the system derives the rules that connect them. That inversion is the whole idea.

Q2Training on photographs labelled "cat" or "dog" is:

  1. Aunsupervised learning
  2. Bsupervised learning
  3. Creinforcement learning
  4. Dnot machine learning
Show answer

Correct answer: B — supervised learning

The labels are the correct answers supplied with the data, which is precisely what makes learning supervised.

Q3Grouping customers into segments nobody defined in advance is:

  1. Asupervised
  2. Bunsupervised
  3. Creinforcement
  4. Doverfitting
Show answer

Correct answer: B — unsupervised

There are no labels; the structure is discovered by the system rather than specified by a person.

Q4A model scoring 99% on training data and 55% on new data is:

  1. Aunderfitting
  2. Boverfitting
  3. Cwell trained
  4. Dunsupervised
Show answer

Correct answer: B — overfitting

The gap shows it memorised its examples rather than learning the general pattern. A model that generalised would score similarly on both.

Q5Algorithmic bias mainly arises from:

  1. Abugs in the code
  2. Bpatterns present in the training data
  3. Cslow hardware
  4. Dtoo much test data
Show answer

Correct answer: B — patterns present in the training data

The model faithfully reproduces what it was shown. If the historical data recorded unfair decisions, the model learns to make them.

Q6The test set must be:

  1. Apart of the training data
  2. Bdata the model has never seen
  3. Clabelled by the model
  4. Das small as possible
Show answer

Correct answer: B — data the model has never seen

Only unseen data measures generalisation. Testing on training data measures memory, which is not what the model is for.

Q7The "black box" problem means a model:

  1. Aruns too slowly
  2. Bcannot explain how it reached a decision
  3. Cneeds no data
  4. Dhas no output
Show answer

Correct answer: B — cannot explain how it reached a decision

This is tolerable for a film recommendation and unacceptable for a loan refusal, where the person affected is entitled to a reason.

Q8Reinforcement learning improves by:

  1. Abeing given the correct answers
  2. Breceiving rewards and penalties for its actions
  3. Cgrouping unlabelled data
  4. Dcopying another model
Show answer

Correct answer: B — receiving rewards and penalties for its actions

It is told only how well it did, not what it should have done, and improves over very many attempts.

Exam-style questions · 6

Q1[2 marks]
Differentiate between artificial intelligence and machine learning.
Answer

Artificial intelligence is the broad field of making machines perform tasks that would ordinarily require human intelligence. Machine learning is a subset of AI in which the system learns patterns from data rather than being given explicit rules. All machine learning is AI; not all AI is machine learning.

Q2[2 marks]
What is supervised learning? Give an example.
Answer

Learning from data in which each example is labelled with the correct answer. The model learns to reproduce those labels on new data. Example: training on photographs already tagged "cat" or "dog" so the system can classify unseen photographs.

Q3[2 marks]
Why must a model be tested on data it has not been trained on?
Answer

Because a model can score perfectly on data it has effectively memorised, which says nothing about how it will behave on new examples. Only unseen data measures whether it has learned the general pattern — the property that actually matters in use.

Q4[4 marks]
Describe the difference between supervised, unsupervised and reinforcement learning, giving one use of each.
Mark scheme
  1. Supervised: trained on labelled data — for example spam detection from emails already marked spam or not[1]
  2. Unsupervised: trained on unlabelled data and finds structure itself — for example grouping customers into segments[1]
  3. Reinforcement: learns by acting and receiving rewards or penalties — for example a program learning to play a game[1]
  4. The distinguishing factor is what the training data contains: answers, no answers, or a reward signalthe unifying statement earns the fourth mark[1]

Labelled data, unlabelled data, and reward feedback respectively.

Q5[4 marks]
A bank uses a machine learning model trained on its past lending decisions to approve loans. Explain how bias could arise and state two ways to reduce it.
Mark scheme
  1. The model learns the patterns in the historical decisions, including any that were unfair[1]
  2. If certain groups were refused disproportionately in the past, the model reproduces that pattern while appearing objectivethe appearance of objectivity is part of the harm[1]
  3. Reduce it by examining the training data for representativeness, and testing outcomes separately for each group[1]
  4. And by keeping a human decision-maker for consequential decisions, with a documented route to appealaccept requiring the model to be explainable[1]

The model learns historical unfairness. Audit the data, test outcomes per group, and keep human oversight.

Q6[6 marks]
A school wants to use machine learning to predict which students are at risk of failing, so extra help can be offered.
  1. Describe the data the system would need and how it would be trained.
  2. Explain one way the system could produce unfair results.
  3. Explain why a teacher should review every prediction before action is taken.
Mark scheme
  1. Historical records of past students — attendance, assessment marks, homework completion — each labelled with whether that student ultimately passed or failedlabelled data, so this is supervised learning[1]
  2. The data is split into a training set and a test set; the model learns from the first and is measured on the second[1]
  3. Unfairness: if the historical data reflects a group that was under-supported in the past, the model predicts failure for that group and the prediction becomes self-fulfilling[1]
  4. Or: a feature that correlates with background rather than ability — such as distance travelled to school — drives the predictioneither example accepted[1]
  5. A prediction is a statistical likelihood about a group, not a fact about the individual student in front of the teacher[1]
  6. The model cannot explain its reasoning, and being labelled "likely to fail" could itself affect how a student is treated and how they see themselves[1]

(a) labelled historical records, split into training and test sets (b) it reproduces past under-support as a prediction (c) a prediction is about likelihood, not about the individual, and cannot justify itself

07

Applications of AI

Multiple choice · 8

Q1AI is best suited to tasks involving:

  1. Amoral judgement
  2. Bfinding patterns in large amounts of data
  3. Cunfamiliar novel situations
  4. Dexplaining its reasoning
Show answer

Correct answer: B — finding patterns in large amounts of data

That single capability underlies every successful application. The other three are precisely where these systems are weakest.

Q2Using AI to flag scans for a radiologist to review is an example of:

  1. Areplacement
  2. Btriage
  3. Creinforcement learning
  4. Doverfitting
Show answer

Correct answer: B — triage

The system sorts by likely urgency and the human still decides, so its errors are caught while the speed benefit is kept.

Q3A legitimate transaction blocked by a fraud system is a:

  1. Afalse negative
  2. Bfalse positive
  3. Cbias
  4. Dblack box
Show answer

Correct answer: B — false positive

The system positively identified fraud where there was none. A false negative would be real fraud allowed through.

Q4A model trained on data from one country may fail elsewhere because:

  1. Athe code is different
  2. Bthe population it learned from differs from the one it is used on
  3. Cthe hardware differs
  4. Dthe language differs
Show answer

Correct answer: B — the population it learned from differs from the one it is used on

A model reproduces patterns from its training data. If the new population differs in ways that matter, those patterns may not hold.

Q5The strongest argument against fully automating a benefits decision is:

  1. Ait would be slower
  2. Bthe applicant could not be told why they were refused
  3. Ccomputers are expensive
  4. Dit needs internet
Show answer

Correct answer: B — the applicant could not be told why they were refused

A consequential decision affecting a person requires a reason they can understand and challenge. Speed and consistency do not compensate for its absence.

Q6Deskilling means:

  1. Aworkers are retrained
  2. Ba skill is lost because it is always automated
  3. Cthe AI becomes less accurate
  4. Djobs are created
Show answer

Correct answer: B — a skill is lost because it is always automated

A capability nobody exercises eventually disappears, which matters most at the moment the automated system fails and someone must step in.

Q7Which is a genuine environmental cost of AI?

  1. Ae-waste from sensors
  2. Bthe electricity used to train large models
  3. Cpaper use
  4. Dwater in data entry
Show answer

Correct answer: B — the electricity used to train large models

Training a large model consumes a substantial amount of electricity, which is an increasingly common point in exam answers about drawbacks.

Q8When AI applies the same rule to every applicant, the benefit is:

  1. Acreativity
  2. Bconsistency
  3. Cempathy
  4. Dexplainability
Show answer

Correct answer: B — consistency

Human assessors vary between themselves and across a working day. Consistency is a real advantage — though it also means a flawed rule is applied uniformly to everyone.

Exam-style questions · 6

Q1[2 marks]
Give one application of AI in healthcare and state its main benefit.
Answer

AI can analyse medical images such as chest X-rays and flag those most likely to show disease, so a radiologist reviews the urgent cases first. The benefit is speed and consistency: it works continuously without fatigue, letting a small number of specialists cover a large population.

Q2[2 marks]
State two disadvantages of using AI in decision-making.
Answer

It usually cannot explain how it reached a decision, so a person affected cannot be told why. And it reproduces the biases in its training data while appearing objective, which can make unfair outcomes harder to challenge.

Q3[2 marks]
Explain one way AI can help farmers.
Answer

A farmer can photograph an affected leaf with a phone and a model identifies the crop disease and suggests treatment. This reaches farms that an agricultural extension officer could not visit often enough, and gives an answer within seconds rather than days.

Q4[4 marks]
Describe two benefits and two risks of self-driving vehicles.
Mark scheme
  1. Benefit: they do not tire, become distracted or drive under the influence, and human error causes most collisions[1]
  2. Benefit: they can give independent mobility to people unable to drive, and can coordinate to reduce congestion[1]
  3. Risk: an unfamiliar situation not represented in training may be handled badly, and roads present many such situations[1]
  4. Risk: responsibility for a collision is unclear — the owner, the manufacturer or the software developer — and the vehicle is a target for interferenceaccept job losses among professional drivers[1]

Benefits: no fatigue or distraction, and mobility for non-drivers. Risks: unfamiliar situations, and unclear liability.

Q5[4 marks]
A bank introduces an AI system to detect fraudulent transactions. Explain why this suits AI, and state one problem it may cause customers.
Mark scheme
  1. There are millions of transactions, far more than any human team could examine[1]
  2. Fraud shows as an unusual pattern, and finding patterns in large volumes of data at speed is exactly what these systems do well[1]
  3. Problem: false positives — a legitimate but unusual transaction is blocked, such as a card used abroad on holiday[1]
  4. The customer is inconvenienced and may not be told why, since the system cannot explain the pattern it reacted tothe inability to explain is the sharper point[1]

The volume and the pattern-matching suit AI; the cost is blocked legitimate transactions with no explanation.

Q6[6 marks]
A government department proposes using AI to decide which applicants receive financial assistance, replacing the current human assessors.
  1. Give two arguments in favour of the proposal.
  2. Give two arguments against.
  3. Recommend how the system should be used, with justification.
Mark scheme
  1. In favour: decisions would be made far faster and applicants would wait less[1]
  2. In favour: the same rules would be applied to every applicant, removing the inconsistency between individual assessors[1]
  3. Against: trained on past decisions, it would reproduce any historical unfairness while appearing objective[1]
  4. Against: an applicant refused assistance could not be told why, and would have no meaningful basis for appealthe accountability point[1]
  5. Recommendation: use the system to sort and prioritise applications, with a human assessor making every final decision[1]
  6. Justified because the speed and consistency are gained while accountability and the right to an explanation are preserved, and unusual cases still reach a personthe justification must address both sides[1]

(a) speed and consistency (b) inherited bias and no explanation (c) AI prioritises, humans decide — keeping the benefit and the accountability

08

Digital Entrepreneurship

Multiple choice · 8

Q1A minimum viable product is:

  1. Aa cheap low-quality product
  2. Bthe smallest version that delivers real value and tests an assumption
  3. Cthe final product
  4. Da prototype nobody uses
Show answer

Correct answer: B — the smallest version that delivers real value and tests an assumption

It is deliberately narrow, not unfinished. Its whole purpose is to learn whether the idea works before the full product is built.

Q2Which model charges a recurring fee for ongoing access?

  1. AE-commerce
  2. BSubscription
  3. CAdvertising
  4. DMarketplace
Show answer

Correct answer: B — Subscription

Subscription suits products whose value continues over time, such as software or a service used every month.

Q3A business with revenue of Rs 900 000 and costs of Rs 950 000 is:

  1. Amaking a profit of 50 000
  2. Bmaking a loss of 50 000
  3. Cbreaking even
  4. Dprofitable but illiquid
Show answer

Correct answer: B — making a loss of 50 000

Profit = revenue − costs = −50 000. High revenue says nothing about profitability on its own.

Q4Cash flow problems can close a business that is:

  1. Amaking a loss only
  2. Bprofitable, if money arrives later than it leaves
  3. Cnot selling anything
  4. Dtoo small
Show answer

Correct answer: B — profitable, if money arrives later than it leaves

If wages are due on the first and customers pay in sixty days, the account can be empty while the business is profitable on paper. This is a very common cause of failure.

Q5The main risk of a freemium model is that:

  1. Afree users cost money and few upgrade
  2. Bnobody tries the product
  3. Cit is illegal
  4. Dit needs no marketing
Show answer

Correct answer: A — free users cost money and few upgrade

Serving free users has a real cost, and typical conversion rates are a few per cent. Growth in users can mean growth in losses.

Q6Testing an idea by running the service manually before building software:

  1. Awastes time
  2. Bvalidates demand cheaply before committing to development
  3. Cis dishonest
  4. Donly works for shops
Show answer

Correct answer: B — validates demand cheaply before committing to development

The customer receives the actual value and you learn what to build. If nobody wants it, you have lost days rather than months.

Q7SEO helps a business by:

  1. Areducing hosting costs
  2. Battracting visitors who searched for what it offers
  3. Cencrypting data
  4. Dautomating payments
Show answer

Correct answer: B — attracting visitors who searched for what it offers

People searching for a solution are already interested, which is why search traffic converts better than untargeted advertising.

Q8Which is the strongest evidence that an idea has demand?

  1. Amany social media likes
  2. Bfriends saying it is a good idea
  3. Ccustomers paying for it
  4. Da large sign-up list
Show answer

Correct answer: C — customers paying for it

Likes, encouragement and free sign-ups cost the customer nothing. Payment is the only signal that someone valued the product above the money.

Exam-style questions · 6

Q1[2 marks]
What is digital entrepreneurship?
Answer

Identifying a problem and building a business that solves it using digital tools and platforms — cloud services, online marketplaces, digital payments — rather than traditional premises and infrastructure. The entrepreneur takes the risk in exchange for the potential reward.

Q2[2 marks]
Explain the freemium business model and one risk it carries.
Answer

Freemium offers a basic version free and charges for an upgraded one. The risk is that free users still cost money to serve while only a small percentage ever upgrade, so the business can grow its user numbers and its losses at the same time.

Q3[2 marks]
What is a minimum viable product?
Answer

The smallest version of a product that still delivers real value to a real user and generates feedback. Its purpose is to test the central assumption cheaply, before the full product is built.

Q4[4 marks]
A student plans an online shop selling handmade crafts. State two digital tools that reduce start-up costs and explain how each helps.
Mark scheme
  1. An existing online marketplace or social media page provides an audience and a shopfront[1]
  2. So there is no need to build a website or pay for premises before the first salethe explanation is the mark, not the naming[1]
  3. A digital payment gateway accepts card and mobile paymentsaccept cloud hosting or free design tools[1]
  4. So the seller can take money from anywhere without setting up merchant infrastructure of their own[1]

A marketplace supplies audience and shopfront; a payment gateway supplies the ability to take money.

Q5[4 marks]
A business has monthly revenue of Rs 400 000 and monthly costs of Rs 350 000, but customers pay 60 days after invoicing while staff are paid monthly.
  1. Calculate the monthly profit.
  2. Explain why the business may still run out of money.
Mark scheme
  1. Profit = revenue − costs = 400 000 − 350 000[1]
  2. = Rs 50 000 per monththe business is profitable[1]
  3. Money leaves the business immediately for wages but arrives 60 days later from customers[1]
  4. So the account can be empty even though the business is profitable — this is a cash flow problem, and it can force closurenaming cash flow is expected[1]

Profit Rs 50 000/month, but a 60-day gap between paying costs and receiving revenue creates a cash flow problem.

Q6[6 marks]
A group of students has an idea for an app that helps farmers identify crop diseases from a photograph.
  1. Describe how they could test the idea before building the app.
  2. Suggest a suitable business model and justify it.
  3. Identify two risks the business faces.
Mark scheme
  1. Talk to farmers first to establish that identifying diseases is genuinely a problem they face and currently handle badlyvalidating the assumption[1]
  2. Build an MVP where farmers send a photograph by WhatsApp and an agricultural expert replies manuallydelivers the value with no app[1]
  3. Measure whether farmers use it repeatedly and whether they will pay, before writing any software[1]
  4. A freemium or low-cost subscription model: a few free identifications, then a small monthly feeaccept any justified model[1]
  5. Justified because the value is ongoing across a growing season, and farmers may be unwilling to pay before seeing it workthe justification must fit the customer[1]
  6. Risks: farmers may have limited smartphone access or connectivity in rural areas; a wrong identification could destroy a crop and the business's reputationtwo risks needed[1]

(a) interview farmers, then run it manually over WhatsApp (b) freemium or low subscription, since value is ongoing (c) rural connectivity, and the consequences of a wrong diagnosis

These questions come from the 10th Class Computer Science lessons — each topic has its own notes, worked examples and an interactive diagram.