Skip to main content
AI & Machine Learning

Machine Learning & Deep Learning Engineering Quiz (2026)

15 Questions15 MinsPass: 80%

Test your machine learning engineering foundations in bias-variance trade-offs, transformer self-attention, backpropagation, Adam.

Question 1 of 150% Completed
Single Choice

What is the mathematical computational and memory complexity of standard Multi-Head Self-Attention in the original Transformer architecture with respect to sequence length N?

Select an option above

Machine Learning: Assessment Scope & Sample Focus Areas

15 questions • 80% pass target

This interactive technical assessment checks your practical understanding of Machine Learning (AI & Machine Learning) across syntax behavior, edge cases, and architectural decisions.

Topic 1 of 15

What is the mathematical computational and memory complexity of standard Multi-Head Self-Attention in the original Transformer architecture with respect to sequence length N?

Topic 2 of 15

How does L1 regularization (Lasso) differ fundamentally from L2 regularization (Ridge) in linear models and neural networks?

Topic 3 of 15

Why does the Vanishing Gradient problem severely affect deep neural networks using Sigmoid or Tanh activation functions, and how does ReLU resolve it?

Topic 4 of 15

In an imbalanced binary classification dataset where positive samples constitute only 0.5% of total records (e.g. credit card fraud detection), which evaluation metric is misleadingly high and should NOT be used alone?

Topic 5 of 15

How does the Adam optimizer calculate parameter updates compared to standard Stochastic Gradient Descent (SGD)?

Topic 6 of 15

What is 'Data Leakage' during the feature engineering and model training pipeline?

Frequently Asked Questions

Machine Learning Assessment: Key Technical Questions & Answers

5 Questions Answered
1How does Backpropagation calculate gradients using the Chain Rule in neural networks?
Backpropagation performs an initial Forward Pass where activations are computed layer-by-layer up to the output layer, computing the Scalar Loss. During the Backward Pass, the algorithm applies the Chain Rule of calculus from output back to input, multiplying local partial derivatives of layer activations with respect to weights and biases. These calculated gradients guide gradient descent optimization algorithms (like Adam or SGD) to update network parameters.
2What causes the Vanishing and Exploding Gradient problems and how are they mitigated?
In deep networks using saturating activation functions like Sigmoid or Tanh, derivatives are bounded between 0 and 0.25. Multiplying many small derivatives through deep layers causes gradients to shrink exponentially to zero (Vanishing Gradients), preventing early layers from training. Conversely, large weight initializations cause gradients to grow exponentially (Exploding Gradients). Mitigations include ReLU/GELU activations, Residual Connections (ResNets), He/Xavier weight initialization, and Layer/Batch Normalization.
3How does the Self-Attention mechanism in Transformer architectures compute token relationships?
Self-Attention projects input embeddings into Query ($Q$), Key ($K$), and Value ($V$) matrices. It computes the dot product of $Q$ and $K^T$, scales by the square root of key dimension $\sqrt{d_k}$ to prevent gradient saturation, applies Softmax to generate an attention weight distribution matrix, and multiplies by $V$: $\text{Attention}(Q,K,V) = \text{softmax}\left(\frac{QK^T}{\sqrt{d_k}}\right)V$. Multi-Head Attention repeats this across distinct projection subspaces.
4What are the trade-offs between L1 (Lasso) and L2 (Ridge) Regularization?
L1 Regularization adds the sum of absolute weight values ($\lambda \sum |w|$) to the loss function; because its diamond constraint region has sharp corners on feature axes, it drives non-informative feature weights strictly to zero, performing automatic feature selection and creating sparse models. L2 Regularization adds the sum of squared weights ($\lambda \sum w^2$); its circular constraint region penalizes large weights smoothly, keeping all features while preventing individual weights from dominating.
5What is the difference between Supervised, Unsupervised, and Reinforcement Learning paradigms?
Supervised Learning trains models on labeled input-output pairs $(X, y)$ to minimize prediction error (e.g. classification, regression). Unsupervised Learning discovers latent patterns, clusters, and representations from unlabeled data $X$ without predefined ground truth (e.g. K-Means, PCA, autoencoders). Reinforcement Learning trains an autonomous Agent to maximize cumulative scalar Rewards through iterative trial-and-error environmental interactions modeled as Markov Decision Processes (MDPs).

Next Steps for Mastery

Reinforce your knowledge with cheatsheets, interactive sandboxes, and interview prep.