Technical MCQ
AI & Machine Learning Fundamentals
The theory round for AI, data and modern product roles.
6 questions
Answer each one before scrolling to the solution. The explanation names the mechanism, not just the choice.
01Overfitting is best detected by:
- A.Low training error and high validation error
- B.High training error and low validation error
- C.Low error on both
- D.High error on both
Answer. The model has memorised the training data and fails to generalise; the gap between training and validation is the signal.
02Which technique is L2 regularisation?
- A.Lasso, adding the sum of absolute weights
- B.Ridge, adding the sum of squared weights
- C.Dropping random neurons
- D.Early stopping
Answer. L2 (Ridge) penalises the sum of squared weights, which shrinks coefficients smoothly. L1 (Lasso) penalises absolute weights and can drive them to zero.
03The purpose of a validation set is to:
- A.Train the weights
- B.Tune hyperparameters and detect overfitting
- C.Report the final accuracy
- D.Store production data
Answer. The validation set guides model selection and hyperparameter tuning; the test set is reserved for the final unbiased estimate.
04In a confusion matrix, precision is:
- A.TP / (TP + FN)
- B.TP / (TP + FP)
- C.(TP + TN) / total
- D.TN / (TN + FP)
Answer. Precision answers "of the items we flagged positive, how many truly were?" — the denominator is all predicted positives.
05A transformer’s self-attention mechanism primarily solves:
- A.Vanishing gradients in deep CNNs
- B.Modelling long-range dependencies without recurrence
- C.Reducing parameter count
- D.Data augmentation
Answer. Attention lets every token attend to every other token directly, giving long-range context without the sequential bottleneck of an RNN.
06Which statement about the bias–variance trade-off is correct?
- A.High bias means the model is too complex
- B.High variance means the model is too simple
- C.High bias underfits; high variance overfits
- D.Bias and variance are independent of model complexity
Answer. High bias corresponds to an oversimplified model that underfits. High variance corresponds to an over-flexible model that overfits.
Practise here. Get placed there.
Prep+ is unlimited practice. When you are ready to turn it into an offer, TCC Placement Partner handles portfolio, resume and interviews.