A/B Testing Questions with Answers

19 practice questions on A/B Testing (Data Analytics) with answers and step-by-step solutions. Try 10 samples below, then practise all 19 free in the AptiNest app.

Sample questions

Question 1Easy

In an A/B test, the randomisation unit is usually:

  1. The user
  2. The country
  3. The developer
  4. The server

Answer: A. The user

Explanation

Randomising by user keeps each person's experience consistent across visits.

Step-by-step solution

  1. Assigning by user gives each person a consistent experience.
  2. It avoids one person seeing both versions.
  3. Analysis is also usually per user.

Why the other options are wrong

  • B. Countries are too few and too different for fair randomisation.
  • C. Developers are not experiment subjects.
  • D. Servers are infrastructure, not units of analysis.

Tip: Randomise by user unless there is a reason not to.

Question 2Easy

Conversion rate is calculated as:

  1. Clicks times impressions
  2. Visitors divided by conversions
  3. Conversions divided by visitors
  4. Revenue minus cost

Answer: C. Conversions divided by visitors

Explanation

For example, 50 purchases from 1,000 visitors is a 5% conversion rate.

Step-by-step solution

  1. Conversion rate = conversions / visitors.
  2. Example: 30 sign-ups from 1,000 visitors gives 30/1000 = 3%.
  3. So it is conversions divided by visitors.

Why the other options are wrong

  • A. Multiplying clicks by impressions has no meaning as a rate.
  • B. This is the inverse of the rate.
  • D. Revenue minus cost is profit.

Tip: Rate = successes / opportunities, then x 100 for a percentage.

Question 3Easy

A Type II error is:

  1. Failing to detect a real effect
  2. Having too many users
  3. Detecting an effect that is not real
  4. Using the wrong metric

Answer: A. Failing to detect a real effect

Explanation

Its probability is beta; power = 1 - beta.

Step-by-step solution

  1. Type II: failing to reject a false null hypothesis.
  2. A real effect exists but the test misses it.
  3. Its probability is beta; power = 1 - beta.

Why the other options are wrong

  • B. More users reduce Type II errors.
  • C. Detecting an effect that is not real is Type I.
  • D. Metric choice is a design issue.

Tip: Underpowered tests produce Type II errors.

Question 4Easy

An A/B test compares:

  1. Two databases for speed
  2. Two employees' salaries
  3. Two versions to see which performs better
  4. Two charts' colours only

Answer: C. Two versions to see which performs better

Explanation

Users are split randomly between versions and a metric is compared.

Step-by-step solution

  1. Users are split randomly into two groups.
  2. Group A sees the current version, group B sees a changed version.
  3. A chosen metric (for example conversion rate) shows which version performs better.

Why the other options are wrong

  • A. Database benchmarking is not what A/B testing means.
  • B. Comparing salaries is not an experiment on versions.
  • D. Colour can be the change tested, but the test compares performance, not colours only.

Tip: Change one thing at a time and fix the success metric before starting.

Question 5Medium

A p-value of 0.03 in an A/B test means:

  1. 97% of users preferred the variant
  2. Such a result is rare (3%) if there is no real difference
  3. There is a 3% chance the variant is better
  4. The variant is 3% better

Answer: B. Such a result is rare (3%) if there is no real difference

Explanation

The p-value is computed assuming the null hypothesis is true; it is not the probability that the null is true.

Step-by-step solution

  1. The p-value assumes no real difference (the null hypothesis).
  2. It is the chance of seeing a result at least this extreme under that assumption.
  3. 0.03 means such data would be rare (3%) if there were no difference.

Why the other options are wrong

  • A. p-values say nothing about user preference percentages.
  • C. It is not the probability that the variant is better.
  • D. It does not measure effect size.

Tip: p-value = P(data this extreme | no effect).

Question 6Medium

Statistical power is the probability of:

  1. The control winning
  2. Having equal group sizes
  3. Getting a p-value above 0.05
  4. Detecting a real effect of a given size

Answer: D. Detecting a real effect of a given size

Explanation

Power rises with sample size, effect size and alpha; 80% is a common target.

Step-by-step solution

  1. Power = P(reject null | real effect of a given size).
  2. Power = 1 - beta.
  3. A common target is 80%.

Why the other options are wrong

  • A. Power is not about which version wins.
  • B. Equal groups help power but are not its definition.
  • C. That would be failing to detect.

Tip: Plan for 80% power before starting.

Question 7Medium

Which is the null hypothesis in a typical A/B test?

  1. A is better than B
  2. Both versions fail
  3. A and B perform the same
  4. B is better than A

Answer: C. A and B perform the same

Explanation

The test looks for evidence against "no difference".

Step-by-step solution

  1. The null hypothesis states no difference.
  2. H0: A and B perform the same.
  3. The test checks whether the data give enough evidence to reject it.

Why the other options are wrong

  • A. That is a directional alternative hypothesis.
  • B. Failure of both is not a hypothesis being tested.
  • D. That is the alternative hypothesis.

Tip: Null = no difference.

Question 8Medium

Why are users randomly assigned to A and B groups?

  1. To reduce server cost
  2. To make the groups comparable
  3. So engineers can pick their friends
  4. To make the test finish faster

Answer: B. To make the groups comparable

Explanation

Randomisation balances known and unknown confounders across groups.

Step-by-step solution

  1. Random assignment spreads user traits evenly across groups.
  2. Groups differ only by version.
  3. So outcome differences can be attributed to the change.

Why the other options are wrong

  • A. Randomisation is about fairness, not cost.
  • C. Picking users introduces bias.
  • D. Randomisation does not shorten the test.

Tip: Randomise to compare like with like.

Question 9Hard

A test planned a 50/50 split but recorded 10,000 users in A and 9,000 in B. This most likely indicates:

  1. A Type II error
  2. A sample ratio mismatch
  3. A significant conversion lift
  4. Perfect randomisation

Answer: B. A sample ratio mismatch

Explanation

Such an imbalance is very unlikely by chance; the test's results may be biased until the cause is found.

Step-by-step solution

  1. Expected about 9,500 each for 19,000 users.
  2. 10,000 versus 9,000 is far from 50/50 at this size.
  3. This is a sample ratio mismatch (SRM), signalling a bug in assignment or logging.

Why the other options are wrong

  • A. Type II errors concern missed effects.
  • C. Group sizes are not conversion results.
  • D. Randomisation would give close to equal sizes.

Tip: Unequal group sizes? Check for SRM first.

Question 10Hard

Control converts 200 of 5,000 and the variant 250 of 5,000. Using a pooled two-proportion z-test, the z statistic is approximately:

  1. 4.82
  2. 1.00
  3. 2.41
  4. 0.24

Answer: C. 2.41

Explanation

Pooled p = 0.045;

SE = sqrt(0.045 x 0.955 x (1/5000 + 1/5000)) = 0.00415;

z = 0.01 / 0.00415 = 2.41.

Step-by-step solution

  1. Pooled p = (200 + 250) / 10000 = 0.045.
  2. SE = sqrt(0.045 x 0.955 x (1/5000 + 1/5000)) = 0.00415.
  3. z = (0.05 - 0.04) / 0.00415 = 2.41.

Why the other options are wrong

  • A. 4.82 is double the correct value.
  • B. 1.00 is the difference in percentage points, not z.
  • D. 0.24 misplaces the decimal.

Tip: |z| > 1.96: significant at 5%.

Practise all 19 questions free

The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.

Open this topic in the app →

Related topics

See all Data Analytics topics · All topics