Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.
Machine Learning important questions with answers
Each answer starts with the short answer. Then come the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.
Q1. Machine learning: definition, types, scope, limitations, perspectives and issues
Asked 9 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 1
From the papers
“Discuss in detail the limitations of machine learning.” (Nov 2023, Dec 2025)
“Explain the machine learning concept by taking an example. Describe the perspective and issues in machine learning.” (Dec 2020, Dec 2024)
“Explain the scope, limitations and applications of Machine Learning.” (Jun 2026)
“Define Machine Learning. Discuss the scope and limitations of Machine Learning.” (Jun 2025)
The short answer
Machine learning (ML) is the study of programs that improve at a task through experience. Tom Mitchell's definition: a program learns from experience E for task T and performance measure P if its performance at T, measured by P, improves with E. Instead of writing rules by hand, we give the computer data and it finds the rules.
Write these points
Types of machine learning
Type
Data
Example
Supervised
Inputs with correct labels
Spam filter, house price prediction
Unsupervised
Inputs only, no labels
Customer groups, anomaly detection
Reinforcement
Rewards from actions
Game playing, robot walking
Semi and self supervised
Few labels or labels made from the data
Large language models
For continuous targets (price, temperature) we use regression. For discrete targets (spam or not) we use classification.
ML compared with traditional programming
Traditional: rules + data → answers. The programmer writes every rule.
ML: data + answers → rules (a model). The model is learned.
Key components: data, features, model (hypothesis), loss function, optimizer, evaluation.
Scope and applications
Vision, speech, language, medical diagnosis, fraud detection, recommendation, self-driving cars, cyber security (intrusion and malware detection).
Limitations, perspectives and issues
Needs large amounts of good, labelled data.
Overfitting: learns noise, fails on new data.
Bias in data gives unfair results.
Black box: deep models are hard to explain.
High computing cost and energy.
Cannot reason outside the data it saw; adversarial inputs can fool it.
Design issues: which algorithm, how much data, which features, how to measure success.
Learning a spam filter.
T: classify e-mails as spam or not. E: 10,000 labelled e-mails. P: accuracy on new e-mails.
A hand-written rule ("contains free") catches 60% of spam with many false alarms.
A model trained on the 10,000 e-mails reaches 97% accuracy.
With 50,000 e-mails it reaches 98.5%: performance improves with experience, which is the definition of learning.
Real-life example
A child learns to tell cats from dogs by seeing many of each, not by memorizing rules about ears. ML learns from examples in the same way.
Figure: machine learning workflow
Same or opposite: machine learning and traditional programming
Point
Machine learning
Traditional programming
Same or opposite
Input
Data and answers
Data and rules
Opposite
Runs on a computer
Yes
Yes
Same
Output
Rules (a model)
Answers
Opposite
Handles new patterns
Learns them from data
Only if a programmer adds rules
Opposite
Exam tip. Define ML with Mitchell's T, E, P. Give the types table, the comparison with traditional programming and at least five limitations. A short example such as the spam filter earns marks.
Q2. Applications of machine learning: computer vision, speech processing and NLP
Asked 9 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 5
From the papers
“Explain the applications of Machine Learning in computer vision.” (Nov 2023, Dec 2024, Dec 2025, Jun 2025, Jun 2026)
“Explain in detail: Natural Language Processing.” (May 2022, Nov 2023, Jun 2025)
“How is machine learning applied in speech processing tasks such as speech-to-text and speaker identification?” (Jun 2025)
“Explain how machine learning algorithms are utilized in speech processing.” (May 2024)
The short answer
Machine learning powers three big application areas. Computer vision lets machines understand images and video. Speech processing turns speech into text and back. Natural language processing (NLP) lets machines read, understand and write human language. All three use deep networks (CNN, RNN, LSTM, transformers) trained on large data sets.
Segmentation in medical images (tumours), number plate reading, self-driving cars.
CNNs extract edges, shapes and objects layer by layer.
Speech processing
Speech-to-text (ASR): audio → spectrogram (MFCC features) → acoustic model (RNN, LSTM, transformer) → language model → text.
Speaker identification: voice features compared with stored voice prints.
Speech synthesis (TTS): text → spectrogram → vocoder → audio.
Uses: voice assistants, call centre transcription, captions.
Natural language processing
Tokenization: split text into words or sub-words ("unhappy" → "un", "happy").
Cleaning: lowercase, remove stop words, stemming or lemmatization.
Part of speech tagging and named entity recognition.
Vectorization: bag of words, TF-IDF or embeddings (word2vec).
Modelling: classification, translation, summarization with RNN, LSTM or transformers.
Tokenizing and counting a sentence.
Text: "The exam is near. The notes help."
Tokens after lowercasing: the, exam, is, near, the, notes, help (7 tokens).
Removing stop words (the, is) leaves exam, near, notes, help.
Bag of words vector over [exam, help, near, notes] = [1, 1, 1, 1]. This vector is what a classifier reads.
Real-life example
When your phone camera finds faces, when Google Assistant writes what you say and when Gmail suggests a reply, those are vision, speech and NLP models working.
Figure: speech-to-text pipeline
Same or opposite: computer vision and NLP
Point
Computer vision
NLP
Same or opposite
Input
Pixels
Words
Opposite
Uses deep learning
Yes
Yes
Same
Typical model
CNN
RNN, LSTM, transformer
Opposite
Example task
Face recognition
Translation
Opposite
Exam tip. Write three sections with headings: vision, speech, NLP. Give the steps of NLP (tokenization first) and the speech-to-text pipeline. Two examples per area are enough.
Q3. Data preprocessing, normalization, augmentation, encoding and data visualization
Asked 9 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 1
From the papers
“Explain data preprocessing, data augmentation, normalization and data visualization in Machine Learning.” (Jun 2026)
“Explain the different data visualization methods in detail.” (Jun 2025)
“Explain in detail: Data Preprocessing.” (Jun 2025)
“Discuss in detail the types of data visualization in ML.” (Dec 2025)
The short answer
Data preprocessing turns raw data into clean, consistent numbers a model can learn from. It covers cleaning, encoding, normalization, splitting into training and test data, data augmentation (making new training samples from old ones) and data visualization (plots that show patterns and problems).
Write these points
Steps of preprocessing
Cleaning: fill or drop missing values, remove duplicates and outliers.
Encoding categories: label encoding or one-hot encoding.
Normalization or standardization: bring features to a common scale.
Splitting: training data (to learn) and test data (to check); often 80:20.
Feature selection or reduction.
One-hot and label encoding
Encoding
Colour = red, green, blue
Effect on dimensions
Label
0, 1, 2
Same number of columns; adds a false order
One-hot
100, 010, 001
One column per category; dimensions grow
Normalization
Min-max: x′ = (x − min) ÷ (max − min), range 0 to 1.
Z-score: x′ = (x − mean) ÷ std.
Helps gradient descent converge faster and keeps large features from dominating.
Marks scaled: (40 − 40) ÷ 60 = 0, 0.5, 1. Income scaled: 0, 0.5, 1.
Before scaling, income was 800 times larger and would dominate distances in KNN or the gradient.
After scaling both features count equally.
Real-life example
A cook washes, cuts and measures vegetables before cooking. Preprocessing is that preparation for the model.
Figure: data preprocessing pipeline
Same or opposite: normalization and standardization
Point
Min-max normalization
Z-score standardization
Same or opposite
Result range
0 to 1
Mean 0, std 1
Opposite
Rescales features
Yes
Yes
Same
Effect of outliers
Strong
Smaller
Opposite
Common use
Images, neural networks
Linear models, SVM
Opposite
Exam tip. List the preprocessing steps in order. Show one-hot and label encoding with the colour example, give the normalization formulas and name augmentation methods. Add visualization types when asked.
Q4. Linearity and non-linearity, activation functions, loss function and gradient descent
Asked 9 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 2
From the papers
“Explain weights, bias, loss function and gradient descent in neural networks.” (Jun 2026)
“Explain the types of gradient descent.” (Jun 2025)
“Discuss the sigmoid activation function in detail.” (Jun 2025)
“Discuss the importance of loss calculation in guiding the backpropagation and optimization process.” (Jun 2025)
The short answer
A neuron computes z = w·x + b (weights and bias), then an activation function f(z). Without a non-linear activation, many layers collapse into one linear model, so non-linearity is what lets a network learn curved boundaries. The loss function measures error. Gradient descent reduces the loss by moving each weight against its gradient: w = w − η ∂L/∂w.
Write these points
Activation functions
Function
Formula
Range
Note
Sigmoid
1 ÷ (1 + e^−z)
0 to 1
Vanishing gradient for large |z|
Tanh
(e^z − e^−z) ÷ (e^z + e^−z)
−1 to 1
Zero centred
ReLU
max(0, z)
0 to ∞
Fast, no vanishing for z > 0; dead units for z < 0
Leaky ReLU
z if z > 0 else 0.01z
−∞ to ∞
Fixes dead units
Softmax
e^zᵢ ÷ Σ e^zⱼ
0 to 1, sums to 1
Output layer for classes
Loss functions
MSE = (1/n) Σ (y − ŷ)² for regression.
MAE = (1/n) Σ |y − ŷ|, less hurt by outliers.
Cross-entropy = −Σ y log ŷ for classification.
Hinge loss = max(0, 1 − y·ŷ) for SVM.
Types of gradient descent and optimizers
Batch: gradient on all data per step; smooth but slow.
Stochastic (SGD): one sample per step; fast, noisy.
Mini-batch: 32 to 256 samples; the usual choice.
Optimizers: momentum, AdaGrad, RMSProp, Adam (momentum + adaptive rates).
Convex optimization: a convex loss (MSE of linear regression) has one global minimum, so gradient descent cannot get stuck.
ReLU and one gradient step.
ReLU for x = −3, 0, 5 gives 0, 0, 5.
Loss L = (w − 3)², start w = 0, learning rate η = 0.1. Gradient = 2(w − 3) = −6.
w = 0 − 0.1 × (−6) = 0.6. Next gradient = −4.8, w = 0.6 + 0.48 = 1.08.
Each step moves w towards the minimum at 3; the steps shrink as the slope flattens.
Real-life example
A hiker in fog finds the valley by always stepping downhill. Gradient descent does the same on the loss surface. The step size is the learning rate.
Figure: one training step
Same or opposite: sigmoid and ReLU
Point
Sigmoid
ReLU
Same or opposite
Range
0 to 1
0 to ∞
Opposite
Adds non-linearity
Yes
Yes
Same
Vanishing gradient
Yes, at both ends
No, for positive inputs
Opposite
Speed
Slower (exponent)
Very fast
Opposite
Exam tip. Explain why non-linearity is needed. Give the activation table with formulas, two loss functions and the three types of gradient descent. Solve the ReLU values and one update step.
“Define padding. How does padding work in CNN?” (Jun 2025)
“Explain the architecture of a Convolutional Neural Network (CNN).” (Jun 2025)
The short answer
A convolutional neural network (CNN) learns from images using convolution layers (small filters sliding over the image), pooling layers (shrinking the maps), flattening and dense (fully connected) layers, ending in a loss layer. Early layers find edges, later layers find shapes and objects, so the network builds hierarchical features.
Write these points
Layers
Layer
What it does
Convolution
Filter (3 × 3) slides with a stride, computing dot products → feature map
Activation (ReLU)
Keeps positive values
Pooling (subsampling)
Max or average of each block; shrinks size, adds tolerance to shifts
Flatten
Turns the 3-D maps into one long vector
Dense
Fully connected layers combine features
Loss layer
Softmax with cross-entropy compares output with labels
Padding, stride and 1 × 1 convolution
Valid padding: no padding, output shrinks. Same padding: zeros added so output size equals input size.
Stride: step of the filter. Output size = (n + 2p − f) ÷ s + 1.
1 × 1 convolution: mixes channels at each pixel; cuts 256 channels to 64, reducing computation (used in Inception).
Input channels: 3 for RGB; each filter spans all input channels.
Why the image shrinks while filters grow: deeper layers need less spatial detail but more kinds of features, so pooling halves the size while the filter count doubles (32, 64, 128).
To recognize a friend in a crowd you first notice outlines, then a face shape, then the face. A CNN builds understanding in the same layers.
Figure: 2 × 2 max pooling with stride 2
Same or opposite: same and valid padding
Point
Same padding
Valid padding
Same or opposite
Zeros added
Yes
No
Opposite
Used in convolution layers
Yes
Yes
Same
Output size (stride 1)
Equal to input
Smaller by f − 1
Opposite
Edge information
Kept
Partly lost
Opposite
Exam tip. Draw the CNN pipeline. Give the layer table, the padding types with the output size formula and the 1 × 1 convolution. Solve a max pooling example.
Q6. RNN, LSTM, GRU, beam search, BLEU score and attention model
Asked 8 times in 2020, 2022, 2023, 2024, 2025 · Unit 4
From the papers
“Discuss the structure of Long Short Term Memory.” (Jun 2025)
“Discuss the role of LSTMs in natural language generation models like ChatGPT and how they handle long-term dependencies.” (Jun 2025)
“Explain in detail about Recurrent Neural Network.” (Dec 2025)
“Explain the role of beam width in beam search and how it affects performance.” (Dec 2025)
The short answer
A recurrent neural network (RNN) processes sequences one step at a time and keeps a hidden state: hₜ = tanh(W xₜ + U hₜ₋₁ + b). Plain RNNs forget long contexts because gradients vanish. LSTM and GRU add gates that control memory. Beam search, the BLEU score and the attention model are used when RNNs translate text.
Write these points
Types of RNN
One to many: image captioning.
Many to one: sentiment analysis.
Many to many: translation, speech recognition.
LSTM, GRU and vanilla RNN
Point
Vanilla RNN
LSTM
GRU
Gates
None
Forget, input, output
Update, reset
Memory
Hidden state only
Cell state + hidden state
Hidden state
Long dependencies
Poor
Good
Good
Parameters
Fewest
Most
Fewer than LSTM
Beam search, BLEU and attention
Beam search keeps the k best partial sentences at each step (k = beam width). Wider beam: better output, more time; k = 1 is greedy search.
BLEU score compares machine output with reference translations using n-gram precision (n = 1 to 4) times a brevity penalty that punishes too-short output.
Attention lets the decoder look at every encoder state with learned weights, so long sentences are translated better; it led to transformers and ChatGPT.
Brevity penalty in BLEU.
Reference has 10 words; candidate translation has 8 words.
If the n-gram precision score is 0.60, BLEU = 0.78 × 0.60 = 0.47.
A 10-word candidate would get BP = 1, so short translations cannot score high by dropping words.
Real-life example
Reading a sentence, you remember earlier words to understand the next one. An RNN carries that memory. An LSTM decides what to keep and what to forget, like a student underlining only key lines.
Figure: LSTM cell
Same or opposite: feed-forward network and RNN
Point
Feed-forward
RNN
Same or opposite
Connections
Forward only
Loops over time
Opposite
Trained by back propagation
Yes
Yes, through time
Same
Input length
Fixed
Any
Opposite
Example use
Image classification
Text, speech
Opposite
Exam tip. Write the RNN state equation and the types. Draw the LSTM cell with three gates and its equations, then compare with GRU. Add beam search, BLEU and attention in a few lines each.
Asked 8 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 4
From the papers
“Explain Actor-Critic, Q-Learning and SARSA algorithms.” (Jun 2026)
“What is model based and model free learning Q-Learning? Explain.” (Jun 2025)
“What is Q-learning, and how does it use the Q-value to guide an agent's actions?” (Jun 2025)
“Discuss the rise of advanced actor-critic models with example.” (Jun 2025)
The short answer
Q-learning learns the value Q(s, a) of taking action a in state s, using the best next action: Q ← Q + α[r + γ max Q(s′, a′) − Q]. It is off-policy and model free. SARSA uses the action actually taken next, so it is on-policy. The actor-critic model has an actor (chooses actions) and a critic (judges them).
Write these points
Q-learning algorithm
Initialize Q(s, a) = 0 for all states and actions.
In state s, choose a by ε-greedy (mostly the best, sometimes random).
Take a, observe reward r and next state s′.
Update Q(s, a) = Q(s, a) + α [r + γ maxₐ′ Q(s′, a′) − Q(s, a)].
s = s′; repeat until the episode ends; run many episodes.
Q-learning and SARSA
Point
Q-learning
SARSA
Target
r + γ max Q(s′, a′)
r + γ Q(s′, a′) with the a′ actually chosen
Policy type
Off-policy
On-policy
Behaviour
Bolder, learns the optimal path
Safer, accounts for exploration
Model based and model free
Model based: the agent knows or learns P(s′ | s, a) and plans (value iteration).
Model free: learns Q directly from experience (Q-learning, SARSA).
Actor-critic model
Actor: the policy π(a | s); updated in the direction the critic suggests.
Critic: a value function V(s); computes the TD error δ = r + γ V(s′) − V(s).
δ > 0 means the action was better than expected, so the actor makes it more likely.
Advantages: lower variance than pure policy gradient, works with continuous actions. Advanced forms: A2C, A3C, PPO.
One update by each method.
Q(s, a) = 2, α = 0.5, γ = 0.9, r = 1. In s′: max Q = 4, but the ε-greedy action chosen has Q = 3.
The only difference is which next Q value is used; SARSA is more cautious.
Real-life example
Learning to cycle: you try, fall or stay up (reward) and slowly learn which moves work in which situation. Q-learning keeps a score for every move in every situation.
Figure: actor-critic loop
Same or opposite: Q-learning and SARSA
Point
Q-learning
SARSA
Same or opposite
Policy
Off-policy
On-policy
Opposite
Temporal difference method
Yes
Yes
Same
Next value used
Best action
Action actually taken
Opposite
Risk near danger
Takes risky optimal path
Prefers safer path
Opposite
Exam tip. Write the Q-learning update and steps. Give the Q-learning versus SARSA table, then the actor-critic parts with the TD error. The one-step example shows the difference clearly.
Asked 8 times in 2020, 2022, 2023, 2024, 2025 · Unit 5
From the papers
“Discuss the role of probability in machine learning. How is Bayes' theorem used in classification tasks, and why is it fundamental in probabilistic models?” (Jun 2025)
“Analyze how SVMs perform in high-dimensional spaces and discuss their applications in fields like bioinformatics and image recognition.” (Jun 2025)
“Discuss in detail about Bayesian learning.” (Dec 2025)
“Describe the concept of support vectors and their role in defining the decision boundary in SVM.” (May 2024)
The short answer
A support vector machine (SVM) finds the hyperplane w·x + b = 0 that separates two classes with the widest margin. The nearest points, the support vectors, fix it. Bayesian learning uses Bayes' theorem, P(h | D) = P(D | h) P(h) ÷ P(D), to update the probability of a hypothesis as data arrives.
Write these points
How an SVM finds the optimal hyperplane
Margin width = 2 ÷ ‖w‖, so maximizing the margin means minimizing ½‖w‖².
Subject to yᵢ (w·xᵢ + b) ≥ 1 for every training point.
Solved as a convex quadratic problem; only support vectors get non-zero weights.
Soft margin (parameter C) allows some errors for noisy data.
Kernel trick (polynomial, RBF) maps data to higher dimensions to separate curved classes.
SVMs work well in high dimensions (text, genes) because only the support vectors matter. Uses: bioinformatics, face and handwriting recognition, spam detection.
Bayesian learning
Prior P(h): belief before data. Likelihood P(D | h). Posterior P(h | D): belief after data.
MAP hypothesis: the h with the largest posterior.
Naive Bayes assumes features are independent given the class.
Bayesian belief network: a graph of variables with a probability table at each node.
Bayesian belief network for car value (May 2023 data, 40 records).
Car value depends on Engine and Air Conditioner. P(High | Good, Working) = 12/16 = 0.75; P(High | Good, Broken) = 6/9 = 0.67.
Query: Mileage = Lo, Engine = Bad, AC = Broken. Given Engine and AC, mileage does not change car value.
P(High) = 0, so the predicted car value is Low.
Real-life example
Choosing where to draw a road between two villages, you keep it as far as possible from the nearest houses on both sides. That road is the SVM hyperplane; the nearest houses are the support vectors.
Figure: maximum margin hyperplane
Same or opposite: SVM and naive Bayes
Point
SVM
Naive Bayes
Same or opposite
Approach
Geometric margin
Probability
Opposite
Used for classification
Yes
Yes
Same
Training cost
Higher
Very low
Opposite
Gives probabilities
Not directly
Yes
Opposite
Exam tip. Draw the margin figure with support vectors and write ½‖w‖² with its constraint. Mention soft margin and kernels. For Bayesian learning, write Bayes' theorem with prior, likelihood and posterior, then a network or numeric example.
Q9. Reinforcement learning framework, MDP, Bellman equations, value and policy iteration
Asked 7 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 4
From the papers
“Explain the difference between Value Iteration and Policy Iteration algorithms.” (Dec 2020, Dec 2024)
“Compare Value Iteration and Policy Iteration with suitable examples.” (Jun 2026)
“Explain the Reinforcement Learning framework, Markov Decision Process (MDP) and Bellman equations.” (Jun 2026)
“Explain the working principle of Markov Decision Process in detail.” (Jun 2025)
The short answer
Reinforcement learning (RL) is learning by trial and error: an agent acts in an environment, receives rewards and learns a policy that maximizes total reward. The problem is modelled as a Markov decision process (MDP), solved with the Bellman equations by value iteration or policy iteration.
Write these points
Elements of RL
Agent, environment, state s, action a, reward r.
Policy π(a | s): how the agent acts.
Value function V(s) and Q(s, a): expected future reward.
Model (optional): how the environment responds.
Unlike supervised learning there are no correct labels, only delayed rewards; unlike unsupervised learning there is a goal.
Markov property: the next state depends only on the current state and action.
Bellman optimality: V*(s) = maxₐ [R(s, a) + γ Σ P(s′ | s, a) V*(s′)].
Value iteration and policy iteration
Point
Value iteration
Policy iteration
Steps
Repeat Bellman max update until V stops changing
Evaluate the policy fully, then improve it greedily
Per iteration
Cheap
Costly (full evaluation)
Iterations needed
More
Fewer
Output
Optimal V, then the policy
Optimal policy directly
Frameworks: OpenAI Gym (Gymnasium) for environments, TensorFlow Agents and Stable Baselines for algorithms.
One value iteration update.
State s has two actions. Left: reward 2, goes to s1 with V(s1) = 5. Right: reward 0, goes to s2 with V(s2) = 10. γ = 0.9.
Left: 2 + 0.9 × 5 = 6.5. Right: 0 + 0.9 × 10 = 9.
V(s) = max(6.5, 9) = 9 and the greedy policy picks Right.
Value iteration repeats this for every state until no value changes much.
Real-life example
A dog learning tricks gets a biscuit for the right action. It is never told the rule; it works out which actions bring rewards. That is reinforcement learning.
Figure: the reinforcement learning loop
Same or opposite: reinforcement and supervised learning
Point
Reinforcement
Supervised
Same or opposite
Feedback
Reward, often delayed
Correct label for each input
Opposite
Learns from data
Yes
Yes
Same
Data
Generated by acting
Fixed data set
Opposite
Goal
Maximize total reward
Minimize prediction error
Opposite
Exam tip. Draw the agent and environment loop. Define the MDP tuple and write the Bellman equation. Give the value versus policy iteration table and a one-step example.
Q10. Regularization, batch normalization, hyperparameter tuning, overfitting and autoencoders
Asked 7 times in 2023, 2024, 2025, 2026 · Unit 2
From the papers
“Explain in detail: Batch normalization.” (Nov 2023, Jun 2025)
“Compare L1 and L2 regularization. Discuss momentum, hyperparameter tuning and autoencoders.” (Jun 2026)
“Compare L1 and L2 regularization in machine learning. How do these techniques prevent overfitting and what is the difference in the impact they have on model weights?” (Jun 2025)
“Explain the working of batch normalization. Write its benefits and usage areas.” (Dec 2025)
The short answer
Overfitting means the model learns the training data with its noise. It then fails on new data; underfitting means it is too simple to learn the pattern. Regularization (L1, L2, dropout), batch normalization and careful hyperparameter tuning fight these problems. An autoencoder is a network trained to rebuild its own input through a small bottleneck.
Write these points
Spotting overfitting and underfitting
Overfitting: training accuracy high (99%), validation accuracy low (75%).
Underfitting: both low.
Fixes for overfitting: more data, augmentation, L1/L2, dropout, early stopping, a smaller model.
Fixes for underfitting: a bigger model, more training, better features.
L1 and L2 regularization
Point
L1 (Lasso)
L2 (Ridge)
Penalty added to loss
λ Σ |w|
λ Σ w²
Effect on weights
Drives many to exactly 0 (feature selection)
Shrinks all, none to 0
Use
Many useless features
General smoothing
Batch normalization, dropout and momentum
Batch normalization: normalize each layer's inputs over the mini-batch (mean 0, variance 1), then scale and shift by learned γ and β. Benefits: faster training, higher learning rates, less sensitivity to initialization, slight regularization.
Dropout: randomly switch off, say, 50% of units in training so no unit relies on others.
Momentum: v = βv + ∇L; w = w − ηv; speeds up along consistent directions.
Loss gradient for weight w = 2 is 0.5. Learning rate η = 0.1, λ = 0.1.
Without L2: w = 2 − 0.1 × 0.5 = 1.95.
With L2 the gradient adds 2λw = 0.4: w = 2 − 0.1 × 0.9 = 1.91.
Every step pulls large weights a little towards 0, so the model stays simpler.
Real-life example
A student who memorizes last year's answers word for word fails when questions change; that is overfitting. Practising with varied questions is regularization.
Figure: autoencoder with a bottleneck
Same or opposite: L1 and L2 regularization
Point
L1
L2
Same or opposite
Penalty
Absolute values
Squares
Opposite
Reduces overfitting
Yes
Yes
Same
Zero weights
Many
Few or none
Opposite
Feature selection
Yes
No
Opposite
Exam tip. Define overfitting and underfitting with how to spot them. Give the L1 and L2 table, then batch normalization with its benefits. Add tuning methods and the autoencoder with its bottleneck when asked.
Q11. Regression, probability, statistics, hypothesis function and hypothesis testing
Asked 7 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 1
From the papers
“Discuss hypothesis functions, hypothesis testing and data distributions.” (Jun 2026)
“Explain the role of regression, probability and statistics in Machine Learning.” (Jun 2025)
“Describe common evaluation metrics used for regression models of machine learning.” (May 2024)
“Explain how a hypothesis function maps input features to output predictions in a machine learning model.” (Dec 2024)
The short answer
Regression predicts a continuous value. Linear regression fits the hypothesis function h(x) = θ₀ + θ₁x, which maps input features to a prediction, by minimizing the mean squared error. Probability and statistics give the tools to describe data (mean, variance, distributions) and to test hypotheses about it.
Write these points
Linear regression
Hypothesis h(x) = θ₀ + θ₁x₁ + ... + θₙxₙ.
Cost J(θ) = (1/2m) Σ (h(xᵢ) − yᵢ)², minimized by gradient descent or least squares.
Locally weighted linear regression: fits a separate line near each query point, giving nearby points weight w = e^(−(x − x₀)² ÷ 2τ²).
Classification predicts a category; regression predicts a number.
Evaluation metrics for regression
MAE, MSE, RMSE (errors in the units of y).
R² = 1 − SS_res ÷ SS_tot: share of variance explained (1 is perfect).
Probability, statistics and hypothesis testing
Distributions: normal (heights), binomial (pass or fail), Poisson (arrivals), uniform.
For 4 hours the model predicts 0.67 + 6 = 6.67 marks.
Real-life example
A shopkeeper notices sales rise about ₹500 for every degree of heat. That line from past days is a regression model he uses to plan stock.
Figure: hypothesis testing
Same or opposite: regression and classification
Point
Regression
Classification
Same or opposite
Output
Number
Class label
Opposite
Supervised learning
Yes
Yes
Same
Loss
MSE
Cross-entropy
Opposite
Example
House price
Spam or not
Opposite
Exam tip. Write the hypothesis and cost function, then solve a small least squares line. Add regression metrics, the main distributions and the steps of hypothesis testing.
Asked 6 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 2
From the papers
“Explain the role of back propagation in training a multilayer network with weight adjustments in layers.” (Dec 2024, Dec 2025)
“Discuss multilayer neural networks, backpropagation, weight initialization, training and testing.” (Jun 2026)
“Discuss the importance of the chain rule in the back propagation algorithm for computing gradients efficiently.” (Dec 2024)
“Replace the old weights (not the bias) in the network using back-propagation. A [0,1] input pattern is given, the desired output is 1, sigmoid activation, learning rate 0.3.” (May 2023)
The short answer
Back propagation trains a multilayer network. A forward pass computes the output. The error is then sent backward using the chain rule to get each weight's gradient. Every weight is then updated by gradient descent. Weight initialization (small random values, Xavier or He) lets training start well.
Write these points
Algorithm
Initialize weights with small random values.
Forward pass: for each layer, net = Σ w x + b, output o = f(net).
δz1 = 0.690 × 0.310 × 0.0694 × 0.3 = 0.00445; δz2 = 0.750 × 0.250 × 0.0694 × 0.2 = 0.00260. x2→z1 = 0.601, x2→z2 = 0.701; weights from x1 stay the same because x1 = 0.
Real-life example
After a group project goes wrong, the teacher traces back who caused how much of the mistake and gives each person feedback in proportion. Back propagation shares out the error among the weights the same way.
Figure: multilayer network trained by back propagation
Same or opposite: forward pass and backward pass
Point
Forward pass
Backward pass
Same or opposite
Direction
Input to output
Output to input
Opposite
Needed in every training step
Yes
Yes
Same
Computes
Outputs
Gradients δ
Opposite
Used at test time
Yes
No
Opposite
Exam tip. Draw the network, write the six steps with the δ formulas and explain the chain rule. A numeric update like the May 2023 one is often asked.
Q13. Inception network, transfer learning, one-shot learning and the ImageNet competition
Asked 6 times in 2023, 2024, 2025, 2026 · Unit 3
From the papers
“Explain the Inception Network and transfer learning with suitable applications.” (Jun 2026)
“Explain the significance of the ImageNet Competition in the development of deep learning.” (Jun 2026)
“Define one-shot learning and explain how it differs from traditional supervised learning. Discuss applications where one-shot learning is particularly beneficial.” (Jun 2025)
“What is the inception network architecture? Explain how inception modules use multiple kernel sizes simultaneously.” (Dec 2025)
The short answer
The Inception network (GoogLeNet, 2014) runs 1 × 1, 3 × 3 and 5 × 5 convolutions and pooling in parallel inside one module and joins the results. Transfer learning reuses a network trained on a large data set for a new task. One-shot learning recognizes a new class from a single example. The ImageNet competition drove these advances.
Write these points
Inception module
Four parallel branches: 1 × 1; 1 × 1 then 3 × 3; 1 × 1 then 5 × 5; 3 × 3 max pool then 1 × 1.
Outputs are concatenated along the channel axis.
Several kernel sizes catch small and large features at once.
The 1 × 1 convolutions cut channels first, so the module stays cheap: GoogLeNet has about 7 million parameters against 60 million in AlexNet.
Transfer learning
Feature extraction: freeze the pretrained layers, train only a new final classifier.
Fine-tuning: also retrain the top layers with a small learning rate.
Benefits: needs little data, trains fast, better accuracy. Early layers (edges, textures) transfer best.
One-shot learning
Traditional supervised learning needs many examples per class; one-shot needs one.
A Siamese network learns a similarity: two images → embeddings → distance; same person if distance is small.
Uses: face verification at office gates, signature checking, rare species or medical cases.
ImageNet competition (ILSVRC)
1.2 million training images, 1,000 classes, held 2010 to 2017.
2012: AlexNet (CNN on GPUs) cut top-5 error from about 26% to 15.3%, starting the deep learning boom.
Later winners: VGG and GoogLeNet (2014), ResNet (2015, 3.6%, better than human ~5%).
Total ≈ 12.4 million instead of 120 million: about 10 times cheaper.
Real-life example
A person who already drives a car learns to drive a truck quickly. Transfer learning reuses what a network already knows in the same way.
Figure: Inception module
Same or opposite: feature extraction and fine-tuning
Point
Feature extraction
Fine-tuning
Same or opposite
Pretrained layers
Frozen
Top layers retrained
Opposite
Reuses a pretrained model
Yes
Yes
Same
Data needed
Very little
More
Opposite
Accuracy on new task
Good
Usually better
Opposite
Exam tip. Draw the Inception module with its four branches and explain the 1 × 1 saving. Give the two types of transfer learning, one-shot learning with a Siamese network and the ImageNet milestones.
Asked 6 times in 2020, 2023, 2024, 2025, 2026 · Unit 3
From the papers
“Explain the process of implementing CNN in tensor flow.” (Dec 2025, Jun 2025)
“Discuss one-shot learning, dimension reduction and CNN implementation using TensorFlow and Keras.” (Jun 2026)
“Describe the role of Tensor Flow in facilitating the implementation and training of CNNs.” (Dec 2024)
“Discuss the implementation of Convolutional Neural Network in Tensor Flow.” (Nov 2023)
The short answer
TensorFlow is Google's open-source library for building and training neural networks; it handles tensors, automatic differentiation and GPU computing. Keras is its high-level API, where a CNN is written as a stack of layers in a few lines. Implementing a CNN means: load data, build the model, compile, train, evaluate and predict.
Write these points
Steps to implement a CNN
Load and preprocess data: for example MNIST, scale pixels to 0 to 1, reshape to (28, 28, 1).
Flatten gives 1,600 values; Dense(64) adds 1,600 × 64 + 64 = 102,464 parameters. model.summary() prints these numbers.
Real-life example
Keras is like ready LEGO pieces with instructions: you stack conv, pool and dense blocks. TensorFlow is the factory underneath that makes the pieces fit and move.
Figure: CNN in Keras
Same or opposite: TensorFlow and Keras
Point
TensorFlow
Keras
Same or opposite
Level
Low level engine
High level API
Opposite
Builds and trains neural networks
Yes
Yes
Same
Code needed
More
Very little
Opposite
Best for
Custom research, deployment
Quick model building
Opposite
Exam tip. Write the five steps with real Keras lines. Explain what TensorFlow adds (automatic gradients, GPU, TensorBoard). A parameter count shows understanding.
Q15. Dimensionality reduction and principal component analysis
Asked 6 times in 2020, 2022, 2023, 2024, 2025, 2026 · Unit 3
From the papers
“Discuss one-shot learning, dimension reduction and CNN implementation using TensorFlow and Keras.” (Jun 2026)
“What do you mean by dimension reduction? Discuss in detail.” (Jun 2025)
“Explain why high-dimensional data can be challenging for machine learning algorithms.” (May 2024)
“Discuss the concept of Dimensionality Reduction.” (Nov 2023)
The short answer
Dimensionality reduction lowers the number of features while keeping the important information. High-dimensional data suffers from the curse of dimensionality: points become sparse, distances lose meaning, training slows and overfitting grows. Principal component analysis (PCA) is the most used method: it projects data onto the directions of greatest variance.
Write these points
Why high dimensions are hard
Data needed grows exponentially with dimensions.
Distances between points become nearly equal, so KNN and clustering suffer.
More features mean more parameters, more overfitting and more computation.
Visualization is impossible beyond 3 dimensions.
Methods
Feature selection: keep a subset (filter, wrapper, L1).
Feature extraction: build new features: PCA, LDA, autoencoders, t-SNE.
PCA steps
Standardize the data (mean 0).
Compute the covariance matrix.
Find its eigenvalues and eigenvectors.
Sort by eigenvalue; keep the top k eigenvectors (principal components).
Project: Z = X · W_k. The share of variance kept = sum of the k eigenvalues ÷ sum of all.
How many components to keep.
A data set with 5 features has eigenvalues 4.0, 2.5, 1.5, 1.0 and 1.0 (total 10).
To keep 80% of the variance we keep 3 components: 5 features become 3.
Real-life example
A photo of a 3-D building is a 2-D picture, yet you still recognize the building. PCA keeps the views that show the most, like a good photographer choosing the best angle.
Figure: principal component analysis
Same or opposite: PCA and feature selection
Point
PCA
Feature selection
Same or opposite
New features
Combinations of old ones
Original features kept
Opposite
Reduces dimensions
Yes
Yes
Same
Readability
Harder to explain
Easy
Opposite
Uses labels
No
Sometimes
Opposite
Exam tip. Explain the curse of dimensionality with three points. Write the five PCA steps and solve how many components keep 80% of the variance.
RGPV teaches Machine Learning to 3 branches under one syllabus. Each branch prints its own code on the paper, but the units are the same. So one page and one PDF serve all of them.
We counted every question in the Machine Learning papers on this site by topic, from 2020 to 2026. A topic that keeps coming back is a topic RGPV likes, so it sits higher in the table. One branch alone has only a few papers. Counting them together gives a surer list.
Machine Learning important questions by branch
CY-701Machine Learning important questions for Cyber Security, Semester 7
CY-701 follows the same RGPV syllabus as the other codes on this page. The 15 topics and answers above are the CY-701 important questions too.
Machine Learning is a Semester 7 subject in Cyber Security, under the paper code CY-701. Computer Science and Engineering studies the same subject in Semester 6 as CS-601, and its full unit-wise brief is on the Computer Science and Engineering page. In Semester 7 of Cyber Security you study it along with Penetration Testing and Vulnerability Analysis, Mobile Security and Forensics and Multimedia Security and Forensics.
Machine Learning is a Semester 7 subject here, one semester after CSE, and it sits among the security electives. Unit 1 gives you the vocabulary, and Units 2 to 4 (neural networks) are the heavier part.
We hold 3 previous year papers for Machine Learning in Cyber Security, from 2023 to 2025. The papers list opens each one, newest first.
Machine Learning units at a glance
Introduction to machine learning
Neural networks and training
Convolutional neural networks
Recurrent neural networks and reinforcement learning
Support vector machines and applications
The unit list follows the RGPV scheme and syllabus, B.Tech Computer Science and Engineering, Semester 6 (AICTE flexible curriculum, w.e.f. Jan 2020). Check your own branch's scheme document if a unit differs. For the topics inside each unit, open the Machine Learning notes.
What are the most important topics in Machine Learning?
By how often they were asked in the papers on this site: Machine learning: definition, types, scope, limitations, perspectives and issues (9 times); Applications of machine learning: computer vision, speech processing and NLP (9 times); Data preprocessing, normalization, augmentation, encoding and data visualization (9 times); Linearity and non-linearity, activation functions, loss function and gradient descent (9 times); CNN architecture and layers: convolution, pooling, padding, stride, flattening, 1x1 convolution (8 times).
How were these Machine Learning important questions chosen?
Each topic was counted from the questions in the past papers listed on this site (2020-2026). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.
Is there a PDF of Machine Learning important questions with answers?
Yes. The Paperwala Imp Question & Answer PDF for Machine Learning is free to download from this page.
The 15 most repeated topics of Machine Learning (CY-701) for RGPV B.Tech Cyber Security semester 7, counted from the previous year papers on this site. The same syllabus is taught under 3 codes: CY-701, CI-602, CS-601.