Nepal Engineering Council · Chapter 9
Artificial Intelligence and Neural Networks
Pick an answer for each question, then open “Show answer” to check it.
148 questions in 6 syllabus topics · 23 tagged from past exams or NEC model sets.
9.1 Introduction to AI and intelligent agents
23 questions · ACtE0901
1. Test for machine intelligence?
- Option A: Turing test
- Option B: IQ test
- Option C: A/B test
- Option D: Unit test
Show hintHide hint
Indistinguishable from human.
Show answerHide answer
Answer: A. Turing test
Turing test evaluates machine intelligence by checking if distinguishable from human.
2. Not AI application?
- Option A: DBMS
- Option B: Digital assistants
- Option C: NLP
- Option D: Computer Vision
Show hintHide hint
Traditional, not AI.
Show answerHide answer
Answer: A. DBMS
Database Management Systems are not AI applications.
3. Which of the following best captures the core idea of Artificial Intelligence (AI)?
- Option A: Building machines that can compute very fast
- Option B: Building machines that can imitate human behavior without reasoning
- Option C: Building systems that perceive, reason, learn, and act to achieve goals in their environment
- Option D: Building software that automates any repetitive task
Show hintHide hint
Think in terms of agents, environment, and goal-directed behavior rather than just speed or automation.
Show answerHide answer
Answer: C. Building systems that perceive, reason, learn, and act to achieve goals in their environment
Artificial Intelligence is not simply about fast computation or blind automation. Classical definitions from Russell & Norvig describe AI as the study and design of intelligent agents: systems that perceive their environment through sensors and act upon that environment through actuators in a way that maximizes their chances of achieving goals. Four classical perspectives help clarify this: (1) Systems that think like humans (cognitive modeling), (2) Systems that act like humans (Turing test), (3) Systems that think rationally (laws of thought), and (4) Systems that act rationally (rational agents). Modern AI largely follows the rational agent perspective. An intelligent system should: (a) Perceive: interpret inputs such as images, speech, text, or sensor readings, (b) Reason: build internal representations and draw inferences from them, (c) Learn: improve its performance from experience instead of relying only on fixed rules, and (d) Act: choose actions that are appropriate for its goals and environment dynamics. Fast computation, automation, or mimicry of human behavior are sometimes side-effects of AI techniques, but they do not fully define AI. For instance, a simple script that clicks a button automatically is not intelligent; it does not perceive changing context, adapt, or optimize towards a goal. In contrast, a self-driving car that observes the road, predicts other vehicles’ behavior, plans routes, and continuously improves via data is operating as an intelligent agent.
4. Which combination correctly matches the four classical AI perspectives?
- Option A: Thinking humanly, acting humanly, thinking rationally, acting rationally
- Option B: Thinking symbolically, acting statistically, learning probabilistically, planning optimally
- Option C: Thinking logically, acting logically, learning logically, optimizing logically
- Option D: Perceiving, reasoning, learning, and remembering
Show hintHide hint
Recall the categorization based on human vs rational and thought vs behavior.
Show answerHide answer
Answer: A. Thinking humanly, acting humanly, thinking rationally, acting rationally
Foundations of AI textbooks describe four high-level perspectives on AI, based on two axes: human vs rational and thought vs behavior. This yields four quadrants: (1) Thinking humanly: Trying to model how humans actually think internally (cognitive science, cognitive modeling). This requires psychological experiments and possibly brain imaging to check whether the model matches human reasoning patterns. (2) Acting humanly: Trying to make machines behave indistinguishably from humans, regardless of how they internally work. The Turing test is the classical example: if a judge cannot reliably distinguish the machine from a human in conversation, the machine is said to exhibit human-level intelligence in that domain. (3) Thinking rationally: Emphasizing correct reasoning according to formal logic. Early AI research tried to encode knowledge and reasoning using logical systems, proving theorems and deriving conclusions that are always sound and logically valid. (4) Acting rationally: Focusing on rational agents that choose actions that maximize expected goal achievement given their beliefs and constraints. This perspective is more flexible than strict logic, because it can handle uncertainty, limited computation, and noisy sensors. Modern AI tends to emphasize rational agency: design agents that do the “right” thing given their objectives, knowledge, and computational resources. The other options in the question either mix unrelated terms or miss this canonical 2×2 classification.
5. Which of the following is the most accurate definition of an intelligent agent?
- Option A: Any program that runs autonomously without user input
- Option B: An entity that perceives its environment and takes actions that maximize its expected performance measure
- Option C: Any system that uses machine learning algorithms
- Option D: A rule-based system that always follows predefined instructions
Show hintHide hint
Focus on perception, action, and performance measure in a specific environment.
Show answerHide answer
Answer: B. An entity that perceives its environment and takes actions that maximize its expected performance measure
An intelligent agent is formally defined as an entity that perceives its environment via sensors and acts upon that environment via actuators, choosing actions so as to maximize its expected performance measure over time. Several components are important here: (1) Percepts: At each time step, the agent receives percepts (observations) from the environment, which might be partial or noisy. For example, a robot receives camera images, distance sensor readings, and encoder values. (2) Actions: The agent has a set of possible actions it can execute, such as moving forward, turning, speaking, or firing a control signal. (3) Performance measure: Rather than simply “doing something”, the agent is evaluated according to a performance measure defined by the system designer (for example, safety, speed, fuel efficiency, or game score). The agent’s goal is to maximize this measure, not necessarily to mimic human behavior. (4) Agent function vs agent program: The agent function maps percept histories to actions. The agent program is a concrete implementation of that function on some hardware. An autonomous script that just runs without user input but does not sense the environment or optimize a performance measure is not necessarily an intelligent agent. Similarly, a static rule-based system that never adapts can still be an agent, but whether it is intelligent depends on whether it chooses actions that reasonably maximize performance in its environment. Intelligence is judged relative to what was feasible for an ideal agent with the same information. This definition is general enough to cover simple reflex agents, model-based agents, goal-based planners, and utility-based agents.
6. In the PEAS framework for agent description, what does PEAS stand for?
- Option A: Percepts, Environment, Actions, Sensors
- Option B: Performance measure, Environment, Actuators, Sensors
- Option C: Performance measure, Environment, Actions, States
- Option D: Perception, Execution, Adaptation, Strategy
Show hintHide hint
Think of what the designer specifies: how success is measured, where the agent lives, what it can do, and what it can sense.
Show answerHide answer
Answer: B. Performance measure, Environment, Actuators, Sensors
PEAS is a useful checklist for specifying a task environment for an intelligent agent before designing the agent itself. It stands for: (1) Performance measure: The quantitative or qualitative criteria used to evaluate the agent’s success. For a self-driving car, this might include safety, travel time, comfort, and legal compliance. For a chess agent, it is usually winning the game. Defining the performance measure carefully is critical; a poorly chosen measure can lead to undesirable behavior. (2) Environment: The external world with which the agent interacts. This includes other agents, physical constraints, rules, and dynamics. For a vacuum-cleaning robot, the environment might be rooms, dirt distribution, furniture, and humans walking around. Specifying the environment helps determine its properties (deterministic vs stochastic, static vs dynamic, etc.). (3) Actuators: The mechanisms through which the agent affects the environment. Examples include wheels and motors for a robot, keystrokes or API calls for a software agent, arms and grippers in industrial robotics, or network packets for a network management agent. (4) Sensors: The input channels through which the agent perceives the environment. These could be cameras, microphones, IR sensors, keyboard/mouse input, or system logs. Distinguishing sensors from actuators clarifies what information the agent receives and what it can change. A good PEAS specification provides a structured way to think about the design problem and directly influences the choice of agent architecture (simple reflex, model-based, goal-based, or utility-based) and the algorithms used (search, planning, learning, etc.).
7. Which of the following is a correct pairing between agent type and its main characteristic?
- Option A: Simple reflex agent – maintains an internal model of the world
- Option B: Model-based reflex agent – chooses actions solely based on current percept
- Option C: Goal-based agent – selects actions to reach desired states regardless of utilities
- Option D: Utility-based agent – optimizes a numeric preference function over states or outcomes
Show hintHide hint
Think about which agent explicitly uses a utility function, not just a goal test.
Show answerHide answer
Answer: D. Utility-based agent – optimizes a numeric preference function over states or outcomes
Agent architectures in AI can be arranged from simple to sophisticated: (1) Simple reflex agents act only on the basis of the current percept, ignoring history. They apply condition–action rules like “if dirty then suck, else move right”. They have no internal model of the world’s dynamics. This makes them easy to implement but fragile in partially observable or changing environments. (2) Model-based reflex agents maintain some internal state to track aspects of the world that are not directly observed in the current percept. They use a model of how the world evolves and how actions affect the world, allowing them to handle partial observability and remember past information. They are still driven by condition–action rules but with state as input. (3) Goal-based agents introduce explicit representation of goals (desired states). Rather than simply reacting, they plan: they search for action sequences that lead from the current state (or belief state) to a goal state. They may consider multiple paths and choose one that reaches a goal, but they treat all goal states as equally acceptable without measuring degrees of preference. (4) Utility-based agents extend goal-based behavior by associating numeric utilities (preferences) with states or outcomes. They choose actions that maximize expected utility, taking into account trade-offs among conflicting objectives (such as speed vs safety vs comfort). This is especially important in stochastic or multi-objective environments where simply reaching a goal is not enough. Therefore, only the utility-based agent explicitly optimizes a numeric preference function. The other options in the question mix characteristics: simple reflex agents do not maintain internal models, and model-based agents do not act solely on current percept; they use state. Goal-based agents use goals, not utilities, as their primary evaluation criterion.
8. In terms of environment properties, which combination correctly classifies a typical chess game against a computer opponent?
- Option A: Deterministic, fully observable, static, single-agent
- Option B: Deterministic, fully observable, sequential, multi-agent
- Option C: Stochastic, partially observable, dynamic, single-agent
- Option D: Stochastic, semi-observable, episodic, multi-agent
Show hintHide hint
Think about whether there is uncertainty in the rules, whether both players see the entire board, and how actions unfold over time.
Show answerHide answer
Answer: B. Deterministic, fully observable, sequential, multi-agent
To classify an environment, several dimensions are considered: (1) Deterministic vs stochastic: Chess is deterministic because the result of an action (moving a piece) is completely determined by the rules and current board state; there is no randomness in transitions. Stochastic environments involve random effects (for example, dice rolls in some board games). (2) Fully observable vs partially observable: In chess, both players can see the entire board configuration at all times; there is no hidden information. Therefore, it is fully observable. Games like poker are partially observable because players cannot see opponents’ cards. (3) Static vs dynamic: A static environment does not change while the agent is deliberating; chess is essentially static in this sense because the environment changes only when a player makes a move, not spontaneously. In contrast, driving a car is dynamic: the world changes continuously. (4) Episodic vs sequential: In episodic environments, the agent’s current action does not depend on previous actions. Chess is sequential: the current decision depends heavily on the sequence of prior moves and has long-term consequences. (5) Single-agent vs multi-agent: Chess clearly involves two agents (our agent and the opponent) whose goals conflict, so it is a competitive multi-agent environment (adversarial). Thus, the best classification among the options is deterministic, fully observable, sequential, multi-agent. This classification guides the choice of solution methods: adversarial search algorithms like minimax and alpha–beta pruning are appropriate rather than single-agent shortest-path search.
9. In which type of environment, the next state of the environment is completely determined by the current state and the action taken by the agent?
NEC model set- Option A: Observable environment
- Option B: Deterministic environment
- Option C: Episodic environment
- Option D: Static environment
Show hintHide hint
Deterministic means predictable - same action always produces same result. Non-deterministic is unpredictable.
Show answerHide answer
Answer: B. Deterministic environment
In a deterministic environment, the next state is completely determined by the current state and the action taken by the agent. Environment types in AI: (1) Deterministic - Next state fully determined by current state and action, (2) Stochastic/Non-deterministic - Action produces multiple possible outcomes with probabilities, (3) Observable - Agent perceives all relevant information, (4) Partially observable - Agent perceives only partial information. Deterministic environment characteristics: (1) Predictable - Same action always produces same result, (2) No randomness - No chance events affecting outcome, (3) Complete causality - Action directly causes specific outcome, (4) Reversible - Can always reverse to previous state (usually). Deterministic examples: (1) Chess - Move produces exact board state, (2) Tic-tac-toe - Same move always same result, (3) Scripted simulations - Predetermined outcomes, (4) Mathematical calculations - Deterministic formula. Non-deterministic examples: (1) Card games - Action outcome depends on random card draw, (2) Real world - Weather, traffic unpredictable, (3) Game with dice - Multiple outcomes possible. Combined characteristics: (1) Fully observable + Deterministic - Complete, predictable information, (2) Partially observable + Stochastic - Incomplete, unpredictable - most real-world, (3) Observable + Stochastic - Complete info but random outcomes. Related concepts: (1) Episodic - Task independent episodes vs sequential, (2) Static - Environment doesn't change while agent decides, (3) Discrete - Finite states vs continuous. Planning implications: (1) Deterministic - One valid plan works, (2) Stochastic - Need contingency plans, (3) Requires different algorithms - Search vs policy. Real-world AI: (1) Most real environments are stochastic, (2) Some specialized systems can be deterministic, (3) Hybrid approaches handle uncertainty. This distinction is important for algorithm selection.
10. Actions on the environment are done by?
Past question- Option A: Sensor
- Option B: Performance
- Option C: Actuators
- Option D: Controller
Show hintHide hint
Sensors detect changes. What makes changes happen in the environment?
Show answerHide answer
Answer: C. Actuators
Actions on the environment are done by Actuators. AI Agent Architecture: (1) Agent - Perceives environment, takes actions, (2) Sensor - Perceives environment (input), (3) Actuator - Performs actions (output), (4) Controller - Decides what to do. Actuator Functions: (1) Mechanical movement - Motors, joints, (2) Environmental change - Heating, cooling, opening, (3) Output signals - Controlling other systems, (4) Physical interaction - Manipulating objects. Examples of Actuators: (1) Robot arm - Movement actuators, (2) Motor - Rotating or linear motion, (3) Valve - Controlling flow, (4) Speaker - Sound generation, (5) Light - Visual output. Sensor vs Actuator: (1) Sensor - Input device, (2) Actuator - Output device, (3) Together form agent interaction, (4) Feedback loop - Sensor→Control→Actuator. Control Loop: (1) Sense current state (Sensor), (2) Decide action (Controller), (3) Perform action (Actuator), (4) Observe result (Sensor), (5) Repeat. Performance Consideration: (1) Agent performance - How well objectives met, (2) Not an action mechanism, (3) Measure of success, (4) Evaluation metric. Types of Actuators: (1) Electric - Most common, fast, (2) Hydraulic - High power, (3) Pneumatic - Quick response, (4) Thermal - Heat generation. Robotics: (1) Actuators power robots, (2) Multiple actuators for complex tasks, (3) Coordination is key, (4) Precision and control important. Smart Systems: (1) Home automation - Lights, locks, thermostats, (2) Industrial control - Manufacturing equipment, (3) Autonomous vehicles - Steering, acceleration, braking, (4) Medical - Surgical robots. Real-world Applications: (1) Self-driving cars - Steering/braking actuators, (2) Drones - Motor actuators, (3) Smart homes - Light and door actuators, (4) Manufacturing - Robot arms. This demonstrates understanding of agent-environment interaction in AI systems.
11. What is the primary goal of Artificial Intelligence?
- Option A: To replace human intelligence
- Option B: To create machines that can perform tasks requiring human intelligence
- Option C: To develop faster computers
- Option D: To automate all human jobs
Show answerHide answer
Answer: B. To create machines that can perform tasks requiring human intelligence
12. An intelligent agent is:
- Option A: A human-like robot
- Option B: An entity that perceives its environment and takes actions to achieve goals
- Option C: A computer program that can learn
- Option D: A database of knowledge
Show answerHide answer
Answer: B. An entity that perceives its environment and takes actions to achieve goals
13. A model-based agent differs from a simple reflex agent by:
- Option A: Having no sensors
- Option B: Maintaining internal state
- Option C: Having no goals
- Option D: Being deterministic
Show answerHide answer
Answer: B. Maintaining internal state
14. Which of the following is NOT a perspective of AI?
- Option A: Thinking humanly
- Option B: Thinking rationally
- Option C: Acting humanly
- Option D: Acting emotionally
Show answerHide answer
Answer: D. Acting emotionally
15. In a deterministic environment:
- Option A: The next state depends on random factors
- Option B: The next state is completely determined by the current state and agent's action
- Option C: The agent cannot determine the next state
- Option D: Multiple agents are required
Show answerHide answer
Answer: B. The next state is completely determined by the current state and agent's action
16. A simple reflex agent:
- Option A: Maintains internal state
- Option B: Acts based on current percepts only
- Option C: Has a model of the world
- Option D: Considers future consequences of actions
Show answerHide answer
Answer: B. Acts based on current percepts only
17. The PEAS description in AI stands for:
- Option A: Performance, Environment, Actuators, Sensors
- Option B: Perception, Execution, Action, Sensing
- Option C: Planning, Execution, Analysis, Synthesis
- Option D: Probability, Expectation, Analysis, Simulation
Show answerHide answer
Answer: A. Performance, Environment, Actuators, Sensors
18. A multi-agent environment is one where:
- Option A: Multiple copies of the same agent exist
- Option B: The agent has multiple sensors
- Option C: Multiple agents operate in the same environment
- Option D: The agent has multiple goals
Show answerHide answer
Answer: C. Multiple agents operate in the same environment
19. Which of the following is NOT a type of intelligent agent?
- Option A: Simple reflex agent
- Option B: Model-based agent
- Option C: Goal-based agent
- Option D: Knowledge-based agent
Show answerHide answer
Answer: D. Knowledge-based agent
20. A utility-based agent:
- Option A: Has no goals
- Option B: Maximizes its expected utility
- Option C: Uses only reflexes
- Option D: Has no internal state
Show answerHide answer
Answer: B. Maximizes its expected utility
21. A static environment is one where:
- Option A: The environment changes while the agent is deliberating
- Option B: The environment does not change while the agent is deliberating
- Option C: The agent cannot change the environment
- Option D: The environment has no other agents
Show answerHide answer
Answer: B. The environment does not change while the agent is deliberating
22. In a stochastic environment:
- Option A: The next state is completely determined by the current state and agent's action
- Option B: The next state depends partly on the agent's action and partly on random factors
- Option C: The environment does not change
- Option D: The agent cannot affect the environment
Show answerHide answer
Answer: B. The next state depends partly on the agent's action and partly on random factors
23. In a fully observable environment:
- Option A: The agent can see part of the environment
- Option B: The agent can see the complete state of the environment
- Option C: The environment is visible to humans
- Option D: The environment cannot be observed
Show answerHide answer
Answer: B. The agent can see the complete state of the environment
9.2 Problem solving and searching techniques
32 questions · ACtE0902
24. What is iterative deepening DFS space complexity?
Aasadh 2081 exam- Option A: b^(d/2)
- Option B: O(bd)
- Option C: O(d)
- Option D: O(n)
Show hintHide hint
Only stores nodes on current search path.
Show answerHide answer
Answer: C. O(d)
IDDFS space complexity is O(d) because only the current search path is maintained in memory.
25. Iterative Deepening DFS space?
- Option A: b^(d/2)
- Option B: O(bd)
- Option C: O(d)
- Option D: O(n)
Show hintHide hint
Current path only.
Show answerHide answer
Answer: C. O(d)
IDDFS space is O(d) storing only current search path.
26. Constraint satisfaction problems solved by?
- Option A: Search
- Option B: Heuristic search
- Option C: Greedy search
- Option D: All
Show hintHide hint
Multiple solving methods.
Show answerHide answer
Answer: D. All
CSP can be solved using search, heuristic search, or greedy approaches.
27. Search problem components?
- Option A: State, function, goal, cost
- Option B: State, function, path, test
- Option C: State, actions, goal, space
- Option D: State, goal, heuristic, solution
Show hintHide hint
Search elements.
Show answerHide answer
Answer: None of the options
The source’s answer, “State, function, goal, path, test”, is not one of the options.
Key components: initial state, successor function, goal path, goal test.
28. Constraint satisfaction solved by?
- Option A: Search
- Option B: Heuristic
- Option C: Greedy
- Option D: All
Show hintHide hint
Multiple methods.
Show answerHide answer
Answer: D. All
CSP can be solved using search, heuristic search, or greedy approaches.
29. Which description best matches the idea of a problem as a state-space search?
- Option A: Enumerating all possible inputs and outputs of an algorithm
- Option B: Modeling the problem as states, actions, transition model, start state, and goal test, then searching for a path from start to goal
- Option C: Representing all knowledge in first-order logic and querying it
- Option D: Using probability distributions over all possible outcomes
Show hintHide hint
Think about nodes in a graph, edges as actions, and search strategies like BFS and DFS.
Show answerHide answer
Answer: B. Modeling the problem as states, actions, transition model, start state, and goal test, then searching for a path from start to goal
In classical AI planning and search, a problem is typically formulated as a state-space search. This means: (1) States: Abstract representations of the world at a given time. For instance, the board configuration in 8-puzzle or location of a robot in a grid. (2) Initial state: The state from which the agent starts. (3) Actions: The set of actions available in each state. Actions have preconditions (when they can be applied) and effects (how they change the state). (4) Transition model: A function that, given a state and an action, returns the resulting state (or distribution over states if stochastic). (5) Goal test: A procedure that checks whether a given state satisfies the goal condition (e.g., puzzle solved, destination reached). (6) Path cost function: Optional but often included to evaluate the cost of sequences of actions. Once the problem has been formulated in this way, it can be represented as a graph or tree, where nodes are states and edges are actions. Search algorithms like Breadth-First Search (BFS), Depth-First Search (DFS), Uniform Cost Search, A*, etc., then explore this graph to find a path from the initial state to some goal state. This abstraction separates problem description (what is the problem) from problem-solving strategy (how we search). The other options in the question refer to algorithm analysis, knowledge representation, or probabilistic reasoning, which are related AI topics but do not describe the standard state-space search formulation.
30. Which of the following is a characteristic of a well-defined search problem in AI?
- Option A: It has at least one optimal solution but no explicit goal test
- Option B: It provides an initial state, a set of actions, a transition model, a goal test, and optionally a path cost function
- Option C: It is guaranteed to be solvable in polynomial time
- Option D: It can only be represented using logical formulas
Show hintHide hint
Think of the components that algorithms like BFS or A* require to operate.
Show answerHide answer
Answer: B. It provides an initial state, a set of actions, a transition model, a goal test, and optionally a path cost function
A well-defined search problem must specify enough information for a search algorithm to systematically explore possible solutions. The key components are: (1) Initial state: The starting point of the agent in the state space. Without this, the algorithm would not know where to begin. (2) Actions (successor function): For each state, we must know what actions are available and what successor states each action leads to. This is sometimes called the successor function. (3) Transition model: A description of the effect of each action, i.e., a function Result(s, a) that returns the state reached from state s after action a. In deterministic domains, this is a single next state; in stochastic domains, it might be a probability distribution over possible next states. (4) Goal test: A function that checks whether a given state satisfies the goal condition. This may be a simple predicate (“is the robot at target cell?”) or more complex. (5) Path cost function (optional but very common): A function that assigns a numeric cost to each path. Commonly, each action has a step cost, and path cost is the sum. This allows algorithms to distinguish between cheaper and more expensive solutions and define optimality. Once these are specified, a search algorithm can conceptually explore the state space and find solutions. There is no requirement that the problem be solvable in polynomial time or that it be represented in logic. In fact, many interesting search problems (like optimal route planning with complex constraints) are NP-hard or worse, but they are still well-defined search problems.
31. Which statement correctly distinguishes uninformed (blind) search from informed (heuristic) search?
- Option A: Uninformed search uses heuristics while informed search does not
- Option B: Uninformed search has access to the goal test, informed search does not
- Option C: Informed search uses additional problem-specific knowledge (heuristics) to guide exploration toward the goal
- Option D: Informed search always finds the optimal solution while uninformed search never does
Show hintHide hint
Think: what extra information does A* or Greedy Best-First Search use that BFS or DFS does not?
Show answerHide answer
Answer: C. Informed search uses additional problem-specific knowledge (heuristics) to guide exploration toward the goal
Uninformed (or blind) search algorithms know only the problem definition in terms of state transitions and goal test; they do not have any domain-specific hints about where the goal is located in the state space. Examples include Depth-First Search (DFS), Breadth-First Search (BFS), Uniform Cost Search (if considered without heuristics), Depth-Limited Search, Iterative Deepening Search, and Bidirectional Search. They are systematic but can explore huge regions of the state space that are irrelevant to the goal, particularly in large or infinite spaces. Informed (heuristic) search algorithms, in contrast, exploit problem-specific knowledge to estimate how promising each state is with respect to reaching the goal. This knowledge is encoded in a heuristic function h(n), which approximates the cost (or distance) from node n to the nearest goal. Examples of informed search include: (1) Greedy Best-First Search, which selects nodes with smallest h(n) (most promising according to heuristic) regardless of cost so far; (2) A* Search, which selects nodes with minimal f(n) = g(n) + h(n), balancing cost so far (g(n)) and estimated remaining cost (h(n)); (3) Hill Climbing, which moves in the direction of decreasing heuristic cost (like gradient-based local search); (4) Simulated Annealing, which uses heuristic costs but occasionally allows uphill moves to escape local minima. Informed search does not guarantee optimality by default; only under conditions like an admissible and consistent heuristic does A* guarantee optimal solutions. So it is incorrect to claim that informed search always finds an optimal solution or that uninformed search never does. For example, BFS finds optimal solutions in unweighted graphs, and Uniform Cost Search finds optimal paths with non-negative step costs.
32. Which search strategy is guaranteed to find an optimal solution in a tree with uniform step costs, assuming the branching factor and solution depth are finite?
- Option A: Depth-First Search (DFS)
- Option B: Breadth-First Search (BFS)
- Option C: Depth-Limited Search
- Option D: Greedy Best-First Search
Show hintHide hint
Think about which algorithm explores all nodes at depth d before exploring any node at depth d+1.
Show answerHide answer
Answer: B. Breadth-First Search (BFS)
Breadth-First Search (BFS) explores the search tree level by level: it visits the start node, then all nodes at depth 1, then all nodes at depth 2, and so on. In a tree (no repeated states) with uniform step costs (e.g., cost = 1 per action), the first time BFS reaches a goal node, that node is at the shallowest depth among all goal nodes. Since path cost is proportional to depth when costs are uniform, the shallowest goal also has minimal path cost, so BFS is guaranteed to find an optimal solution under these conditions. Depth-First Search (DFS), on the other hand, dives as deep as possible along one path before backtracking. It may find a deep goal even if a shallower (cheaper) goal exists, so it is not optimal. Depth-Limited Search behaves like DFS but stops after a fixed depth limit; it can miss shallow solutions if the limit is poorly chosen and is not inherently optimal. Greedy Best-First Search uses a heuristic h(n) to choose the node that appears closest to the goal, ignoring path cost so far g(n); it often finds a solution quickly, but has no guarantee of optimality unless the heuristic happens to preserve ordering of true costs, which is rarely proven. For non-uniform step costs, Uniform Cost Search or A* with a consistent heuristic are used instead of BFS for optimality.
33. Which of the following correctly pairs an uninformed search algorithm with one of its main characteristics?
- Option A: Depth-First Search – complete and optimal in infinite-depth spaces
- Option B: Breadth-First Search – complete and optimal when step costs are equal
- Option C: Iterative Deepening Search – requires storing all frontier nodes at once, using a lot of memory
- Option D: Bidirectional Search – explores only one direction from the initial state
Show hintHide hint
Think about completeness and optimality properties under uniform step costs.
Show answerHide answer
Answer: B. Breadth-First Search – complete and optimal when step costs are equal
Uninformed search algorithms have well-studied properties: (1) Depth-First Search (DFS) is neither complete in infinite-depth or cyclic state spaces nor optimal. DFS may get stuck going down an infinite path and never reach shallow solutions elsewhere. It also does not guarantee minimal path cost. (2) Breadth-First Search (BFS) is complete when the branching factor is finite and a solution exists. With uniform step costs, BFS is also optimal because it finds the shallowest goal. However, BFS has high memory cost because it stores all nodes at the current frontier. (3) Iterative Deepening Search (IDS) combines benefits of BFS and DFS. It performs depth-limited DFS repeatedly with increasing depth limits (0, 1, 2, …). IDS is complete and optimal under uniform step costs like BFS, but uses memory comparable to DFS (O(bd) time and O(bd) space instead of O(b^d) space for BFS). It does not require storing all frontier nodes simultaneously; instead, it repeatedly re-explores upper levels, which is surprisingly not too expensive because most nodes are at the deepest level. (4) Bidirectional Search simultaneously searches forward from the initial state and backward from the goal, aiming to meet in the middle. If both directions can be efficiently implemented and a predecessor function is available, bidirectional search can dramatically reduce time complexity from O(b^d) to roughly O(b^{d/2}) in each direction, but it is more complex and requires storing both frontiers. Therefore, the only correct pairing among the options is that BFS is complete and optimal when all step costs are equal.
34. Which statement about the A* search algorithm is correct when using an admissible and consistent heuristic?
- Option A: A* is complete but not optimal
- Option B: A* is optimal but may not terminate on finite graphs
- Option C: A* is complete and optimal, expanding no node with f(n) greater than the cost of an optimal solution
- Option D: A* is neither complete nor optimal, but runs in linear time
Show hintHide hint
Recall conditions on the heuristic: admissibility (never overestimates) and consistency (triangle inequality).
Show answerHide answer
Answer: C. A* is complete and optimal, expanding no node with f(n) greater than the cost of an optimal solution
A* search is an informed search algorithm that uses a combined evaluation function f(n) = g(n) + h(n), where g(n) is the cost from the start to node n, and h(n) is a heuristic estimate of the cost from n to a goal. Under certain conditions on the heuristic, A* enjoys strong guarantees: (1) Admissible heuristic: h(n) is admissible if it never overestimates the true minimal cost h*(n) to reach a goal from n (i.e., 0 ≤ h(n) ≤ h*(n) for all n). Under admissibility alone, A* is optimal in tree search (no repeated states), but in graph search, it may still re-expand nodes unless consistency is also satisfied. (2) Consistent (monotone) heuristic: h is consistent if for every edge (n, n') with cost c, h(n) ≤ c + h(n'). Intuitively, this enforces a triangle inequality: estimated cost from n to goal is no more than cost of going to successor n' plus estimated cost from n' to goal. Consistency implies admissibility and also ensures that f(n) values along any path are non-decreasing. For graph search, with a consistent heuristic, A* is complete and optimally efficient among all optimal algorithms using the same heuristic information: it is guaranteed to find an optimal solution (minimum path cost) and will not expand any node whose f(n) exceeds the optimal solution cost. It also ensures that each node needs to be expanded at most once. The algorithm terminates on finite graphs because: (a) only finitely many nodes have f(n) less than or equal to the optimal cost, and (b) A* expands them in increasing f(n) order. So the correct statement is that A* is complete and optimal and expands no node with f(n) greater than the optimal solution cost when h is both admissible and consistent.
35. In local search algorithms like hill climbing, which problem is most characteristic and often leads to failure to find the global optimum?
- Option A: Excessive memory usage due to storing all visited states
- Option B: Lack of a goal test in the search process
- Option C: Getting stuck in local maxima, plateaus, or ridges on the search landscape
- Option D: Inability to evaluate any heuristic function at all
Show hintHide hint
Visualize the search as climbing a hill using only local slope information.
Show answerHide answer
Answer: C. Getting stuck in local maxima, plateaus, or ridges on the search landscape
Local search algorithms like hill climbing, steepest-ascent hill climbing, and sometimes simulated annealing operate directly on complete states and usually keep only a small number of states in memory. Their goal is not to discover an explicit path but to find a good solution state by iteratively improving the current state according to some objective or heuristic function. In hill climbing, from a current state, the algorithm evaluates neighboring states and moves to the neighbor that most improves the objective. This greedy local move can cause characteristic problems: (1) Local maxima: A state whose objective value is better than that of all its neighbors, but not the best possible globally. The algorithm has no incentive to move away because all neighbors are worse, so it becomes stuck. (2) Plateaus: A flat region where neighboring states have the same objective value (no ascent). The algorithm may wander randomly or terminate, failing to find a direction that leads upward. (3) Ridges: Regions where the optimal path to higher values is not aligned with any single coordinate direction, so naive local steps cannot easily ascend without coordinated moves. These issues mean hill climbing can fail to locate global optima even when they exist and be extremely sensitive to the starting state. Simulated annealing addresses these issues by sometimes accepting worse states with a probability controlled by a “temperature” parameter, allowing it to escape local maxima early in the search. Stochastic hill climbing and random restarts are additional strategies to reduce the chance of getting stuck, but they do not eliminate it entirely. The primary limitation is not memory or absence of goal tests but the local, greedy nature of the improvement process.
36. In adversarial search for two-player, zero-sum, perfect-information games, what does the minimax value of a node represent?
- Option A: The maximum heuristic value of any child below that node
- Option B: The best guaranteed outcome for the maximizing player assuming optimal play from both players
- Option C: The probability of winning from that node under random play
- Option D: The minimal cost path from the node to a terminal state
Show hintHide hint
Think in terms of worst-case analysis from the perspective of the maximizing player.
Show answerHide answer
Answer: B. The best guaranteed outcome for the maximizing player assuming optimal play from both players
In adversarial search, particularly in deterministic two-player zero-sum games with perfect information (like chess, checkers, and tic-tac-toe), the minimax algorithm assigns a value to each game state. This minimax value is defined recursively: (1) For terminal states (game over), the value is given by the utility function (for example, +1 for a win, 0 for a draw, −1 for a loss from the perspective of the maximizing player). (2) For non-terminal states where it is the maximizing player’s turn, the minimax value is the maximum of the minimax values of its successor states (because the maximizing player chooses the move that maximizes the final outcome). (3) For non-terminal states where it is the minimizing player’s turn, the minimax value is the minimum of the minimax values of its successor states (because the opponent chooses the move that minimizes the maximizing player’s outcome). Thus, the minimax value of a node from the maximizing player’s perspective represents the utility of the game outcome under optimal play from both players: the maximizing player chooses moves to maximize this value, while the minimizing (opponent) player chooses moves to minimize it. It is a worst-case guarantee for the maximizing player: even if the opponent plays perfectly adversarially, the maximizing player can secure at least that utility by following the corresponding minimax strategy. It is not simply the maximum heuristic value among children (that would ignore the opponent’s choices) and not a probability of winning unless utilities are chosen in that way. It also does not represent a cost in the path-planning sense, but rather game-theoretic utility.
37. What is the main purpose of alpha–beta pruning in minimax search?
- Option A: To approximate minimax values using heuristics instead of exact search
- Option B: To reduce the number of nodes evaluated by pruning branches that cannot influence the final decision
- Option C: To convert a zero-sum game into a non-zero-sum game
- Option D: To ensure that the search always reaches terminal states
Show hintHide hint
Think about using bounds (alpha and beta) to detect when further exploration is unnecessary.
Show answerHide answer
Answer: B. To reduce the number of nodes evaluated by pruning branches that cannot influence the final decision
Alpha–beta pruning is an optimization of the minimax algorithm that uses bounds to avoid exploring parts of the game tree that cannot possibly affect the final decision. It does not change the result of minimax; it only reduces the number of nodes evaluated. Two values are maintained during depth-first traversal: (1) alpha (α): The best value (highest lower bound) found so far along any path for the maximizing player. It is a lower bound on the final outcome that the maximizing player can guarantee given choices already considered. (2) beta (β): The best value (lowest upper bound) found so far along any path for the minimizing player. It is an upper bound on the outcome from the maximizing player’s perspective because the minimizing player will try to reduce the value. When exploring a node: (a) For a MAX node: if its current value becomes greater than or equal to β, further exploration of its remaining children is unnecessary, because the minimizing player (ancestor MIN node) will never allow this branch to be chosen (it has a better or equal alternative). This is called a beta cut-off. (b) For a MIN node: if its current value becomes less than or equal to α, further exploration is unnecessary because the maximizing player has a better or equal alternative already. This is called an alpha cut-off. With optimal move ordering, alpha–beta pruning can reduce the effective branching factor dramatically. In the best case, it prunes enough branches to make search complexity roughly O(b^{d/2}) instead of O(b^d), where b is branching factor and d is depth. This makes deeper lookahead feasible in practice. However, alpha–beta does not approximate minimax with heuristics (that would be evaluation functions at cut-off depth), nor does it guarantee reaching terminal states. Its purpose is purely to prune branches that cannot affect the final choice.
38. Which searching technique is guaranteed to find the optimal solution in a state space search problem, assuming no path costs?
NEC model set- Option A: Depth-first search (DFS)
- Option B: Breadth-first search (BFS)
- Option C: Hill climbing
- Option D: A* search
Show hintHide hint
BFS explores level by level. If no path costs, which finds the shortest path?
Show answerHide answer
Answer: B. Breadth-first search (BFS)
Breadth-first search (BFS) is guaranteed to find the optimal solution in a state space search problem when there are no path costs. Why BFS is optimal without path costs: (1) Explores level by level, (2) Finds solution with minimum number of steps, (3) With equal cost (1) per step, minimum steps = minimum cost, (4) First solution found is optimal. BFS characteristics: (1) Complete - Always finds solution if exists, (2) Optimal - Finds best solution without path costs, (3) Systematic - Explores all possibilities at each depth, (4) Memory intensive - Stores all nodes at current level. Search algorithm comparison: (1) DFS - Not optimal, can go deep in wrong direction, (2) BFS - Optimal without path costs, (3) Uniform Cost Search - Optimal with path costs, (4) A* - Optimal with admissible heuristic, (5) Hill climbing - Local search, greedy, not optimal. When BFS is optimal: (1) Uniform step costs - Each step costs the same (1 unit), (2) Shortest path problem - Minimize number of steps, (3) Unweighted graph - All edges equal weight. Implementation: (1) Use queue (FIFO) for frontier, (2) Explore all neighbors at current level, (3) Move to next level when level exhausted. Time/space complexity: (1) Time: O(b^d) where b = branching factor, d = depth, (2) Space: O(b^d) - stores all frontier nodes. When not to use BFS: (1) With path costs - Use Uniform Cost Search, (2) With heuristic info - Use A*, (3) Very deep solutions - Memory problems, (4) When first solution acceptable - DFS faster (doesn't expand all). Real-world applications: (1) Shortest path in unweighted graphs, (2) Social networks - degrees of separation, (3) Puzzle solving - minimum moves, (4) Level-by-level exploration. This is fundamental to search algorithm theory.
39. A* search combines the features of:
NEC model set- Option A: a) Depth-First Search and Breadth-First Search
- Option B: b) Dijkstra's Algorithm and Greedy Best-First Search
- Option C: c) Bubble Sort and Quick Sort
- Option D: d) Prim's and Kruskal's Algorithms
Show hintHide hint
A* uses the cost so far (like Dijkstra) and heuristic estimate (like Greedy). Combined?
Show answerHide answer
Answer: B. b) Dijkstra's Algorithm and Greedy Best-First Search
A* search combines features of Dijkstra's Algorithm and Greedy Best-First Search. A* uses f(n) = g(n) + h(n), where g(n) is actual cost from start (Dijkstra's approach) and h(n) is heuristic estimate to goal (Greedy approach). This combination provides optimal pathfinding while being more efficient than Dijkstra alone. A* is widely used in game AI, robotics, and navigation systems.
40. The A* search algorithm uses which search strategy?
Recalled from Jan 2026 exam- Option A: Depth-first search
- Option B: Breadth-first search
- Option C: Best-first search
- Option D: Depth-limited search
Show hintHide hint
A* combines actual cost and heuristic estimate to guide search. What strategy is this?
Show answerHide answer
Answer: C. Best-first search
The A* search algorithm uses best-first search strategy. A* evaluates nodes using f(n) = g(n) + h(n), where g(n) is the actual cost from start node and h(n) is the heuristic estimate to goal. This hybrid approach combines the optimality of Dijkstra's algorithm with the speed of greedy best-first search. A* always expands the most promising node first (best-first strategy), leading to optimal pathfinding when the heuristic is admissible. A* is widely used in game AI, robotics, and navigation systems.
41. Problem-solving in AI involves:
- Option A: Finding any solution
- Option B: Finding the optimal solution
- Option C: Defining the problem
- Option D: All of these
Show answerHide answer
Answer: D. All of these
42. A well-defined problem has:
- Option A: Initial state, actions, transition model, goal test, path cost
- Option B: Only an initial state and goal state
- Option C: Only actions and a goal state
- Option D: Only a transition model
Show answerHide answer
Answer: A. Initial state, actions, transition model, goal test, path cost
43. A state space search is:
- Option A: A search for states in physical space
- Option B: A search through a space of possible states to find a goal state
- Option C: A search for the initial state
- Option D: A search for the problem definition
Show answerHide answer
Answer: B. A search through a space of possible states to find a goal state
44. Depth-First Search (DFS) expands:
- Option A: The deepest unexpanded node
- Option B: The shallowest unexpanded node
- Option C: A random unexpanded node
- Option D: The node with the lowest cost
Show answerHide answer
Answer: A. The deepest unexpanded node
45. Breadth-First Search (BFS) expands:
- Option A: The deepest unexpanded node
- Option B: The shallowest unexpanded node
- Option C: A random unexpanded node
- Option D: The node with the lowest cost
Show answerHide answer
Answer: B. The shallowest unexpanded node
46. A constraint satisfaction problem is characterized by:
- Option A: Variables, domains, and constraints
- Option B: Initial state and goal state
- Option C: Actions and transition model
- Option D: Path cost function
Show answerHide answer
Answer: A. Variables, domains, and constraints
47. Iterative Deepening Search combines the advantages of:
- Option A: BFS and uniform cost search
- Option B: DFS and BFS
- Option C: A* and greedy search
- Option D: Hill climbing and simulated annealing
Show answerHide answer
Answer: B. DFS and BFS
48. Informed search algorithms use:
- Option A: No information about the goal
- Option B: Heuristic information to guide the search
- Option C: Only the transition model
- Option D: Only the initial state
Show answerHide answer
Answer: B. Heuristic information to guide the search
49. Alpha-beta pruning:
- Option A: Changes the outcome of minimax
- Option B: Reduces the number of nodes evaluated by minimax
- Option C: Increases the number of nodes evaluated by minimax
- Option D: Is used in single-agent search
Show answerHide answer
Answer: B. Reduces the number of nodes evaluated by minimax
50. A* search uses:
- Option A: f(n) = g(n) + h(n)
- Option B: f(n) = g(n) - h(n)
- Option C: f(n) = g(n) * h(n)
- Option D: f(n) = h(n)
Show answerHide answer
Answer: A. f(n) = g(n) + h(n)
51. The minimax algorithm is used for:
- Option A: Single-agent search problems
- Option B: Multi-agent cooperative problems
- Option C: Adversarial search problems
- Option D: Constraint satisfaction problems
Show answerHide answer
Answer: C. Adversarial search problems
52. Hill climbing is:
- Option A: A complete search algorithm
- Option B: An optimal search algorithm
- Option C: A local search algorithm
- Option D: An uninformed search algorithm
Show answerHide answer
Answer: C. A local search algorithm
53. Greedy best-first search expands:
- Option A: The node with the lowest path cost
- Option B: The node closest to the goal according to the heuristic
- Option C: The node with the lowest f(n) = g(n) + h(n)
- Option D: A random node
Show answerHide answer
Answer: B. The node closest to the goal according to the heuristic
54. Simulated annealing:
- Option A: Always finds the global optimum
- Option B: Is a local search algorithm that can escape local optima
- Option C: Is an uninformed search algorithm
- Option D: Is guaranteed to find the optimal solution
Show answerHide answer
Answer: B. Is a local search algorithm that can escape local optima
55. Bidirectional search:
- Option A: Searches in only one direction
- Option B: Searches from both the initial state and the goal state
- Option C: Always finds the optimal solution
- Option D: Is an uninformed search algorithm
Show answerHide answer
Answer: B. Searches from both the initial state and the goal state
9.3 Knowledge representation
25 questions · ACtE0903
56. Which is NOT a property of knowledge representation?
Aasadh 2081 exam- Option A: Representational adequacy
- Option B: Inferential adequacy
- Option C: Inferential efficiency
- Option D: Representational verification
Show hintHide hint
Three main properties exist: adequacy, inferential adequacy, and efficiency.
Show answerHide answer
Answer: D. Representational verification
Representational verification is not a standard property. The main properties are representational adequacy, inferential adequacy, and inferential efficiency.
57. What about semantic networks?
- Option A: Knowledge representation
- Option B: Data structure
- Option C: Data type
- Option D: None
Show hintHide hint
Knowledge representation method.
Show answerHide answer
Answer: A. Knowledge representation
Semantic networks are method for knowledge representation.
58. What is semantic network?
- Option A: Knowledge representation
- Option B: Data structure
- Option C: Data type
- Option D: None
Show hintHide hint
Knowledge method.
Show answerHide answer
Answer: A. Knowledge representation
Semantic networks are method for knowledge representation in AI.
59. What is forward chaining?
- Option A: Top-down reasoning
- Option B: Bottom-up reasoning
- Option C: Data-driven
- Option D: Goal-driven
Show hintHide hint
Starts from data.
Show answerHide answer
Answer: C. Data-driven
Forward chaining is data-driven inference starting from facts to reach conclusions.
60. What is backward chaining?
- Option A: Bottom-up
- Option B: Top-down
- Option C: Data-driven
- Option D: Forward
Show hintHide hint
Starts from goal.
Show answerHide answer
Answer: B. Top-down
Backward chaining is top-down inference starting from goal to find supporting facts.
61. Which of the following best describes the goal of a knowledge representation (KR) scheme in AI?
- Option A: To store as much raw data as possible in a database
- Option B: To encode information in a form that a computer can reason with effectively and efficiently
- Option C: To compress sensory data using lossless algorithms
- Option D: To represent only numerical facts and ignore relationships
Show hintHide hint
Think beyond storage: reasoning, inference, and problem solving are central.
Show answerHide answer
Answer: B. To encode information in a form that a computer can reason with effectively and efficiently
Knowledge Representation (KR) in AI is not merely about storing data in some structured form like a database. The primary objective is to encode knowledge about the world (objects, properties, relations, rules, and uncertainty) in a symbolic or probabilistic format that supports efficient reasoning and decision-making. An effective KR scheme should satisfy several requirements: (1) Representational adequacy: It must be expressive enough to capture the kinds of knowledge needed for the target domain: facts, taxonomies (is-a relations), part–whole relations, temporal and causal relations, procedural knowledge, default assumptions, and uncertainty. (2) Inferential adequacy: It must support sound and (ideally) complete inference mechanisms to derive new knowledge from existing knowledge. For example, resolution in propositional or first-order logic, or Bayesian inference in probabilistic models. (3) Inferential efficiency: Reasoning should not only be sound but also computationally feasible. Some logics are very expressive but make inference undecidable or intractable. KR often balances expressiveness against tractability by restricting the language (e.g., Horn clauses). (4) Acquisitional efficiency: It should be relatively easy for humans (or automated tools) to add, maintain, and modify knowledge. This is crucial in expert systems and large-scale knowledge bases. Examples of KR formalisms include propositional logic, first-order predicate logic, semantic networks, frames, ontologies, production rules, probabilistic graphical models (like Bayesian networks), and fuzzy logic systems. Each comes with its own syntax, semantics, and inference methods. The correct answer emphasizes that KR is about representing information in a form that supports effective and efficient reasoning, not just storing raw data or focusing solely on numbers.
62. Which of the following is a key issue in knowledge representation?
- Option A: Ensuring that all knowledge is purely numerical
- Option B: Choosing a representation that balances expressiveness, efficiency, and ease of use
- Option C: Avoiding the use of any inference mechanism
- Option D: Limiting the knowledge base to less than 100 rules
Show hintHide hint
Think about trade-offs between what can be expressed and how hard it is to compute with it.
Show answerHide answer
Answer: B. Choosing a representation that balances expressiveness, efficiency, and ease of use
Several important issues arise when designing a knowledge representation for an AI system: (1) Expressiveness vs. efficiency: A very expressive language (such as full first-order logic with unrestricted quantification, higher-order predicates, or temporal operators) can represent complex facts and relationships, but inference may become undecidable or computationally intractable. More restricted languages (like Horn clauses or certain description logics) may be less expressive but allow efficient reasoning (polynomial or at least semi-decidable). Designers must choose a level of expressiveness that is “just enough” for the domain. (2) Reasoning support: The representation should support sound and preferably complete inference methods. It should be clear what kinds of questions can be answered (entailment, consistency, explanation, planning) and what algorithms are available (resolution, forward/backward chaining, belief propagation, etc.). (3) Handling incomplete and uncertain knowledge: Real-world domains rarely allow complete or certain information. KR must address defaults, exceptions, uncertainty, and inconsistency (through default logic, Bayesian networks, fuzzy logic, or non-monotonic reasoning). (4) Modularity and maintainability: Knowledge bases inevitably evolve. The representation should allow incremental additions and modifications without breaking the entire system. Good modularity (through frames, objects, or ontologies) helps maintain and scale knowledge. (5) Mapping to the real world: Symbols must be grounded in perception and action; otherwise, the system risks the “symbol grounding problem,” where internal symbols are manipulated without clear relation to external reality. (6) Computational properties: It is important to consider whether inference will run in acceptable time and memory limits for realistic problem sizes. The answer options that talk about purely numerical representation, avoiding inference, or arbitrary size limits do not capture these core issues. The central design problem is finding a good balance between expressiveness, efficiency, and usability.
63. In propositional logic (PL), which of the following is a tautology?
- Option A: P ∧ ¬P
- Option B: P ∨ ¬P
- Option C: P → ¬P
- Option D: ¬(P ∨ P)
Show hintHide hint
A tautology is true under every possible truth assignment to its atomic propositions.
Show answerHide answer
Answer: B. P ∨ ¬P
In propositional logic, a tautology is a formula that evaluates to true under every possible truth assignment of its atomic propositions. Consider each candidate: (1) P ∧ ¬P: This formula is a contradiction. If P is true, then ¬P is false, and the conjunction is false. If P is false, ¬P is true, but the conjunction is still false. So P ∧ ¬P is false in all cases and is the opposite of a tautology. (2) P ∨ ¬P: This is an instance of the Law of the Excluded Middle. If P is true, then the disjunction is true; if P is false, then ¬P is true, so the disjunction is again true. There is no assignment of P that makes P ∨ ¬P false, so it is a tautology. (3) P → ¬P: This is not a tautology. If P is true, then ¬P is false, so the implication P → ¬P is false in that case. If P is false, the implication is true (because an implication with false antecedent is true), so the formula is true in some models and false in others, not a tautology. (4) ¬(P ∨ P): This simplifies to ¬P, which is clearly not always true because for P = false, ¬P is true, but for P = true, ¬P is false. Therefore, only P ∨ ¬P is a tautology. Understanding tautologies is important for logical equivalence, proof transformations, and simplifying formulas in automated reasoning systems.
64. Which of the following is TRUE about resolution in propositional logic?
- Option A: Resolution is a sound and complete inference rule for propositional logic when applied to clauses in CNF
- Option B: Resolution is sound but incomplete; it cannot derive all logical consequences
- Option C: Resolution is complete but unsound; it sometimes derives wrong conclusions
- Option D: Resolution cannot be used for automated theorem proving
Show hintHide hint
Think of refutation-based theorem proving: converting to CNF and deriving the empty clause.
Show answerHide answer
Answer: A. Resolution is a sound and complete inference rule for propositional logic when applied to clauses in CNF
Resolution is a single inference rule that, when applied to a set of clauses in Conjunctive Normal Form (CNF), is both sound and complete for propositional logic. (1) Soundness means that any clause derived by resolution is logically entailed by the original set of clauses. That is, resolution never produces a false conclusion from true premises. The rule works as follows: from (A ∨ L) and (¬L ∨ B), resolution derives (A ∨ B), where L is a literal and ¬L is its negation. This new clause is a logical consequence of the premises. (2) Completeness means that if a formula logically entails a conclusion, then resolution will eventually be able to derive a contradiction when attempting to refute its negation (provided we systematically apply it in all possible ways). The standard use is refutation: to show that a set of clauses entails some sentence S, one adds ¬S to the knowledge base, converts everything to CNF, and repeatedly applies resolution. If the empty clause (contradiction) is derived, the original set entails S. For propositional logic, this approach is complete, meaning that if S is indeed entailed, resolution will eventually find a proof. Resolution becomes the basis for many SAT solvers and theorem provers in propositional logic. In first-order logic, resolution with unification can also be made complete (for refutation) but requires additional machinery such as Skolemization and handling of variables. Therefore, the correct statement is that resolution is sound and complete for propositional logic when used on CNF. The other options misunderstand its role or properties.
65. In first-order predicate logic (FOPL), what is the purpose of unification in the resolution process?
- Option A: To convert formulas into CNF
- Option B: To rename variables to avoid clashes
- Option C: To find a substitution that makes different logical expressions identical so that literals can be resolved
- Option D: To eliminate existential quantifiers
Show hintHide hint
Think about matching predicates like P(x, f(y)) and P(a, f(z)).
Show answerHide answer
Answer: C. To find a substitution that makes different logical expressions identical so that literals can be resolved
In first-order predicate logic, resolution extends the propositional resolution rule by allowing variables and quantified formulas. To resolve two clauses that contain complementary literals (for example, P(t1, …, tk) and ¬P(s1, …, sk)), we must ensure that the predicates and their arguments match. However, because arguments can contain variables, we need a way to find a substitution for these variables that makes the two literals syntactically identical. Unification is the algorithmic process that finds such a substitution (if one exists). Specifically: (1) A substitution θ is a mapping from variables to terms (constants, variables, or function applications). (2) Applying θ to an expression E, written Eθ, replaces every variable in E according to θ. (3) Two expressions E1 and E2 are said to unify if there exists a substitution θ such that E1θ = E2θ (syntactically equal after substitution). (4) A unifier is such a substitution; a most general unifier (MGU) is a unifier that makes the fewest commitments, from which all other unifiers can be obtained by further substitutions. During resolution, when we want to resolve clauses C1 and C2 containing complementary literals L and ¬L', we first attempt to unify L and L'. If unification succeeds with substitution θ, we then apply θ to all literals in both clauses and form a new resolvent clause containing all remaining literals. For example, from clause1: P(x, f(y)) ∨ A and clause2: ¬P(a, f(z)) ∨ B, unification finds θ = {x/a, y/z}. Applying θ yields P(a, f(z)) and ¬P(a, f(z)), which can be resolved, producing Aθ ∨ Bθ. Unification is therefore central to first-order resolution because it allows matching of patterns with variables. The other options describe related preprocessing steps: conversion to CNF includes Skolemization and moving quantifiers, and variable renaming avoids confusion between bound variables, but unification specifically performs pattern matching for resolution.
66. Bayes' rule can be written as P(A|B) = P(B|A) P(A) / P(B). In AI, what is the most common interpretation of this formula?
- Option A: It relates prior, likelihood, and posterior probabilities to update beliefs given evidence
- Option B: It computes the logical entailment of A from B
- Option C: It guarantees maximum-likelihood estimates without priors
- Option D: It describes the structure of any decision tree
Show hintHide hint
Think: prior belief about A, evidence B, and how B changes your belief in A.
Show answerHide answer
Answer: A. It relates prior, likelihood, and posterior probabilities to update beliefs given evidence
Bayes' rule is fundamental in probabilistic reasoning and learning. It expresses how to update the probability of a hypothesis given observed evidence. In the formula P(A|B) = [P(B|A) P(A)] / P(B): (1) P(A) is the prior probability of hypothesis A before observing any evidence B. It encodes our initial belief. (2) P(B|A) is the likelihood: the probability of observing evidence B assuming that hypothesis A is true. It describes how compatible the evidence is with the hypothesis. (3) P(B) is the marginal probability of the evidence B under all possible hypotheses. It acts as a normalizing constant to ensure that posterior probabilities sum to 1. It can be computed as P(B) = Σ_i P(B|Ai) P(Ai), summing over mutually exclusive hypotheses Ai. (4) P(A|B) is the posterior probability: our updated belief in hypothesis A after we have seen evidence B. Bayes' rule says that posterior ∝ likelihood × prior. In AI, this formula is used in many contexts: (a) Naive Bayes classifiers for text classification and spam detection, (b) Bayesian networks for reasoning under uncertainty, (c) Bayesian parameter estimation in machine learning, (d) probabilistic robotics (localization, mapping), (e) medical diagnosis, and more. It does not express logical entailment; probabilities are degrees of belief, not truth values. It also does not correspond to maximum-likelihood estimation (which ignores priors) but rather to Bayesian inference that combines prior beliefs with evidence. Decision trees are based on information gain and splitting criteria, not directly on Bayes' rule.
67. What is a Bayesian network (belief network) in AI?
- Option A: A fully connected neural network used for classification
- Option B: A directed acyclic graph (DAG) where nodes are random variables and edges encode conditional dependencies
- Option C: A tree structure representing only independent events
- Option D: A rule-based expert system encoded in first-order logic
Show hintHide hint
Think of nodes as variables and edges as direct influences with conditional probability tables.
Show answerHide answer
Answer: B. A directed acyclic graph (DAG) where nodes are random variables and edges encode conditional dependencies
A Bayesian network, also called a belief network, is a compact representation of a joint probability distribution over a set of random variables using a directed acyclic graph (DAG). Its key components are: (1) Graph structure: Nodes correspond to random variables (e.g., Disease, Symptom1, Symptom2, Weather). Directed edges represent direct probabilistic influences, typically from cause to effect. The graph is acyclic, meaning there are no directed cycles. (2) Local conditional probability distributions (CPDs): For each node X with parents Pa(X), the network specifies P(X | Pa(X)). For root nodes (nodes without parents), these are just prior probabilities P(X). (3) Markov condition: The graph encodes conditional independence assumptions: each node is independent of its non-descendants given its parents. This drastically reduces the number of parameters required compared to a full joint distribution. For n binary variables, a full joint would need 2^n − 1 probabilities; a sparse Bayesian network needs far fewer. (4) Inference: Given evidence (observed variables), Bayesian networks can be used to compute posterior probabilities of query variables. Inference can be done exactly (variable elimination, belief propagation in polytrees) or approximately (sampling methods, loopy belief propagation) when the graph is complex. Bayesian networks are used for diagnostic reasoning (effect to cause), predictive reasoning (cause to effect), intercausal reasoning (explaining away), and mixed inference. They do not require full connectivity; in fact, sparse connectivity is desirable. They are not neural networks nor pure rule systems, although they can sometimes be compiled from conditional rules. They provide a principled way to model uncertainty and perform reasoning in domains such as medical diagnosis, fault detection, spam filtering, and robotics.
68. What is the main goal of the resolution algorithm in inference?
NEC model set- Option A: To derive new logical axioms
- Option B: To simplify logical expressions
- Option C: To prove the satisfiability or unsatisfiability of a given set of logical statements
- Option D: To find contradictions in the knowledge base
Show hintHide hint
Resolution proves whether statements can all be true (satisfiable) or lead to contradiction (unsatisfiable).
Show answerHide answer
Answer: C. To prove the satisfiability or unsatisfiability of a given set of logical statements
The main goal of the resolution algorithm in inference is to prove the satisfiability or unsatisfiability of a given set of logical statements. Resolution mechanism: (1) Converts statements to CNF (Conjunctive Normal Form), (2) Applies resolution rule: if (A ∨ B) and (¬B ∨ C), then (A ∨ C), (3) Continues until proof found or contradiction reached, (4) Proves goal by contradiction - assumes negation and derives contradiction. Satisfiability: (1) Satisfiable - Exists assignment making all statements true, (2) Unsatisfiable - No assignment makes all true, always false (contradiction). Resolution process: (1) Start with knowledge base + negated goal, (2) Apply resolution rule repeatedly, (3) If empty clause (⊥) derived → unsatisfiable, (4) If no new clauses → satisfiable. Advantages: (1) Sound and complete for propositional logic, (2) Systematic approach, (3) Automated reasoning possible, (4) Basis for many theorem provers. Limitations: (1) Requires CNF conversion - can exponentially increase formulas, (2) Can be slow for large problems, (3) Not practical for very large knowledge bases. Applications: (1) Theorem proving - Automated proof generation, (2) SAT solving - SAT solver algorithms, (3) Logic programming - Prolog uses resolution, (4) AI reasoning - Automated reasoning systems. Related concepts: (1) Unification - Substitution making formulas identical, (2) Refutation - Proof by contradiction, (3) Inference rules - General logical deduction. Modern improvements: (1) DPLL algorithm - More efficient, (2) SMT solvers - Handle constraints, (3) CDCL - Conflict-driven clause learning. This is fundamental to automated reasoning and AI systems.
69. Which symbol is used for negation in FOPL (First Order Predicate Logic)?
NEC model set- Option A: a) ∧
- Option B: b) ∨
- Option C: c) ¬
- Option D: d) →
Show hintHide hint
Which logical operator represents NOT? In FOPL notation?
Show answerHide answer
Answer: C. c) ¬
In FOPL (First Order Predicate Logic), ¬ (negation symbol) is used for negation/NOT operation. ∧ represents AND, ∨ represents OR, → represents implication. ¬P means 'not P'. Negation is fundamental to logic for expressing negative statements and negation normal form. Combined with other operators, negation allows expressing complex logical formulas.
70. Knowledge representation in AI is:
- Option A: The process of acquiring knowledge
- Option B: The way knowledge is encoded for use by a computer system
- Option C: The process of learning from data
- Option D: The process of reasoning
Show answerHide answer
Answer: B. The way knowledge is encoded for use by a computer system
71. Semantic nets represent knowledge as:
- Option A: Logical formulas
- Option B: Nodes and links
- Option C: Rules
- Option D: Frames
Show answerHide answer
Answer: B. Nodes and links
72. Frames in knowledge representation are:
- Option A: Graphical representations
- Option B: Logical formulas
- Option C: Data structures that represent stereotyped situations
- Option D: Rules
Show answerHide answer
Answer: C. Data structures that represent stereotyped situations
73. Unification in predicate logic is:
- Option A: The process of finding values for variables that make two expressions identical
- Option B: The process of proving a theorem
- Option C: The process of creating a knowledge base
- Option D: The process of inferring new facts
Show answerHide answer
Answer: A. The process of finding values for variables that make two expressions identical
74. Propositional logic deals with:
- Option A: Statements that are either true or false
- Option B: Statements with variables
- Option C: Statements about objects and their relationships
- Option D: Statements about probabilities
Show answerHide answer
Answer: A. Statements that are either true or false
75. A tautology in propositional logic is:
- Option A: A statement that is always false
- Option B: A statement that is always true
- Option C: A statement that can be either true or false
- Option D: A statement with variables
Show answerHide answer
Answer: B. A statement that is always true
76. Bayes' rule is used for:
- Option A: Logical inference
- Option B: Probabilistic inference
- Option C: Knowledge representation
- Option D: Problem formulation
Show answerHide answer
Answer: B. Probabilistic inference
77. First-Order Predicate Logic (FOPL) extends propositional logic by adding:
- Option A: Probabilities
- Option B: Variables, quantifiers, and predicates
- Option C: Frames
- Option D: Semantic nets
Show answerHide answer
Answer: B. Variables, quantifiers, and predicates
78. A Bayesian network is:
- Option A: A type of neural network
- Option B: A graphical model that represents probabilistic relationships
- Option C: A type of expert system
- Option D: A type of search algorithm
Show answerHide answer
Answer: B. A graphical model that represents probabilistic relationships
79. Quantification in predicate logic includes:
- Option A: Only universal quantification
- Option B: Only existential quantification
- Option C: Both universal and existential quantification
- Option D: Neither universal nor existential quantification
Show answerHide answer
Answer: C. Both universal and existential quantification
80. Resolution in propositional logic is:
- Option A: A method for proving theorems
- Option B: A method for representing knowledge
- Option C: A method for learning
- Option D: A method for problem formulation
Show answerHide answer
Answer: A. A method for proving theorems
9.4 Expert systems and natural language processing
14 questions · ACtE0904
81. Inference engine strategy?
- Option A: Forward chaining
- Option B: Block chaining
- Option C: Stable chaining
- Option D: A and B
Show hintHide hint
Multiple strategies.
Show answerHide answer
Answer: D. A and B
Inference engines use forward chaining and backward chaining.
82. Inference engine strategy?
- Option A: Forward chaining
- Option B: Backward chaining
- Option C: Both A and B
- Option D: None
Show hintHide hint
Multiple strategies.
Show answerHide answer
Answer: C. Both A and B
Inference engines use forward chaining and backward chaining strategies.
83. What is the main goal of natural language understanding (NLU)?
NEC model set- Option A: Translating text from one language to another
- Option B: Generating human-like responses to user queries
- Option C: Analyzing and interpreting the meaning of natural language text
- Option D: Extracting entities and their relationships from a text
Show hintHide hint
NLU is about comprehending what text means, not just translating or extracting.
Show answerHide answer
Answer: C. Analyzing and interpreting the meaning of natural language text
The main goal of natural language understanding (NLU) is analyzing and interpreting the meaning of natural language text. NLU vs related fields: (1) NLP (Natural Language Processing) - Broader field including NLU, (2) NLU - Focused on semantic understanding, (3) Named Entity Recognition - Specific subtask of NLU, (4) Machine Translation - Different task (translation, not understanding). NLU tasks: (1) Semantic parsing - Converting text to logical form, (2) Intent recognition - Understanding user intention, (3) Sentiment analysis - Understanding emotional tone, (4) Question answering - Understanding question and finding answer, (5) Paraphrase detection - Recognizing equivalent meanings. How NLU works: (1) Tokenization - Break into words, (2) POS tagging - Mark word types, (3) Syntactic parsing - Build parse tree, (4) Semantic analysis - Extract meaning, (5) Pragmatic analysis - Use context. Challenges: (1) Ambiguity - Words with multiple meanings, (2) Idioms - Non-literal meanings, (3) Context - Same sentence different meanings in different contexts, (4) Negation and modality - Handle 'not', 'should', 'could'. Different from: (1) Translation - Understanding different, translation different problem, (2) Response generation - Separate NLG task, (3) Entity extraction - Part of understanding but not complete, (4) Text classification - Simpler than understanding. Modern NLU: (1) Deep learning models - BERT, GPT-based, (2) Transformer models - Attention-based, (3) Pre-trained models - Transfer learning, (4) End-to-end learning - Learn end-to-end instead of pipeline. Applications: (1) Chatbots - Understand user queries, (2) Virtual assistants - Alexa, Siri, Google Assistant, (3) Information extraction - Pull facts from text, (4) Document understanding - Analyze documents. This is key to AI systems that interact with humans.
84. Which AI application helps in self-driving cars?
NEC model set- Option A: a) Natural Language Processing
- Option B: b) Expert Systems
- Option C: c) Computer Vision
- Option D: d) Machine Learning
Show hintHide hint
Self-driving cars need to 'see' and understand the road. What AI technology enables this?
Show answerHide answer
Answer: C. c) Computer Vision
Computer Vision is the AI application that helps self-driving cars. It enables cars to perceive the environment through cameras, recognize objects, lanes, traffic signals, and obstacles. Computer vision combined with machine learning allows vehicles to make driving decisions. NLP handles text/speech, Expert Systems use rules, and general Machine Learning supports vision, but computer vision specifically addresses autonomous vehicle perception.
85. Sentiment analysis determines:
NEC model set- Option A: a) The grammar of text
- Option B: b) Named entities
- Option C: c) The topic of text
- Option D: d) The emotion or opinion expressed in text
Show hintHide hint
This NLP task identifies whether text is positive, negative, or neutral. What is it?
Show answerHide answer
Answer: D. d) The emotion or opinion expressed in text
Sentiment analysis determines the emotion or opinion expressed in text. It classifies text as positive, negative, or neutral. Applications include social media monitoring, customer feedback analysis, and product reviews. Sentiment analysis uses NLP techniques and machine learning to extract subjective information from unstructured text. It's widely used in marketing, reputation management, and customer service.
86. An expert system is:
- Option A: A system that performs better than human experts
- Option B: A system that uses knowledge from human experts to solve problems
- Option C: A system that learns from data
- Option D: A system that uses neural networks
Show answerHide answer
Answer: B. A system that uses knowledge from human experts to solve problems
87. Declarative knowledge represents:
- Option A: How to do something
- Option B: Facts and relationships
- Option C: Procedures
- Option D: Algorithms
Show answerHide answer
Answer: B. Facts and relationships
88. The architecture of an expert system typically includes:
- Option A: Knowledge base and inference engine
- Option B: Neural network and training algorithm
- Option C: Search algorithm and heuristic function
- Option D: Problem formulation and solution
Show answerHide answer
Answer: A. Knowledge base and inference engine
89. Natural Language Understanding (NLU) focuses on:
- Option A: Generating human language
- Option B: Understanding the meaning of human language
- Option C: Translating between languages
- Option D: Speech recognition
Show answerHide answer
Answer: B. Understanding the meaning of human language
90. Procedural knowledge represents:
- Option A: Facts and relationships
- Option B: How to do something
- Option C: Declarative statements
- Option D: Semantic networks
Show answerHide answer
Answer: B. How to do something
91. Natural Language Processing (NLP) deals with:
- Option A: Processing images
- Option B: Processing human language
- Option C: Processing sensor data
- Option D: Processing numerical data
Show answerHide answer
Answer: B. Processing human language
92. Machine vision is concerned with:
- Option A: Understanding human speech
- Option B: Understanding images and visual information
- Option C: Understanding text
- Option D: Understanding emotions
Show answerHide answer
Answer: B. Understanding images and visual information
93. Robotics combines:
- Option A: Only AI techniques
- Option B: Only mechanical engineering
- Option C: AI, mechanical engineering, and electronics
- Option D: Only electronics
Show answerHide answer
Answer: C. AI, mechanical engineering, and electronics
94. Knowledge acquisition for expert systems can be done through:
- Option A: Only interviews with experts
- Option B: Only reading textbooks
- Option C: Multiple methods including interviews, observation, and document analysis
- Option D: Only machine learning
Show answerHide answer
Answer: C. Multiple methods including interviews, observation, and document analysis
9.5 Machine learning
22 questions · ACtE0905
95. Hidden Markov Model used in?
- Option A: Supervised
- Option B: Unsupervised
- Option C: Reinforcement
- Option D: All
Show hintHide hint
Multiple applications.
Show answerHide answer
Answer: D. All
HMM used in supervised, unsupervised, and reinforcement learning.
96. Which of the following clustering technique permits a convenient graphical display?
NEC model set- Option A: Agglomerative clustering
- Option B: Hierarchical clustering
- Option C: Probabilistic model-based clustering
- Option D: Partition-based clustering
Show hintHide hint
Hierarchical clustering creates a tree-like structure called dendrogram, which is easy to visualize graphically.
Show answerHide answer
Answer: B. Hierarchical clustering
Hierarchical clustering permits convenient graphical display through dendrograms. A dendrogram is a tree-like diagram that shows the hierarchical clustering results clearly. Hierarchical clustering approaches: (1) Agglomerative (bottom-up) - Starts with individual points, merges closest pairs iteratively, (2) Divisive (top-down) - Starts with one cluster, recursively splits. Dendrogram visualization: (1) Horizontal axis - Data points or clusters, (2) Vertical axis - Distance/linkage criterion at which merging occurs, (3) Cutting horizontal line - Determines final number of clusters. Advantages of hierarchical clustering: (1) Produces dendrograms for visual analysis, (2) Reveals hierarchical relationships, (3) No need to specify cluster count beforehand, (4) Multiple granularity levels, (5) Can extract any number of clusters by cutting at different heights. Other clustering methods' visualization: (1) Partition-based (K-means) - Requires 2D/3D reduction for visualization, (2) Probabilistic (EM) - Requires separate visualization techniques, (3) Agglomerative - Same as hierarchical (generates dendrograms). Practical applications: (1) Gene expression analysis - Biological sample relationships, (2) Customer segmentation - Market analysis, (3) Species phylogeny - Evolutionary relationships. The dendrogram is one of the most intuitive visualizations in data analysis, making hierarchical clustering popular for exploratory data analysis.
97. The standard deviation is?
Past question- Option A: Variance^0.5
- Option B: Variance^2
- Option C: Variance^0.5
- Option D: Variance^0.25
Show hintHide hint
Standard deviation measures spread of data. It's the square root of something fundamental.
Show answerHide answer
Answer: A. Variance^0.5 or C. Variance^0.5
Two options have the same text; both match the source’s answer.
The standard deviation is the square root of variance, or Variance^0.5. Statistical Measures: (1) Variance - Average squared deviation from mean, (2) Standard Deviation - Square root of variance, (3) Both measure data spread, (4) Different units and scales. Mathematical Definition: (1) Variance σ² = Σ(xi - mean)² / n, (2) Standard Deviation σ = √Variance = √(σ²), (3) For sample: divide by (n-1) not n, (4) Result in same units as data. Why Square Root: (1) Variance uses squared deviations (quadratic units), (2) Square root brings back to original units, (3) Standard deviation more interpretable, (4) Standard for statistical reporting. Numerical Example: (1) Data: 2, 4, 6, 8, 10, (2) Mean = 6, (3) Deviations: -4, -2, 0, 2, 4, (4) Squared: 16, 4, 0, 4, 16, (5) Variance = 40/5 = 8, (6) Standard Deviation = √8 ≈ 2.83. Properties: (1) Always non-negative, (2) Same units as data, (3) Larger spread → larger standard deviation, (4) Can be compared across datasets. Uses: (1) Confidence intervals - ±1 SD ≈ 68% data, (2) Anomaly detection - Values > 3 SD are outliers, (3) Quality control - Process variation, (4) Finance - Risk measurement (volatility). Why Not Other Options: (1) Variance^2 - Would be variance squared, (2) Variance^0.25 - Fourth root, no statistical meaning, (3) Wrong formula doesn't match relationship. Normal Distribution: (1) 68% within ±1 SD, (2) 95% within ±2 SD, (3) 99.7% within ±3 SD, (4) SD defines distribution shape. This is fundamental statistical concept used widely.
98. What type of learning is Naive Bayes?
- Option A: Unsupervised
- Option B: Supervised
- Option C: Reinforcement
- Option D: Semi-supervised
Show hintHide hint
Requires labeled data.
Show answerHide answer
Answer: B. Supervised
Naive Bayes is supervised learning algorithm using labeled training data.
99. ML task speech recognition?
- Option A: Classification
- Option B: Regression
- Option C: Clustering
- Option D: Reinforcement
Show hintHide hint
Predicts word class.
Show answerHide answer
Answer: A. Classification
Speech recognition is classification task predicting word categories.
100. ML task movie rating prediction?
- Option A: Classification
- Option B: Regression
- Option C: Clustering
- Option D: Reinforcement
Show hintHide hint
Continuous values.
Show answerHide answer
Answer: B. Regression
Movie rating prediction is regression predicting continuous values.
101. What is overfitting?
- Option A: Good on both
- Option B: Good training, bad new
- Option C: Bad on both
- Option D: High bias
Show hintHide hint
Memorizes training.
Show answerHide answer
Answer: B. Good training, bad new
Overfitting occurs when model is too complex, memorizing training data including noise.
102. What is fuzzy learning in machine learning?
NEC model set- Option A: A type of learning algorithm that uses fuzzy logic to handle uncertain or imprecise data
- Option B: A learning technique that focuses on training neural networks with fuzzy inputs
- Option C: A method that uses fuzzy inference to make predictions based on labelled data
- Option D: A learning approach that emphasizes the use of fuzzy clustering algorithms
Show hintHide hint
Fuzzy learning deals with uncertainty and imprecision, not just the other technical implementations.
Show answerHide answer
Answer: A. A type of learning algorithm that uses fuzzy logic to handle uncertain or imprecise data
Fuzzy learning is a type of learning algorithm that uses fuzzy logic to handle uncertain or imprecise data. Fuzzy logic vs classical logic: (1) Classical - True or false (binary), (2) Fuzzy - Degrees of truth (0 to 1 continuous), (3) Allows partial truth - Something 70% true, 30% false. Fuzzy sets: (1) Members have degree of membership (0 to 1), (2) Unlike classical sets where membership is binary, (3) Example: temperature 'warm' - could be 25° (0.6 membership), 28° (0.9 membership). Fuzzy learning techniques: (1) Fuzzy rule-based systems - Rules with fuzzy conditions/conclusions, (2) Fuzzy decision trees - Decision trees with fuzzy splits, (3) Fuzzy neural networks - Combine neural nets with fuzzy logic, (4) Fuzzy c-means - Clustering with fuzzy membership. Why fuzzy learning needed: (1) Real-world data is imprecise, (2) Human reasoning is approximate, (3) Some concepts inherently vague, (4) Transitions are gradual not sudden. Advantages: (1) Handles uncertainty naturally, (2) Mimics human reasoning, (3) Works with imprecise data, (4) Interpretable rules. Applications: (1) Control systems - Temperature control, washing machine, (2) Medical diagnosis - Symptoms have fuzzy relationships, (3) Financial - Risk assessment with uncertainty, (4) Image recognition - Fuzzy boundaries between objects. Different from: (1) Probabilistic learning - Uses probability, not fuzzy membership, (2) Bayesian learning - Probability-based inference, (3) Crisp neural networks - Binary True/False. Fuzzy vs probabilistic: (1) Fuzzy represents vagueness - inherent imprecision, (2) Probability represents uncertainty - lack of information. Modern usage: (1) Often combined with other techniques, (2) Explicit fuzzy learning less common, (3) Used in specialized domains (control, decision support), (4) Integrated into neural networks as fuzzy layers. This addresses real-world imprecision.
103. Learning using labelled data is called?
Past question- Option A: Supervised learning
- Option B: Unsupervised learning
- Option C: Reinforcement learning
- Option D: Semi-supervised learning
Show hintHide hint
When training data has correct answers (labels), which learning method uses this?
Show answerHide answer
Answer: A. Supervised learning
Learning using labelled data is called Supervised learning. Supervised Learning Concept: (1) Training data has input-output pairs, (2) Model learns to map inputs to correct outputs, (3) Teacher provides correct answers (labels), (4) Goal - Minimize prediction error. Data Structure: (1) Input features (X) - Independent variables, (2) Output labels (Y) - Correct answers, (3) Training set - Data for learning, (4) Test set - Data for evaluation. Learning Process: (1) Present input-output pair, (2) Model predicts output, (3) Compare with actual output, (4) Adjust model to reduce error. Types of Supervised Learning: (1) Regression - Continuous output (house price), (2) Classification - Discrete output (spam/not spam), (3) Multi-class - Multiple categories (image labels), (4) Multi-label - Multiple outputs per input. Algorithms: (1) Decision Trees - Hierarchical decisions, (2) Support Vector Machines - Optimal boundary finding, (3) Neural Networks - Pattern learning, (4) Regression - Linear/polynomial fitting. Example: (1) Email filter - Labeled spam/not spam emails, (2) Image recognition - Labeled image categories, (3) Medical diagnosis - Labeled patient outcomes, (4) Stock prediction - Historical prices and trends. Advantages: (1) Generally more accurate, (2) Well-defined success metric, (3) Faster convergence, (4) Better generalization. Disadvantages: (1) Requires labeled data, (2) Expensive to obtain labels, (3) Limited to available labels, (4) Errors in labels propagate. vs Other Learning Types: (1) Unsupervised - No labels, find patterns, (2) Reinforcement - Agent learns through rewards, (3) Semi-supervised - Mix of labeled and unlabeled. Data Requirements: (1) Quality labels crucial, (2) Representative sampling needed, (3) Class balance important, (4) Label consistency required. This is the most common machine learning paradigm.
104. What is the function of a fuzzifier in fuzzy logic systems?
Recalled from Jan 2026 exam- Option A: To convert crisp input values into fuzzy sets
- Option B: To convert fuzzy sets into crisp output values
- Option C: To store fuzzy membership values
- Option D: To compare fuzzy rules
Show hintHide hint
In fuzzy logic, we convert precise numbers to fuzzy membership values. What does the fuzzifier do?
Show answerHide answer
Answer: A. To convert crisp input values into fuzzy sets
The function of a fuzzifier in fuzzy logic systems is to convert crisp (precise, numerical) input values into fuzzy sets. A crisp input like '25 degrees' is converted to fuzzy sets like 'warm' and 'cool' with membership values (e.g., 0.6 warm, 0.4 cool). The fuzzifier bridges the gap between the real world (precise measurements) and fuzzy logic (linguistic variables). After fuzzy inference, a defuzzifier converts fuzzy output back to crisp values for system control. Fuzzification is the first step in fuzzy logic processing.
105. Which of the following is an example of unsupervised learning?
Recalled from Jan 2026 exam- Option A: Decision tree learning
- Option B: Support vector machines
- Option C: K-means clustering
- Option D: Neural network classification
Show hintHide hint
Unsupervised learning finds patterns without labeled data. Which is an example?
Show answerHide answer
Answer: C. K-means clustering
K-means clustering is an example of unsupervised learning. K-means finds natural groupings (clusters) in unlabeled data by minimizing within-cluster variance. It requires no labeled training data, only input data points. Decision trees, SVMs, and neural networks for classification are supervised learning methods that require labeled training data. K-means is used for customer segmentation, image compression, and pattern discovery. Other unsupervised learning examples include hierarchical clustering, DBSCAN, and principal component analysis (PCA).
106. Supervised learning uses:
- Option A: Unlabeled data
- Option B: Labeled data
- Option C: No data
- Option D: Reinforcement signals
Show answerHide answer
Answer: B. Labeled data
107. Machine Learning is:
- Option A: The process of manually programming a computer
- Option B: The field of study that gives computers the ability to learn without being explicitly programmed
- Option C: The process of creating expert systems
- Option D: The process of creating robots
Show answerHide answer
Answer: B. The field of study that gives computers the ability to learn without being explicitly programmed
108. Unsupervised learning uses:
- Option A: Labeled data
- Option B: Unlabeled data
- Option C: Reinforcement signals
- Option D: No data
Show answerHide answer
Answer: B. Unlabeled data
109. Decision trees are used for:
- Option A: Clustering
- Option B: Classification and regression
- Option C: Reinforcement learning
- Option D: Unsupervised learning
Show answerHide answer
Answer: B. Classification and regression
110. Reinforcement learning involves:
- Option A: Learning from labeled examples
- Option B: Learning from unlabeled examples
- Option C: Learning from rewards and punishments
- Option D: Learning from expert knowledge
Show answerHide answer
Answer: C. Learning from rewards and punishments
111. The Naive Bayes model assumes:
- Option A: Features are dependent given the class
- Option B: Features are independent given the class
- Option C: Classes are independent given the features
- Option D: Classes and features are independent
Show answerHide answer
Answer: B. Features are independent given the class
112. Fuzzy logic deals with:
- Option A: Binary truth values (true/false)
- Option B: Degrees of truth
- Option C: Only false values
- Option D: Only true values
Show answerHide answer
Answer: B. Degrees of truth
113. Genetic algorithms are inspired by:
- Option A: Neural networks
- Option B: Fuzzy logic
- Option C: Biological evolution
- Option D: Expert systems
Show answerHide answer
Answer: C. Biological evolution
114. A fuzzy inference system:
- Option A: Uses only crisp values
- Option B: Maps inputs to outputs using fuzzy logic
- Option C: Uses only neural networks
- Option D: Uses only genetic algorithms
Show answerHide answer
Answer: B. Maps inputs to outputs using fuzzy logic
115. Genetic algorithm operators include:
- Option A: Selection, crossover, mutation
- Option B: Addition, subtraction, multiplication
- Option C: Input, processing, output
- Option D: Learning, inference, prediction
Show answerHide answer
Answer: A. Selection, crossover, mutation
116. The fitness function in a genetic algorithm:
- Option A: Measures the physical fitness of the algorithm
- Option B: Evaluates how good a solution is
- Option C: Determines the stopping criterion
- Option D: Selects the initial population
Show answerHide answer
Answer: B. Evaluates how good a solution is
9.6 Neural networks
32 questions · ACtE0906
117. What limitation do artificial neural networks have?
Aasadh 2081 exam- Option A: Cannot learn from data
- Option B: Cannot handle complex problems
- Option C: Cannot explain results
- Option D: Cannot be trained
Show hintHide hint
ANNs are often called black boxes.
Show answerHide answer
Answer: C. Cannot explain results
ANNs cannot explain their decision-making process, acting as black boxes despite good predictions.
118. Purpose gradient descent?
- Option A: Maximize
- Option B: Minimize by descent
- Option C: Find maximum
- Option D: Solve linear
Show hintHide hint
Optimization method.
Show answerHide answer
Answer: B. Minimize by descent
Gradient descent minimizes function iteratively moving in steepest descent direction.
119. Sigmoid activation function?
- Option A: σ(x) = 1/(1+e^-x)
- Option B: σ(x) = max(0,x)
- Option C: σ(x) = tanh(x)
- Option D: σ(x) = x
Show hintHide hint
Maps to (0,1).
Show answerHide answer
Answer: A. σ(x) = 1/(1+e^-x)
Sigmoid σ(x) = 1/(1+e^-x) maps inputs to (0,1) creating S-curve.
120. Function classifies 3+ classes?
- Option A: Sigmoid
- Option B: ReLU
- Option C: Softmax
- Option D: Tanh
Show hintHide hint
Multi-class.
Show answerHide answer
Answer: C. Softmax
Softmax function classifies into 3 or more classes.
121. What is ReLU?
- Option A: Linear
- Option B: max(0,x)
- Option C: Sigmoid
- Option D: Tanh
Show hintHide hint
Rectified linear.
Show answerHide answer
Answer: B. max(0,x)
ReLU (Rectified Linear Unit) outputs max(0,x) for activation.
122. Backpropagation direction?
- Option A: Forward source to sink
- Option B: Backward sink to source
- Option C: Backward to hidden
- Option D: Forward to hidden
Show hintHide hint
Error propagation.
Show answerHide answer
Answer: B. Backward sink to source
Backpropagation propagates errors backward from output to input layers.
123. ANN limitation?
- Option A: Cannot learn
- Option B: Cannot handle complexity
- Option C: Cannot explain
- Option D: Cannot be trained
Show hintHide hint
Black box.
Show answerHide answer
Answer: C. Cannot explain
ANNs cannot explain their decision-making process (black box problem).
124. Neural network layer types?
- Option A: Input only
- Option B: Output only
- Option C: Input, hidden, output
- Option D: Hidden, output
Show hintHide hint
Three layer structure.
Show answerHide answer
Answer: C. Input, hidden, output
Neural networks have input layer, hidden layers, and output layer.
125. What is bias in NN?
- Option A: Preference error
- Option B: Constant weight
- Option C: Activation threshold
- Option D: All
Show hintHide hint
Fixed adjustment.
Show answerHide answer
Answer: B. Constant weight
Bias is constant weight added to neuron output for shifting activation.
126. What is weight in NN?
- Option A: Importance
- Option B: Connection strength
- Option C: Learning rate
- Option D: All
Show hintHide hint
Link parameter.
Show answerHide answer
Answer: B. Connection strength
Weights represent connection strength between neurons in network.
127. What determines model complexity?
- Option A: Layers
- Option B: Neurons
- Option C: Weights
- Option D: All
Show hintHide hint
All factors.
Show answerHide answer
Answer: D. All
Number of layers, neurons, and weights determine NN model complexity.
128. Epoch in training?
- Option A: One forward pass
- Option B: Complete dataset pass
- Option C: One neuron update
- Option D: None
Show hintHide hint
Full iteration.
Show answerHide answer
Answer: B. Complete dataset pass
Epoch is one complete pass through entire training dataset.
129. Learning rate purpose?
- Option A: Defines architecture
- Option B: Controls step size
- Option C: Activation function
- Option D: None
Show hintHide hint
Gradient step.
Show answerHide answer
Answer: B. Controls step size
Learning rate controls step size in gradient descent optimization.
130. What is dropout?
- Option A: Removes neurons
- Option B: Reduces overfitting
- Option C: Regularization
- Option D: All
Show hintHide hint
Regularization tech.
Show answerHide answer
Answer: D. All
Dropout removes neurons randomly, reducing overfitting through regularization.
131. Batch size effect?
- Option A: Training stability
- Option B: Memory usage
- Option C: Convergence
- Option D: All
Show hintHide hint
Multiple impacts.
Show answerHide answer
Answer: D. All
Batch size affects training stability, memory, and convergence rate.
132. What is cross-entropy loss?
- Option A: Classification loss
- Option B: Regression loss
- Option C: Distance measure
- Option D: All
Show hintHide hint
Category prediction.
Show answerHide answer
Answer: A. Classification loss
Cross-entropy is loss function for classification tasks.
133. Which neural network architecture is commonly used for processing sequential data, such as time series or natural language?
NEC model set- Option A: Feed-forward neural network (FNN)
- Option B: Self-organizing map (SOM)
- Option C: Radial basis function network (RBFN)
- Option D: Recurrent neural network (RNN)
Show hintHide hint
RNNs have feedback connections to handle sequential data. Which architecture has memory?
Show answerHide answer
Answer: D. Recurrent neural network (RNN)
Recurrent neural network (RNN) is commonly used for processing sequential data like time series and natural language. RNN characteristics: (1) Recurrent connections - Output fed back as input, (2) Memory - Can remember previous inputs, (3) Processes sequences - Handles variable-length inputs, (4) Hidden state - Maintains context. RNN mechanics: (1) At each step t, takes input x(t) and previous hidden state h(t-1), (2) Computes new hidden state h(t) based on both, (3) Produces output y(t), (4) Hidden state acts as memory of sequence. RNN variants: (1) LSTM (Long Short-Term Memory) - Handles long-term dependencies, (2) GRU (Gated Recurrent Unit) - Simplified LSTM, (3) Bidirectional RNN - Processes forward and backward. Why RNN for sequences: (1) Maintains sequence history, (2) Can model dependencies, (3) Variable-length input handling, (4) Weight sharing across time steps. Applications: (1) Machine translation - Sequence-to-sequence, (2) Speech recognition - Temporal acoustic features, (3) Time series prediction - Stock prices, weather, (4) Language modeling - Next word prediction, (5) Text generation. Advantages: (1) Handles variable-length sequences, (2) Captures temporal dependencies, (3) Shared weights reduce parameters. Limitations: (1) Vanishing/exploding gradient problem - Hard to train, (2) LSTM/GRU more complex, (3) Slower than feedforward. Other architectures: (1) FNN - No memory, only static inputs, (2) SOM - Unsupervised clustering, not sequential, (3) RBFN - Local basis functions, not sequential. Modern developments: (1) Transformer architecture - Attention-based, (2) BERT, GPT - Pre-trained language models, (3) Attention mechanisms - Replace RNN in many applications. This is fundamental to natural language and time series processing.
134. If the learning rate is too low, what is likely to happen?
NEC model set- Option A: a) Model converges quickly
- Option B: b) Model diverges
- Option C: c) Model converges very slowly
- Option D: d) Model always overfits
Show hintHide hint
Learning rate controls step size in gradient descent. Too small a step?
Show answerHide answer
Answer: C. c) Model converges very slowly
If the learning rate is too low, the model converges very slowly. Gradient descent takes tiny steps toward optimal weights, requiring many iterations. While low learning rates avoid overshooting, they waste computational resources and time. Conversely, too high a learning rate causes the model to diverge (jump over optimal values). Optimal learning rate balances convergence speed with stability. Learning rate scheduling adaptively adjusts this value during training.
135. What activation function is used in a Hopfield network?
Past question- Option A: ReLU
- Option B: Sigmoid
- Option C: Softmax
- Option D: Sign
Show hintHide hint
Hopfield networks use binary outputs. What function produces binary results?
Show answerHide answer
Answer: D. Sign
The Sign activation function is used in Hopfield networks. Hopfield Network Characteristics: (1) Recurrent neural network, (2) Auto-associative memory, (3) Binary outputs (0 and 1, or -1 and +1), (4) Uses Sign function for binary classification. Sign Function: (1) Output = -1 if input < 0, (2) Output = +1 if input > 0, (3) Produces binary classification, (4) Threshold at zero. Why Sign for Hopfield: (1) Binary memory storage, (2) Convergence to stable states, (3) Implements attractors, (4) Pattern recognition capability. Hopfield Network Operation: (1) Update rule: If sum of weighted inputs > threshold, fire 1, (2) Energy function minimization, (3) Converges to stable patterns, (4) Used for pattern completion. Comparison with Other Functions: (1) ReLU - f(x) = max(0,x), continuous, (2) Sigmoid - f(x) = 1/(1+e^-x), smooth 0-1 output, (3) Softmax - Probabilistic multi-class output, (4) Sign - Binary discrete output. Network Properties: (1) Bidirectional connections (recurrent), (2) Symmetric weights, (3) Diagonal zeros (no self-connections), (4) Can store multiple patterns. Learning Process: (1) Hebb rule for weight learning, (2) Can memorize patterns, (3) Noise tolerance, (4) Limited storage capacity. Applications: (1) Pattern recognition, (2) Content-addressable memory, (3) Optimization problems, (4) Image restoration. Limitations: (1) Local minima (spurious patterns), (2) Limited storage capacity, (3) Slow convergence, (4) Binary restriction. This demonstrates activation function selection for specific network architectures.
136. Which activation function is commonly used in Hopfield neural networks?
Recalled from Jan 2026 exam- Option A: ReLU
- Option B: Sigmoid
- Option C: Sign function
- Option D: Softmax
Show hintHide hint
Hopfield networks produce binary outputs. What activation function enables this?
Show answerHide answer
Answer: C. Sign function
The sign function is the activation function commonly used in Hopfield neural networks. The sign function outputs +1 or -1 (binary values) based on whether the input is positive or negative. Hopfield networks are recurrent neural networks used for pattern recognition and associative memory. The sign function (also called threshold or step function) enables Hopfield networks to converge to stable states that represent stored patterns. ReLU and Sigmoid produce continuous values. Softmax produces probability distributions. The binary nature of the sign function is essential for Hopfield network operation.
137. Artificial Neural Networks are inspired by:
- Option A: Electronic circuits
- Option B: Biological neural networks
- Option C: Computer networks
- Option D: Genetic algorithms
Show answerHide answer
Answer: B. Biological neural networks
138. The McCulloch-Pitts neuron is:
- Option A: A complex neural network
- Option B: A mathematical model of a biological neuron
- Option C: A type of genetic algorithm
- Option D: A type of fuzzy logic
Show answerHide answer
Answer: B. A mathematical model of a biological neuron
139. An activation function in a neural network:
- Option A: Initializes the network
- Option B: Determines the output of a neuron given its inputs
- Option C: Trains the network
- Option D: Selects the network architecture
Show answerHide answer
Answer: B. Determines the output of a neuron given its inputs
140. The perceptron is:
- Option A: A multi-layer neural network
- Option B: A single-layer neural network
- Option C: A type of genetic algorithm
- Option D: A type of fuzzy logic
Show answerHide answer
Answer: B. A single-layer neural network
141. Gradient descent is used to:
- Option A: Initialize the network
- Option B: Minimize the error function
- Option C: Select the network architecture
- Option D: Determine the number of layers
Show answerHide answer
Answer: B. Minimize the error function
142. The learning rate in neural networks:
- Option A: Determines how quickly the network learns
- Option B: Is always set to 1
- Option C: Is the same as the activation function
- Option D: Is the number of neurons
Show answerHide answer
Answer: A. Determines how quickly the network learns
143. The delta rule is used for:
- Option A: Training multi-layer networks
- Option B: Training single-layer networks
- Option C: Selecting the network architecture
- Option D: Initializing the network
Show answerHide answer
Answer: B. Training single-layer networks
144. The Adaline network is:
- Option A: A multi-layer neural network
- Option B: A single-layer neural network with a linear activation function
- Option C: A type of genetic algorithm
- Option D: A type of fuzzy logic
Show answerHide answer
Answer: B. A single-layer neural network with a linear activation function
145. Hebbian learning is based on the principle:
- Option A: Neurons that fire together, wire together
- Option B: Neurons that fire separately, wire together
- Option C: Neurons that fire together, wire separately
- Option D: Neurons that fire separately, wire separately
Show answerHide answer
Answer: A. Neurons that fire together, wire together
146. A multilayer perceptron (MLP) has:
- Option A: Only an input layer
- Option B: Input and output layers only
- Option C: Input, hidden, and output layers
- Option D: Only hidden layers
Show answerHide answer
Answer: C. Input, hidden, and output layers
147. The backpropagation algorithm is used to:
- Option A: Train single-layer networks
- Option B: Train multi-layer networks
- Option C: Select the network architecture
- Option D: Initialize the network
Show answerHide answer
Answer: B. Train multi-layer networks
148. A Hopfield network is:
- Option A: A feedforward network
- Option B: A recurrent network
- Option C: A single-layer network
- Option D: A type of genetic algorithm
Show answerHide answer
Answer: B. A recurrent network