Chapter 1
Artificial Intelligence
TU BIM past exam questions
Past questions and answers
22 questions set from this chapter. Most repeated first.
- 2024 AD Model · 1 mark
What is Cognitive Science?
Answer
Cognitive science is the interdisciplinary study of the mind and its processes, such as perception, memory, language, reasoning and learning. It combines psychology, neuroscience, linguistics, philosophy, anthropology and artificial intelligence to understand how intelligence works in humans and how it can be modelled in machines.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 1 mark
How does Rule base agent work?
Answer
A rule-based agent chooses actions using a set of condition-action (IF-THEN) rules. It works in this cycle:
- The sensors give the current percept.
- The agent interprets the percept to describe the current state.
- It matches the state against the condition parts of its rules and picks the rule that fires.
- The action part of that rule is executed through the actuators.
Example: IF the room is dirty THEN clean; IF the car in front is braking THEN brake. A simple reflex agent has no memory, whereas a model-based rule agent also keeps an internal state.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 1 mark
Define Omniscience.
Answer
Omniscience means having complete knowledge: an omniscient agent knows the actual outcome of every action it takes. This is impossible in the real world. A rational agent is therefore not omniscient; it maximises expected performance given the percepts and knowledge it actually has, not the actual result.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 1 mark
Define Constraint satisfaction problem with example.
Answer
A Constraint Satisfaction Problem (CSP) is defined by three components: a set of variables , a domain of possible values for each variable, and a set of constraints that specify the allowed combinations of values. A solution is a complete assignment of values to all variables that satisfies every constraint.
Example: map colouring. Variables are the regions (A, B, C), the domain is {Red, Green, Blue}, and the constraint is that adjacent regions must have different colours. Other examples are the N-Queens problem and Sudoku.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 1 mark
What is CNF form?
Answer
Conjunctive Normal Form (CNF) is a standard form of a logical sentence in which the sentence is a conjunction (AND) of clauses, and each clause is a disjunction (OR) of literals.
Every propositional sentence can be converted to CNF, and CNF is the input form required for resolution theorem proving.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 1 mark
How do you define fuzzy logic?
Answer
Fuzzy logic is a form of many-valued logic in which truth values lie anywhere between 0 and 1 instead of being only true (1) or false (0). It uses membership functions to express partial truth, so it can handle vague and imprecise concepts such as "warm", "tall" or "fast". It is used in washing machines, air conditioners and control systems.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 1 mark
Define Version space.
Answer
A version space is the set of all hypotheses that are consistent with the training examples seen so far. It is bounded by the most general boundary (G) and the most specific boundary (S). The candidate elimination algorithm updates S and G after each example, removing hypotheses inconsistent with it, so that the version space shrinks as more data is seen.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 1 mark
What is rational agent?
Answer
A rational agent is an agent that, for each possible percept sequence, selects the action expected to maximise its performance measure, based on the evidence provided by the percept sequence and its built-in knowledge. Rationality depends on the performance measure, prior knowledge, available actions and percept history.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 1 mark
What do you mean by Machine Learning?
Answer
Machine learning is a branch of artificial intelligence in which computers learn from data and experience to improve their performance on a task without being explicitly programmed. A program is said to learn from experience with respect to task and performance measure if its performance at , measured by , improves with . Main types are supervised, unsupervised and reinforcement learning.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 1 mark
"NLP is important field in AI" Why?
Answer
Natural Language Processing (NLP) is important because language is the main way humans communicate and store knowledge. NLP lets machines understand, interpret and generate human language, so people can interact with computers in plain language. It enables machine translation, speech recognition, chatbots, sentiment analysis, information retrieval and text summarisation, and it is also a key test of intelligence (the Turing test).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 3 marks
How syntactic and semantic analyses are performed in natural language processing?
Answer
Syntactic analysis (parsing) checks whether a sentence follows the grammar of the language and builds its structure, usually a parse tree. Steps:
- The sentence is split into tokens and each word is tagged with its part of speech using a lexicon.
- A grammar (for example a context-free grammar such as S -> NP VP, NP -> Det N) is used with a parser (top-down or bottom-up, or a transition network) to build the parse tree.
- Sentences that do not fit the grammar are rejected.
Semantic analysis assigns meaning to the parsed sentence. Steps:
- Each word is given a meaning from the lexicon, resolving ambiguity (word sense disambiguation).
- The meanings are combined according to the parse tree structure, producing a representation such as predicate logic, semantic networks or frames. For example, "Ram eats rice" becomes .
- The result is checked for consistency with world knowledge.
Syntax answers "is it well formed?" while semantics answers "what does it mean?".
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 3 marks
What do you mean by Rational Agent? What are differences between Utility based Agent and Model based Agent?
Answer
Rational agent: A rational agent is one that does the right thing: for every possible percept sequence it selects the action expected to maximise its performance measure, given its percepts and built-in knowledge. Rationality is not omniscience; it concerns expected, not actual, success.
Differences between utility-based and model-based agents
| Utility-based agent | Model-based agent |
|---|---|
| Chooses actions that maximise a utility function (degree of happiness) | Chooses actions using condition-action rules on its internal state |
| Can compare different ways of reaching a goal and handle conflicting goals | Does not measure how good a state is |
| Handles uncertainty by maximising expected utility | Only tracks how the world evolves and what its actions do |
| More general and complex | Simpler |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 3 marks
What is state space representation? Illustrate with one example.
Answer
State space representation describes a problem as a graph in which nodes are states and edges are actions (operators) that move from one state to another. It is defined by:
- an initial state,
- a set of operators/actions that produce successor states,
- a goal test,
- a path cost function.
Solving the problem means finding a path from the initial state to a goal state.
Example: 8-puzzle. A state is an arrangement of the tiles 1-8 and the blank on a board. The initial state is any scrambled arrangement. The actions are moving the blank up, down, left or right. The goal state is the tiles in order with the blank at the end, and each move costs 1. Searching this state space (by BFS, A* and so on) gives the sequence of moves to solve the puzzle.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 3 marks
What is forward changing? Explain with appropriate example.
Answer
The term is forward chaining. Forward chaining is a data-driven inference method. It starts from the known facts and applies rules whose premises are satisfied (modus ponens) to derive new facts, repeating until the goal is derived or no new facts can be added.
Example. Rules and facts:
- R1:
- R2:
- Facts: ,
Step 1: R1 fires, giving . Step 2: R2 fires, giving . The goal is reached.
It contrasts with backward chaining, which starts from the goal and works back to the facts.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 3 marks
"Some time quantity became quality" Justify statement by the help of definition of AI.
Answer
AI is defined in four ways: systems that think like humans, act like humans, think rationally, and act rationally. In practice, early AI tried to encode intelligence with hand-written rules, but results were limited. When large quantities of data and computing power became available, simple methods such as neural networks and statistical learning began to show behaviour that looks intelligent, for example recognising speech and images, translating text and playing chess or Go.
Thus a quantitative increase in data, memory, processors and training examples produced a qualitative change: machines that act rationally and perform tasks requiring human intelligence. This supports the statement that sometimes quantity becomes quality. For example, a language model trained on a small corpus only predicts words, but at a very large scale it can converse, translate and reason, which meets the "acting humanly/rationally" definitions of AI.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 3 marks
How does Convolution Neural Network work? Explain
Answer
A Convolutional Neural Network (CNN) is a deep network designed for grid-like data such as images. It automatically learns features through the following layers:
- Input layer: the image as a matrix of pixel values (height x width x channels).
- Convolution layer: small filters (kernels) slide over the image and compute dot products to produce feature maps that detect edges, textures and shapes. Weights are shared, so there are fewer parameters.
- Activation (ReLU): adds non-linearity.
- Pooling layer: max or average pooling reduces the size of the feature maps, keeping important features and giving translation invariance.
- Fully connected layer: the flattened features are fed to dense layers that combine them.
- Output layer: softmax gives class probabilities.
The network is trained by backpropagation with gradient descent, adjusting filter weights to minimise the loss. Early layers learn simple features and deeper layers learn complex ones. Uses include image classification, face recognition and object detection.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 5 marks
Convert following sentences into Predicate Logic Knowledge base: a. Brothers are siblings.
b. "Sibling" is reflexive.
c. One's mother is one's female parent.
d. A cousin is a child of a parent's sibling.
e. All BIM students study AI and JAVA.
Answer
(a) Brothers are siblings.
(b) "Sibling" is reflexive (as given in the question, each person is a sibling of themselves).
(c) One's mother is one's female parent.
(d) A cousin is a child of a parent's sibling.
(e) All BIM students study AI and JAVA.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 5 marks
Represent the following sentences into a semantic network.
a. Birds are animals.
b. Birds have feathers, fly and lay eggs.
c. Albatros is a bird.
d. Donald is a bird.
e. Tracy is an albatross.
Answer
A semantic network is a graph in which nodes are concepts or objects and labelled arcs are relations such as is-a and has.
Nodes and links
- Albatross --is-a--> Bird (c)
- Donald --is-a--> Bird (d)
- Tracy --is-a--> Albatross (e)
- Bird --is-a--> Animal (a)
- Bird --has--> Feathers (b)
- Bird --can--> Fly (b)
- Bird --lays--> Eggs (b)
Diagram
Animal
^
| is-a
Bird ---has---> Feathers
^ ^ \--can---> Fly
is-a | | is-a \-lays-> Eggs
Albatross Donald
^
| is-a
Tracy
Because of inheritance, Tracy and Donald inherit the properties of Bird (feathers, fly, lay eggs) and of Animal.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 5 marks
What difference between computer vision and machine vision? Explain with its application areas.
Figure1: Graph of cities
Answer
Computer vision is the field of AI that enables computers to extract, analyse and understand information from images and videos, aiming to imitate human vision. Machine vision is the use of imaging (cameras, lighting, sensors) with processing to perform inspection and guidance in industrial automation, usually in a controlled environment.
| Computer vision | Machine vision |
|---|---|
| Software-oriented, a branch of AI | System-level, hardware plus software engineering |
| Understands images in general, uncontrolled scenes | Works in controlled conditions (fixed lighting, position) |
| Uses machine learning and deep learning heavily | Often uses rule-based image processing |
| Output is understanding (recognition, description) | Output is a decision or control signal (pass/fail, move robot) |
| Hardware independent | Tied to specific cameras and industrial equipment |
Application areas
- Computer vision: face recognition, self-driving cars, medical image diagnosis, object detection, OCR, surveillance, augmented reality.
- Machine vision: product inspection and defect detection on assembly lines, barcode reading, robot guidance, packaging verification, measuring parts in manufacturing.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 10 marks
From the given graph [Figure1: Graph of cities], Trace graph and calculate actual path from Dang to KTM using following searching method and Compare their performance.
a. A* b. Uniform Cost Search
Answer
The figure is not reproduced here, so the method is shown on a representative road graph of the cities (edge costs in km; heuristic = straight-line distance to Kathmandu).
| Edge | Cost |
|---|---|
| Dang - Butwal | 130 |
| Dang - Pokhara | 330 |
| Butwal - Narayanghat | 110 |
| Butwal - Pokhara | 160 |
| Narayanghat - KTM | 150 |
| Pokhara - KTM | 200 |
: Dang 360, Butwal 250, Narayanghat 120, Pokhara 140, KTM 0 (all admissible).
(a) A* search with
| Step | Expand | Generated nodes (g, f) |
|---|---|---|
| 1 | Dang (f=360) | Butwal (130, 380), Pokhara (330, 470) |
| 2 | Butwal (380) | Narayanghat (240, 360), Pokhara via Butwal (290, 430) replaces 470 |
| 3 | Narayanghat (360) | KTM (390, 390) |
| 4 | KTM (390) | Goal reached |
Path: Dang -> Butwal -> Narayanghat -> KTM, cost km. Nodes expanded: 4 (Pokhara never expanded).
(b) Uniform Cost Search with
| Step | Expand | Frontier (g) |
|---|---|---|
| 1 | Dang (0) | Butwal 130, Pokhara 330 |
| 2 | Butwal (130) | Narayanghat 240, Pokhara 290 |
| 3 | Narayanghat (240) | KTM 390, Pokhara 290 |
| 4 | Pokhara (290) | KTM via Pokhara 490 (worse than 390) |
| 5 | KTM (390) | Goal reached |
Path: Dang -> Butwal -> Narayanghat -> KTM, cost 390 km. Nodes expanded: 5.
Comparison
| A* | UCS | |
|---|---|---|
| Uses heuristic | Yes () | No ( only) |
| Nodes expanded | 4 | 5 |
| Path cost | 390 (optimal) | 390 (optimal) |
| Completeness/optimality | Yes, if is admissible | Yes |
| Efficiency | Better, goal-directed | Explores in all directions, slower |
Both find the optimal path, but A* expands fewer nodes because the heuristic guides the search towards Kathmandu.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 AD Model · 10 marks
How do you define problem? What are criteria for defining problem? Compare Constraint Satisfaction Problem and Real World Problem in detail with appropriate example.
Answer
Defining a problem. In AI, a problem is a situation in which an agent must find a sequence of actions that takes it from an initial state to a desired goal state. A well-defined problem has these components:
- Initial state: where the agent starts.
- Actions (operators): the set of possible actions in each state.
- Transition model: the state that results from an action (successor function).
- Goal test: checks whether a state is a goal.
- Path cost: a numeric cost for each path (sum of step costs).
Together, the first three define the state space.
Criteria for defining a problem
- Define the problem precisely, including initial and final (goal) situations.
- Analyse the problem to find the features that affect the solution.
- Isolate and represent the task knowledge needed.
- Choose the best problem-solving technique and apply it.
- The formulation should be at the right level of abstraction, and the solution should be checkable and the cost measurable.
Constraint Satisfaction Problem vs Real World Problem
| Constraint Satisfaction Problem | Real World Problem |
|---|---|
| States are assignments of values to variables, defined by variables, domains and constraints | States are complete descriptions of a situation; they are often hard to describe exactly |
| Goal is any assignment satisfying all constraints; the path does not matter | Goal usually requires a good sequence of actions; the path/cost matters |
| Solved with backtracking, constraint propagation, forward checking | Solved with search (A*, UCS), planning and heuristics |
| Well-defined and formal | Messy, uncertain, with noisy and incomplete information |
| Example: map colouring, N-Queens, Sudoku, timetable scheduling | Example: route finding, robot navigation, airline travel planning, VLSI layout |
Examples. Map colouring: variables are regions, domain is {R, G, B}, constraint is that neighbours differ. Route finding: state is the current city, actions are driving to adjacent cities, goal is the destination, and cost is distance.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
Questions from TU BIM Fifth Semester IT 228 Artificial Intelligence Model Question 2024 (Faculty of Management model question 2024, BIM fifth semester, via EducateNepal), TU BIM Fifth Semester IT 242 Software Design and Development Model Question 2024 (Faculty of Management model question 2024, BIM fifth semester, via EducateNepal), TU BIM Fifth Semester IT 243 Programming with Python Model Question 2024 (Faculty of Management model question 2024, BIM fifth semester, via EducateNepal), TU BIM Fifth Semester IT 244 Information Security Model Question 2024 (Faculty of Management model question 2024, BIM fifth semester, via EducateNepal), TU BIM Fifth Semester MKT 201 Fundamentals of Marketing Model Question 2024 (Faculty of Management model question 2024, BIM fifth semester, via EducateNepal), TU BIM Fifth Semester IT 221 Computer Graphics 2016 (model question) (Faculty of Management model question 2016 (old course), via EducateNepal), TU BIM Fifth Semester IT 222 Java Programming II 2016 (model question) (Faculty of Management model question 2016 (old course), via EducateNepal) and TU BIM Fifth Semester IT 223 Advance Internetworking 2016 (model question) (Faculty of Management model question 2016 (old course), via EducateNepal). Answers are written for this site; check them against your class notes.