---
title: Final exam
heading: "Final exam: numbers, units and scale"
eyebrow: A1 · Final exam
type: problems
---

::: hook
Ten problems from across the whole course. Give yourself two hours, work without the lessons open, and write down your working before you check an answer. "Another set" deals a different exam.
:::

::: pool
pick: 10

::: check
kind: parts
given: I = 2.2 | 4.7 | 6.8; R = 1.5 | 3.3 | 10

## A current of {I} mA flows through a {R} kΩ resistor.

::: part
answer: I*R
unit: V
tolerance: 0.5%

### What voltage is across it?

::: misses
- [I*R*1000] Milliamps times kilohms is volts: the $10^{-3}$ and $10^{3}$ cancel.
- [I*R/1000] Milliamps times kilohms is volts: the $10^{-3}$ and $10^{3}$ cancel.
- [any] $V = IR$, with the prefixes multiplied out.
:::
:::

::: part
answer: I^2*R
unit: mW
tolerance: 0.5%

### What power does it dissipate?

::: misses
- [I*R] That's the voltage. Power is $I^2R$.
- [I^2*R*1000] Milliamps squared times kilohms is milliwatts: $10^{-6} \times 10^{3} = 10^{-3}$.
- [any] $P = I^2R$, keeping track of the prefixes.
:::
:::
:::

::: check
kind: parts
given: N = 10 | 12 | 14 | 16; V = 3.3 | 5 | 10

## An {N}-bit ADC reads inputs from 0 to {V} V.

::: part
answer: 2^N
tolerance: 0.5

### Into how many steps does it split the range?

::: misses
- [2^N - 1] That's the largest code, counting from 0. Count the 0 too.
- [2*N] Each bit doubles the count.
- [any] $N$ bits give $2^N$ values.
:::
:::

::: part
answer: V/2^N
unit: V
tolerance: 0.5%

### What is the size of one step?

::: misses
- [V/N] Divide by the number of steps, $2^N$.
- [any] The range divided by $2^{\given{N}}$.
:::
:::

::: part
answer: ceil(log(V/1e-4)/log(2))
tolerance: 0

### How many bits would the converter need for steps no bigger than 0.1 mV?

::: misses
- [floor(log(V/1e-4)/log(2))] That many bits give steps a little bigger than 0.1 mV. Round up.
- [any] Find how many steps the range needs, then the smallest $N$ with $2^N$ at least that.
:::
:::
:::

::: check
kind: parts
given: R = 0.5 | 2 | 8; k = 2 | 3 | 5; d = 2 | 3

## A wire's resistance is proportional to its length divided by its cross-sectional area. Wire A has a resistance of {R} Ω. Wire B is made of the same metal, {k} times as long and {d} times the diameter.

::: part
answer: R*k/d^2
unit: Ω
tolerance: 0.5%

### What is wire B's resistance?

::: misses
- [R*k/d] The area goes as the diameter squared.
- [R*k*d^2] A thicker wire has less resistance.
- [any] Length multiplies it by {k}; area multiplies it by $\given{d}^2$.
:::
:::

::: part
answer: d^2/k
tolerance: 0.5%

### The same voltage is put across each wire. How many times more power does B dissipate than A?

::: misses
- [k/d^2] That's the ratio of resistances. At a fixed voltage, power is $V^2/R$, so less resistance means more power.
- [any] $P = V^2/R$, so the power ratio is the inverse of the resistance ratio.
:::
:::
:::

::: check
kind: parts
given: f = 8 | 16 | 25; p = 10 | 20 | 50

## A {f} MHz crystal oscillator is specified at ±{p} ppm.

::: part
answer: f*p
unit: Hz
tolerance: 0.5%

### How far can its frequency be from {f} MHz?

::: misses
- [f*p*1000] One ppm of a megahertz is one hertz.
- [f*p/1000] One ppm of a megahertz is one hertz.
- [any] Multiply the frequency by $\given{p} \times 10^{-6}$.
:::
:::

::: part
answer: 86400*p*1e-6
unit: s
tolerance: 0.5%

### A clock is built on it. How many seconds can it gain or lose in a day?

::: misses
- [86400*p] Multiply by $10^{-6}$: ppm means parts per million.
- [any] A day is 86 400 s, and the clock runs fast or slow by the same fraction.
:::
:::
:::

::: check
kind: parts
given: a = 85 | 88 | 90; b = 92 | 95; P = 50 | 100

## A power converter delivers {P} W. A redesign raises its efficiency from {a}% to {b}%, at the same output.

::: part
answer: P*(100/a - 1)
unit: W
tolerance: 0.5%

### How much power did the old design waste?

::: misses
- [P*(1 - a/100)] Efficiency is output over input, so the input is $P/\eta$ and the loss is the input minus {P} W.
- [any] Input is $P/\eta$; the waste is input minus output.
:::
:::

::: part
answer: 100*(1 - (100/b - 1)/(100/a - 1))
tolerance: 0.5%

### By what percentage did the wasted power fall?

::: misses
- [b - a] That's the change in efficiency, in percentage points. Compare the two wasted powers instead.
- [any] Work out the waste in each design, then the relative change.
:::
:::
:::

::: check
kind: parts
given: d = 5 | 10 | 15; L = 20 | 30 | 50

## Light in an old fiber loses half its power every {d} km.

::: part
answer: 0.5^(L/d)
tolerance: 0.5%

### What fraction of the power is left after {L} km?

::: misses
- [1 - 0.5*L/d] The losses compound: each {d} km halves what's left.
- [any] $L/d$ halvings, so $(1/2)^{L/d}$.
:::
:::

::: part
answer: d*1000*log(100)/log(2)
unit: m
tolerance: 0.5%

### How far until only 1% is left?

::: misses
- [d*1000*log(100)] Divide by $\log 2$: you're counting halvings, and each takes {d} km.
- [any] Solve $(1/2)^{x/d} = 0.01$ by taking logarithms.
:::
:::
:::

::: check
kind: parts
given: a = 10 | 20 | 50; b = 20 | 50 | 100

## A frequency-response plot runs from {a} Hz to {b} kHz on a log axis.

::: part
answer: log(b*1000/a)
tolerance: 0.5%

### How many decades does it span?

::: misses
- [log(b/a)] Put both ends in the same unit first: {b} kHz is $\given{b} \times 1000$ Hz.
- [any] $\log_{10}$ of the ratio of the ends.
:::
:::

::: part
answer: log(b*1000/a)/log(2)
tolerance: 0.5%

### How many octaves?

::: misses
- [log(b*1000/a)] That's decades. Each decade is 3.32 octaves.
- [any] $\log_2$ of the ratio, or the decades times 3.32.
:::
:::

::: part
answer: sqrt(a*b*1000)
unit: Hz
tolerance: 0.5%

### What frequency sits at the middle of the axis?

::: misses
- [(a + b*1000)/2] That's the arithmetic mean. On a log axis the middle is the geometric mean.
- [any] $\sqrt{ab}$ with both ends in hertz.
:::
:::
:::

::: check
kind: parts
given: n = -2 | -1 | 2 | 3; y1 = 2 | 5; k = 3 | 10; x1 = 1 | 4; let x2 = x1*k; let y2 = y1*k^n

## On log-log axes, a measured quantity lies on a straight line. It's {y1} at $x = \given{x1}$ and {y2} at $x = \given{x2}$.

::: part
answer: n
tolerance: 0.5%

### What is the slope, the power of $x$ it follows?

::: misses
- [-n] Check the sign: does the quantity rise or fall as $x$ grows?
- [any] $n = \log(y_2/y_1) / \log(x_2/x_1)$.
:::
:::

::: part
answer: y1*k^(2*n)
tolerance: 0.5%

### What will it be at $x = \given{x1} \times \given{k}^2$?

::: misses
- [y1*k^n] That's at {x2}. Go one more factor of {k} in $x$.
- [any] Each factor of {k} in $x$ multiplies the quantity by $\given{k}^n$.
:::
:::
:::

::: check
kind: parts
given: Pin = -30 | -20 | -10; G = 20 | 26 | 30; L = 10 | 25 | 40; a = 0.1 | 0.2 | 0.3

## A {Pin} dBm signal goes through an amplifier with {G} dB of gain, then {L} m of cable that loses {a} dB per meter.

::: part
answer: Pin + G - L*a
tolerance: 0.05

### What is the output power in dBm?

::: misses
- [Pin + G + L*a] The cable loses power: subtract its loss.
- [Pin + G - a] The cable loses {a} dB for every meter.
- [any] In decibels, gains add and losses subtract.
:::
:::

::: part
answer: 10^((Pin + G - L*a)/10)
unit: mW
tolerance: 0.5%

### What is that in milliwatts?

::: misses
- [10^((Pin + G - L*a)/20)] Power in dBm is $10\log_{10}$ of milliwatts, so divide by 10.
- [any] $P = 10^{x/10}$ mW for $x$ dBm.
:::
:::

::: part
answer: sqrt(10^((Pin + G - L*a)/10)*1e-3*50)
unit: V
tolerance: 0.5%

### What RMS voltage is that across 50 Ω?

::: misses
- [sqrt(10^((Pin + G - L*a)/10)*50)] Put the power in watts first.
- [any] $P = V^2/R$, so $V = \sqrt{PR}$.
:::
:::
:::

::: check
kind: parts
given: vi = 2 | 5 | 10; vo = 0.5 | 1 | 2

## An amplifier turns a {vi} mV input into a {vo} V output. Its input and output impedances are equal.

::: part
answer: 20*log(vo*1000/vi)
unit: dB
tolerance: 0.5%

### What is its gain in decibels?

::: misses
- [10*log(vo*1000/vi)] For a voltage ratio, use $20\log_{10}$.
- [20*log(vo/vi)] Put both voltages in the same unit first.
- [any] $20\log_{10}(V_\text{out}/V_\text{in})$.
:::
:::

::: part
answer: (vo*1000/vi)^2
tolerance: 0.5%

### By what factor does it multiply the power?

::: misses
- [vo*1000/vi] That's the voltage gain. Power goes as voltage squared.
- [any] With equal impedances, the power ratio is the voltage ratio squared.
:::
:::
:::

::: check
kind: parts
given: f = 50 | 144 | 433; k = 0.66 | 0.82

## A {f} MHz signal travels along coax with a velocity factor of {k}.

::: part
answer: 1/(f*1e6)
unit: s
tolerance: 0.5%

### What is its period?

::: misses
- [f*1e6] That's the frequency. The period is its reciprocal.
- [any] $T = 1/f$.
:::
:::

::: part
answer: k*299792458/(f*1e6)
unit: m
tolerance: 0.5%

### What is its wavelength in the cable?

::: misses
- [299792458/(f*1e6)] That's the wavelength in air. The cable slows the wave to {k} of $c$.
- [any] $\lambda = v/f$ with $v = \given{k}\,c$.
:::
:::

::: part
answer: k*299792458/(f*1e6)/4
unit: m
tolerance: 0.5%

### How long a piece of this cable is a quarter of a wavelength?

::: misses
- [299792458/(f*1e6)/4] Use the wavelength in the cable, which is shorter than in air.
- [any] A quarter of the wavelength in the cable.
:::
:::
:::

::: check
kind: parts
given: V = 3.3 | 5 | 12; a = 1 | 2; R = 2.2 | 4.7 | 10; b = 1 | 5

## A current is worked out from a voltage of {V} V, measured to ±{a}%, across a {R} kΩ resistor with a ±{b}% tolerance.

::: part
answer: V/R
unit: mA
tolerance: 0.5%

### What is the current, from the nominal values?

::: misses
- [V*R] Current is voltage divided by resistance.
- [any] $I = V/R$; volts over kilohms gives milliamps.
:::
:::

::: part
answer: a + b
tolerance: 0.01

### What is the worst-case error in the current, in percent?

::: misses
- [b - a] Errors don't cancel in the worst case. For a quotient, the percentage errors add.
- [any] When quantities divide, their percentage errors add.
:::
:::

::: part
answer: 2*R*1000*b/100
unit: Ω
tolerance: 0.5%

### Two of these resistors are put in series. By how many ohms can the total be off?

::: misses
- [R*1000*b/100] That's one resistor. In series, their errors add.
- [any] For a sum, the absolute errors add.
:::
:::
:::

::: check
kind: parts
given: C = 1000 | 2500 | 3000; V = 3.7 | 1.2; P = 50 | 150 | 400

## A {C} mAh battery at {V} V powers a gadget that draws {P} mW.

::: part
answer: C*V/1000
unit: Wh
tolerance: 0.5%

### How much energy does the battery hold?

::: misses
- [C*V] mAh times volts gives milliwatt-hours. Divide by 1000 for watt-hours.
- [C/1000] That's the charge in amp-hours. Multiply by the voltage for energy.
- [any] Energy is charge times voltage.
:::
:::

::: part
answer: C*V*3.6
unit: J
tolerance: 0.5%

### How much is that in joules?

::: misses
- [C*V/1000] That's in watt-hours. A watt-hour is 3600 J.
- [any] One watt-hour is 3600 joules.
:::
:::

::: part
answer: C*V/P
unit: h
tolerance: 0.5%

### How long does the battery run the gadget?

::: misses
- [C/P] Use the energy, which includes the voltage, against the power.
- [any] Time is energy divided by power.
:::
:::
:::

::: check
kind: parts
given: L = 1 | 10 | 47; I = 0.5 | 2; R = 10 | 100

## A {L} mH inductor carries {I} A. Its stored energy is $\tfrac12 LI^2$.

::: part
answer: 0.5*L*1e-3*I^2
unit: J
tolerance: 0.5%

### How much energy does it store?

::: misses
- [0.5*L*I^2] Put the inductance in henries.
- [L*1e-3*I^2] Don't forget the ½.
- [any] $\tfrac12 LI^2$, in henries and amperes.
:::
:::

::: part
answer: L*1e-3/R
unit: s
tolerance: 0.5%

### The current is switched off through a {R} Ω resistor and dies away with time constant $L/R$. Check that $L/R$ is a time, then find it.

::: misses
- [R/(L*1e-3)] That's $R/L$, which is in $\text{s}^{-1}$. A henry over an ohm is a second.
- [any] $\text{H}/\Omega = (\text{V·s/A}) / (\text{V/A}) = \text{s}$.
:::
:::

::: part
answer: L*1e-3/R*ln(100)
unit: s
tolerance: 0.5%

### How long until the current is down to 1% of its starting value?

::: misses
- [L*1e-3/R*log(100)] Use the natural log: $e^{-t/\tau} = 0.01$ gives $t = \tau\ln 100$.
- [any] $t = \tau \ln 100$, about 4.6 time constants.
:::
:::
:::
:::
