Skip to main content

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:

  1. The sensors give the current percept.
  2. The agent interprets the percept to describe the current state.
  3. It matches the state against the condition parts of its rules and picks the rule that fires.
  4. 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 X={X1,…,Xn}X=\{X_1,\dots,X_n\}, a domain of possible values DiD_i 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.

(A∨¬B)∧(C∨D∨¬E)(A \lor \lnot B) \land (C \lor D \lor \lnot E)

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 μA(x)∈[0,1]\mu_A(x)\in[0,1] 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 EE with respect to task TT and performance measure PP if its performance at TT, measured by PP, improves with EE. 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 eats(Ram,Rice)eats(Ram, Rice).
  • 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 agentModel-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 goalsDoes not measure how good a state is
Handles uncertainty by maximising expected utilityOnly tracks how the world evolves and what its actions do
More general and complexSimpler

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 3×33\times3 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: Parent(x,y)∧Male(x)⇒Father(x,y)Parent(x,y)\land Male(x)\Rightarrow Father(x,y)
  • R2: Father(x,y)⇒Ancestor(x,y)Father(x,y)\Rightarrow Ancestor(x,y)
  • Facts: Parent(Ram,Sita)Parent(Ram, Sita), Male(Ram)Male(Ram)

Step 1: R1 fires, giving Father(Ram,Sita)Father(Ram,Sita). Step 2: R2 fires, giving Ancestor(Ram,Sita)Ancestor(Ram,Sita). The goal Ancestor(Ram,Sita)Ancestor(Ram,Sita) 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:

  1. Input layer: the image as a matrix of pixel values (height x width x channels).
  2. 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.
  3. Activation (ReLU): f(x)=max⁡(0,x)f(x)=\max(0,x) adds non-linearity.
  4. Pooling layer: max or average pooling reduces the size of the feature maps, keeping important features and giving translation invariance.
  5. Fully connected layer: the flattened features are fed to dense layers that combine them.
  6. 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.

∀x ∀y  (Brother(x,y)⇒Sibling(x,y))\forall x\,\forall y\;\big(Brother(x,y)\Rightarrow Sibling(x,y)\big)

(b) "Sibling" is reflexive (as given in the question, each person is a sibling of themselves).

∀x  Sibling(x,x)\forall x\;Sibling(x,x)

(c) One's mother is one's female parent.

∀x ∀y  (Mother(x,y)⇔Female(x)∧Parent(x,y))\forall x\,\forall y\;\big(Mother(x,y)\Leftrightarrow Female(x)\land Parent(x,y)\big)

(d) A cousin is a child of a parent's sibling.

∀x ∀y  (Cousin(x,y)⇔∃p ∃q  (Parent(p,x)∧Sibling(p,q)∧Parent(q,y)))\forall x\,\forall y\;\big(Cousin(x,y)\Leftrightarrow \exists p\,\exists q\;(Parent(p,x)\land Sibling(p,q)\land Parent(q,y))\big)

(e) All BIM students study AI and JAVA.

∀x  (BIMStudent(x)⇒Studies(x,AI)∧Studies(x,JAVA))\forall x\;\big(BIMStudent(x)\Rightarrow Studies(x,AI)\land Studies(x,JAVA)\big)

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 visionMachine vision
Software-oriented, a branch of AISystem-level, hardware plus software engineering
Understands images in general, uncontrolled scenesWorks in controlled conditions (fixed lighting, position)
Uses machine learning and deep learning heavilyOften uses rule-based image processing
Output is understanding (recognition, description)Output is a decision or control signal (pass/fail, move robot)
Hardware independentTied 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 hh = straight-line distance to Kathmandu).

EdgeCost
Dang - Butwal130
Dang - Pokhara330
Butwal - Narayanghat110
Butwal - Pokhara160
Narayanghat - KTM150
Pokhara - KTM200

hh: Dang 360, Butwal 250, Narayanghat 120, Pokhara 140, KTM 0 (all admissible).

(a) A* search with f(n)=g(n)+h(n)f(n)=g(n)+h(n)

StepExpandGenerated nodes (g, f)
1Dang (f=360)Butwal (130, 380), Pokhara (330, 470)
2Butwal (380)Narayanghat (240, 360), Pokhara via Butwal (290, 430) replaces 470
3Narayanghat (360)KTM (390, 390)
4KTM (390)Goal reached

Path: Dang -> Butwal -> Narayanghat -> KTM, cost 130+110+150=390130+110+150=390 km. Nodes expanded: 4 (Pokhara never expanded).

(b) Uniform Cost Search with f(n)=g(n)f(n)=g(n)

StepExpandFrontier (g)
1Dang (0)Butwal 130, Pokhara 330
2Butwal (130)Narayanghat 240, Pokhara 290
3Narayanghat (240)KTM 390, Pokhara 290
4Pokhara (290)KTM via Pokhara 490 (worse than 390)
5KTM (390)Goal reached

Path: Dang -> Butwal -> Narayanghat -> KTM, cost 390 km. Nodes expanded: 5.

Comparison

A*UCS
Uses heuristicYes (g+hg+h)No (gg only)
Nodes expanded45
Path cost390 (optimal)390 (optimal)
Completeness/optimalityYes, if hh is admissibleYes
EfficiencyBetter, goal-directedExplores 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:

  1. Initial state: where the agent starts.
  2. Actions (operators): the set of possible actions in each state.
  3. Transition model: the state that results from an action (successor function).
  4. Goal test: checks whether a state is a goal.
  5. 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 ProblemReal World Problem
States are assignments of values to variables, defined by variables, domains and constraintsStates are complete descriptions of a situation; they are often hard to describe exactly
Goal is any assignment satisfying all constraints; the path does not matterGoal usually requires a good sequence of actions; the path/cost matters
Solved with backtracking, constraint propagation, forward checkingSolved with search (A*, UCS), planning and heuristics
Well-defined and formalMessy, uncertain, with noisy and incomplete information
Example: map colouring, N-Queens, Sudoku, timetable schedulingExample: 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.