Professional Documents
Culture Documents
Ai&ml Question Bank Answers
Ai&ml Question Bank Answers
Modu B C PO
Part – I le L O &
Short Answer Type Questions PS
O
1 Explain the state-space problem in the context of AI. I 3 2 2
2 Define a production system in AI. I 3 2 2
Differentiate between breadth-first search (BFS) and depth-first search 3 2 2
3 I
(DFS).
What is agent in artificial intelligence? 1 1 1
Ans: In artificial intelligence, an agent refers to any entity, whether it's a
program, robot, or system, that perceives its environment through sensors
4 I
and acts upon that environment through actuators. Essentially, an agent is
anything that can be thought of as perceiving its surroundings and taking
actions to achieve certain goals or objectives.
What is iterative deepening search, and why is it used in AI? 1 1 1
Ans: Iterative deepening search is a search algorithm used in artificial
5 intelligence to explore a search space efficiently while guaranteeing I
completeness. It combines the benefits of both depth-first search (DFS) and
breadth-first search (BFS) algorithms.
Describe the hill climbing algorithm and its application in problem-solving. 3 2 2
Ans: hill climbing algo is a local search algo which continuously moves
in a direction of increasing value to find the best solution to the
problem.
1. Optimization Problems:
2. Machine Learning
3. Routing and Network Optimization
4. Constraint Satisfaction Problems
How does simulated annealing differ from hill climbing in AI search 1 1 1
algorithms?
7 Ans: stimulated annealing is a technique used in ai to find the global I
optimum of a problem, but in hill climbing is a technique used in ai to find
the local maximum to a problem.
8 What is A* search, and what makes it a heuristic search algorithm? I 1 1 1
9 What is uninformed search? Explain with an example. I 1 1 1
10 Briefly explain the MIN-MAX algorithm in the context of adversary search. I 2 1 1
11 What is propositional logic, and what kinds of statements does it deal with? II 1
12 What is compound proposition? Give an example. II 1 2 1
Explain the resolution principle in the context of propositional logic theorem 3 1 1
13 II
proving.
14 Define predicate logic and its significance in AI. II 3 2 2
How are well-formed formulas (wff) converted to CNF in predicate logic? 1 1 1
15 II
Explain the steps.
How does predicate logic extend propositional logic, and what does it allow 1 1 1
16 II
us to express that propositional logic cannot?
17 What are the fundamental concepts of machine learning? III 1 1 1
Differentiate between machine learning terminology and traditional statistics 2 1 1
18 III
terminology.
19 Name two types of machine learning algorithms and briefly describe each. III 2 1 1
Explain the difference between supervised learning and unsupervised 3 2 2
20 III
learning in machine learning.
21 Provide an example of a supervised learning application. III 2 1 1
22 Give an example of an unsupervised learning application. III 2 1 1
23 What role does labeled data play in supervised learning? III 1 1 1
24 How does unsupervised learning deal with unlabeled data? III 1 1 1
Describe one real-world application where machine learning has made a 2 1 1
25 III
significant impact.
26 Explain decision tree induction and its role in supervised learning. IV 3 1 1
27 How are classifiers evaluated in supervised learning? IV 1 1 1
28 Describe the process of rule induction in supervised learning. IV 2 1 1
29 Explain the Naïve Bayesian classification approach. IV 3 2 2
What are support vector machines (SVMs), and what role do they play in 1 1 1
30 IV
supervised learning?
Differentiate between bagging and boosting as ensemble methods in 2 1 1
31 IV
supervised learning.
Provide an example of a real-world application where supervised learning 2 1 1
32 IV
has been successfully applied.
33 What is K-means clustering, and how does it work in unsupervised learning? V 1 2 2
34 Describe the representation of clusters in unsupervised learning. V 2 2 2
35 Explain hierarchical clustering and its significance in clustering tasks. V 3 1 1
Explain the concept of Principal Components Analysis (PCA) and its role in 3 1 1
36 V
dimensionality reduction.
37 What are the different types of reinforcement learning tasks? V 1 1 1
38 Describe an example of each type of reinforcement learning task. V 2 1 1
39 Differentiate between machine learning and deep learning. V 2 1 1
40 Provide an overview of deep learning and mention two of its applications. V 2 1 1
Modu B C PO
Part – II le L O &
Focussed – Short answer type Questions PS
O
1 Using problem solving method solve 8 puzzle problem. I 3 1 1
Explain the concept of a production system in artificial intelligence. 3 1 1
2 Describe its components and how they interact to achieve problem-solving I
tasks.
3 Mention the various problems in hill climbing Algorithm I 3 2 1
4 What is A* heuristic search. Explain I 1 2 1
5 Explain MIN-MAX Adversary search Algorithm with diagram. I 3 2 2
6 State and explain the concepts of reasoning and its types in AI. II 3 2 2
Discuss the process of theorem proving by inference rules using 3 1 1
7 II
propositional logic.
Define predicate logic and explain its advantages over propositional logic in 2 2 1
8 II
AI applications.
9 Convert logical statement into CNF by taking at least 5 logical expressions. II 2 2 2
State and explain the concept of machine learning and how it is efficient to 3 2 2
AI.
Efficiency in AI:
o Training:
The algorithm learns from historical email data.
Calculates probabilities of words occurring in spam and
non-spam emails.
o Prediction:
Given a new email, calculate the probability that it
belongs to each class.
Choose the class with the highest probability.
Output:
o When a new email arrives, the model predicts whether it’s spam
or not.
13 What are the different statistical measures used in machine learning. III 1 1 1
How to evaluate classification model? Explain 3 1 1
Ans. There are two main steps in classification
🞂 Step1: Model Construction (learning step, or training step)
⭢ Construct a classification model based on training data
⭢ Training data
🢝 A set of tuples
🢝 Each tuple is assumed to belong to a predefined class
🢝 Labeled data (ground truth)
⭢ How a classification model looks like?
14 A classification model can be represented by one of the following forms: IV
🢝 Classification rules
🢝 Decision trees
🢝 Mathematical formulae
Step2: Model Usage
Before using the model, we first need to test its accuracy
⭢ Measuring model accuracy
🢝 To measure the accuracy of a model we need test data
🢝 Test data is similar in its structure to training data (labeled data)
Types of SVM
A way of combining
The simplest way of combining predictions that
predictions that belong to the different
1. belong to the same type. types.
Aim to decrease variance, not Aim to decrease bias,
2. bias. not variance.
Models are weighted
Each model receives equal according to their
3. weight. performance.
New models are
influenced
by the performance of
Each model is built previously built
4. independently. models.
Different training data subsets
are selected using row sampling Every new subset
with replacement and random contains the elements
sampling methods from the that were misclassified
5. entire training dataset. by previous models.
Bagging tries to solve the over- Boosting tries to
6. fitting problem. reduce bias.
If the classifier is
stable and simple (high
If the classifier is unstable (high bias) the apply
7. variance), then apply bagging. boosting.
In this base classifiers
In this base classifiers are are trained
8. trained parallelly. sequentially.
Example: The
Example: The Random forest AdaBoost uses
9 model uses Bagging. Boosting techniques
18 Explain reinforcement algorithm. V 3 1 1
Ans. Reinforcement Learning (RL) is a type of machine learning
algorithm that learns to solve a multi-level problem by trial and error. Here’s a
simple explanation:
1. What It Does:
o RL helps an agent make decisions by interacting with an
environment.
o The agent receives either rewards or penalties for the actions it
performs.
o Its goal is to maximize the total reward.
2. Examples:
o Game Playing: An RL agent learns to win games (like chess or
video games) by trying different moves.
o Robotics: Robots learn tasks (like picking objects) through
practice.
o Self-Driving Cars: RL models learn driving policies.
Modu B C PO
Part – III le L O &
Long answer type Questions PS
O
1 Explain Hill Climbing Algorithm. I 3 3 2
Ans.
2 Define problem space. Solve water-jug problem using production rules by I 3 2 1
taking 1 ltr of water in 3 ltr of jug.
Ans.
Explain AO* heuristic search. 3 2 2
3 I
Ans.
Key Differences:
1. Exploration Strategy:
Simple hill climbing: It only considers one neighboring
solution at a time and moves to the first neighbor with a
better evaluation.
Steepest-ascent hill climbing: It evaluates all
neighboring solutions and selects the one with the best
evaluation (steepest ascent).
2. Efficiency:
Simple hill climbing: It may get stuck in local optima or
plateaus since it doesn't explore all neighboring
solutions.
Steepest-ascent hill climbing: It is more likely to find the
global optimum since it systematically explores all
possible neighboring solutions.
3. Computational Cost:
Simple hill climbing: It has lower computational cost
since it only evaluates one neighboring solution at each
iteration.
Steepest-ascent hill climbing: It has a higher
computational cost since it evaluates all neighboring
solutions to select the best one.
10 Differentiate between Machine Learning and Statistics with five key points. III 2 3 2
Inputs and Outputs are labels and Inputs and Outputs are Data
features. points.
Types: Regression,
Types: Supervised, Unsupervised,
Classification, and Forecasting
and Reinforcement Learning.
Continuous Variable.
Applications: Statistics
Applications: Weather forecasting, description techniques, finding
Stock Market Prediction, etc. patterns in the data, outliers in the
data, etc.
Less Computational
More Computational Complex
Computational Complexity Complexity
Test of model We can test our model. We can not test our model.
Bayes' Theorem:
o Bayes' theorem is also known as Bayes' Rule or Bayes'
law, which is used to determine the probability of a
hypothesis with prior knowledge. It depends on the
conditional probability.
o The formula for Bayes' theorem is given as:
Where,
Types of SVM
A1 (2, 10)
A2 (2, 5)
A3 (8, 4)
A4 (5, 8)
A5 (7, 5)
A6 (6, 4)
A7 (1, 2)
A8 (4, 9)
A1 (2, 10)
A4 (5, 8)
Agglomerative Divisive
S.No. Parameters Clustering Clustering
Top-down
1. Category Bottom-up approach
approach
Agglomerative
divisive clustering
clustering can handle
may create sub-
outliers better than
clusters around
4. Outliers divisive clustering
outliers, leading to
since outliers can be
suboptimal
absorbed into larger
clustering results.
clusters
Scikit-learn provides
multiple linkage
methods for
divisive clustering
agglomerative
6. Implementation is not currently
clustering, such as
implemented in
“ward,” “complete,”
Scikit-learn.
“average,” and
“single,”
Examples of RL Tasks:
1. Game Playing:
o Chess: An RL agent learns to play chess by exploring different
moves and maximizing its chances of winning.
o Atari Games: RL algorithms have achieved superhuman
performance in games like Pong, Breakout, and Space Invaders.
2. Robotics and Autonomous Vehicles:
o Robotic Arm Control: RL agents learn to manipulate robotic
arms to perform tasks like picking objects.
o Self-Driving Cars: RL models learn driving policies by
interacting with simulated or real-world environments.
3. Resource Optimization:
o Energy Management: RL optimizes energy consumption in
smart grids or buildings.
o Inventory Management: RL agents decide when to restock
items to minimize costs.