Quant Modelling [HFT] All modules
1 Practice Exam

Practice Test 1

A full 65-question mock exam covering the entire Quant Modelling / HFT syllabus — markets and microstructure, time-series analytics, alpha signals, backtesting, stat arb, risk and infrastructure.

65 Questions 100 Marks 120 Minutes
How to use this test

Click an option to lock your answer and instantly reveal the worked solution. The sticky score bar tracks marks earned and questions answered. Use Reveal all to show every answer at once, or Reset to start over.

Score: 0 / 100
0 / 65 answered

Part A — Single Choice Questions

30 questions · 1 mark each · 30 marks
Q11 mark

In one sentence, what fundamentally distinguishes quantitative trading from traditional discretionary trading?

Answer: B. Quant trading uses measurable data and statistics to drive consistent, systematic decisions, replacing emotion and gut feeling. It is probabilistic, so it never guarantees individual trades.
Q21 mark

What is the correct order of the five-stage quant research workflow?

Answer: C. The loop runs Collect Data → Analyze Patterns → Build Signals → Backtest → Deploy & Monitor, with feedback arrows sending failed backtests and decayed strategies back to analysis.
Q31 mark

"Alpha" in quantitative trading is best defined as:

Answer: A. Alpha is a probabilistic edge, not a guarantee. No signal works every time; a small but consistent edge compounds over many trades.
Q41 mark

In an OHLCV bar, what does the "C" represent?

Answer: D. OHLCV = Open, High, Low, Close, Volume. The "C" is the closing price — the last traded price of the period.
Q51 mark

The bid-ask spread is calculated as:

Answer: B. Spread = ask − bid. The ask (lowest seller price) is above the bid (highest buyer price), so the spread is positive and represents a transaction cost.
Q61 mark

Why do quants prefer to analyze returns rather than raw prices?

Answer: C. A 5% gain is 5% whether the stock costs \$10 or \$1,000. Returns express each move as a fraction of the starting price, making assets directly comparable and statistics stable.
Q71 mark

Volatility, in the context of a return series, measures:

Answer: A. Volatility is the standard deviation of returns — the variability or uncertainty. It quantifies the size of swings and says nothing about direction.
Q81 mark

Compared with a 50-day moving average, a 20-day moving average generally:

Answer: D. Shorter windows react quickly to new prices (less lag) but remain noisier; longer windows are smoother but lag the trend.
Q91 mark

The classic momentum (trend-following) trading rule using two moving averages is:

Answer: B. Momentum buys when the fast (short) MA crosses above the slow (long) MA, signalling upward momentum, and sells otherwise.
Q101 mark

Which bias is widely regarded as the most dangerous in backtesting?

Answer: C. Look-ahead bias uses future information in the past, inflating results unrealistically. The standard fix is to lag the signal: signal.shift(1) * returns.
Q111 mark

Survivorship bias occurs when a study:

Answer: A. Survivorship bias studies only winners — e.g. current index members or surviving funds — which overstates historical performance because the failures are missing.
Q121 mark

A market order differs from a limit order in that a market order:

Answer: D. A market order trades execution priority (it crosses the spread for immediacy), whereas a limit order trades price priority (it rests in the book at a chosen price).
Q131 mark

"Liquidity" in a market refers to:

Answer: B. A liquid market lets you trade large size with minimal price impact; illiquid markets force large orders to walk the book, causing slippage.
Q141 mark

A mean-reversion strategy is built on the assumption that:

Answer: C. Mean reversion bets that markets overreact, so prices stretched far from their average are likely (not guaranteed) to revert toward it.
Q151 mark

A z-score of 0 for a price means the price is:

Answer: A. Since $z = (x-\mu)/\sigma$, a z-score of 0 means $x = \mu$ — the value sits exactly at its mean. Mean-reversion traders treat $z \approx 0$ as the exit point.
Q161 mark

Why is pure (textbook) arbitrage considered risk-free while statistical arbitrage is not?

Answer: D. Pure arbitrage locks in a guaranteed price discrepancy with both legs executing together. Stat arb is probabilistic — it bets on mean reversion or cointegration, which can break.
Q171 mark

For pairs trading, the property that actually guarantees the spread keeps returning to its mean is:

Answer: B. Correlation only captures short-term co-movement; two correlated series can drift apart forever. Cointegration is the "leash" that forces the spread back to its mean.
Q181 mark

The Sharpe ratio measures:

Answer: C. $S = (R_p - R_f)/\sigma_p$ — return above the risk-free rate divided by volatility. Higher Sharpe means more reward per unit of risk taken.
Q191 mark

Maximum drawdown describes:

Answer: A. Max drawdown is the worst peak-to-trough drop, $(\text{Trough} - \text{Peak})/\text{Peak}$. It captures the pain an investor would have endured.
Q201 mark

Diversification reduces risk most effectively when the assets are:

Answer: D. Diversification benefit depends on correlation. At corr = 1 there is no benefit; the lower (or more negative) the correlation, the more risk cancels out.
Q211 mark

In machine learning for trading, "overfitting" means the model:

Answer: B. Overfitting fits the noise in the training set, producing strong in-sample numbers that collapse on unseen (test / out-of-sample) data.
Q221 mark

Which is a hallmark of a good feature for an ML trading model?

Answer: C. Good features are relevant (linked to returns), stable over time, and intuitive. Random, unstable, or future-leaking features are bad.
Q231 mark

Walk-forward validation is preferred over a single train/test split because it:

Answer: A. Walk-forward testing rolls the train/test windows forward repeatedly, simulating how a strategy is periodically re-fitted in practice — more robust than one static split.
Q241 mark

Why can ordinary tools like Excel struggle with raw market tick data?

Answer: D. Tick data records every microstructure event, producing enormous datasets. Specialized columnar time-series databases like kdb+/q are built for this scale.
Q251 mark

In kdb+/q, the columnar storage model is fast for analytics mainly because it:

Answer: B. Columnar databases store each column contiguously, so a query touches only the relevant columns instead of scanning whole rows — ideal for time-series workloads.
Q261 mark

Signal decay refers to the phenomenon where:

Answer: C. As more participants discover and trade an edge, it gets arbitraged away — the signal's predictive power decays, which is why research must keep iterating.
Q271 mark

A spike in volume relative to its recent average is most directly used as a:

Answer: A. A high volume ratio $V_t/\text{avg}(V)$ flags abnormal participation, often confirming the strength or conviction behind a price move — a core volume-based feature.
Q281 mark

Why is a high win rate alone a misleading measure of a strategy's quality?

Answer: D. Profitability depends on expectation ($p \cdot W - (1-p) \cdot L$), not just win rate. Many small wins can be wiped out by a handful of large losses.
Q291 mark

"Good backtest ≠ good strategy" is a central lesson because:

Answer: B. A backtest can look excellent yet be inflated by look-ahead, survivorship, overfitting, or a regime that no longer holds. The goal is strategies that continue to work.
Q301 mark

The single best summary of what quant trading requires is:

Answer: C. The course's key takeaway: Quant Trading = Data + Research + Probability + Discipline. The aim is systematic decision-making, not perfect prediction.

Part B — Multiple Choice Questions

15 questions · 2 marks each · 30 marks
Q312 marks

A researcher observes that stocks which rose the most over the past 3 months continue to outperform over the next month. Which signal family does this describe?

Answer: B. Past winners continuing to win is the defining behaviour of momentum. Mean reversion would predict the opposite — that the strong movers fall back.
Q322 marks

An analyst computes a feature as today's return using tomorrow's closing price by mistake. In the live system this feature would:

Answer: C. Using a future price is look-ahead bias / data leakage. It makes the backtest look great but is impossible to compute in real time, so it collapses live.
Q332 marks

You want to turn raw price and volume data into predictive inputs. Which set is the best example of feature engineering?

Answer: A. Feature engineering transforms raw data into informative, predictive variables — returns, rolling vol, and volume ratios are textbook engineered features. Raw price alone is not engineered.
Q342 marks

Two signals have identical average returns, but Signal X's edge is stable across every year tested while Signal Y's edge appears only in one year. Which should you trust more, and why?

Answer: D. Signal stability matters as much as average return. An edge present across many periods is more likely genuine; one concentrated in a single year is likely luck or a one-off regime.
Q352 marks

A pairs trader watches the spread between Coke and Pepsi. The spread's z-score hits +2.5. The correct market-neutral action is:

Answer: B. At $z > 2$ the spread is stretched high, so you short the spread (short the rich asset, long the cheap asset) and profit as it reverts toward the mean.
Q362 marks

A backtest shows a 200% annual return with an unrealistically smooth equity curve and uses 47 tuned parameters. The most likely diagnosis is:

Answer: C. Too many parameters, heavy optimization, and a suspiciously smooth curve are classic overfitting warning signs. Such results rarely survive out-of-sample.
Q372 marks

A strategy's gross backtest return is strong, but after subtracting commissions and slippage it turns negative. The key lesson is:

Answer: A. Net return = gross − costs − slippage. A strategy that trades frequently can have its entire edge consumed by costs, so they must be included before drawing conclusions.
Q382 marks

A quant has a hypothesis that high relative volume predicts next-day returns. Following the research pipeline, what is the correct next step after forming the hypothesis?

Answer: D. The pipeline runs Idea → Hypothesis → Data → Features → Signals → Backtest → Validation → Iteration. Data and feature work come next, never live deployment first.
Q392 marks

A spread between two stocks has been highly correlated for years, but one company is acquired in a merger and the relationship snaps. This illustrates that:

Answer: B. A structural change (merger, regulation, new business model) can permanently break a pair. The historical relationship no longer holds, so the spread may never revert — monitor cointegration, never assume it.
Q402 marks

A model scores $R^2 = 0.92$ on training data but $R^2 = -0.15$ on the test set. This pattern is the signature of:

Answer: C. A huge gap between strong train performance and poor (here negative) test performance is the classic overfitting signature: the model learned noise, not signal.
Q412 marks

An equal-weight portfolio of 5 strategies (momentum, mean reversion, breakout, pairs, carry) is built. The main benefit of combining diverse strategy types is:

Answer: A. Combining strategies with low correlation diversifies the sources of edge, so a drawdown in one is cushioned by others — the same diversification logic applied at the strategy level.
Q422 marks

During the COVID crash, a strategy tuned on calm bull-market data suddenly failed. The best explanation is:

Answer: D. Strategies are fitted to a regime (bull/bear/crisis/sideways). When the regime shifts abruptly, the assumptions break and performance can collapse, regardless of how good the original backtest was.
Q432 marks

Two strategies both return 10% per year. Strategy P has volatility 5%; Strategy Q has volatility 20%. On a risk-adjusted basis:

Answer: B. With equal returns, the lower-volatility strategy has the higher Sharpe ratio (return per unit of risk). P earns the same 10% with one-quarter the risk, so it is clearly superior risk-adjusted.
Q442 marks

A researcher only studies the 30 stocks currently in an index to "prove" a strategy worked over 20 years. The flaw is:

Answer: C. Studying only current members ignores firms that went bankrupt or were delisted, so the sample is biased toward winners — survivorship bias that inflates historical results.
Q452 marks

A signal's Information Coefficient (IC) — the correlation between its predictions and realized returns — drops steadily month after month. This most likely indicates:

Answer: A. A falling IC means the predictions are tracking realized returns less and less — the textbook fingerprint of signal decay as competitors trade the same edge and the market adapts.

Part C — Numerical & Analytical

20 questions · 2 marks each · 40 marks
Q462 marks

A stock moves from \$80 to \$86 in one day. What is the simple return?

Answer: C. $r = \dfrac{P_t - P_{t-1}}{P_{t-1}} = \dfrac{86 - 80}{80} = \dfrac{6}{80} = 0.075 = 7.5\%$. (Dividing by the new price, 6/86, gives the common-mistake 7.0%.)
Q472 marks

A stock moves from \$200 to \$210. What is the log return (to two decimals)?

Answer: B. $r = \ln\!\left(\dfrac{210}{200}\right) = \ln(1.05) \approx 0.0488 = 4.88\%$. The simple return here would be exactly 5.00%; log returns are slightly smaller for gains.
Q482 marks

Daily returns over three days are +20%, −10%, +5%. What is the cumulative return?

Answer: A. $R_{\text{cum}} = (1.20)(0.90)(1.05) - 1 = 1.134 - 1 = 0.134 = 13.4\%$. Simply adding $20 - 10 + 5 = 15\%$ ignores compounding and is the distractor.
Q492 marks

Prices are [40, 44, 42, 46, 48]. What is the latest 4-day simple moving average (SMA)?

Answer: D. The latest 4-day window is [44, 42, 46, 48]: $\dfrac{44 + 42 + 46 + 48}{4} = \dfrac{180}{4} = 45.0$. (Averaging all five prices gives 44.0, the distractor.)
Q502 marks

Daily returns are [3%, −2%, 4%, −1%, 1%]. What is the mean (average) return?

Answer: B. $\bar r = \dfrac{3 - 2 + 4 - 1 + 1}{5} = \dfrac{5}{5} = 1.0\%$.
Q512 marks

Returns are [1%, −1%, 2%, −2%]. Using the sample standard deviation ($n-1$), the rolling volatility is closest to:

Answer: C. Mean = 0. Squared deviations: $1+1+4+4 = 10$ (%²). Sample variance $= 10/(4-1) = 3.333$; $\sigma = \sqrt{3.333} \approx 1.83\%$. (Dividing by $n=4$ gives $\sqrt{2.5}\approx1.58\%$, the population distractor.)
Q522 marks

A strategy placed 45 trades and 27 were profitable. What is the hit rate?

Answer: D. Hit rate $= \dfrac{\text{wins}}{\text{total}} = \dfrac{27}{45} = 0.60 = 60\%$.
Q532 marks

Six trades returned [+5%, −3%, +8%, −2%, +4%, −2%]. What is the average return per trade (to two decimals)?

Answer: A. Sum $= 5 - 3 + 8 - 2 + 4 - 2 = 10\%$. Average $= \dfrac{10}{6} \approx 1.67\%$. (Dividing by the 3 winners instead of all 6 trades gives 3.33%.)
Q542 marks

Today the 10-day (fast) SMA is 52 and the 30-day (slow) SMA is 50. Under the standard momentum crossover rule, the signal is:

Answer: B. Momentum buys when the fast MA > slow MA. Here $52 > 50$, so the rule fires a BUY (upward momentum).
Q552 marks

A price is \$88. Its rolling mean is \$100 and rolling standard deviation is \$8. What is the z-score?

Answer: C. $z = \dfrac{x - \mu}{\sigma} = \dfrac{88 - 100}{8} = \dfrac{-12}{8} = -1.5$. The negative sign shows the price is below its mean.
Q562 marks

A mean-reversion model uses ±2 thresholds. The current z-score is −2.4. What action does the rule trigger?

Answer: A. $z = -2.4 < -2$, so the price is at the extreme low (oversold). The mean-reversion rule BUYs, expecting a rise back toward the mean.
Q572 marks

Today's volume is 4.5 million shares; the 20-day average volume is 1.5 million. What is the volume ratio (spike factor)?

Answer: D. Volume ratio $= \dfrac{V_t}{\text{avg}(V)} = \dfrac{4.5}{1.5} = 3.0$. Today's volume is 3× normal — a clear volume spike.
Q582 marks

A strategy returns 12% with a risk-free rate of 2% and volatility of 8%. What is the Sharpe ratio?

Answer: B. $S = \dfrac{R_p - R_f}{\sigma_p} = \dfrac{12\% - 2\%}{8\%} = \dfrac{10}{8} = 1.25$. (Forgetting to subtract $R_f$ gives $12/8 = 1.50$, the distractor.)
Q592 marks

A portfolio peaks at \$120 and later falls to a trough of \$90. What is the maximum drawdown?

Answer: C. $\text{MDD} = \dfrac{\text{Trough} - \text{Peak}}{\text{Peak}} = \dfrac{90 - 120}{120} = \dfrac{-30}{120} = -0.25 = -25\%$. (Dividing the \$30 drop by the trough 90 gives the −33.3% mistake.)
Q602 marks

A strategy's gross return is 8.0%. Transaction costs are 1.2% and slippage is 0.3%. What is the net return?

Answer: A. Net = gross − costs − slippage $= 8.0\% - 1.2\% - 0.3\% = 6.5\%$. (Subtracting only the costs gives 6.8%, the distractor.)
Q612 marks

Three trades execute at (price, volume) of (\$10, 100), (\$12, 300) and (\$11, 100). What is the VWAP?

Answer: D. $\text{VWAP} = \dfrac{\sum P_i V_i}{\sum V_i} = \dfrac{10(100) + 12(300) + 11(100)}{100 + 300 + 100} = \dfrac{1000 + 3600 + 1100}{500} = \dfrac{5700}{500} = 11.4$. (The simple price average 11.0 ignores volume weighting.)
Q622 marks

A signal wins 60% of the time. The average win is \$150 and the average loss is \$100. What is the expected value per trade?

Answer: B. $\E[\text{profit}] = p \cdot W - (1-p) \cdot L = 0.60(150) - 0.40(100) = 90 - 40 = \$50$ per trade. (\$90 ignores the loss term.)
Q632 marks

Over a holding period a position's price rises from \$50 to \$60. What is the total (cumulative) return?

Answer: C. $R = \dfrac{60 - 50}{50} = \dfrac{10}{50} = 0.20 = 20\%$. (Dividing the \$10 gain by the ending price 60 gives 16.7%, the distractor.)
Q642 marks

Daily volatility is 2%. Using the square-root-of-time rule with 252 trading days, the annualized volatility is closest to:

Answer: D. $\sigma_{\text{ann}} = \sigma_{\text{daily}}\sqrt{252} = 2\% \times 15.87 \approx 31.7\%$. Multiplying by 252 instead of $\sqrt{252}$ gives the 504% mistake.
Q652 marks

A cointegrated pair's spread has mean 10 and standard deviation 2. The current spread is 14. What is the spread's z-score and the correct action?

Answer: A. $z = \dfrac{14 - 10}{2} = \dfrac{4}{2} = +2$. The spread is stretched high, so $z > 2$ → SHORT the spread (short the rich leg A, long the cheap leg B), expecting it to revert toward 10.
0%