CY-701 CI-602 CS-601 Machine Learning

Machine Learning Important Questions

RGPV · B.Tech · Cyber Security · Semester 7 · Current scheme · 3 papers (2023 to 2025)

  1. Read the answers

    Start with the topics that come every year.

  2. Revise unit notes

    Go through each unit once to score more.

Paperwala Imp Topics - Machine Learning important questions

Download Paperwala Imp Question & Answer (PDF)

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

TypeDataExample
SupervisedInputs with correct labelsSpam filter, house price prediction
UnsupervisedInputs only, no labelsCustomer groups, anomaly detection
ReinforcementRewards from actionsGame playing, robot walking
Semi and self supervisedFew labels or labels made from the dataLarge 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

  1. Needs large amounts of good, labelled data.
  2. Overfitting: learns noise, fails on new data.
  3. Bias in data gives unfair results.
  4. Black box: deep models are hard to explain.
  5. High computing cost and energy.
  6. Cannot reason outside the data it saw; adversarial inputs can fool it.
  7. 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
Figure: machine learning workflow

Same or opposite: machine learning and traditional programming

PointMachine learningTraditional programmingSame or opposite
InputData and answersData and rulesOpposite
Runs on a computerYesYesSame
OutputRules (a model)AnswersOpposite
Handles new patternsLearns them from dataOnly if a programmer adds rulesOpposite

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.

Back to the topic list

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.

Write these points

Computer vision

  • Image classification (ImageNet), object detection (YOLO), face recognition (phone login, attendance).
  • 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

  1. Tokenization: split text into words or sub-words ("unhappy" → "un", "happy").
  2. Cleaning: lowercase, remove stop words, stemming or lemmatization.
  3. Part of speech tagging and named entity recognition.
  4. Vectorization: bag of words, TF-IDF or embeddings (word2vec).
  5. 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
Figure: speech-to-text pipeline

Same or opposite: computer vision and NLP

PointComputer visionNLPSame or opposite
InputPixelsWordsOpposite
Uses deep learningYesYesSame
Typical modelCNNRNN, LSTM, transformerOpposite
Example taskFace recognitionTranslationOpposite

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.

Back to the topic list

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

  1. Cleaning: fill or drop missing values, remove duplicates and outliers.
  2. Encoding categories: label encoding or one-hot encoding.
  3. Normalization or standardization: bring features to a common scale.
  4. Splitting: training data (to learn) and test data (to check); often 80:20.
  5. Feature selection or reduction.

One-hot and label encoding

EncodingColour = red, green, blueEffect on dimensions
Label0, 1, 2Same number of columns; adds a false order
One-hot100, 010, 001One 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.

Data augmentation

  • Images: flip, rotate, crop, zoom, change brightness.
  • Text: synonyms, back translation. Audio: noise, speed change.
  • Gives more variety, reduces overfitting when data is small.

Data visualization

  • Histogram (distribution), scatter plot (relation of two features), box plot (outliers), heat map (correlations), bar and line charts.

Min-max scaling of marks and income.

Marks: 40, 70, 100. Income: 20,000, 50,000, 80,000.

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
Figure: data preprocessing pipeline

Same or opposite: normalization and standardization

PointMin-max normalizationZ-score standardizationSame or opposite
Result range0 to 1Mean 0, std 1Opposite
Rescales featuresYesYesSame
Effect of outliersStrongSmallerOpposite
Common useImages, neural networksLinear models, SVMOpposite

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.

Back to the topic list

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

FunctionFormulaRangeNote
Sigmoid1 ÷ (1 + e^−z)0 to 1Vanishing gradient for large |z|
Tanh(e^z − e^−z) ÷ (e^z + e^−z)−1 to 1Zero centred
ReLUmax(0, z)0 to ∞Fast, no vanishing for z > 0; dead units for z < 0
Leaky ReLUz if z > 0 else 0.01z−∞ to ∞Fixes dead units
Softmaxe^zᵢ ÷ Σ e^zⱼ0 to 1, sums to 1Output 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
Figure: one training step

Same or opposite: sigmoid and ReLU

PointSigmoidReLUSame or opposite
Range0 to 10 to ∞Opposite
Adds non-linearityYesYesSame
Vanishing gradientYes, at both endsNo, for positive inputsOpposite
SpeedSlower (exponent)Very fastOpposite

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.

Back to the topic list

Q5. CNN architecture and layers: convolution, pooling, padding, stride, flattening, 1x1 convolution

Asked 8 times in 2020, 2023, 2024, 2025, 2026 · Unit 3

From the papers

  • “Explain convolution, pooling, dense and loss layers in CNN.” (Jun 2026)
  • “Discuss padding, stride, flattening, subsampling, input channels and 1x1 convolution.” (Jun 2026)
  • “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

LayerWhat it does
ConvolutionFilter (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
FlattenTurns the 3-D maps into one long vector
DenseFully connected layers combine features
Loss layerSoftmax 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).

Max pooling on the December 2025 feature map.

Feature map rows: [1 2 3 0], [4 5 6 1], [7 8 9 2], [0 1 2 3]. Pooling 2 × 2, stride 2.

Top-left block {1, 2, 4, 5} → 5. Top-right {3, 0, 6, 1} → 6.

Bottom-left {7, 8, 0, 1} → 8. Bottom-right {9, 2, 2, 3} → 9.

Result [[5, 6], [8, 9]]: a 4 × 4 map becomes 2 × 2. Output size check: (4 − 2) ÷ 2 + 1 = 2.

Real-life example

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
Figure: 2 × 2 max pooling with stride 2

Same or opposite: same and valid padding

PointSame paddingValid paddingSame or opposite
Zeros addedYesNoOpposite
Used in convolution layersYesYesSame
Output size (stride 1)Equal to inputSmaller by f − 1Opposite
Edge informationKeptPartly lostOpposite

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.

Back to the topic list

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

PointVanilla RNNLSTMGRU
GatesNoneForget, input, outputUpdate, reset
MemoryHidden state onlyCell state + hidden stateHidden state
Long dependenciesPoorGoodGood
ParametersFewestMostFewer 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.

BP = e^(1 − r/c) = e^(1 − 10/8) = e^(−0.25) = 0.78.

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
Figure: LSTM cell

Same or opposite: feed-forward network and RNN

PointFeed-forwardRNNSame or opposite
ConnectionsForward onlyLoops over timeOpposite
Trained by back propagationYesYes, through timeSame
Input lengthFixedAnyOpposite
Example useImage classificationText, speechOpposite

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.

Back to the topic list

Q7. Q-learning, SARSA and the actor-critic model

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

  1. Initialize Q(s, a) = 0 for all states and actions.
  2. In state s, choose a by ε-greedy (mostly the best, sometimes random).
  3. Take a, observe reward r and next state s′.
  4. Update Q(s, a) = Q(s, a) + α [r + γ maxₐ′ Q(s′, a′) − Q(s, a)].
  5. s = s′; repeat until the episode ends; run many episodes.

Q-learning and SARSA

PointQ-learningSARSA
Targetr + γ max Q(s′, a′)r + γ Q(s′, a′) with the a′ actually chosen
Policy typeOff-policyOn-policy
BehaviourBolder, learns the optimal pathSafer, 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.

Q-learning: 2 + 0.5 × (1 + 0.9 × 4 − 2) = 2 + 0.5 × 2.6 = 3.3.

SARSA: 2 + 0.5 × (1 + 0.9 × 3 − 2) = 2 + 0.5 × 1.7 = 2.85.

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
Figure: actor-critic loop

Same or opposite: Q-learning and SARSA

PointQ-learningSARSASame or opposite
PolicyOff-policyOn-policyOpposite
Temporal difference methodYesYesSame
Next value usedBest actionAction actually takenOpposite
Risk near dangerTakes risky optimal pathPrefers safer pathOpposite

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.

Back to the topic list

Q8. Support vector machines and Bayesian learning

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

  1. Margin width = 2 ÷ ‖w‖, so maximizing the margin means minimizing ½‖w‖².
  2. Subject to yᵢ (w·xᵢ + b) ≥ 1 for every training point.
  3. Solved as a convex quadratic problem; only support vectors get non-zero weights.
  4. Soft margin (parameter C) allows some errors for noisy data.
  5. 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.

P(High | Bad, Working) = 2/9 = 0.22; P(High | Bad, Broken) = 0/6 = 0. Other tables: P(Mileage = Hi) = 20/40 = 0.5, P(Engine = Good | Hi) = 0.5, P(Engine = Good | Lo) = 0.75, P(AC = Working) = 25/40 = 0.625.

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
Figure: maximum margin hyperplane

Same or opposite: SVM and naive Bayes

PointSVMNaive BayesSame or opposite
ApproachGeometric marginProbabilityOpposite
Used for classificationYesYesSame
Training costHigherVery lowOpposite
Gives probabilitiesNot directlyYesOpposite

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.

Back to the topic list

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.

MDP and Bellman equation

  • MDP = (S, A, P, R, γ): states, actions, transition probabilities P(s′ | s, a), rewards, discount factor γ.
  • 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

PointValue iterationPolicy iteration
StepsRepeat Bellman max update until V stops changingEvaluate the policy fully, then improve it greedily
Per iterationCheapCostly (full evaluation)
Iterations neededMoreFewer
OutputOptimal V, then the policyOptimal 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
Figure: the reinforcement learning loop

Same or opposite: reinforcement and supervised learning

PointReinforcementSupervisedSame or opposite
FeedbackReward, often delayedCorrect label for each inputOpposite
Learns from dataYesYesSame
DataGenerated by actingFixed data setOpposite
GoalMaximize total rewardMinimize prediction errorOpposite

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.

Back to the topic list

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

PointL1 (Lasso)L2 (Ridge)
Penalty added to lossλ Σ |w|λ Σ w²
Effect on weightsDrives many to exactly 0 (feature selection)Shrinks all, none to 0
UseMany useless featuresGeneral 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.

Hyperparameter tuning

  • Hyperparameters: learning rate, batch size, epochs, layers, units, dropout rate, λ.
  • Methods: grid search, random search, Bayesian optimization, with cross-validation.
  • Challenge: each trial means training a model, so tuning is costly.

Autoencoders

  • Encoder compresses x to a code z in the bottleneck; decoder rebuilds x̂. Loss = ‖x − x̂‖².
  • The bottleneck forces the network to keep only essential features: unsupervised feature learning.
  • Types: undercomplete, denoising, sparse, variational (VAE), convolutional.
  • Uses: dimension reduction, noise removal, anomaly detection (high rebuild error = unusual).

Effect of L2 on one weight.

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
Figure: autoencoder with a bottleneck

Same or opposite: L1 and L2 regularization

PointL1L2Same or opposite
PenaltyAbsolute valuesSquaresOpposite
Reduces overfittingYesYesSame
Zero weightsManyFew or noneOpposite
Feature selectionYesNoOpposite

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.

Back to the topic list

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.
  • Statistics: mean, variance, correlation, sampling.
  • Hypothesis testing: H₀ (no effect) against H₁; compute a test statistic and p-value; reject H₀ if p < 0.05.
  • In ML it checks whether model A really beats model B.

Least squares line.

Hours studied x = 1, 2, 3; marks y = 2, 4, 5. Mean x = 2, mean y = 3.67.

θ₁ = Σ(x − x̄)(y − ȳ) ÷ Σ(x − x̄)² = ((−1)(−1.67) + 0 + (1)(1.33)) ÷ 2 = 3 ÷ 2 = 1.5.

θ₀ = 3.67 − 1.5 × 2 = 0.67. h(x) = 0.67 + 1.5x.

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
Figure: hypothesis testing

Same or opposite: regression and classification

PointRegressionClassificationSame or opposite
OutputNumberClass labelOpposite
Supervised learningYesYesSame
LossMSECross-entropyOpposite
ExampleHouse priceSpam or notOpposite

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.

Back to the topic list

Q12. Multilayer network and back propagation

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

  1. Initialize weights with small random values.
  2. Forward pass: for each layer, net = Σ w x + b, output o = f(net).
  3. Output error term: δₖ = (tₖ − oₖ) oₖ (1 − oₖ) for sigmoid.
  4. Hidden error term: δⱼ = oⱼ (1 − oⱼ) Σₖ δₖ wⱼₖ.
  5. Update: w = w + η δ x for every weight.
  6. Repeat over all samples and epochs until the error is small; check on test data.

Why the chain rule matters

  • ∂E/∂w = ∂E/∂o · ∂o/∂net · ∂net/∂w: each layer reuses the δ of the layer after it.
  • So all gradients are found in one backward pass, the same cost as one forward pass.
  • Problems: vanishing gradients with sigmoid in deep nets (fixed by ReLU, batch normalization, good initialization).

May 2023 network: input [0, 1], target 1, η = 0.3.

Reading the figure: x2→z1 = 0.6, x2→z2 = 0.7, biases z1 0.2, z2 0.4, y 0.4; z1→y 0.3, z2→y 0.2.

z1 = σ(0.2 + 0.6) = 0.690. z2 = σ(0.4 + 0.7) = 0.750. y = σ(0.4 + 0.3 × 0.690 + 0.2 × 0.750) = σ(0.757) = 0.681.

δy = (1 − 0.681) × 0.681 × 0.319 = 0.0694. New z1→y = 0.3 + 0.3 × 0.0694 × 0.690 = 0.314; z2→y = 0.2 + 0.3 × 0.0694 × 0.750 = 0.216.

δ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
Figure: multilayer network trained by back propagation

Same or opposite: forward pass and backward pass

PointForward passBackward passSame or opposite
DirectionInput to outputOutput to inputOpposite
Needed in every training stepYesYesSame
ComputesOutputsGradients δOpposite
Used at test timeYesNoOpposite

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.

Back to the topic list

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%).

Cost saved by a 1 × 1 convolution.

Input 28 × 28 × 192, apply 32 filters of 5 × 5: multiplications = 28 × 28 × 32 × 5 × 5 × 192 ≈ 120 million.

Insert a 1 × 1 layer to 16 channels: 28 × 28 × 16 × 192 ≈ 2.4 million.

Then 5 × 5 to 32 channels: 28 × 28 × 32 × 5 × 5 × 16 ≈ 10 million.

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
Figure: Inception module

Same or opposite: feature extraction and fine-tuning

PointFeature extractionFine-tuningSame or opposite
Pretrained layersFrozenTop layers retrainedOpposite
Reuses a pretrained modelYesYesSame
Data neededVery littleMoreOpposite
Accuracy on new taskGoodUsually betterOpposite

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.

Back to the topic list

Q14. Implementing a CNN in TensorFlow and Keras

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

  1. Load and preprocess data: for example MNIST, scale pixels to 0 to 1, reshape to (28, 28, 1).
  2. Build: model = Sequential([Conv2D(32, 3, activation='relu', input_shape=(28, 28, 1)), MaxPooling2D(2), Conv2D(64, 3, activation='relu'), MaxPooling2D(2), Flatten(), Dense(64, activation='relu'), Dense(10, activation='softmax')]).
  3. Compile: model.compile(optimizer='adam', loss='sparse_categorical_crossentropy', metrics=['accuracy']).
  4. Train: model.fit(x_train, y_train, epochs=5, batch_size=64, validation_split=0.1).
  5. Evaluate and predict: model.evaluate(x_test, y_test); model.predict(new_images).

Role of TensorFlow

  • Computes gradients automatically (GradientTape), so back propagation needs no manual maths.
  • Runs on CPU, GPU and TPU; scales to many machines.
  • Tools: TensorBoard (training graphs), tf.data (fast input pipelines), TF Lite (phones), saving and serving models.
  • Keras features: simple layer API, callbacks (early stopping), pretrained models (keras.applications).

Counting parameters of the first layers.

Conv2D(32, 3 × 3) on 1 channel: (3 × 3 × 1 + 1) × 32 = 320 parameters. Output 26 × 26 × 32.

MaxPooling2D(2): 13 × 13 × 32, no parameters.

Conv2D(64, 3 × 3): (3 × 3 × 32 + 1) × 64 = 18,496 parameters. Output 11 × 11 × 64 → pooling → 5 × 5 × 64.

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
Figure: CNN in Keras

Same or opposite: TensorFlow and Keras

PointTensorFlowKerasSame or opposite
LevelLow level engineHigh level APIOpposite
Builds and trains neural networksYesYesSame
Code neededMoreVery littleOpposite
Best forCustom research, deploymentQuick model buildingOpposite

Exam tip. Write the five steps with real Keras lines. Explain what TensorFlow adds (automatic gradients, GPU, TensorBoard). A parameter count shows understanding.

Back to the topic list

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

  1. Standardize the data (mean 0).
  2. Compute the covariance matrix.
  3. Find its eigenvalues and eigenvectors.
  4. Sort by eigenvalue; keep the top k eigenvectors (principal components).
  5. 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).

PC1 explains 40%, PC2 25%, PC3 15%, PC4 10%, PC5 10%.

PC1 + PC2 = 65%; PC1 + PC2 + PC3 = 80%.

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
Figure: principal component analysis

Same or opposite: PCA and feature selection

PointPCAFeature selectionSame or opposite
New featuresCombinations of old onesOriginal features keptOpposite
Reduces dimensionsYesYesSame
ReadabilityHarder to explainEasyOpposite
Uses labelsNoSometimesOpposite

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.

Back to the topic list

How we picked these questions

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-701 Machine 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.

See all 3 CY-701 previous year papers

CI-602 Machine Learning important questions for CSIT, Semester 6

CI-602 follows the same RGPV syllabus as the other codes on this page. The 15 topics and answers above are the CI-602 important questions too.

See all 1 CI-602 previous year paper

CS-601 Machine Learning important questions for CSE, Semester 6

CS-601 follows the same RGPV syllabus as the other codes on this page. The 15 topics and answers above are the CS-601 important questions too.

See all 7 CS-601 previous year papers

Machine Learning in Cyber Security

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

  1. Introduction to machine learning
  2. Neural networks and training
  3. Convolutional neural networks
  4. Recurrent neural networks and reinforcement learning
  5. 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.

Start with the latest papers

Machine Learning - Dec 2025

Machine Learning - Dec 2024

Machine Learning - Nov 2023

See all 3 papers →

Machine Learning (CY-701) FAQs

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.