পরীক্ষা আর্কাইভ

৪৯তম বিসিএস ⎯ তথ্য ও যোগাযোগ প্রযুক্তি [২৮১]

পরীক্ষা৪৯তম বিসিএস ⎯ তথ্য ও যোগাযোগ প্রযুক্তি [২৮১]তারিখতারিখ অনির্ধারিতসময়30 minutes
মোট প্রশ্ন৪৬
সিলেবাস
Exam 7 Artificial Intelligence: Introduction to old and new AI techniques, Natural language processing, Introduction to expert system, Introduction to machine learning, Learning algorithms. [Source: Class-6 and relevant books]
ঘনত্ব
উত্তর
উত্তরিতবর্তমানপুনরায় দেখুনঅসম্পূর্ণ

৪৯তম বিসিএস ⎯ তথ্য ও যোগাযোগ প্রযুক্তি [২৮১]

৪৯তম বিসিএস ⎯ তথ্য ও যোগাযোগ প্রযুক্তি [২৮১] · তারিখ অনির্ধারিত · ৪৬ প্রশ্ন

.
What is the main limitation of old AI techniques?
  1. They cannot be explained easily
  2. They require explicit knowledge representation
  3. They can only be used with large datasets
  4. They are always faster than modern AI
ব্যাখ্যা

Old AI techniques (1950s–1980s) such as rule-based systems, expert systems, symbolic AI relied on explicit knowledge representation (e.g., IF–THEN rules, semantic networks).
The system could only work if all knowledge was predefined by humans → very hard to scale, inflexible, and brittle.
Modern AI (machine learning, deep learning) learns automatically from data rather than requiring humans to encode every detail.

Example:
An expert system for medical diagnosis needs thousands of rules like:
  IF fever AND cough AND chest-pain → THEN pneumonia.
If a new disease appears, system fails unless rules are manually updated.

Modern AI, however, can learn patterns from medical datasets without manual rule writing.

Source: Artificial Intelligence (2nd Edition) by Elaine Rich & Kevin Knight
.
In which year was Artificial Intelligence officially launched as a research field?
  1. 1943
  2. 1950
  3. 1956
  4. 1965
ব্যাখ্যা

The term “Artificial Intelligence (AI)” was first introduced by John McCarthy in 1956 at the Dartmouth Conference (Hanover, USA).
This event is considered the official birth of AI as a research discipline.

Before 1956, there were important foundations:
•1943 → McCulloch & Pitts created a model of artificial neurons.
•1950 → Alan Turing introduced the “Turing Test” in his paper Computing Machinery and Intelligence.

But 1956 Dartmouth Workshop is recognized as the official launch year of AI.

Example:
• At the Dartmouth Conference (1956), researchers like John McCarthy, Marvin Minsky, Allen Newell, and Herbert Simon met to discuss how machines could simulate intelligence.
•This led to early AI programs like the Logic Theorist (1956) and General Problem Solver (1957).

Source: Artificial Intelligence (2nd Edition) by Elaine Rich & Kevin Knight

.
Which of the following is a characteristic of new AI or modern AI?
  1. Symbolic reasoning
  2. Data-driven learning
  3. Manual rule encoding
  4. Logic programming
ব্যাখ্যা

Old AI (Classical AI / Symbolic AI) is relied on explicit rules, symbolic reasoning, and logic programming (expert systems, knowledge-based systems).

New AI (Modern AI / Machine Learning era) is focuses on data-driven learning, where systems automatically learn patterns from large datasets instead of relying on manually encoded rules.
Techniques include machine learning, deep learning, neural networks, reinforcement learning.

This shift allows AI to handle complex tasks such as image recognition, natural language processing, self-driving cars, which were hard for symbolic AI.

Example:
Old AI: An expert system in medicine that uses thousands of manually written rules (“If fever + cough → possible flu”).
New AI: A machine learning model trained on millions of patient records that learns patterns automatically and predicts diseases without explicit rules.

Source: Artificial Intelligence (2nd Edition) by Elaine Rich & Kevin Knight
.
Which AI technique is logic programming?
  1. Old AI
  2. New AI (Modern AI)
  3. Both of ক and খ
  4. None of above
ব্যাখ্যা

Logic programming is a key technique of old AI (symbolic AI).
It is based on formal logic (first-order predicate logic, rules, facts, and inference engines).
The most common language for logic programming is Prolog (Programming in Logic).

In early AI systems (1960s–1980s), expert systems and knowledge-based systems relied heavily on symbolic reasoning and logic programming.
 
Modern AI (new AI), on the other hand, relies on data-driven learning (machine learning, deep learning, neural networks) rather than hand-crafted logic rules.

Example:
Logic programming (old AI):
•A Prolog program might have rules:

parent(X,  Y)  :-  mother(X,  Y) .
parent(X,  Y)  :-  father(X,  Y) .
                           
•This is symbolic rule-based reasoning.
 
Source: Artificial Intelligence (2nd Edition) by Elaine Rich & Kevin Knight
.
In predicate logic, which component represents the "objects" in the domain?
  1. Constants
  2. Predicates
  3. Variables
  4. Functions
ব্যাখ্যা

Predicate Logic (First-Order Logic, FOL) has four main components like below :-

 1. Constants → Represent specific objects in the domain.
Example: Alice, Bob, 2, Dhaka
 2. Variables → Represent unspecified objects in the domain (like placeholders).
Example: x, y
 3. Predicates → Represent properties of objects or relationships between them.
Example: Student(x), Loves(Alice, Bob)
 4. Functions → Map objects to other objects.
Example: Father(x) gives the father of x.

Therefore, objects themselves are denoted by constants, while variables are just placeholders for possible objects.

Example:
Predicate logic sentence: Loves(Alice, Bob)
Alice, Bob = Constants (objects in the domain)
Loves = Predicate (relationship)
x, y = Variables (if generalized: Loves(x, y))


Source
: Artificial Intelligence (2nd Ed.) by Elaine Rich & Kevin Knight
.
Which of the following knowledge representation methods is best for representing hierarchical relationships?
  1. Semantic Networks
  2. Production Rules
  3. Frames
  4. First-Order Logic
ব্যাখ্যা

Semantic networks represent knowledge in a graph form (nodesobjects, edges = relationships). They are excellent for showing hierarchical IS-A and HAS-A relations.

Example:
• Dog → IS-A → Animal
• Dog → HAS-A → Tail

Source: Artificial Intelligence: A Modern Approach by Russell & Norvig
.
Which of the following describes the main challenge of knowledge representation in AI?
  1. Storing data in databases
  2. Capturing common-sense knowledge
  3. Representing only mathematical formulas
  4. Using binary representation
ব্যাখ্যা

Knowledge Representation (KR) in AI is the process of encoding information about the world so that a computer system can use it to solve complex tasks (like reasoning, planning, learning).

The main challenge is capturing common-sense knowledge, because:
•Humans use vast background knowledge in daily reasoning.
•Much of it is implicit, context-dependent, and hard to formalise.
 
Example:
• "Birds can fly" → but with exceptions (penguins, ostriches). AI must handle such cases.

• "Water boils at 100°C at sea level."
 
A KR system must also know exceptions: "At higher altitudes, it boils at lower temperatures."
Capturing such common-sense reasoning is the hardest challenge.

Source: Artificial Intelligence (2nd Ed.) by Elaine Rich & Kevin Knight

.
Which of the following is a propositional logic connective?
  1. AND ( ∧ )
  2. OR ( ∨ )
  3. IMPLIES ( → )
  4. All of above
ব্যাখ্যা

Propositional logic (Boolean logic) uses connectives (also called logical operators) to combine or modify propositions.

Common connectives:
 AND ( ∧ ) is true if both propositions are true.
OR ( ∨ ) is true if at least one proposition is true.
IMPLIES ( → ) is true if whenever the first proposition is true, the second is also true.

All of these are fundamental connectives in propositional logic.

Example:
Let p = "It is raining"
Let q = "The ground is wet"
 
p ∧ q ⇒ "It is raining AND the ground is wet"
p ∨ q ⇒ "It is raining OR the ground is wet"
p → q ⇒ "If it is raining, then the ground is wet"
 
All are propositional logic connectives.

Source: Artificial Intelligence (2nd Ed.) by Elaine Rich & Kevin Knight
.
Which statement is correctly expressed in First-Order Logic (FOL)?
  1. P ∨ Q
  2. Human → Mortal
  3.  ∀x (Human(x) → Mortal(x)) 
  4.  ¬P ∧ Q
ব্যাখ্যা

• FOL uses predicates (e.g., Human(x), Mortal(x)) and quantifiers (e.g., ∀ “for all”, ∃ “there exists”) to talk about objects in a domain and their properties/relations.
∀x (Human(x)→Mortal(x))\forall x\,(\text{Human}(x) \rightarrow \text{Mortal}(x))∀x(Human(x)→Mortal(x)) reads: “For every object xxx, if xxx is human, then xxx is mortal.”

This has both predicates and a quantifier, so it’s properly FOL.
∀x(Human(x)→Mortal(x)) is the correct FOL with predicate symbols and a universal quantifier.

Example:
Domain = all people.
If Alice is human, FOL lets us infer Mortal(Alice) from the universal rule

∀x(Human(x)→Mortal(x)).

Source: Artificial Intelligence (2nd Ed.) by Elaine Rich & Kevin Knight

১০.
What does the existential quantifier ( ∃ ) mean in FOL?
  1. All objects in the domain have the property.
  2. At least one object in the domain has the property.
  3. Exactly one object has the property.
  4. No object has the property.
ব্যাখ্যা

In First-Order Logic (FOL), the existential quantifier ( ∃ ) is used to express that at least one object in the domain satisfies a given property. It is used to indicate the existence of an object that has a specific characteristic.

Formal Meaning of Existential Quantifier ( ∃ ):
The symbol ∃x P(x) means "there exists at least one object x in the domain such that P(x) is true."
•It asserts that there is some element (not necessarily all elements) in the domain for which the property holds.

Example:
If we say ∃x (Human(x) ∧ Alive(x)), it means "there exists at least one person who is alive."

Source: Artificial Intelligence (2nd Ed.) by Elaine Rich & Kevin Knight

১১.
Which of the following represents “Some students are intelligent” in First-Order Logic (FOL)?
  1. ∀x(Student(x)→Intelligent(x))
  2. ∃x(Student(x)∧Intelligent(x))
  3. Student(x)→Intelligent(x)
  4. Student∧Intelligent
ব্যাখ্যা

In First-Order Logic (FOL), we use quantifiers and predicates to represent statements about objects in a domain.
Existential quantifier ( ∃ ): This asserts that "there exists at least one object" that satisfies a given condition.
Universal quantifier ( ∀ ): This asserts that "for all objects in the domain" the condition is true.

To represent the sentence "Some students are intelligent," we need to express that there is at least one student who is intelligent. The existential quantifier ( ∃ ) helps us express this.

∃x(Student(x) ∧ Intelligent(x)) means that "there exists at least one object x such that x is a student and x is intelligent." This is the correct representation of "Some students are intelligent."


Source: Artificial Intelligence (2nd Ed.) by Elaine Rich & Kevin Knight

১২.
Which inference rule is used in Propositional Logic: “P, P → Q ⟹ Q”?
  1. Modus Ponens
  2. Resolution
  3. Unification
  4. Modus Tollens
ব্যাখ্যা

The rule says:

• If P is true,
• and P → Q is true,
• then we can infer Q.

This is exactly the definition of Modus Ponens (MP).

Modus Ponens
Rule:  P,(P→Q)⇒Q.

Example:
• Premise1: It is raining. (P)
• Premise2: If it rains, the ground will be wet. (P → Q)
• Conclusion: The ground will be wet. (Q)

Source: Artificial Intelligence (2nd Ed.) by Elaine Rich & Kevin Knight

১৩.
Which of the following is an example of Skolemization in FOL?
  1. ∃x P(x) → P(c)
  2. ∀x P(x) → P(c)
  3. P ∧ Q → Q
  4. ∀x ∃y Loves(x,y)
ব্যাখ্যা

Skolemization is a technique in First-Order Logic (FOL) used to eliminate existential quantifiers (∃) by introducing Skolem functions or constants. It is typically used in converting logical expressions into prenex normal form or in automated theorem proving.
In Skolemization, we replace existentially quantified variables with either a Skolem constant (if no universal quantifier is preceding) or a Skolem function (if preceded by a universal quantifier).

∃x P(x) would be replaced by P(c), where c is a new Skolem constant representing an arbitrary object that satisfies P(x).

Example:
Statement: “Someone loves Mary” → ∃x Loves(x, Mary)
After Skolemization → Loves(John, Mary) (John is a Skolem constant).


Source: Artificial Intelligence (2nd Ed.) by Elaine Rich & Kevin Knight

১৪.
What is the primary goal of search algorithms in AI ?
  1. To find the most optimal solution in a given problem space
  2. To maximize the number of steps taken in a search
  3. To minimize memory usage during the search process
  4. To analyze data sets for pattern recognition
ব্যাখ্যা

The primary goal of search algorithms in AI is to find the most optimal solution to a problem within a given problem space. This involves exploring possible solutions (or states) and selecting the best one according to predefined criteria (such as the least cost or shortest path).

Example:
In the A search algorithm*, the goal is to find the shortest path between a start node and a goal node in a graph, considering both the actual cost and a heuristic estimate.


Source: "Artificial Intelligence: A Modern Approach" by Stuart Russell and Peter Norvig

১৫.
Which of the following search techniques is complete, meaning it always finds a solution if one exists?
  1. Depth-First Search
  2. Breadth-First Search
  3. Best-First Search
  4. Greedy Search
ব্যাখ্যা

Breadth-First Search (BFS) is a complete search technique, meaning it is guaranteed to find a solution if one exists, provided the search space is finite. It explores all nodes at the present depth level before moving on to nodes at the next depth level.

Example:
In a maze, BFS will systematically explore each possible path level by level, ensuring that it eventually finds the shortest path to the exit (if one exists).


Source: "Artificial Intelligence: A Modern Approach" by Stuart Russell and Peter Norvig

১৬.
Which of the following search algorithms uses a priority queue for selecting the next node to explore?
  1. Breadth-First Search
  2. Depth-First Search
  3. A* Search
  4. Greedy Search
ব্যাখ্যা

A* Search uses a priority queue to select the next node to explore based on both the cost to reach the node and a heuristic estimate of the cost to reach the goal. The priority queue helps to prioritize nodes that appear most promising, ensuring optimal performance.

Example:
In pathfinding, A* uses a priority queue to prioritize nodes with the least total cost, where the total cost is the sum of the actual cost from the start node and the estimated cost to the goal.

Source: "Artificial Intelligence: A Modern Approach" by Stuart Russell and Peter Norvig

১৭.
Which of the following search algorithms is also known as blind search?
  1. A* Search
  2. Breadth-First Search (BFS)
  3. Best-First Search
  4. Greedy Search
ব্যাখ্যা

A blind search, also known as an uninformed search, is a search algorithm that does not have any additional information about the goal other than the problem definition itself. It explores the search space without any heuristics to guide the search. Breadth-First Search (BFS) is an example of a blind search because it simply explores all possible nodes level by level, without any additional knowledge or cost evaluation about which path may lead to the goal more efficiently.
BFS does not use any heuristic or additional information about the goal. It explores all possible paths, starting from the initial node and gradually expanding to all reachable nodes at the current depth level, and then moves to the next depth level.
It guarantees finding the shortest path in an unweighted graph, but it does not have any knowledge of which path is likely to be the shortest or optimal beyond exploring all possible options equally.

Example:
Consider a simple graph:
 
Goal: Find node F starting from A.
BFS will first explore A's immediate neighbors (B and C), then explore B's neighbors (D and E), and finally explore C's neighbor (F).
This process is systematic and does not use any additional information or heuristics to guide its search.

Source: Introduction to Artificial Intelligence by Wolfgang Ertel

১৮.
What is the time complexity of Breadth-First Search (BFS) in a graph with V vertices and E edges?
  1. O(V + E)
  2. O(V \times E)
  3. O(V^2)
  4. O(E^2)
ব্যাখ্যা

BFS explores each vertex once and checks all edges connected to each vertex. Therefore, the time complexity is O(V + E), where VVV is the number of vertices and EEE is the number of edges in the graph.

Example:
If you have a graph with 100 vertices and 200 edges, BFS will visit each vertex once and examine each edge once, giving a total complexity of O(100 + 200) = O(300).

Source: "Introduction to Algorithms" by Cormen, Leiserson, Rivest, and Stein.

১৯.
In probabilistic reasoning, which theorem is fundamental for updating beliefs given new evidence?
  1. Bayes’ theorem
  2. Pythagoras theorem
  3. De Morgan’s law
  4. Chain rule
ব্যাখ্যা

In probabilistic reasoning, Bayes' theorem is the fundamental tool used to update beliefs based on new evidence. It provides a mathematical framework for revising the probability of a hypothesis in light of new data or evidence. This process of updating beliefs is called Bayesian updating.

Bayes' Theorem:
Bayes' theorem relates current knowledge (the prior belief) with new evidence to form an updated belief (posterior probability). The formula is:


Example
:
If 1% of people have a disease and a test correctly identifies 99% of cases, Bayes’ theorem can calculate the probability a person has the disease given a positive test result.

Source: "Artificial Intelligence: A Modern Approach" by Stuart Russell and Peter Norvig.

২০.
Which of the following represents a joint probability distribution?
  1. P(A) only
  2. P(A|B) only
  3. P(A, B)
  4. P(A ∧ B | C)
ব্যাখ্যা

In probability theory, a joint probability distribution refers to the probability of two or more events happening simultaneously. It is denoted by P(A, B), which represents the probability that both events A and B occur at the same time.

Joint Probability Distribution:
• Joint probability is the probability of two events A and B happening together.
• It is denoted as P(A, B) or P(A ∩ B), which indicates the probability that both events A and B occur simultaneously.
• It is crucial for understanding relationships between variables in scenarios where more than one outcome is possible.

Source: "Artificial Intelligence: A Modern Approach" by Stuart Russell and Peter Norvig.

২১.
Conditional independence in probabilistic reasoning is useful because:
  1. It makes calculations more complex
  2. It reduces the number of probabilities needed
  3. It is required in deterministic systems
  4. It eliminates uncertainty completely
ব্যাখ্যা

Conditional independence allows variables to be independent given some other variable. This reduces the number of probabilities we need to specify and makes probabilistic reasoning computationally feasible.

Example:
Suppose “Sprinkler” and “Rain” both influence “Wet Grass.”
Given the status of “Wet Grass,” Sprinkler and Rain may become conditionally independent.

Source: "Artificial Intelligence: A Modern Approach" by Stuart Russell and Peter Norvig.

২২.
In a Hidden Markov Model (HMM), what is hidden?
  1. The transition probabilities between states
  2. The sequence of states the system goes through
  3. The observed outputs or emissions
  4. The parameters of the model
ব্যাখ্যা

In a Hidden Markov Model (HMM), the states of the system are hidden, meaning we cannot directly observe them. However, we can observe emissions or outputs that are probabilistically related to the hidden states.

Example:
In speech recognition, the hidden states might represent the phonemes, while the observed output is the audio signal that is generated by these phonemes.


Source: "Pattern Recognition and Machine Learning" by Christopher Bishop

২৩.
Which of the following statements about Bayesian Networks is true?
  1. They represent a deterministic relationship between variables.
  2. They represent only the conditional probability distributions of variables.
  3. They model the probabilistic relationships among a set of random variables using directed acyclic graphs (DAGs).
  4. They are used exclusively for supervised learning tasks.
ব্যাখ্যা

Bayesian Networks use directed acyclic graphs (DAGs) to represent the probabilistic dependencies between variables. Each node represents a random variable, and each directed edge represents a probabilistic dependency between two variables.

Example:
In a medical diagnosis system, a Bayesian Network might model the relationship between symptoms (e.g., cough, fever) and diseases (e.g., flu, pneumonia), allowing probabilistic inference based on observed symptoms.


Source: "Artificial Intelligence: A Modern Approach" by Stuart Russell and Peter Norvig

২৪.
Which of the following methods is used for part-of-speech (POS) tagging?
  1. Identify the named entities in the text
  2. Assign a part of speech to each word in the sentence
  3. Split the text into tokens
  4. Extract relationships between words
ব্যাখ্যা

Part-of-speech (POS) tagging is the process of identifying the grammatical category (such as noun, verb, adjective) of each word in a sentence. It is an important step in understanding the structure of language.

Example:
In the sentence "The dog barked loudly," POS tagging would label "dog" as a noun and "barked" as a verb.

Source: "Speech and Language Processing" by Daniel Jurafsky and James H. Martin.

২৫.
In which year was Word2Vec launched?
  1. 2008
  2. 2010
  3. 2013
  4. 2016
ব্যাখ্যা

Word2Vec is a word embedding technique developed by Tomas Mikolov and his team at Google.
It was introduced in 2013 through two key research papers.

Word2Vec became revolutionary because it used a neural network–based shallow model to learn vector representations of words, capturing semantic and syntactic meanings efficiently.

Example:
Word2Vec can capture relationships like:
vector("king") – vector("man") + vector("woman") ≈ vector("queen")

This was a major breakthrough in NLP.

Source: Artificial Intelligence: A Modern Approach by Russell & Norvig.

২৬.
What is FastText?
  1. A search algorithm for graphs
  2. A word embedding technique developed by Facebook
  3. A file compression tool
  4. A CPU scheduling algorithm
ব্যাখ্যা

FastText is a word embedding and text classification technique developed by Facebook AI Research (FAIR) in 2016.
It extends Word2Vec by representing each word as a bag of character n-grams, which helps it handle like below,
• Rare words
• Morphologically rich languages
• Out-of-vocabulary (OOV) words

Unlike Word2Vec, FastText can generate embeddings even for words that were not seen during training, by breaking them into subwords.

Example:
• Word: “playing”
• FastText splits it into character n-grams: pla, lay, ayi, yin, ing.
• The embedding of "playing" is built from the embeddings of its subwords.

This helps the model understand new words like "playfulness" even if it wasn’t in the training data.

Source: Artificial Intelligence: A Modern Approach by Russell & Norvig.

২৭.
Which of the following methods is commonly used for stemming in NLP?
  1. Porter Stemmer
  2. LDA (Latent Dirichlet Allocation)
  3. TF-IDF (Term Frequency-Inverse Document Frequency)
  4. Naive Bayes Classifier
ব্যাখ্যা

The Porter Stemmer is one of the most widely used algorithms for stemming in NLP. It reduces words to their root form by applying a series of rules for removing suffixes.

Example:
“running” → “run”
“happiness” → “happi”


Source: Speech and Language Processing by Daniel Jurafsky and James H. Martin

২৮.
Which of the following is a common application of NLP for analyzing social media content?
  1. Sentiment analysis
  2. Image recognition
  3. Data mining
  4. Data encryption
ব্যাখ্যা

Sentiment analysis is commonly used in NLP to determine the sentiment (positive, negative, or neutral) expressed in text. This is particularly useful for analyzing social media content like tweets, reviews, and posts.

Example:
In a tweet like “I love this new phone!” sentiment analysis would classify it as positive sentiment.


Source: Speech and Language Processing by Daniel Jurafsky and James H. Martin

২৯.
What is the difference between Bag of Words (BoW) and Word2Vec in NLP?
  1. BoW considers the word order, while Word2Vec ignores the word order.
  2. BoW represents words as vectors, while Word2Vec is used for text classification.
  3. BoW ignores word order, while Word2Vec captures semantic relationships between words.
  4. BoW uses deep learning, while Word2Vec uses statistical methods.
ব্যাখ্যা

Bag of Words (BoW) is a model that represents a text by the frequency of words, completely ignoring word order. In contrast, Word2Vec creates dense word vectors that capture the semantic relationships between words, meaning words that are similar in meaning are closer together in vector space.

Example:
• In BoW, the sentence "The cat sat on the mat" would be represented as a set of word counts, ignoring the sequence.
• In Word2Vec, “king” and “queen” will have similar embeddings because they are semantically related, while BoW treats them as distinct words.

Source: "Speech and Language Processing" by Daniel Jurafsky and James H. Martin.

৩০.
Which of the following is a common application of Word2Vec in NLP?
  1. Machine translation
  2. Sentiment analysis
  3. Named Entity Recognition (NER)
  4. Part-of-speech tagging
ব্যাখ্যা

Word2Vec is often used in machine translation tasks to represent words in a way that captures their semantic meanings. These word embeddings help the translation model to map words in one language to semantically similar words in another language.

Example:
In machine translation, Word2Vec can help map the word “dog” in English to “perro” in Spanish based on their semantic similarity.


Source: "Speech and Language Processing" by Daniel Jurafsky and James H. Martin.

৩১.
Which component of an expert system is responsible for reasoning and drawing conclusions?
  1. Knowledge base
  2. Inference engine
  3. User interface
  4. Explanation facility
ব্যাখ্যা

The inference engine is the part of an expert system that processes the knowledge base and applies logical rules to draw conclusions or make decisions. It simulates the reasoning process of human experts.

Example:
In a legal expert system, the inference engine applies legal rules to facts and evidence to suggest legal actions.


Source: Expert Systems: Principles and Programming by Joseph C. Giarratano and Gary D. Riley

৩২.
Which of the following reasoning methods is typically used by an expert system for decision-making?
  1. Deductive reasoning
  2. Inductive reasoning
  3. Abductive reasoning
  4. All of the above
ব্যাখ্যা

Expert systems typically use deductive reasoning, where they apply general rules to specific facts to derive conclusions. It is a top-down approach where the system applies known knowledge to arrive at new conclusions or solutions.

Example:
In a medical expert system, a rule like "If a patient has a fever and cough, then they may have the flu" would be applied to specific symptoms to deduce that the patient might have the flu.


Source: "Artificial Intelligence: A Modern Approach" by Stuart Russell and Peter Norvig,

৩৩.
Which of the following is the main goal of machine learning?
  1. To program a system with hard-coded instructions
  2. To develop algorithms that allow computers to learn from data
  3. To mimic human intelligence using symbolic reasoning
  4. To enhance computational speed and efficiency
ব্যাখ্যা

The primary goal of machine learning is to create algorithms that can learn from data, recognize patterns, and make decisions or predictions without being explicitly programmed. The system improves its performance by analyzing and learning from data rather than following pre-programmed instructions.

Example:
In supervised learning, a model is trained using labeled data (inputs and outputs) to learn the relationship between them. For instance, a model might learn to predict the price of a house based on features like square footage, location, and age.

Source: Artificial Intelligence: A Modern Approach by Stuart Russell and Peter Norvig

৩৪.
Which of the following types of learning involves training a model using labeled data?
  1. Unsupervised learning
  2. Reinforcement learning
  3. Supervised learning
  4. Semi-supervised learning
ব্যাখ্যা

In supervised learning, the model is trained on labeled data (data with known input-output pairs). The model learns to map inputs to the correct outputs, and its performance is evaluated based on how well it predicts the output for new, unseen data.
In machine learning, labeled data refers to data that has been annotated with correct answers or classifications. 

Example:
A model is trained to classify emails as spam or not spam using a labeled dataset of emails and their corresponding labels (spam or not spam).


Source: Pattern Recognition and Machine Learning by Christopher Bishop

৩৫.
In unsupervised learning, the system is trained using:
  1. Labeled data
  2. Labeled data with feedback
  3. Unlabeled data
  4. Data with input-output pairs
ব্যাখ্যা

In unsupervised learning, the algorithm is trained on unlabeled data, meaning the data does not contain specific output labels. The system must identify patterns or structures in the data, such as clusters or associations.

Example:
Clustering is an unsupervised learning task where the algorithm groups similar data points together. For example, a customer segmentation task might group customers based on purchasing behavior without predefined categories.


Source: Artificial Intelligence: A Modern Approach by Stuart Russell and Peter Norvig

৩৬.
What is the main difference between supervised learning and unsupervised learning?
  1. Supervised learning uses labeled data, while unsupervised learning uses unlabeled data.
  2. Supervised learning works with unsupervised data, and unsupervised learning uses labeled data.
  3. Supervised learning is faster than unsupervised learning.
  4. Supervised learning requires more computational power than unsupervised learning.
ব্যাখ্যা

The main difference between supervised learning and unsupervised learning lies in the type of data used. Supervised learning uses labeled data (input-output pairs) to learn the relationship between inputs and outputs, while unsupervised learning involves discovering patterns in unlabeled data without predefined outputs.

Example:
• Supervised learning: Predicting the price of a house based on features (e.g., square footage, number of rooms).
• Unsupervised learning: Grouping customers into clusters based on purchasing behavior without predefined labels.


Source: Pattern Recognition and Machine Learning by Christopher Bishop

৩৭.
Which of the following is a common evaluation metric for classification models?
  1. Mean Squared Error (MSE)
  2. Precision
  3. R-squared
  4. Confusion matrix
ব্যাখ্যা

Precision is a common evaluation metric for classification tasks, especially in imbalanced datasets. It measures the proportion of true positive predictions out of all positive predictions made by the model.

Example:
If a spam email classifier identifies 100 emails as spam, and 80 of them are actually spam (True Positives), then the precision is 80%.

Source: Pattern Recognition and Machine Learning by Christopher Bishop.

৩৮.
Which of the following is an example of a supervised learning algorithm?
  1. K-means clustering
  2. Decision trees
  3. Principal Component Analysis (PCA)
  4. DBSCAN
ব্যাখ্যা

Decision trees are an example of a supervised learning algorithm, where the model is trained on labeled data. It uses the feature values to create a tree-like structure for classifying data or predicting continuous outcomes.

Example:
A decision tree could be used to classify emails as spam or not spam, where the features are attributes like the email content, sender, and other relevant data.

Source: Pattern Recognition and Machine Learning by Christopher M. Bishop

৩৯.
Which type of learning algorithm would you use to predict the price of a house based on its features (like size, location, and age)?
  1. Unsupervised learning
  2. Reinforcement learning
  3. Supervised learning
  4. None of the above
ব্যাখ্যা

Supervised learning is used for tasks where the input data (features) is associated with known output labels. In this case, the house price is a continuous variable, making this a regression problem in supervised learning.

Example:
A regression model can be trained on historical data of houses with their features and prices, and then the model can predict the price of new houses based on their features

Source: Machine Learning: A Probabilistic Perspective by Kevin P. Murphy,

৪০.
Which of the following is an example of unsupervised learning?
  1. K-Nearest Neighbors (KNN)
  2. Logistic Regression
  3. k-Means clustering
  4. Decision Trees
ব্যাখ্যা

k-Means clustering is an unsupervised learning algorithm that partitions data into clusters based on similarity, without using labeled data. The algorithm tries to group similar data points together.

Example:
In a customer segmentation task, k-Means clustering could group customers based on their purchasing behaviors without prior knowledge of the clusters (labels).

Source: Pattern Recognition and Machine Learning by Christopher Bishop.

৪১.
Which of the following algorithms is best suited for unsupervised learning problems with high-dimensional data?
  1. Decision Trees
  2. Principal Component Analysis (PCA)
  3. Logistic Regression
  4. k-Nearest Neighbors (KNN)
ব্যাখ্যা

Principal Component Analysis (PCA) is an unsupervised learning technique used for dimensionality reduction. It reduces the number of variables in high-dimensional data by transforming it into a set of orthogonal components, while retaining as much variance as possible.

Example:
PCA can be used to reduce the number of features in a dataset of customer preferences while maintaining the most important variations between customers.

Source: Pattern Recognition and Machine Learning by Christopher Bishop.

৪২.
Which machine learning algorithm would you use to predict the price of a house based on various features (size, location, age)?
  1. Decision Trees
  2. K-means clustering
  3. Linear Regression
  4. Naive Bayes
ব্যাখ্যা

Linear regression is used for predicting a continuous output (like house price) based on multiple input features. It assumes a linear relationship between the independent variables (house features) and the dependent variable (price).

Example:
In predicting house prices, linear regression would learn a model that might look like this:



Source: Machine Learning: A Probabilistic Perspective by Kevin P. Murphy.

৪৩.
Which of the following machine learning models is typically used for recommendation systems?
  1. Linear Regression
  2. K-means clustering
  3. Collaborative filtering
  4. Support Vector Machine (SVM)
ব্যাখ্যা

Collaborative filtering is a popular method used in recommendation systems. It works by recommending items to users based on the preferences of other users who have similar tastes. It can be user-based (recommending items liked by similar users) or item-based (recommending items that are similar to those a user has liked).

Example:
In a movie recommendation system like Netflix, collaborative filtering might recommend movies to a user based on the viewing habits of users with similar preferences.


Source: Machine Learning: A Probabilistic Perspective by Kevin P. Murphy

৪৪.
In linear regression, what does the model try to minimize during training?
  1. The sum of squared errors (SSE)
  2. The number of misclassifications
  3. The correlation between input and output
  4. The distance between cluster centroids
ব্যাখ্যা

In linear regression, the model tries to minimize the sum of squared errors (SSE), which is the sum of the squared differences between the actual output values and the predicted values. The goal is to find the best-fitting line that minimizes this error.

Example:

Source: Pattern Recognition and Machine Learning by Christopher Bishop.

৪৫.
Which of the following metrics is typically used to evaluate the performance of a regression model?
  1. Accuracy
  2. Precision
  3. Mean Squared Error (MSE)
  4. F1 Score
ব্যাখ্যা

Mean Squared Error (MSE) is the most common metric used to evaluate the performance of regression models. It measures the average squared difference between the predicted values and the actual values.


Example:

Source: Machine Learning: A Probabilistic Perspective by Kevin P. Murphy

৪৬.
Which of the following clustering methods does not require the number of clusters to be predefined?
  1. K-means clustering
  2. DBSCAN
  3. Agglomerative Hierarchical Clustering
  4. Both b and c
ব্যাখ্যা

• K-means clustering requires the number of clusters (k) to be specified in advance.

• DBSCAN (Density-Based Spatial Clustering of Applications with Noise) automatically detects clusters based on density and does not require a predefined number of clusters.

• Agglomerative Hierarchical Clustering starts with each data point as its own cluster and merges them based on a distance measure, so the number of clusters is not predefined.

Example:
• DBSCAN can discover clusters of arbitrary shapes by analyzing density, and it can also identify outliers.
• Agglomerative Hierarchical Clustering can generate a dendrogram to help decide the number of clusters based on hierarchical merging.

Source: Pattern Recognition and Machine Learning by Christopher Bishop.