Artificial Intelligence
Introduction
Explore how computer systems represent knowledge, search for solutions and learn from data.
200 AI MCQs available: Seven practice sets with four options, correct answers and explanations. Questions 31–60 · 61–90 · 91–120 · 121–150 · 151–175 · 176–200. The first 30 questions appear below the study overview.
Topic-Wise Overview
AI Foundations
AI applications, intelligent systems and knowledge representation
Search and Planning
Uninformed and informed search, heuristics and local search
Games and Decisions
Minimax and alpha-beta pruning
Learning and Language
Learning from examples, neural networks and natural language processing
Practical Exploration
Illustrative AI methods using Python and applied case studies
Study Guidance
Start with the core definitions, follow practical examples and test your understanding with the 200 topic-wise MCQs and explained answers provided below. Additional short-question collections and step-by-step worked solutions will be developed progressively.
Explore Other Subjects
Browse Computer Science subjects
Artificial Intelligence MCQs: Set 1 (Questions 1–30)
Choose an answer, then reveal the correct option and explanation. This is the first set toward a 150–200 question bank.
Question 1. What is the main aim of artificial intelligence?
- To make all computers physically larger
- To eliminate every algorithm
- To store only numerical data
- To build systems that perform tasks requiring aspects of human intelligence
Show correct answer and explanation
Correct answer: D. To build systems that perform tasks requiring aspects of human intelligence
AI develops computational systems that can perceive, reason, learn or act in ways useful for intelligent tasks.
Question 2. Which is an example of narrow AI?
- A system that solves every intellectual task
- A machine with unrestricted human-level capabilities
- A chess-playing program
- A device without software
Show correct answer and explanation
Correct answer: C. A chess-playing program
A chess program is designed for a specific task rather than general intelligence.
Question 3. In an intelligent agent, sensors are primarily used to:
- Perceive the environment
- Execute actions
- Store the entire internet
- Replace the performance measure
Show correct answer and explanation
Correct answer: A. Perceive the environment
Sensors provide observations or percepts about the environment.
Question 4. An actuator allows an agent to:
- Receive percepts only
- Define a database schema
- Compute probabilities without data
- Act on its environment
Show correct answer and explanation
Correct answer: D. Act on its environment
Actuators implement actions chosen by an agent.
Question 5. A rational agent selects actions to:
- Maximize expected performance based on available information
- Always choose the shortest-looking action
- Ignore its percept history
- Avoid using any model
Show correct answer and explanation
Correct answer: A. Maximize expected performance based on available information
Rationality concerns expected performance given the percepts, knowledge and available actions.
Question 6. Which task environment is fully observable?
- The agent receives no percepts
- An agent can observe all relevant aspects of the current state
- Every action has a random outcome
- The agent cannot distinguish states
Show correct answer and explanation
Correct answer: B. An agent can observe all relevant aspects of the current state
Full observability means sensors provide all information relevant to choosing an action at a given time.
Question 7. A deterministic environment is one in which:
- The next state is fixed by the current state and action
- Actions have no possible outcomes
- Every action is equally likely
- The agent has no goal
Show correct answer and explanation
Correct answer: A. The next state is fixed by the current state and action
Deterministic transition rules uniquely determine the next state from the current state and action.
Question 8. Which search method uses a FIFO frontier?
- Depth-first search
- Breadth-first search
- Greedy best-first search
- Hill climbing
Show correct answer and explanation
Correct answer: B. Breadth-first search
Breadth-first search expands nodes in first-in, first-out order.
Question 9. Which search method typically uses a LIFO stack?
- Depth-first search
- Uniform-cost search
- Breadth-first search
- A* with a priority queue
Show correct answer and explanation
Correct answer: A. Depth-first search
Depth-first search follows the most recently discovered frontier node first.
Question 10. Uniform-cost search selects the frontier node with the:
- Largest depth
- Smallest path cost so far
- Highest heuristic value
- Most children
Show correct answer and explanation
Correct answer: B. Smallest path cost so far
Uniform-cost search expands the node with minimum accumulated cost g(n).
Question 11. A heuristic function h(n) commonly estimates:
- The number of stored variables
- The remaining cost from node n to a goal
- The number of computers
- The exact search time in seconds
Show correct answer and explanation
Correct answer: B. The remaining cost from node n to a goal
A heuristic guides search by estimating cost from the current node to a goal.
Question 12. The evaluation function for standard A* search is:
- f(n) = g(n) − h(n)
- f(n) = g(n) × h(n)
- f(n) = h(n) / g(n)
- f(n) = g(n) + h(n)
Show correct answer and explanation
Correct answer: D. f(n) = g(n) + h(n)
A* combines known path cost g(n) with estimated remaining cost h(n).
Question 13. An admissible heuristic is one that:
- Always overestimates goal cost
- Has the same value at every node
- Never overestimates true remaining optimal cost
- Always equals zero at every node
Show correct answer and explanation
Correct answer: C. Never overestimates true remaining optimal cost
For a minimization problem, admissibility means h(n) does not exceed the true optimal remaining cost.
Question 14. Which algorithm is designed for adversarial two-player games?
- K-means
- Apriori
- Dijkstra’s algorithm
- Minimax
Show correct answer and explanation
Correct answer: D. Minimax
Minimax evaluates choices assuming that an opponent chooses moves to minimize the first player’s utility.
Question 15. Alpha-beta pruning is used to:
- Change the rules of a game
- Train a classifier
- Convert text to speech
- Avoid evaluating branches that cannot affect the minimax decision
Show correct answer and explanation
Correct answer: D. Avoid evaluating branches that cannot affect the minimax decision
Alpha-beta bounds can eliminate game-tree branches without changing the minimax result.
Question 16. In propositional logic, P ∧ Q is true when:
- At least one proposition is true
- Exactly one proposition is false
- Both propositions are false
- Both P and Q are true
Show correct answer and explanation
Correct answer: D. Both P and Q are true
Conjunction requires both constituent propositions to be true.
Question 17. Which connective represents logical implication?
- P → Q
- P ∧ Q
- P ∨ Q
- ¬P
Show correct answer and explanation
Correct answer: A. P → Q
The symbol → represents ‘if P, then Q’.
Question 18. A knowledge base in an AI system stores:
- Represented facts and rules used for reasoning
- Only executable machine instructions
- Only image pixels
- Physical sensor hardware
Show correct answer and explanation
Correct answer: A. Represented facts and rules used for reasoning
Knowledge bases contain formal representations that support inference.
Question 19. Which inference rule derives Q from P and P → Q?
- Modus ponens
- De Morgan’s law
- Commutativity
- Resolution by itself
Show correct answer and explanation
Correct answer: A. Modus ponens
Modus ponens permits inferring Q when P and the implication P → Q are known.
Question 20. In supervised learning, training examples usually include:
- Only unlabeled inputs
- Inputs paired with target labels or values
- Only random guesses
- Only model weights
Show correct answer and explanation
Correct answer: B. Inputs paired with target labels or values
Supervised learning uses labeled input–target examples to learn a predictive mapping.
Question 21. Which task is a classification problem?
- Predicting tomorrow’s exact temperature
- Estimating a house price
- Assigning an email to spam or not spam
- Calculating a numerical average
Show correct answer and explanation
Correct answer: C. Assigning an email to spam or not spam
Spam detection predicts a category, making it a classification task.
Question 22. Which task is a regression problem?
- Assigning a news article to a category
- Predicting a continuous house price
- Grouping unlabeled customers
- Checking a Boolean formula
Show correct answer and explanation
Correct answer: B. Predicting a continuous house price
Regression predicts a numerical quantity, such as a house price.
Question 23. Unsupervised clustering is primarily used to:
- Group similar unlabeled observations
- Assign known target labels during training
- Guarantee causal explanations
- Solve every search problem
Show correct answer and explanation
Correct answer: A. Group similar unlabeled observations
Clustering seeks structure in data without requiring predefined class labels.
Question 24. Overfitting occurs when a model:
- Cannot fit any training data
- Contains no parameters
- Performs well on training data but generalizes poorly
- Uses a test set correctly
Show correct answer and explanation
Correct answer: C. Performs well on training data but generalizes poorly
An overfit model learns patterns or noise specific to training data that do not transfer well.
Question 25. Why is a test set kept separate from model training?
- To increase the number of labels
- To guarantee perfect predictions
- To remove all bias automatically
- To estimate performance on unseen data
Show correct answer and explanation
Correct answer: D. To estimate performance on unseen data
Held-out test data provide a more credible estimate of generalization when not used to tune the model.
Question 26. In binary classification, a true positive means:
- Positive was predicted but actual was negative
- Positive was predicted and the actual class was positive
- Negative was predicted but actual was positive
- Negative was predicted and actual was negative
Show correct answer and explanation
Correct answer: B. Positive was predicted and the actual class was positive
True positives are correctly predicted members of the positive class.
Question 27. Precision is defined as:
- TP / (TP + FN)
- TN / (TN + FP)
- TP / (TP + FP)
- (TP + TN) / TP
Show correct answer and explanation
Correct answer: C. TP / (TP + FP)
Precision is the fraction of predicted positives that are actually positive, provided the denominator is nonzero.
Question 28. Recall is defined as:
- TP / (TP + FP)
- FP / (FP + TN)
- TN / (TN + FN)
- TP / (TP + FN)
Show correct answer and explanation
Correct answer: D. TP / (TP + FN)
Recall measures the proportion of actual positives successfully identified.
Question 29. The main purpose of an activation function in a neural network is to:
- Ensure all weights are zero
- Replace the training dataset
- Provide nonlinearity in the network’s computation
- Remove every prediction error
Show correct answer and explanation
Correct answer: C. Provide nonlinearity in the network’s computation
Nonlinear activation functions allow multilayer networks to represent nonlinear relationships.
Question 30. Natural language processing primarily concerns:
- Only computer hardware design
- Mechanical motion planning
- Database storage capacity
- Human language text and speech
Show correct answer and explanation
Correct answer: D. Human language text and speech
NLP develops methods for understanding, analyzing and generating human language.
Artificial Intelligence MCQs: Set 2 (Questions 31–60)
Choose your answer and reveal the explanation. Study each question before moving to the next.
Question 31. In reinforcement learning, an agent primarily learns through:
- Labeled examples for every action
- Only prewritten logical rules
- Rewards received from interactions
- Deleting training data
Show correct answer and explanation
Correct answer: C. Rewards received from interactions
An agent uses reward feedback from interactions to learn a policy for future actions.
Question 32. What is a policy in reinforcement learning?
- A list of target labels
- A physical sensor
- A mapping from states to actions
- The number of network layers
Show correct answer and explanation
Correct answer: C. A mapping from states to actions
A policy specifies the action to select in each state, possibly probabilistically.
Question 33. The exploration–exploitation tradeoff involves choosing between:
- Increasing memory and reducing power
- Trying less-known actions and using currently promising actions
- Classification and compression
- Training and deleting data
Show correct answer and explanation
Correct answer: B. Trying less-known actions and using currently promising actions
Exploration gathers information while exploitation uses current knowledge to gain reward.
Question 34. A decision tree classifier makes predictions using:
- Only unlabeled samples
- An array without branches
- A necessarily diagonal matrix
- A hierarchy of feature-based tests
Show correct answer and explanation
Correct answer: D. A hierarchy of feature-based tests
The input follows branches determined by feature tests until reaching a prediction.
Question 35. The k-nearest neighbors classifier commonly predicts using:
- Labels of nearby training examples
- An adversarial game tree
- Only the average of all labels
- A hand-written grammar
Show correct answer and explanation
Correct answer: A. Labels of nearby training examples
KNN uses nearby labeled examples according to a chosen distance metric.
Question 36. What is the Euclidean distance from (0, 0) to (3, 4)?
- 5
- 4
- 7
- 25
Show correct answer and explanation
Correct answer: A. 5
The distance is the square root of 3 squared plus 4 squared, or 5.
Question 37. A confusion matrix summarizes:
- Randomly generated model weights
- Website passwords
- Predicted and actual classification outcomes
- Shortest paths in a network
Show correct answer and explanation
Correct answer: C. Predicted and actual classification outcomes
Each cell counts predictions for a particular actual class and predicted class.
Question 38. In binary classification, a false negative occurs when:
- The model predicts positive and the actual class is positive
- The model predicts positive but the actual class is negative
- The model predicts negative but the actual class is positive
- The model predicts negative and the actual class is negative
Show correct answer and explanation
Correct answer: C. The model predicts negative but the actual class is positive
A false negative is a positive case missed by the classifier.
Question 39. Which is a typical use of a validation set?
- Selecting hyperparameters
- Reporting an untouched final test score
- Replacing all training observations
- Guaranteeing zero model error
Show correct answer and explanation
Correct answer: A. Selecting hyperparameters
Validation data help compare model settings without using the final held-out test set.
Question 40. Gradient descent adjusts parameters in the direction of:
- The positive gradient of the loss
- The negative gradient of a loss function
- A random label for each example
- The largest feature value
Show correct answer and explanation
Correct answer: B. The negative gradient of a loss function
For a sufficiently small learning rate, stepping along the negative gradient tends to reduce a differentiable loss locally.
Question 41. What does the learning rate control in gradient descent?
- The number of class labels
- The number of input records
- The size of parameter updates
- The meaning of precision
Show correct answer and explanation
Correct answer: C. The size of parameter updates
The learning rate scales the update step based on the gradient.
Question 42. A loss function is used to:
- Measure prediction error or model mismatch
- Convert sensors into actuators
- List all search nodes
- Guarantee an unbiased dataset
Show correct answer and explanation
Correct answer: A. Measure prediction error or model mismatch
Training minimizes an objective measuring how far model predictions are from desired outcomes.
Question 43. In a neural network, weights primarily:
- Specify the number of dataset rows
- Store the testing date
- Prevent all overfitting
- Scale contributions from inputs to units
Show correct answer and explanation
Correct answer: D. Scale contributions from inputs to units
Weights determine the strength of connections used to compute activations.
Question 44. Backpropagation is used to:
- Sort examples alphabetically
- Find the shortest path in any graph
- Create labels without human input
- Compute gradients of neural-network loss with respect to parameters
Show correct answer and explanation
Correct answer: D. Compute gradients of neural-network loss with respect to parameters
Backpropagation applies the chain rule to calculate gradients efficiently.
Question 45. Which function maps a real number to a value strictly between 0 and 1?
- Identity function
- Square function
- Sigmoid function
- Absolute-value function
Show correct answer and explanation
Correct answer: C. Sigmoid function
The logistic sigmoid is 1/(1+e^(-x)), which lies strictly between zero and one for any finite real x.
Question 46. A convolutional neural network is especially suited to:
- Only solving symbolic equations
- Replacing all kinds of search
- Processing image-like spatial data
- Guaranteeing perfect forecasts
Show correct answer and explanation
Correct answer: C. Processing image-like spatial data
Convolutions exploit local spatial patterns and shared filters, which are useful for image tasks.
Question 47. What is the role of tokenization in natural language processing?
- Encrypting network traffic
- Training without data
- Breaking text into units such as words or subwords
- Finding a shortest road route
Show correct answer and explanation
Correct answer: C. Breaking text into units such as words or subwords
Tokenization segments text into units that a language-processing system can handle.
Question 48. An embedding represents a word or token as:
- A physical circuit board
- A binary class label only
- A numerical vector
- A fixed-length handwritten sentence
Show correct answer and explanation
Correct answer: C. A numerical vector
Embeddings map tokens into numeric vector spaces used by models.
Question 49. In machine translation, the input and output are generally:
- Texts in different languages
- An image and a motor signal
- Two physical temperatures
- Only file names
Show correct answer and explanation
Correct answer: A. Texts in different languages
Machine translation maps text in a source language to text in a target language.
Question 50. Which mechanism lets a transformer model weigh the relevance of different input tokens?
- Attention
- Bubble sort
- Binary search
- Alpha-beta pruning
Show correct answer and explanation
Correct answer: A. Attention
Attention computes context-dependent weights over token representations.
Question 51. A generative AI model is designed to:
- Store only exact copies of every training record
- Remove the need to evaluate outputs
- Guarantee factual correctness
- Produce new content based on learned patterns
Show correct answer and explanation
Correct answer: D. Produce new content based on learned patterns
Generative models create outputs such as text, images or audio conditioned on learned distributions and prompts.
Question 52. An AI hallucination refers to:
- A computer overheating
- A camera losing power
- A successful proof verified independently
- An output that presents unsupported or false information as though it were valid
Show correct answer and explanation
Correct answer: D. An output that presents unsupported or false information as though it were valid
A generated statement can sound confident yet be unsupported or incorrect.
Question 53. Which practice helps evaluate fairness in a classification system?
- Compare relevant error rates across affected groups
- Use only overall accuracy
- Ignore missing data
- Remove all performance tests
Show correct answer and explanation
Correct answer: A. Compare relevant error rates across affected groups
Examining subgroup performance can reveal disparities hidden by aggregate metrics.
Question 54. Data leakage occurs when:
- Data are stored in a database
- A model receives legitimate training labels
- An experiment uses a separate test set correctly
- Information unavailable at prediction time improperly influences training or evaluation
Show correct answer and explanation
Correct answer: D. Information unavailable at prediction time improperly influences training or evaluation
Leakage can make estimated performance unrealistically high by revealing information that should not be available.
Question 55. A common privacy risk in AI development is:
- Exposing personal details from training or user data
- Using numerical matrices
- Splitting a dataset for testing
- Computing a mean
Show correct answer and explanation
Correct answer: A. Exposing personal details from training or user data
Sensitive data can be exposed through collection, storage, outputs or model behavior.
Question 56. In graph search, a cycle can cause difficulty because:
- All graphs are trees
- Every edge has negative cost
- Repeated states may be revisited indefinitely without safeguards
- No state has neighbors
Show correct answer and explanation
Correct answer: C. Repeated states may be revisited indefinitely without safeguards
Cycle detection or a visited-state mechanism can prevent unproductive repeated expansions.
Question 57. Which search strategy uses h(n) alone to prioritize frontier nodes?
- Uniform-cost search
- Breadth-first search
- Depth-first search
- Greedy best-first search
Show correct answer and explanation
Correct answer: D. Greedy best-first search
Greedy best-first search prioritizes the estimated remaining cost h(n), without directly accounting for accumulated cost.
Question 58. A consistent heuristic h satisfies, for every edge from n to n’ with cost c:
- h(n) > c + h(n’)
- h(n) ≤ c + h(n’)
- h(n) = 2c for every edge
- h(n) is always negative
Show correct answer and explanation
Correct answer: B. h(n) ≤ c + h(n’)
Consistency is the triangle inequality for heuristic estimates along an edge; goal heuristics are usually set to zero.
Question 59. If events A and B are independent, then P(A ∩ B) equals:
- P(A)P(B)
- P(A)+P(B)
- P(A)/P(B)
- 1−P(A)
Show correct answer and explanation
Correct answer: A. P(A)P(B)
For independent events the probability that both occur is the product of their probabilities.
Question 60. Which statement correctly describes Bayes’ theorem when P(B)>0?
- P(A|B)=P(B|A)P(A)/P(B)
- P(A|B)=P(A)+P(B)
- P(A|B)=P(B)/P(A)
- P(A|B)=1−P(B|A)
Show correct answer and explanation
Correct answer: A. P(A|B)=P(B|A)P(A)/P(B)
Bayes’ theorem relates a posterior conditional probability to likelihood, prior and evidence.
Artificial Intelligence MCQs: Set 3 (Questions 61–90)
Study each question, select your answer, and reveal the correct option with a concise explanation.
Question 61. Which distribution models successes in a fixed number of independent Bernoulli trials?
- Exponential
- Binomial
- Continuous uniform
- Cauchy
Show correct answer and explanation
Correct answer: B. Binomial
A binomial variable counts successes across a fixed number of independent trials with a common success probability.
Question 62. What is the expected value of a Bernoulli variable with success probability p?
- 1−p
- p²
- 1/p
- p
Show correct answer and explanation
Correct answer: D. p
The variable is one with probability p and zero otherwise, so its expectation is p.
Question 63. What is the probability of rolling a number greater than 4 on a fair six-sided die?
- 1/3
- 1/6
- 1/2
- 2/3
Show correct answer and explanation
Correct answer: A. 1/3
Outcomes 5 and 6 qualify, so the probability is 2/6 = 1/3.
Question 64. What does P(A|B) denote?
- Probability of A given B
- Probability of B given A
- Probability of A plus B
- Probability that A is impossible
Show correct answer and explanation
Correct answer: A. Probability of A given B
Conditional probability is the probability of A when B is known to occur, provided P(B) > 0.
Question 65. In a Bayesian network, nodes represent:
- Only computers
- Program keywords
- File folders
- Random variables
Show correct answer and explanation
Correct answer: D. Random variables
Nodes denote random variables, and directed edges encode probabilistic dependencies.
Question 66. The graph underlying a Bayesian network must be:
- A complete undirected graph
- A graph with directed cycles
- A directed acyclic graph
- A single path
Show correct answer and explanation
Correct answer: C. A directed acyclic graph
Bayesian networks use directed acyclic graphs (DAGs).
Question 67. Monte Carlo methods commonly estimate quantities by:
- Using random samples
- Sorting only
- Deleting observations
- Applying minimax
Show correct answer and explanation
Correct answer: A. Using random samples
Monte Carlo estimation uses random sampling to approximate numerical quantities.
Question 68. Shannon entropy measures:
- Processor frequency
- Number of labels only
- Uncertainty in a probability distribution
- Physical memory size
Show correct answer and explanation
Correct answer: C. Uncertainty in a probability distribution
Entropy quantifies uncertainty in a probability distribution.
Question 69. What is the entropy of a fair binary outcome, in bits?
- 0
- 0.5
- 2
- 1
Show correct answer and explanation
Correct answer: D. 1
Using −Σp log₂p with two probabilities of 1/2 gives 1 bit.
Question 70. Information gain in decision trees usually measures:
- Training duration
- Entropy reduction from a split
- Maximum tree depth only
- Number of features deleted
Show correct answer and explanation
Correct answer: B. Entropy reduction from a split
Information gain is parent entropy minus the weighted average entropy after splitting.
Question 71. Which technique is used to identify named people, locations, or organizations in text?
- Pathfinding
- Image sharpening
- Named entity recognition
- Gradient clipping
Show correct answer and explanation
Correct answer: C. Named entity recognition
Named entity recognition identifies and classifies mentions of entities in language.
Question 72. What is sentiment analysis most directly concerned with?
- Determining expressed opinion or emotional polarity
- Counting graph edges
- Finding a minimum spanning tree
- Choosing a CPU
Show correct answer and explanation
Correct answer: A. Determining expressed opinion or emotional polarity
Sentiment analysis estimates attitudes or polarity conveyed by text.
Question 73. A language model commonly estimates:
- Exact future economic events
- Probabilities of token sequences
- Circuit resistance only
- The number of sensors
Show correct answer and explanation
Correct answer: B. Probabilities of token sequences
Language models assign probabilities to tokens or sequences in a linguistic context.
Question 74. What is a prompt in a generative AI application?
- The model’s physical processor
- A guarantee of accuracy
- A password encryption algorithm
- Input instructions or context supplied to a model
Show correct answer and explanation
Correct answer: D. Input instructions or context supplied to a model
A prompt provides context or instructions that condition generated output.
Question 75. Retrieval-augmented generation typically combines:
- External document retrieval with generation
- Only sorting and filtering
- Only compression and encryption
- Breadth-first and depth-first search
Show correct answer and explanation
Correct answer: A. External document retrieval with generation
RAG retrieves relevant source material and passes it as context to a generative model.
Question 76. A common reason to cite retrieved sources in an AI answer is to:
- Guarantee zero errors
- Avoid all training
- Allow readers to inspect supporting evidence
- Increase parameter count
Show correct answer and explanation
Correct answer: C. Allow readers to inspect supporting evidence
Citations let readers check source support; they do not by themselves guarantee truth.
Question 77. Which of these is an example of adversarial input for an image classifier?
- A carefully altered image intended to cause misclassification
- A properly labeled training image
- An ordinary validation split
- A larger monitor
Show correct answer and explanation
Correct answer: A. A carefully altered image intended to cause misclassification
Adversarial examples deliberately perturb inputs to induce incorrect predictions.
Question 78. The main role of regularization in machine learning is to:
- Discourage overly complex solutions and improve generalization
- Ensure training accuracy is exactly 100%
- Remove the need for test data
- Make features identical
Show correct answer and explanation
Correct answer: A. Discourage overly complex solutions and improve generalization
Regularization penalizes or constrains model complexity to reduce overfitting risk.
Question 79. In L2 regularization, the penalty is based on:
- The sum of class labels
- Only prediction count
- The sum of squared parameter values
- A graph’s vertex degrees
Show correct answer and explanation
Correct answer: C. The sum of squared parameter values
L2 regularization typically adds a coefficient times the sum of squared weights to the loss.
Question 80. Dropout in neural-network training randomly:
- Deletes all test examples
- Deactivates selected units during training
- Changes the target labels permanently
- Replaces optimization with search
Show correct answer and explanation
Correct answer: B. Deactivates selected units during training
Dropout masks selected activations during training and can reduce reliance on particular units.
Question 81. Which metric uses the harmonic mean of precision and recall?
- Accuracy
- F1 score
- Mean squared error
- Entropy
Show correct answer and explanation
Correct answer: B. F1 score
F1 equals 2PR/(P+R) when the denominator is nonzero.
Question 82. A receiver operating characteristic (ROC) curve plots:
- Training loss against epoch only
- Precision against model size
- Entropy against memory
- True-positive rate against false-positive rate
Show correct answer and explanation
Correct answer: D. True-positive rate against false-positive rate
The ROC curve varies the decision threshold and plots sensitivity versus false-positive rate.
Question 83. What is class imbalance in a classification dataset?
- Some classes have many more examples than others
- Each class has exactly equal examples
- The inputs have different units
- All predictions are correct
Show correct answer and explanation
Correct answer: A. Some classes have many more examples than others
Class imbalance occurs when class frequencies differ substantially.
Question 84. Which method is commonly used to partition data into multiple evaluation folds?
- Alpha-beta pruning
- Tokenization
- K-fold cross-validation
- A* search
Show correct answer and explanation
Correct answer: C. K-fold cross-validation
K-fold cross-validation trains and evaluates repeatedly using different held-out partitions.
Question 85. A feature in machine learning is:
- An input attribute used to make predictions
- The final accuracy score
- The only possible output label
- The duration of training
Show correct answer and explanation
Correct answer: A. An input attribute used to make predictions
Features are variables or representations that provide information to a predictive model.
Question 86. Feature scaling can be useful because:
- It always makes data unbiased
- Features with very different numeric ranges can affect some algorithms disproportionately
- It guarantees perfect classification
- It eliminates the test set
Show correct answer and explanation
Correct answer: B. Features with very different numeric ranges can affect some algorithms disproportionately
Distance-based and gradient-based methods can be sensitive to differing input scales.
Question 87. In principal component analysis (PCA), the first principal component maximizes:
- Classification accuracy for every dataset
- Number of labels
- Nonlinearity of a neural network
- Variance of projected centered data among unit directions
Show correct answer and explanation
Correct answer: D. Variance of projected centered data among unit directions
The first principal component is the direction of greatest sample variance in centered data.
Question 88. Which algorithm divides observations into k clusters by iteratively updating centroids?
- Minimax
- A*
- Naive Bayes
- K-means
Show correct answer and explanation
Correct answer: D. K-means
K-means alternates assigning observations to nearest centroids and recomputing cluster means.
Question 89. In an AI system, explainability is concerned with:
- Adding unnecessary parameters
- Hiding training limitations
- Eliminating privacy safeguards
- Making model decisions or behavior understandable
Show correct answer and explanation
Correct answer: D. Making model decisions or behavior understandable
Explainability aims to communicate reasons, influential factors or mechanisms behind outputs.
Question 90. Human oversight is especially important for high-stakes AI because:
- All AI outputs are guaranteed correct
- Model errors can have consequential real-world effects
- Human review always removes every risk
- Testing is unnecessary
Show correct answer and explanation
Correct answer: B. Model errors can have consequential real-world effects
High-stakes uses need appropriate review, evaluation and avenues to challenge or correct consequential decisions.
Artificial Intelligence MCQs: Set 4 (Questions 91–120)
Study each question, then reveal the correct answer and a short explanation.
Question 91. In classical planning, a goal test determines whether:
- All actions have identical costs
- A heuristic is always zero
- The environment contains no uncertainty
- The current state satisfies the desired conditions
Show correct answer and explanation
Correct answer: D. The current state satisfies the desired conditions
A goal test checks whether the current state meets the specified goal conditions.
Question 92. A planning action’s preconditions describe:
- Only the cost of searching
- The final test accuracy
- The number of neurons
- Conditions that must hold for the action to be applicable
Show correct answer and explanation
Correct answer: D. Conditions that must hold for the action to be applicable
Preconditions specify what must be true before an action can be executed.
Question 93. In a state-space search problem, a successor function:
- Measures only network bandwidth
- Always returns the goal state
- Generates states reachable through applicable actions
- Labels all training data
Show correct answer and explanation
Correct answer: C. Generates states reachable through applicable actions
A successor function specifies possible next states from the current state.
Question 94. A goal-based agent differs from a simple reflex agent mainly because it:
- Never perceives its surroundings
- Considers desired future states when selecting actions
- Has no action choices
- Must use supervised learning
Show correct answer and explanation
Correct answer: B. Considers desired future states when selecting actions
Goal-based agents evaluate actions in terms of achieving explicitly represented goals.
Question 95. What is an important limitation of hill climbing?
- It always explores every state
- It requires a labeled dataset
- It guarantees a globally optimal result
- It can get trapped at local optima or plateaus
Show correct answer and explanation
Correct answer: D. It can get trapped at local optima or plateaus
Hill climbing uses local improvements and may stop before finding the global optimum.
Question 96. Simulated annealing sometimes accepts a worse move mainly to:
- Ensure every move is optimal
- Remove randomization entirely
- Help escape local optima during search
- Convert a graph into a tree
Show correct answer and explanation
Correct answer: C. Help escape local optima during search
Accepting occasional worse moves can help search move beyond local optima.
Question 97. Which property means a search algorithm finds a solution whenever one exists under stated assumptions?
- Consistency of a dataset
- Precision
- Completeness
- Classification
Show correct answer and explanation
Correct answer: C. Completeness
Completeness refers to eventually finding a solution when one exists, within the algorithm’s assumptions.
Question 98. What does optimality mean for a search algorithm?
- It always uses the least memory
- It returns a least-cost solution under the stated cost model
- It never explores unnecessary states
- It guarantees zero computation time
Show correct answer and explanation
Correct answer: B. It returns a least-cost solution under the stated cost model
An optimal search algorithm finds a solution with minimum total path cost.
Question 99. In constraint satisfaction problems (CSPs), a variable domain is:
- Only the solution cost
- A list of output images
- The set of values the variable may take
- The number of search algorithms
Show correct answer and explanation
Correct answer: C. The set of values the variable may take
A CSP has variables, their possible values, and constraints restricting allowable combinations.
Question 100. A solution to a constraint satisfaction problem must:
- Assign every variable a value that satisfies all constraints
- Assign the same value to all variables
- Minimize the number of variables regardless of constraints
- Ignore domain restrictions
Show correct answer and explanation
Correct answer: A. Assign every variable a value that satisfies all constraints
A complete valid assignment must satisfy each constraint.
Question 101. The minimum remaining values heuristic selects the variable with:
- The fewest currently legal values
- The most expensive domain values
- The largest numerical identifier
- The least important constraint
Show correct answer and explanation
Correct answer: A. The fewest currently legal values
MRV prioritizes the most constrained unassigned variable.
Question 102. Arc consistency in a binary CSP requires that:
- All variables have equal domains
- Every constraint is an equality
- Every value in one variable’s domain has supporting values in each neighboring variable’s domain
- No variable can be assigned
Show correct answer and explanation
Correct answer: C. Every value in one variable’s domain has supporting values in each neighboring variable’s domain
For each directed constraint arc, every remaining value must have some compatible value in the neighboring domain.
Question 103. Forward checking after a CSP assignment typically:
- Deletes all constraints
- Removes inconsistent values from neighboring unassigned variables’ domains
- Assigns every remaining variable randomly
- Calculates classification recall
Show correct answer and explanation
Correct answer: B. Removes inconsistent values from neighboring unassigned variables’ domains
Forward checking prunes values that conflict with the latest assignment.
Question 104. A Markov decision process (MDP) is commonly specified using:
- Only features and class labels
- States, actions, transition probabilities, rewards and a decision horizon or discount
- Only a sorted list of integers
- Only an image and a caption
Show correct answer and explanation
Correct answer: B. States, actions, transition probabilities, rewards and a decision horizon or discount
An MDP models sequential decision making with stochastic transitions and reward feedback.
Question 105. The Markov property means that:
- Every action is deterministic
- The agent remembers no information
- The future state distribution depends on the current state and action rather than the complete past, when the state is sufficient
- Rewards must be positive
Show correct answer and explanation
Correct answer: C. The future state distribution depends on the current state and action rather than the complete past, when the state is sufficient
A suitably defined state captures information needed to determine next-state probabilities.
Question 106. In an MDP, a value function commonly represents:
- The number of inputs in a dataset
- A word’s grammatical category
- Expected cumulative reward under a policy
- A network’s clock speed
Show correct answer and explanation
Correct answer: C. Expected cumulative reward under a policy
A value function evaluates expected accumulated rewards from a state under a specified policy.
Question 107. Q-learning estimates:
- Only the marginal probability of a word
- Action values for state–action pairs
- The Euclidean norm of every vector
- The number of game players
Show correct answer and explanation
Correct answer: B. Action values for state–action pairs
Q-learning learns estimates of expected discounted return for choosing actions in states.
Question 108. In a discounted reward model, a discount factor γ between 0 and 1:
- Makes all rewards negative
- Changes state labels into classes
- Eliminates exploration
- Reduces the relative weight of rewards further in the future
Show correct answer and explanation
Correct answer: D. Reduces the relative weight of rewards further in the future
The return weights rewards received t steps later by powers of γ.
Question 109. A partially observable Markov decision process (POMDP) requires an agent to reason about:
- Only fully known states
- A deterministic sequence with no sensors
- Only independent classification labels
- Uncertain hidden states using observations or beliefs
Show correct answer and explanation
Correct answer: D. Uncertain hidden states using observations or beliefs
In a POMDP, the true state is not directly observed, so a belief state summarizes uncertainty.
Question 110. In a POMDP, a belief state is:
- A guaranteed true proposition
- A probability distribution over possible environment states
- A list of all actions already executed
- The neural-network loss alone
Show correct answer and explanation
Correct answer: B. A probability distribution over possible environment states
Belief states represent uncertainty about the unobserved state.
Question 111. A hidden Markov model is widely used for:
- Exactly solving every NP-hard problem
- Constructing website navigation menus
- Modeling sequences with hidden states and observed emissions
- Representing only deterministic functions
Show correct answer and explanation
Correct answer: C. Modeling sequences with hidden states and observed emissions
An HMM models hidden state transitions and probabilistic observations over time.
Question 112. The Viterbi algorithm is commonly used to:
- Cluster unlabeled numerical data
- Find a most probable hidden-state sequence in a hidden Markov model
- Compute a binary classification F1 score
- Search a game tree with minimax
Show correct answer and explanation
Correct answer: B. Find a most probable hidden-state sequence in a hidden Markov model
Viterbi uses dynamic programming to find a highest-probability hidden-state path.
Question 113. Which property of naive Bayes simplifies calculating class-conditional likelihoods?
- All features have equal values
- Conditional independence of features given the class
- Every class has probability one
- No training data are needed
Show correct answer and explanation
Correct answer: B. Conditional independence of features given the class
Naive Bayes assumes features are conditionally independent given the target class.
Question 114. In a medical test example, sensitivity is another name for:
- Precision
- Recall or true-positive rate
- Specificity
- False-positive rate
Show correct answer and explanation
Correct answer: B. Recall or true-positive rate
Sensitivity is TP divided by TP plus FN, provided the denominator is nonzero.
Question 115. Specificity in binary classification is:
- TN / (TN + FP)
- TP / (TP + FP)
- TP / (TP + FN)
- FP / (FP + TN)
Show correct answer and explanation
Correct answer: A. TN / (TN + FP)
Specificity measures the proportion of actual negative cases correctly identified.
Question 116. For a numerical regression model, mean squared error averages:
- Absolute model weights only
- Correct classification labels
- Probabilities of all tokens
- Squared differences between predictions and actual values
Show correct answer and explanation
Correct answer: D. Squared differences between predictions and actual values
MSE is the average of (prediction minus target) squared over evaluated examples.
Question 117. Which statement about correlation and causation is correct?
- Correlation always proves causation
- Negative correlation means no relationship
- Correlation alone does not establish that one variable causes another
- A high correlation guarantees an unbiased study
Show correct answer and explanation
Correct answer: C. Correlation alone does not establish that one variable causes another
Observed association can arise from confounding, reverse causation or other mechanisms.
Question 118. A counterfactual question in causal reasoning asks:
- Which item appears first alphabetically
- How many records are in a file
- What would have happened under a different action or intervention
- What is the largest eigenvalue only
Show correct answer and explanation
Correct answer: C. What would have happened under a different action or intervention
Counterfactual reasoning compares an actual outcome with a hypothetical outcome under another intervention.
Question 119. An interpretable decision rule such as ‘if income exceeds a threshold’ is an example of:
- A convolutional filter
- An unobservable sensor
- A human-readable rule-based explanation
- A probability distribution by itself
Show correct answer and explanation
Correct answer: C. A human-readable rule-based explanation
Rule-based systems express decisions through explicit conditions and conclusions.
Question 120. Which is a responsible way to deploy an AI system in education?
- Assume its answers are always correct
- Evaluate accuracy, privacy, bias and provide avenues for human review
- Publish student records without consent
- Remove all teacher oversight
Show correct answer and explanation
Correct answer: B. Evaluate accuracy, privacy, bias and provide avenues for human review
Educational deployments should test quality and fairness, protect personal information and retain suitable human oversight.
Artificial Intelligence MCQs: Set 5 (Questions 121–150)
Choose an option and reveal the correct answer and its explanation.
Question 121. What is a perceptron?
- A method for storing images only
- A graph-search stopping condition
- A form of database normalization
- A simple artificial neuron that computes a weighted input and applies an activation rule
Show correct answer and explanation
Correct answer: D. A simple artificial neuron that computes a weighted input and applies an activation rule
A perceptron combines weighted features and a bias before producing an output using an activation rule.
Question 122. For a linear model y = wx + b, what does b represent?
- The learning rate
- The input variable
- The bias or intercept
- The number of training samples
Show correct answer and explanation
Correct answer: C. The bias or intercept
The intercept b shifts the linear function vertically independently of x.
Question 123. Which activation function outputs max(0, x)?
- Softmax
- Sigmoid
- ReLU
- Tanh
Show correct answer and explanation
Correct answer: C. ReLU
The rectified linear unit (ReLU) returns zero for negative inputs and x for nonnegative inputs.
Question 124. What does the softmax function produce from a vector of finite real-valued scores?
- A single Boolean value
- Nonnegative values that sum to one
- A sorted list of features
- Only negative values
Show correct answer and explanation
Correct answer: B. Nonnegative values that sum to one
Softmax exponentiates scores and normalizes them, producing strictly positive values that sum to one.
Question 125. Which loss function is widely used for multiclass classification?
- Mean absolute percentage error only
- Cross-entropy loss
- Graph path cost
- Shannon coding length only
Show correct answer and explanation
Correct answer: B. Cross-entropy loss
Cross-entropy compares predicted class probabilities with target class distributions.
Question 126. An epoch in neural-network training means:
- One new class label
- One complete pass through the training dataset
- A fixed number of network layers
- The time required to make one prediction
Show correct answer and explanation
Correct answer: B. One complete pass through the training dataset
An epoch normally refers to processing the entire training set once during training.
Question 127. A mini-batch in stochastic optimization is:
- A subset of training observations used for one parameter update
- The full test set
- A model’s final weights
- A set of only misclassified examples
Show correct answer and explanation
Correct answer: A. A subset of training observations used for one parameter update
Mini-batch training estimates gradients from a subset of examples rather than the whole dataset.
Question 128. Which optimizer maintains adaptive per-parameter learning-rate estimates using moving averages?
- Breadth-first search
- K-means
- Adam
- Minimax
Show correct answer and explanation
Correct answer: C. Adam
Adam combines estimates of first and second moments of gradients to adapt updates for individual parameters.
Question 129. Vanishing gradients can make training deep networks difficult because:
- Model outputs become integers
- All training examples disappear
- Early layers receive very small gradient signals
- Every gradient becomes infinite
Show correct answer and explanation
Correct answer: C. Early layers receive very small gradient signals
Repeated small derivatives can shrink gradients propagated toward earlier layers.
Question 130. What is transfer learning?
- Reusing knowledge from a model trained on one task for a related task
- Copying test labels into training data
- Replacing learned weights with random numbers after deployment
- Using only unsupervised training
Show correct answer and explanation
Correct answer: A. Reusing knowledge from a model trained on one task for a related task
Transfer learning adapts pretrained representations or parameters to a new, often related task.
Question 131. Fine-tuning a pretrained model generally involves:
- Removing its entire learned representation
- Guaranteeing identical predictions on every input
- Converting all data into images
- Updating some or all pretrained parameters on new task data
Show correct answer and explanation
Correct answer: D. Updating some or all pretrained parameters on new task data
Fine-tuning continues optimization of pretrained parameters using task-specific examples.
Question 132. What is the purpose of an attention mask in a transformer?
- To measure fairness
- To increase input image brightness
- To replace all tokens with zeros
- To restrict which token positions can attend to others
Show correct answer and explanation
Correct answer: D. To restrict which token positions can attend to others
Attention masks control permitted token-to-token interactions, such as blocking future tokens in causal generation.
Question 133. In autoregressive text generation, the next token is predicted based on:
- Only future unseen tokens
- Random hardware temperatures
- A fixed response independent of the prompt
- The previously available token context
Show correct answer and explanation
Correct answer: D. The previously available token context
Autoregressive models condition each next-token prediction on the prefix that is already available.
Question 134. What does temperature usually control when sampling tokens from a language model?
- The processor’s physical temperature
- The number of vocabulary words
- The text’s reading grade
- The sharpness or randomness of the next-token probability distribution
Show correct answer and explanation
Correct answer: D. The sharpness or randomness of the next-token probability distribution
Sampling temperature rescales logits; lower positive values concentrate probability on high-scoring tokens.
Question 135. In top-k sampling, the model chooses the next token from:
- All possible character combinations
- The k highest-scoring candidate tokens
- Exactly k previous user messages
- The k longest training documents
Show correct answer and explanation
Correct answer: B. The k highest-scoring candidate tokens
Top-k sampling restricts selection to the k candidates with greatest model scores before renormalizing.
Question 136. What is a typical limitation of a fixed context window?
- It prevents any numerical computation
- It automatically verifies factual claims
- It stores all prior conversations indefinitely
- Only a bounded amount of input and generated context can be processed at once
Show correct answer and explanation
Correct answer: D. Only a bounded amount of input and generated context can be processed at once
A finite context window limits the total number of tokens considered by the model in a single pass.
Question 137. Which statement about model training and inference is correct?
- Both always require labeled data
- Inference always changes all model weights
- Training is identical to displaying a webpage
- Training updates model parameters; inference uses parameters to produce outputs
Show correct answer and explanation
Correct answer: D. Training updates model parameters; inference uses parameters to produce outputs
Model training adjusts parameters, while ordinary inference generates predictions without modifying them.
Question 138. What does an out-of-distribution input mean?
- A row with no identifier
- An input different in important ways from the data distribution used to train or assess the model
- An example with a correctly predicted label
- A file stored outside a folder
Show correct answer and explanation
Correct answer: B. An input different in important ways from the data distribution used to train or assess the model
Distribution shift can make prior performance estimates unreliable on substantially different inputs.
Question 139. Which approach can help detect distribution shift?
- Comparing deployed input statistics with reference data
- Never monitoring production data
- Assuming test data represent all future cases
- Automatically trusting every new prediction
Show correct answer and explanation
Correct answer: A. Comparing deployed input statistics with reference data
Monitoring changes in feature or output distributions can signal that deployment data differ from reference data.
Question 140. In model calibration, a well-calibrated classifier should:
- Be correct about 80% of the time on predictions assigned roughly 80% confidence
- Have exactly equal numbers of classes
- Always be correct when confident
- Output only probabilities of zero or one
Show correct answer and explanation
Correct answer: A. Be correct about 80% of the time on predictions assigned roughly 80% confidence
Calibration means predicted probabilities correspond approximately to observed frequencies over comparable predictions.
Question 141. What is a false-positive rate?
- TP/(TP+FN)
- FP/(FP+TN)
- TN/(TN+FP)
- FP/(FP+TP)
Show correct answer and explanation
Correct answer: B. FP/(FP+TN)
The false-positive rate is the fraction of actual negatives incorrectly predicted as positive.
Question 142. Which evaluation method is most appropriate for time-series forecasting?
- Use chronological training and evaluation to avoid looking into the future
- Randomly include future labels as training features
- Train on all future observations and test on the past only
- Skip evaluation after training
Show correct answer and explanation
Correct answer: A. Use chronological training and evaluation to avoid looking into the future
Time-aware splits preserve the ordering of observations and help prevent information from the future leaking into training.
Question 143. What is early stopping in machine learning?
- Halting before processing any data
- Ending training when a monitored validation criterion stops improving sufficiently
- Always stopping after exactly one batch
- Removing the validation set
Show correct answer and explanation
Correct answer: B. Ending training when a monitored validation criterion stops improving sufficiently
Early stopping uses a held-out validation metric to decide when continued training may no longer help generalization.
Question 144. An ensemble model combines:
- Predictions from multiple models or learners
- Only metadata fields
- One training example and one label
- An input and an output without learning
Show correct answer and explanation
Correct answer: A. Predictions from multiple models or learners
Ensembles aggregate model outputs, often improving predictive robustness or accuracy.
Question 145. In random forests, diversity between trees is commonly encouraged by:
- Using the identical split sequence for every tree
- Fixing all feature values to zero
- Bootstrapped samples and random feature selection
- Disabling all randomness
Show correct answer and explanation
Correct answer: C. Bootstrapped samples and random feature selection
Random forests commonly use bootstrap data samples and random subsets of candidate features when building trees.
Question 146. What does bagging stand for?
- Bayesian graph generation
- Binary gradient grouping
- Balanced action guidance
- Bootstrap aggregating
Show correct answer and explanation
Correct answer: D. Bootstrap aggregating
Bagging fits learners on bootstrap samples and aggregates their outputs.
Question 147. How does boosting generally build an ensemble?
- By discarding all previous models
- By training each learner on identical random outputs
- By adding learners sequentially to address remaining prediction errors
- By removing training targets
Show correct answer and explanation
Correct answer: C. By adding learners sequentially to address remaining prediction errors
Boosting adds weak learners sequentially, often emphasizing residual errors or difficult training examples.
Question 148. What is the objective of anomaly detection?
- Classify each word by part of speech
- Identify unusual observations that deviate from expected patterns
- Calculate all graph shortest paths
- Choose a game move using minimax
Show correct answer and explanation
Correct answer: B. Identify unusual observations that deviate from expected patterns
Anomaly detection looks for rare or atypical data points relative to learned normal behavior.
Question 149. Why should AI-generated citations be checked?
- Models can produce inaccurate or nonexistent bibliographic details
- Every generated reference is always authentic
- Citation checking reduces the model’s training set
- All journal titles are interchangeable
Show correct answer and explanation
Correct answer: A. Models can produce inaccurate or nonexistent bibliographic details
Generated titles, authors, page numbers or links may be fabricated or mismatched, so they should be verified against reliable records.
Question 150. Which practice best supports reproducible machine-learning research?
- Publishing only a claimed accuracy score
- Using a different hidden test set for every comparison without tracking it
- Avoiding descriptions of methods
- Documenting datasets, preprocessing, splits, model settings and evaluation procedures
Show correct answer and explanation
Correct answer: D. Documenting datasets, preprocessing, splits, model settings and evaluation procedures
Clear experimental details allow others to understand and attempt to reproduce the reported results.
Artificial Intelligence MCQs: Set 6 (Questions 151–175)
Try each question before revealing its correct answer and explanation.
Question 151. Which algorithm finds shortest paths from a source in a graph with nonnegative edge weights?
- K-means
- Minimax
- Dijkstra’s algorithm
- Backpropagation
Show correct answer and explanation
Correct answer: C. Dijkstra’s algorithm
Dijkstra’s algorithm finds shortest paths for nonnegative edge weights.
Question 152. For an unweighted graph, which search finds a path with the fewest edges?
- Depth-first search
- Breadth-first search
- Hill climbing
- Greedy search
Show correct answer and explanation
Correct answer: B. Breadth-first search
Breadth-first search explores nodes by increasing edge distance.
Question 153. What is a heuristic in informed search?
- The exact memory used
- A random action
- A training label
- An estimate that guides search
Show correct answer and explanation
Correct answer: D. An estimate that guides search
A heuristic estimates relevant quantities such as remaining path cost.
Question 154. If A* uses h(n)=0 for all nodes, it behaves like:
- Uniform-cost search
- Depth-first search
- Greedy best-first search
- Beam search
Show correct answer and explanation
Correct answer: A. Uniform-cost search
With h(n)=0, A* prioritizes path cost g(n) alone.
Question 155. Which statement describes a monotone (consistent) heuristic?
- It always increases after every search step
- It cannot equal zero
- It always overestimates true cost
- Its estimated cost satisfies a triangle inequality over transitions
Show correct answer and explanation
Correct answer: D. Its estimated cost satisfies a triangle inequality over transitions
Consistency requires h(n) ≤ c(n,n’) + h(n’) and h(goal)=0.
Question 156. What is the branching factor of a search tree?
- The tree’s deepest level
- The number of goals
- The cost of the root
- The number of successors per node, often expressed as a maximum or typical value
Show correct answer and explanation
Correct answer: D. The number of successors per node, often expressed as a maximum or typical value
Branching factor describes how many children nodes typically have.
Question 157. Which formalism is useful for representing ‘all students are learners’?
- Only propositional logic
- An image matrix
- First-order predicate logic
- A sorting algorithm
Show correct answer and explanation
Correct answer: C. First-order predicate logic
First-order logic can quantify over objects and use predicates such as Student(x) → Learner(x).
Question 158. The symbol ∀ in predicate logic means:
- There exists
- For all
- Not
- Implies
Show correct answer and explanation
Correct answer: B. For all
Universal quantification asserts a formula for every individual in the domain.
Question 159. The symbol ∃ in first-order logic means:
- For all
- And
- There exists
- If and only if
Show correct answer and explanation
Correct answer: C. There exists
Existential quantification asserts that at least one domain element satisfies a formula.
Question 160. Which logical equivalence follows from De Morgan’s law?
- ¬(P∧Q) ≡ ¬P∨¬Q
- ¬(P∧Q) ≡ ¬P∧¬Q
- P∨Q ≡ P∧Q
- ¬P ≡ P
Show correct answer and explanation
Correct answer: A. ¬(P∧Q) ≡ ¬P∨¬Q
Negating a conjunction produces the disjunction of the negations.
Question 161. A tautology is a proposition that is:
- Always false
- True only if two variables agree
- True under every truth assignment
- Neither true nor false
Show correct answer and explanation
Correct answer: C. True under every truth assignment
A tautology evaluates to true for every assignment of its variables.
Question 162. Which technique proves a conclusion by showing the premises and its negation are inconsistent?
- Proof by contradiction
- Regression
- K-means
- Feature scaling
Show correct answer and explanation
Correct answer: A. Proof by contradiction
Deriving a contradiction from premises plus the negated conclusion establishes the conclusion.
Question 163. Unification in logic-based AI seeks:
- Substitutions making logical expressions match
- The largest image
- Minimum training epochs
- A neural activation
Show correct answer and explanation
Correct answer: A. Substitutions making logical expressions match
Unification finds compatible substitutions for terms.
Question 164. Which is an example of a production rule?
- A column of numbers
- A vector norm
- IF fever AND cough THEN consider respiratory illness
- A file checksum
Show correct answer and explanation
Correct answer: C. IF fever AND cough THEN consider respiratory illness
Production rules express condition–conclusion patterns used in rule-based systems.
Question 165. An expert system’s inference engine primarily:
- Applies rules to known facts to derive conclusions
- Stores physical sensors
- Compiles operating systems
- Generates random labels
Show correct answer and explanation
Correct answer: A. Applies rules to known facts to derive conclusions
The inference engine uses the knowledge base to perform reasoning.
Question 166. Forward chaining commonly starts from:
- A final hypothesis only
- An untrained model
- Known facts and applies applicable rules
- A game tree’s leaves
Show correct answer and explanation
Correct answer: C. Known facts and applies applicable rules
Forward chaining is data-driven reasoning from facts toward inferred conclusions.
Question 167. Backward chaining is generally:
- A type of image compression
- A gradient optimizer
- Goal-driven reasoning that seeks support for a query
- A method of clustering
Show correct answer and explanation
Correct answer: C. Goal-driven reasoning that seeks support for a query
Backward chaining works backward from the proposed goal to subgoals or premises.
Question 168. In fuzzy logic, membership grades typically lie in:
- All negative integers
- Only {0,2}
- All complex numbers
- The interval from 0 to 1
Show correct answer and explanation
Correct answer: D. The interval from 0 to 1
Fuzzy membership functions assign degrees between zero and one inclusive.
Question 169. What does a membership grade of 0.7 indicate in a fuzzy set?
- A 70% probability in every interpretation
- A guaranteed truth
- A sample size of seven
- A membership degree of 0.7 under the chosen fuzzy-set definition
Show correct answer and explanation
Correct answer: D. A membership degree of 0.7 under the chosen fuzzy-set definition
Fuzzy membership describes degree of belonging, which is not automatically a probability.
Question 170. A knowledge graph usually represents information as:
- Entities and relations among them
- Unordered pixel arrays
- Only scalar labels
- A single probability
Show correct answer and explanation
Correct answer: A. Entities and relations among them
Knowledge graphs encode connected entities and their relationships.
Question 171. In recommender systems, collaborative filtering commonly uses:
- Only a user’s password
- No historical interactions
- Only graph shortest paths
- Patterns of user–item interactions
Show correct answer and explanation
Correct answer: D. Patterns of user–item interactions
Collaborative filtering learns preferences from patterns across users and items.
Question 172. Content-based recommendation primarily relies on:
- The number of servers
- Attributes of items and user preferences
- Only random recommendations
- A minimax utility tree
Show correct answer and explanation
Correct answer: B. Attributes of items and user preferences
Content-based recommenders match item features with user preference profiles.
Question 173. A recommender system’s cold-start problem arises when:
- The graph has a cycle
- New users or items have too little interaction history
- The loss reaches zero
- All labels are balanced
Show correct answer and explanation
Correct answer: B. New users or items have too little interaction history
Insufficient history makes it difficult to estimate preferences for newcomers.
Question 174. Which term describes a robot estimating its position and building a map simultaneously?
- SLAM
- Tokenization
- Cross-validation
- Question answering
Show correct answer and explanation
Correct answer: A. SLAM
Simultaneous localization and mapping estimates pose while constructing a map.
Question 175. What is the main purpose of path planning in robotics?
- Translate text
- Estimate a classifier’s precision
- Find a feasible route from start to goal while respecting constraints
- Store training labels
Show correct answer and explanation
Correct answer: C. Find a feasible route from start to goal while respecting constraints
Path planning produces a route through the robot’s operating space.
Artificial Intelligence MCQs: Set 7 (Questions 176–200)
Try each question before revealing its correct answer and explanation.
Question 176. What do computer vision object detectors generally predict?
- Only sentence sentiment
- Only a single network weight
- The probability of a graph cycle
- Object classes and locations in an image
Show correct answer and explanation
Correct answer: D. Object classes and locations in an image
Object detectors identify object categories and their spatial locations, often with bounding boxes.
Question 177. Semantic segmentation assigns:
- One numerical score to the entire dataset
- A category label to individual image pixels
- Only filenames to pictures
- A single path cost to every object
Show correct answer and explanation
Correct answer: B. A category label to individual image pixels
Semantic segmentation labels image regions at pixel level.
Question 178. What is the difference between image classification and object detection?
- They always produce identical outputs
- Detection cannot use neural networks
- Classification requires GPS
- Detection also localizes objects
Show correct answer and explanation
Correct answer: D. Detection also localizes objects
Classification typically predicts image-level class labels, whereas detection predicts object locations.
Question 179. Optical character recognition (OCR) is used to:
- Convert text in images into machine-readable text
- Estimate discounted rewards
- Solve graph coloring directly
- Detect model calibration
Show correct answer and explanation
Correct answer: A. Convert text in images into machine-readable text
OCR extracts characters and words from image-based documents.
Question 180. Speech recognition maps:
- Spoken audio to a text transcription
- Text to a rendered picture
- Probabilities to graph edges
- A route to coordinates only
Show correct answer and explanation
Correct answer: A. Spoken audio to a text transcription
Automatic speech recognition converts spoken language in audio into text.
Question 181. Text-to-speech synthesis maps:
- An image to a bounding box
- A reward into a policy
- Text into generated speech audio
- A map into a graph
Show correct answer and explanation
Correct answer: C. Text into generated speech audio
Text-to-speech systems synthesize spoken audio from written text.
Question 182. A multimodal AI system can process:
- Multiple data modalities such as text and images
- Only numerical tables
- Only text documents
- Only graph edges
Show correct answer and explanation
Correct answer: A. Multiple data modalities such as text and images
Multimodal models handle and connect different forms of input or output.
Question 183. In a transformer, positional information is important because:
- All tokens are identical
- Self-attention alone does not inherently represent token order
- Positions replace model weights
- Sequences never have order
Show correct answer and explanation
Correct answer: B. Self-attention alone does not inherently represent token order
Position information helps models distinguish token order.
Question 184. What does a token vocabulary specify?
- The number of GPUs
- All future outputs
- Only punctuation marks
- The set of token IDs and corresponding units recognized by the tokenizer
Show correct answer and explanation
Correct answer: D. The set of token IDs and corresponding units recognized by the tokenizer
A tokenizer defines mappings between units of text and token identifiers.
Question 185. In retrieval systems, cosine similarity compares:
- Two dates
- Directions of two vectors via their normalized dot product
- Two tree depths
- The difference between model sizes
Show correct answer and explanation
Correct answer: B. Directions of two vectors via their normalized dot product
Cosine similarity is the dot product divided by the product of vector norms when vectors are nonzero.
Question 186. Which vector pair is orthogonal in the usual Euclidean inner product?
- (1,1) and (1,1)
- (1,0) and (0,1)
- (1,0) and (2,0)
- (1,2) and (2,4)
Show correct answer and explanation
Correct answer: B. (1,0) and (0,1)
The dot product of (1,0) and (0,1) is zero.
Question 187. What is the cosine similarity of identical nonzero vectors?
- 0
- 1
- −1
- Undefined for all vectors
Show correct answer and explanation
Correct answer: B. 1
Identical nonzero vectors have zero angle, so cosine similarity is one.
Question 188. A nearest-neighbor vector search is commonly used in:
- Hardware voltage control only
- Changing a domain name
- Semantic document retrieval
- Boolean simplification only
Show correct answer and explanation
Correct answer: C. Semantic document retrieval
Vector search can find semantically similar embeddings in document retrieval.
Question 189. A key reason to separate retrieval and generation stages in RAG is to:
- Guarantee no hallucinations
- Provide relevant external context to support responses
- Avoid storing any document
- Force every answer to be a single word
Show correct answer and explanation
Correct answer: B. Provide relevant external context to support responses
Retrieval supplies task-relevant evidence that a generator can use, though verification remains necessary.
Question 190. What is prompt injection?
- Malicious instructions embedded in untrusted content to redirect an AI system
- A statistical test for variance
- A way to raise a learning rate
- A hardware failure
Show correct answer and explanation
Correct answer: A. Malicious instructions embedded in untrusted content to redirect an AI system
Prompt injection attempts to make a model follow attacker-controlled instructions found in lower-trust material.
Question 191. Which practice helps mitigate prompt injection?
- Treat retrieved pages as untrusted data and enforce instruction boundaries
- Trust all external text as system instructions
- Disable user authorization checks
- Allow tool actions without validation
Show correct answer and explanation
Correct answer: A. Treat retrieved pages as untrusted data and enforce instruction boundaries
Separating untrusted content from trusted instructions and checking permissions reduces injection risks.
Question 192. What is model drift?
- A mathematical proof that never changes
- Degradation or change in model behavior over time due to shifting conditions
- A guaranteed improvement with age
- Identical predictions across all inputs
Show correct answer and explanation
Correct answer: B. Degradation or change in model behavior over time due to shifting conditions
Changes in populations, features or target relationships can cause model performance to drift.
Question 193. Why is maintaining a versioned dataset valuable?
- It ensures a perfect model
- It eliminates all legal requirements
- It prevents every duplicate record
- It improves traceability and reproducibility of experiments
Show correct answer and explanation
Correct answer: D. It improves traceability and reproducibility of experiments
Dataset versioning records which inputs were used for training and evaluation.
Question 194. What is a model card?
- An optimizer hyperparameter
- A hardware expansion card
- A substitute for independent testing
- Documentation describing a model’s intended uses, evaluation and limitations
Show correct answer and explanation
Correct answer: D. Documentation describing a model’s intended uses, evaluation and limitations
Model cards communicate model details, performance characteristics and limitations.
Question 195. What is the primary purpose of a privacy-preserving data minimization policy?
- Keep all records forever
- Collect only data needed for a defined purpose
- Publish raw identifiers
- Ignore consent
Show correct answer and explanation
Correct answer: B. Collect only data needed for a defined purpose
Data minimization limits unnecessary collection and exposure of personal information.
Question 196. Which statement about fairness metrics is accurate?
- One metric guarantees fairness in every context
- Different fairness criteria can conflict depending on data and decision setting
- Fairness never needs domain expertise
- Accuracy automatically ensures fairness
Show correct answer and explanation
Correct answer: B. Different fairness criteria can conflict depending on data and decision setting
Fairness criteria measure different aspects, and some cannot be satisfied simultaneously under certain conditions.
Question 197. What is the purpose of red-teaming an AI application?
- To choose a brand color
- To probe weaknesses and failure modes using adversarial tests
- To sort documents
- To remove all evaluation
Show correct answer and explanation
Correct answer: B. To probe weaknesses and failure modes using adversarial tests
Red-teaming systematically challenges systems to uncover vulnerabilities and unsafe behavior.
Question 198. What should researchers report when comparing AI models?
- Only the most favorable test run
- Evaluation protocol, datasets, metrics and meaningful limitations
- Only a final headline metric
- Only the largest parameter count
Show correct answer and explanation
Correct answer: B. Evaluation protocol, datasets, metrics and meaningful limitations
Transparent comparisons depend on clear experimental setups and acknowledged limitations.
Question 199. Why can a mathematically correct AI explanation still be inadequate?
- It may omit assumptions or fail to justify key logical steps
- Correct mathematics never needs assumptions
- All valid results require code
- Every concise proof is wrong
Show correct answer and explanation
Correct answer: A. It may omit assumptions or fail to justify key logical steps
A reliable mathematical argument must specify applicable assumptions and justify transitions.
Question 200. Which action best supports trustworthy use of AI-generated educational MCQs?
- Publish all automatically without review
- Use the same answer option every time
- Check the question, options, answer and explanation for correctness and ambiguity
- Avoid correcting errors
Show correct answer and explanation
Correct answer: C. Check the question, options, answer and explanation for correctness and ambiguity
Reviewing all components helps identify incorrect keys, ambiguous distractors and misleading explanations.
