Engineering · Mock exam 2026 All mock exam questions
Mock exam · Section 2 · Written response

Question 15

[8 marks] Complex familiar
The question

A boom gate at a railway level crossing has two train sensors, one on each side of the crossing. The boom must be lowered when either sensor detects a train. The crossing operator can also lower the boom using a manual switch, but the manual switch only works when the maintenance key is not inserted in the control box.

Key

Input A = Train sensor 1 (train detected = 1)

Input B = Train sensor 2 (train detected = 1)

Input C = Manual switch (on = 1)

Input D = Maintenance key (inserted = 1)

E and F are intermediate input/output signals to the logic gates.

Output X = Boom (boom lowered = 1)

Construct a logic gate circuit for the boom gate, clearly labelling all inputs and outputs. Complete columns F and X of the corresponding truth table on the next page.

Truth table for the boom gate

Truth table for the boom gate: inputs A to D and intermediate signal E are given, columns F and X are blank
InputsIntermediate signalsOutput
ABCDEFX
00000
00010
00100
00110
01001
01011
01101
01111
10001
10011
10101
10111
11001
11011
11101
11111
Watch the situation first

Two ways to lower the boom, and one key that locks out the switch

A train passes over both sensors, then the operator uses the manual switch, first with the maintenance key out and then with it inserted. Watch the 1s travel through the gates to the boom.

No train and no manual command: every input is 0, so the boom stays up A train reaches sensor 1: A = 1, so E = 1, X = 1 and the boom lowers The train has passed: A = B = 0, so E = 0 and the boom rises Manual switch on, key out: C = 1 and NOT D = 1, so F = 1 and X = 1 Key inserted: NOT D = 0, so F = 0 and the manual switch is locked out A: train sensor 1 (train detected = 1) B: train sensor 2 (train detected = 1) C: manual switch (on = 1) D: maintenance key (inserted = 1) OR1 AND NOT OR2 01 01 01 01 01 01 01 01 EFNOT D X: boom(lowered = 1) X = E OR F, where E = A OR B and F = C AND (NOT D) boom upboom lowered sensor 1 (A) sensor 2 (B) Manual switchMaintenance key off on out inserted

An orange, heavier wire carries 1. Each box shows the value on its line. The sensors reach the boom through two ORs, and the switch has to get past the AND, which the key closes.

Now for the engineering

Test the circuit, then complete columns F and X

Switch the inputs on and off, or press a row of the table to load its inputs. The circuit shows E, F and X for that row. Then press the F and X cells to fill them in (each press goes blank, 0, 1) and check your columns.

OR1 AND NOT OR2 A: train sensor 1(train detected = 1) B: train sensor 2(train detected = 1) C: manual switch(on = 1) D: maintenance key(inserted = 1) EFNOT D X: boom (lowered = 1)
Inputs

An orange, heavier wire carries 1, and each circle shows the value on its line. Press a circle on the left to switch that input.

Truth table for the boom gate
A B C DEFX

The shaded row, with the orange bar, is the row the circuit is showing.

Marking guide · 8 marks

Work through the model response one mark at a time

Try each mark yourself before you reveal it. The model response builds the sketch for Marks 1 to 6, then completes the table for Marks 7 and 8.

Boolean expression: X = (A OR B) OR (C AND NOT D). Gates: two 2-input OR gates, one AND gate, one NOT gate.

Mark 1The sensor path

A and B feed OR1. Its output feeds OR2, whose output drives the boom.

AB

The parts this mark adds are drawn in orange with a heavier line.

Why?

Both sensors go through OR1 then OR2 to the boom.

Marking

Standard gate symbols must be used. Gate names (OR1, OR2, AND, NOT) are not required.

Marking

Accept any logically equivalent circuit for the first and second bullets (e.g. a single 3-input OR gate for train sensor 1, train sensor 2 and F). Where E is not used, award the sixth bullet for correct labels on F and the boom output.

Marker: provides a correctly applied logic gate circuit including train sensor 1 and train sensor 2 $\Rightarrow$ OR1 $\Rightarrow$ OR2 $\Rightarrow$ boom

Mark 2The manual switch path

C feeds the AND gate, whose output feeds OR2.

ABC

The parts this mark adds are drawn in orange with a heavier line.

Why?

The manual switch goes through the AND gate then OR2 to the boom.

Marking

Accept any logically equivalent circuit for the first and second bullets (e.g. a single 3-input OR gate for train sensor 1, train sensor 2 and F). Where E is not used, award the sixth bullet for correct labels on F and the boom output.

Marker: manual switch $\Rightarrow$ AND $\Rightarrow$ OR2 $\Rightarrow$ boom

Mark 3The maintenance key

D passes through the NOT gate into the AND gate’s second input.

ABCD

The parts this mark adds are drawn in orange with a heavier line.

Why?

The key is inverted by the NOT gate before the AND gate.

Marking

Accept an equivalent arrangement for F (e.g. NOR of NOT C and D) when it produces the same F column.

Marker: maintenance key $\Rightarrow$ NOT $\Rightarrow$ AND

Mark 4Label the sensors

Inputs labelled “A: train sensor 1 (train detected = 1)” and “B: train sensor 2 (train detected = 1)”.

A: train sensor 1(train detected = 1)B: train sensor 2(train detected = 1)CD

The labels this mark adds are in orange.

Why?

A and B carry their names and on-states.

Marking

Labels must include the input or output name and its on-state, e.g. 'D: maintenance key (inserted = 1)'. Letters alone do not earn the label marks.

Marking

Allow FT marks for an incorrect logic gate circuit when awarding the label marks.

Marker: correctly labels train sensor 1 and train sensor 2 inputs

Mark 5Label the switch and the key

Inputs labelled “C: manual switch (on = 1)” and “D: maintenance key (inserted = 1)”.

A: train sensor 1(train detected = 1)B: train sensor 2(train detected = 1)C: manual switch(on = 1)D: maintenance key(inserted = 1)

The labels this mark adds are in orange.

Why?

C and D carry their names and on-states.

Marking

Labels must include the input or output name and its on-state, e.g. 'D: maintenance key (inserted = 1)'. Letters alone do not earn the label marks.

Marking

Allow FT marks for an incorrect logic gate circuit when awarding the label marks.

Marker: correctly labels manual switch input and maintenance key input

Mark 6Label E, F and the boom

OR1 output labelled E, AND output labelled F, OR2 output labelled “X: boom (lowered = 1)”.

A: train sensor 1(train detected = 1)B: train sensor 2(train detected = 1)C: manual switch(on = 1)D: maintenance key(inserted = 1)EFX: boom(lowered = 1)

The labels this mark adds are in orange.

Why?

E, F and the boom output (with on-state) are all labelled.

Marking

Accept any logically equivalent circuit for the first and second bullets (e.g. a single 3-input OR gate for train sensor 1, train sensor 2 and F). Where E is not used, award the sixth bullet for correct labels on F and the boom output.

Marking

Labels must include the input or output name and its on-state, e.g. 'D: maintenance key (inserted = 1)'. Letters alone do not earn the label marks.

Marking

Allow FT marks for an incorrect logic gate circuit when awarding the label marks.

Marker: correctly labels intermediary inputs/outputs E and F, and the boom output

Mark 7Column F

Column F: 1 only when C = 1 and D = 0.

Completed truth table, column F
ABCDEFX
000000
000100
001001
001100
010010
010110
011011
011110
100010
100110
101011
101110
110010
110110
111011
111110

F is 1 in rows 0010, 0110, 1010 and 1110, the four rows where C = 1 and D = 0.

Why?

F = C AND NOT D in all 16 rows.

Marking

Column F is marked against the signal the student has labelled F in their circuit.

Marking

F $=$ C AND (NOT D). X $=$ E OR F.

Marker: correctly completes column F

Mark 8Column X

Column X: 1 when E = 1 or F = 1.

Completed truth table, column F and column X
ABCDEFX
0000000
0001000
0010011
0011000
0100101
0101101
0110111
0111101
1000101
1001101
1010111
1011101
1100101
1101101
1110111
1111101

The outlined cell is row 0010, the only row where E = 0 but X = 1, because F = 1 there.

Why?

X = E OR F in all 16 rows.

Marking

Allow FT mark for column X based on values for column F.

Marking

F $=$ C AND (NOT D). X $=$ E OR F.

Marker: correctly completes column X

The model response in full
A: train sensor 1(train detected = 1)B: train sensor 2(train detected = 1)C: manual switch(on = 1)D: maintenance key(inserted = 1)EFX: boom(lowered = 1)

Boolean expression: X = (A OR B) OR (C AND NOT D). Gates: two 2-input OR gates, one AND gate, one NOT gate.

A and B feed OR1. Its output feeds OR2, whose output drives the boom. Mark 1 C feeds the AND gate, whose output feeds OR2. Mark 2 D passes through the NOT gate into the AND gate’s second input. Mark 3

Inputs labelled “A: train sensor 1 (train detected = 1)” and “B: train sensor 2 (train detected = 1)”. Mark 4 Inputs labelled “C: manual switch (on = 1)” and “D: maintenance key (inserted = 1)”. Mark 5 OR1 output labelled E, AND output labelled F, OR2 output labelled “X: boom (lowered = 1)”. Mark 6

Column F: 1 only when C = 1 and D = 0. Mark 7 Column X: 1 when E = 1 or F = 1. Mark 8

Putting it all together

Each phrase of the question gave you something

“The boom must be lowered when either sensor detects a train”
“Either” is an OR. One train on one sensor is enough, so E = A OR B.
“The crossing operator can also lower the boom using a manual switch”
“Also” is a second route to the same boom, so the switch branch joins the sensor branch at OR2.
“but the manual switch only works when the maintenance key is not inserted”
“Only works when” is an AND, and “not inserted” is a NOT on D, because D = 1 means inserted. So F = C AND (NOT D).
“E and F are intermediate input/output signals to the logic gates”
E is the sensor branch and F is the switch branch. The given E column (0 only when A = B = 0) confirms that E = A OR B.
“clearly labelling all inputs and outputs”
Three of the eight marks are labels. Copy each name and its on-state from the key. A letter on its own earns nothing.
“Complete columns F and X”
F has four 1s, the rows where C = 1 and D = 0. X = E OR F has thirteen 1s, the twelve rows where E = 1 plus row 0010.
Common errors

If I had to guess where you might lose marks…

  • No NOT on the key. Feeding D straight into the AND gate means the manual switch works only when the key is inserted. Your F column would have 1s in rows 0011, 0111, 1011 and 1111 instead.
  • Putting the NOT D across the whole output. ANDing NOT D with the whole output (sensors and switch) means an inserted key also blocks the train sensors, so a train could arrive with the boom up during maintenance.
  • Labelling with letters only. Writing “A” or “D” on a line earns no label marks. Each label needs the name and the on-state, for example D: maintenance key (inserted = 1).
  • Copying E into column X. X is 1 wherever E = 1, but also in the row where F = 1 and there is no train: C = 1, D = 0, which is row 0010. Copying E loses that row and the mark.
Compare with past QCAA questions

The past QCAA questions this one was modelled on

2024 Question 15
Short response · 8 marks
Read four gates out of a sixteen-row truth table and draw the labelled forklift brake circuit.
2025 Question 21
Calculation · 9 marks
Turn the conveyor rules into an AND and a NOR, label every input and complete columns E and X.
2023 Question 13
Short response · 8 marks
Complete the truth table for a solar or wind motor circuit, then explain which source drives the motor in each case.

All past QCAA Engineering questions

Only mark this done when you could do it without help. Reading the solution does not count.

Back to the index

A Tangent Tuition mock exam question. It is not a past QCAA question, and Tangent Tuition is not affiliated with the QCAA.