Score: 0/0
โฑ 00:00
๐Ÿง  INT428 AI Essentials
Ultimate Exam Prep Package
Complete crash course built from your syllabus, sample paper (60 Qs), CA papers & unit notes (Units 1โ€“4). Units 5โ€“6 intelligently inferred. Optimized for MCQ-based exam.
๐Ÿ“š 6 Unitsโ“ 105+ MCQs๐Ÿƒ 40 Flashcards๐Ÿ“ Mock Test๐Ÿ“‹ Cheat Sheets๐Ÿ† Top 100 Points
6
Units Covered
105+
MCQs Generated
40
Flashcards
60
Sample Paper Qs
๐ŸŽฏ Unit Quick Access
UNIT 01
Foundations & Applications
Intelligence, AI types, Expert Systems, ML, DL, NLP, Applications, Toolkits
UNIT 02
Problem Solving & Search
BFS, DFS, A*, Greedy, Heuristics, Water Jug, 8-Puzzle, Minimax, Hill Climbing
UNIT 03
Machine Learning
Supervised/Unsupervised/RL, Bayes, KNN, K-Means, Confusion Matrix, Feature Eng.
UNIT 04
Deep Learning & NLP
Perceptron, MLP, CNN, RNN, Transformer, BERT, GPT, Chatbots, Attention
UNIT 05 โ˜… INFERRED
Generative AI & Prompts
LLMs, GANs, VAE, Diffusion, Prompt Engineering, Zero-shot, Ethics
UNIT 06 โ˜… INFERRED
Data, Tools & MLOps
ChatGPT ADA, Tableau, Data pipelines, Cloud, MLOps, Error handling, Python
๐Ÿ”ฅ Hottest Topics (From Paper Analysis)

๐Ÿฅ‡ A* Search

f(n)=g(n)+h(n). In nearly every paper. Know formula + example cold.

๐Ÿฅˆ Confusion Matrix

Precision & Recall calculations. Numerical MCQs guaranteed in every CA.

๐Ÿฅ‰ CNN Architecture

Convโ†’Poolโ†’FC. Role of each layer. Match-the-model questions.

4๏ธโƒฃ BERT vs GPT

Bidirectional vs Autoregressive. Training objectives. Use cases.

5๏ธโƒฃ Bayes Theorem

Numerical P(S|W) calculation. Feature independence in Naive Bayes.

6๏ธโƒฃ GAN Components

Generator creates samples. Discriminator judges. Tested in Q7 sample paper.

๐Ÿ“Š Complete Exam Analysis

๐Ÿ“‹ Exam Pattern (INT428)

60 MCQs ร— 1 mark = 60 marks. 0.25 negative marking per wrong answer. Time: 3 hours. OMR sheet. All 60 questions compulsory.

๐ŸŽฏ Unit Weightage
UnitTopicEst. MCQsPriorityProbability
Unit 1Foundations, AI types, Applications, Toolkits8โ€“10HIGH
Unit 2Search Algorithms, Heuristics, Game Trees, Logic10โ€“12VERY HIGH
Unit 3ML, Bayesian Networks, Confusion Matrix, Clustering10โ€“12VERY HIGH
Unit 4Deep Learning, CNN, RNN, Transformers, NLP, BERT/GPT12โ€“14HIGHEST
Unit 5GenAI, GANs, LLMs, Prompt Engineering, Ethics10โ€“12HIGH
Unit 6Data Tools, ChatGPT ADA, MLOps, Python pandas6โ€“8MEDIUM
๐Ÿ” Most Repeated Concepts
๐Ÿ”ฅ1
A* Search: f(n)=g(n)+h(n). Both CA paper and sample paper tested it multiple times.
๐Ÿ”ฅ2
Confusion Matrix: Precision=TP/(TP+FP), Recall=TP/(TP+FN). Numerical MCQs in every CA.
๐Ÿ”ฅ3
Bayes Theorem: P(A|B)=P(B|A)P(A)/P(B). Spam filter or medical example most common.
๐Ÿ”ฅ4
CNN vs RNN vs Transformer: Match-the-model questions appear repeatedly across papers.
๐Ÿ”ฅ5
GAN Components: Generator generates samples, Discriminator evaluates. Tested in sample paper Q7.
๐Ÿ”ฅ6
BERT Bidirectional: MLM + NSP training objectives. Reads Lโ†”R simultaneously.
๐Ÿ”ฅ7
K-Means Clustering: 1-iteration numerical problem guaranteed in every CA paper.
๐Ÿ”ฅ8
Positional Encoding: Why needed in Transformers โ€” parallel processing loses word order.
โš ๏ธ Top MCQ Traps
TRAP 1: Greedy BFS vs A*Greedy = h(n) only. A* = g(n)+h(n). A* guarantees optimal if h admissible. Greedy does NOT guarantee optimality.
TRAP 2: Precision vs RecallPrecision = TP/(TP+FP). Recall = TP/(TP+FN). Fraud detection: misses fraud = LOW RECALL, rarely flags normal = HIGH PRECISION.
TRAP 3: BERT vs GPT DirectionBERT = Bidirectional. GPT = Unidirectional (leftโ†’right). BERT: understanding tasks. GPT: generation tasks.
TRAP 4: GAN Generator vs DiscriminatorGenerator CREATES new samples (answer in Q7). Discriminator JUDGES real vs fake. Never confuse these.
TRAP 5: Branching Factor= Number of states generated FROM a given state. NOT paths to goal, NOT heuristic values, NOT depth.
TRAP 6: AI FoundationsThe 6 foundations are Philosophy, Math, Psychology, CS, Neuroscience, Linguistics. Astrology is NOT a foundation (Q27 Sample Paper).
TRAP 7: Vanishing GradientClassic RNN problem for LONG sequences. Transformer solves this via self-attention (no sequential processing).
TRAP 8: Alpha value in Alpha-BetaAlpha = best score for MAXIMIZER. Beta = best score for MINIMIZER. Purpose = reduce nodes in Minimax.
1๏ธโƒฃ Unit 1 โ€” Foundations & Applications of AI

๐Ÿง  What is Intelligence? DEF

The ability to: acquire knowledge and skills, solve problems, and adapt to new situations.

Key Aspects: Reasoning, Problem-solving, Learning, Perception, Decision-making

๐Ÿค– What is Artificial Intelligence? EXAM DEF

Branch of computer science that develops machines to simulate human intelligence. Enables machines to think, learn, and solve complex human problems.

๐Ÿ’ก AI = Making machines do what requires human intelligence

๐Ÿ› Foundations of AI MCQ โ€” NOT ASTROLOGY

  • Philosophy โ€” Logic and Reasoning
  • Mathematics โ€” Probability, Statistics, Algorithms
  • Psychology โ€” Human Behavior
  • Computer Engineering โ€” Hardware/Software
  • Neuroscience โ€” Brain Functioning
  • Linguistics โ€” Language Processing
TRAP (Sample Q27): Astrology is NOT a foundation of AI. โ†’ Correct answer: Astrology is the odd one out.

๐Ÿ“Œ Types of AI HIGH PROB MCQ

TypeDefinitionExampleExists?
Narrow AISpecific task only, predefined boundariesSiri, Alexa, Netflixโœ… Yes
General AIAny intellectual task a human can doHumanoid robot (theoretical)โŒ Theory
Super AISurpasses humans in all domainsSci-fi AIโŒ Theory

โš™๏ธ Expert Systems DEF MCQ

AI that mimics human expertise using a Knowledge Base + Inference Engine. Applies IF-THEN rules.

Example: MYCIN (Medical Diagnosis). Uses certainty factors for handling uncertainty.

TRAP (Sample Q4): Certainty factors โ†’ Rule-based expert system (NOT Bayesian networks, NOT genetic algorithms).

๐Ÿ”‘ Key AI Problems LIST

  • Knowledge representation
  • Reasoning and inference
  • Learning from data
  • Perception and understanding
  • Natural Language Processing (NLP)
  • Planning and decision-making
  • Handling uncertainty
  • Ethical and social challenges

๐Ÿ“ฑ AI Applications MATCH TYPE

DomainExample
NLP / VoiceSiri, Alexa, Cortana (Personal Voice Assistants)
Computer VisionFacial recognition, object detection, self-driving cars
HealthcareMedical imaging, MYCIN diagnosis system
FinanceFraud detection, stock prediction
GamingChess AI, game-playing agents
TRAP (Sample Q22): Siri, Alexa, Cortana = Personal voice assistants (NOT machine learning algorithms, NOT web search engines).

๐Ÿ“œ Production Systems DEF Q3 Sample

A system of rules for problem-solving. Components: Working Memory + Rule Base (IF-THEN) + Inference Engine.

Chemical Synthesis: Monotonic and Not Partially Commutative (Sample Q32 โ†’ Answer d).

๐Ÿ›  Modern AI Toolkits

  • TensorFlow โ€” Google; static computation graphs; production-ready
  • PyTorch โ€” Meta (Facebook); dynamic graphs; research-friendly
  • scikit-learn โ€” Classical ML in Python (SVM, KNN, Decision Trees)
2๏ธโƒฃ Unit 2 โ€” Problem Solving & Search Algorithms

๐Ÿ—บ State Space & Problem Formulation CORE

AI problem = Initial State + Goal State + Actions + Path Cost. A problem in AI is defined by an initial and goal state.

Branching factor = number of states generated from a given state A* evaluation: f(n) = g(n) + h(n) g(n) = actual cost from start โ†’ current node h(n) = heuristic estimate from current node โ†’ goal h*(n) = TRUE optimal cost from current node โ†’ goal
TRAP (Sample Q11): Branching factor = number of different states generated FROM a given state. NOT paths to goal, NOT heuristic values, NOT depth.
TRAP (Sample Q60): A problem in AI = "A task defined by an initial and goal state" โ†’ Answer (b).

๐Ÿ“ Search Performance Measures

  • Completeness โ€” Always finds solution if one exists?
  • Optimality โ€” Guaranteed to find best solution?
  • Time Complexity โ€” How many nodes expanded?
  • Space Complexity โ€” Max nodes in memory?

๐Ÿ” Uninformed Search Comparison TABLE MCQ

AlgorithmStrategyCompleteOptimalTimeSpaceStructure
BFSLevel-by-levelโœ… Yesโœ… Equal costO(b^d)O(b^d)Queue (FIFO)
DFSDeepest firstโŒ NoโŒ NoO(b^m)O(bm)Stack (LIFO)
DLSDFS + limit LโŒ If L<dโŒ NoO(b^L)O(bL)Stack
IDSDLS + increase Lโœ… Yesโœ… YesO(b^d)O(bd)Stack
TRAP (Sample Q52): DFS preferred over BFS when โ†’ memory constraints are strict โ†’ Answer (b).
TRAP (Sample Q56): Suitable for infinite state spaces โ†’ Iterative Deepening โ†’ Answer (c).

๐ŸŽฏ Informed Search MOST TESTED

Greedy Best-First Search

  • f(n) = h(n) ONLY
  • Expands closest-to-goal node
  • Fast but NOT optimal
  • Can get stuck in loops

A* Search

  • f(n) = g(n) + h(n)
  • Optimal IF h is admissible
  • Complete (finite space)
  • Best-first + cost-aware
A* Example (Sample Paper): f(B) = g(B) + h(B) = 9 + 4 = 13 f(D) = g(D) + h(D) = 8 + 6 = 14 โ†’ Expand B (lowest f value first) 8-Puzzle (Sample Q33): h(n)=5, g(n)=3 โ†’ f(n)=8 โ† Answer (a)
KEY (Sample Q14, Q44): A* considers BOTH cost and heuristic. GBFS considers ONLY heuristic. A* guarantees optimal (admissible h). GBFS does NOT.

๐Ÿ”บ Admissibility & Heuristics EXAM KEY

Admissible: h(n) โ‰ค h*(n) [never overestimates] Consistent: h(n) โ‰ค cost(n,n') + h(n') [triangle inequality] Manhattan distance = |x1-x2| + |y1-y2| [8-puzzle heuristic] Sample Q39: h*(n) = Actual cost from node n to the goal โ†’ Answer (b)

๐ŸŽฎ Minimax & Alpha-Beta GAME AI

  • Minimax: MAX maximizes evaluation, MIN minimizes. Evaluates ALL game states โ€” complete tree exploration.
  • Alpha-Beta Pruning: Optimization of Minimax. Skips branches that cannot affect the optimal decision.
  • Alpha (ฮฑ): Best possible score for the MAXIMIZER along current path.
  • Beta (ฮฒ): Best possible score for the MINIMIZER along current path.
TRAP (Sample Q37, Q53): Main purpose Alpha-Beta = Reduce nodes evaluated in Minimax. Minimax evaluates ALL states; Alpha-Beta SKIPS unnecessary branches. Alpha-Beta is an OPTIMIZATION, not a replacement.

โ›ฐ Local Search MCQ

  • Hill Climbing: Greedy โ€” always moves to better neighbor. Problem: gets stuck at local maxima.
  • Random Restart: Restarts from multiple random initial states โ†’ escapes local maxima (Sample Q49).
  • Simulated Annealing: Accepts WORSE solutions with some probability. Why? To escape local minima and explore more solution space (Sample Q40 โ†’ Answer b).

๐Ÿ’ง Water Jug Problem NUMERICAL

Max states formula: (cap1+1) ร— (cap2+1) Example: 4L + 3L jugs = (4+1)ร—(3+1) = 5ร—4 = 20 states โ† (Sample Q10 Answer d) Sample Q17: J1=9L, J2=5L, State=(6,2) Step 1: Fill J2 โ†’ (6, 5) Step 2: Pour J2โ†’J1: J1 can take 9-6=3L, pour 3L from J2 Result: J1=9, J2=5-3=2 โ†’ State = (9,2) โ† Answer (b)

๐Ÿ“ Logic & De Morgan's Law LOGIC MCQ

De Morgan's (Sample Q34 โ†’ Answer a): ยฌ(PโˆจQ) = (ยฌP)โˆง(ยฌQ) ยฌ(PโˆงQ) = (ยฌP)โˆจ(ยฌQ) Implication: Pโ†’Q โ‰ก ยฌPโˆจQ Biconditional: Pโ†”Q โ‰ก (Pโ†’Q)โˆง(Qโ†’P) NOT valid connector (Sample Q54): Aggregation โ† Answer (c)
3๏ธโƒฃ Unit 3 โ€” Machine Learning & Probabilistic Reasoning

๐Ÿ“Š ML Types Comparison TABLE MCQ

TypeTraining DataGoalAlgorithmsExample
SupervisedLabeled (X, Y)Predict outputSVM, KNN, LR, DTSpam filter, image classifier
UnsupervisedUnlabeled (X only)Find structureK-Means, DBSCAN, PCACustomer segmentation
ReinforcementRewards/PenaltiesMax rewardQ-Learning, Policy GradientAlphaGo, game agents
Semi-SupervisedLabeled + UnlabeledBothSelf-trainingText classification
TRAP (Sample Q51): "Static Learning" is NOT a category of ML โ€” it is the odd one out. Answer: (d) Static Learning.

๐ŸŽฏ Confusion Matrix NUMERICAL โ€” IN EVERY EXAM

Given (CA Paper Q1): TP=40, TN=30, FP=20, FN=10 Recall = TP / (TP + FN) = 40 / (40+10) = 40/50 = 0.80 Precision = TP / (TP + FP) = 40 / (40+20) = 40/60 = 0.667 Accuracy = (TP + TN) / Total = 70/100 = 0.70 F1 Score = 2 ร— (P ร— R) / (P + R) Specificity = TN / (TN + FP) Answer CA Q1: Recall=0.80, Precision=0.67 โ†’ Option B โœ“ CA Q15 (Fraud detection): Misses fraud = LOW RECALL, Rarely flags normal = HIGH PRECISION โ†’ Answer: Low recall, high precision โ†’ Option (c) โœ“

๐Ÿ“ Standard Deviation NUMERICAL

CA Q6: Data = {3, 7, 7, 7, 9} Mean ฮผ = (3+7+7+7+9)/5 = 33/5 = 6.6 Variance = [(3-6.6)ยฒ+(7-6.6)ยฒ+(7-6.6)ยฒ+(7-6.6)ยฒ+(9-6.6)ยฒ] / 5 = [12.96 + 0.16 + 0.16 + 0.16 + 5.76] / 5 = 19.2 / 5 = 3.84 SD = โˆš3.84 โ‰ˆ 1.96 โ‰ˆ 2 โ†’ Answer: A (2) โœ“

๐ŸŽฒ Bayes Theorem NUMERICAL MCQ

P(A|B) = P(B|A) ร— P(A) / P(B) CA Q7: P(S)=0.3, P(H)=0.7, P(W|S)=0.8, P(W|H)=0.2 P(W) = P(W|S)ร—P(S) + P(W|H)ร—P(H) = 0.8ร—0.3 + 0.2ร—0.7 = 0.24+0.14 = 0.38 P(S|W) = P(W|S)ร—P(S) / P(W) = 0.24 / 0.38 โ‰ˆ 0.63 โ†’ Answer: B โœ“

๐ŸŒ Bayesian Networks DEF MCQ

Directed Acyclic Graph (DAG) representing probabilistic relationships among variables. Joint probability = Product of conditional probabilities.

TRAP (Sample Q1): Bayesian networks incorporate UNCERTAINTY; rule-based systems rely on deterministic logic. โ†’ Answer: (b).
TRAP (CA Q4): Joint probability in Bayesian networks = Product of conditional probabilities (NOT sum, difference, or average). โ†’ Answer: (b).

๐Ÿท Naive Bayes KEY ASSUMPTION

Key Assumption: All features are INDEPENDENT given the class label. This is the "naive" assumption.

TRAP (Sample Q16): Naive Bayes assumption = "All features are independent given the class" โ†’ Answer: (d). NOT correlated, NOT equal priors.

๐Ÿ“ KNN โ€” K-Nearest Neighbors NUMERICAL

CA Q3: K=3, Points A(1,1)โ†’Red, B(2,2)โ†’Red, C(4,4)โ†’Blue, Classify P(3,3) d(P,A) = โˆš[(3-1)ยฒ+(3-1)ยฒ] = โˆš8 โ‰ˆ 2.83 d(P,B) = โˆš[(3-2)ยฒ+(3-2)ยฒ] = โˆš2 โ‰ˆ 1.41 โ† nearest d(P,C) = โˆš[(3-4)ยฒ+(3-4)ยฒ] = โˆš2 โ‰ˆ 1.41 โ† nearest 3 nearest: B(Red), C(Blue), A(Red) โ†’ 2 Red, 1 Blue โ†’ P = Red โ†’ Answer: A โœ“

๐Ÿ“ฆ K-Means Clustering NUMERICAL EVERY CA

Steps: (1) Choose K centroids. (2) Assign each point to nearest centroid. (3) Update centroids = mean of cluster. (4) Repeat.

CA Part B Q1: k=2, Points A(2,2),B(3,3),C(4,4),D(6,5),E(9,1) Initial Centroids: C1=(2,2), C2=(9,1) Distances (Euclidean): A(2,2): d(C1)=0, d(C2)=โˆš50=7.07 โ†’ Cluster1 B(3,3): d(C1)=โˆš2=1.41, d(C2)=โˆš37=6.08 โ†’ Cluster1 C(4,4): d(C1)=โˆš8=2.83, d(C2)=โˆš26=5.10 โ†’ Cluster1 D(6,5): d(C1)=5, d(C2)=โˆš17=4.12 โ†’ Cluster2 E(9,1): d(C1)=โˆš50=7.07, d(C2)=0 โ†’ Cluster2 New C1 = ((2+3+4)/3, (2+3+4)/3) = (3, 3) New C2 = ((6+9)/2, (5+1)/2) = (7.5, 3)

โœ‚๏ธ Cross-Validation & Overfitting MCQ

Cross-Validation: Used to REDUCE OVERFITTING (CA Q8 โ†’ Answer a). Splits data into k folds.

Overfitting (CA Q9): Good training performance + poor test performance โ†’ "Overfitting problem" โ†’ Answer (b).

Best Model (CA Q10): Low bias + Low variance โ†’ Answer (c).

๐ŸŽ“ Reinforcement Learning โ€” MDP DEF

  • States (S) โ€” all possible situations the agent can be in
  • Actions (A) โ€” possible actions at each state
  • Transition Probability P(s'|s,a) โ€” probability of reaching next state
  • Reward Function R(s,a) โ€” immediate reward signal
  • Discount Factor ฮณ โ€” 0 to 1; ฮณโ‰ˆ1 = future important; ฮณโ‰ˆ0 = immediate rewards only
4๏ธโƒฃ Unit 4 โ€” Deep Learning & Natural Language Processing

๐Ÿง  Neural Network Basics

Inspired by the human brain. Perceptron: Simplest ANN โ€” single neuron, binary classification, LINEAR classifier (draws one straight line).

Perceptron output = activation(ฮฃ wแตขxแตข + b) Weight update rule: w = w - ฮทยทx (ฮท = learning rate) Limitation: Can't solve non-linear problems (XOR needs MLP)

MLP (Multi-Layer Perceptron): Multiple hidden layers. Solves non-linear problems. Universal Function Approximator. Hidden layers = feature extractors.

๐Ÿ–ผ CNN โ€” Convolutional Neural Network MOST TESTED

Designed for grid-like data (images). Preserves spatial relationships between pixels.

Architecture: Input โ†’ [Conv โ†’ ReLU โ†’ Pool] ร— N โ†’ Flatten โ†’ FC โ†’ Softmax โ†’ Output

  • Convolution Layer: Applies kernels/filters to detect features. Produces feature maps. Kernel slides with stride.
  • Pooling Layer: Reduces spatial dimensions. Max Pooling: Keeps largest value in each window. Goal: keep important features, reduce computation.
  • Fully Connected (FC) Layer: Converts features to probability outputs for final classification.
TRAP (CA Q2): Best for image classification = CNN (spatial features). NOT RNN or Transformer or Bayesian.
TRAP (CA Q14): Role of Pooling = Reduce spatial dimensions of feature maps. NOT increase filters, NOT convert to probabilities alone.

๐Ÿ”„ RNN โ€” Recurrent Neural Network COMPARE MCQ

Handles sequential/time-series data. Has a LOOP โ€” output of step t becomes input of step t+1. Hidden state h_t holds memory.

h_t = tanh(W_xยทX_t + W_hยทh_{t-1} + b) New Memory = Activation(New Input + Previous Memory) Applications: Text, Speech, Stock Prices, Time Series
TRAP (CA Q11): Common RNN problem = Vanishing gradient during LONG sequences. NOT lack of activation functions, NOT spatial resolution issues.

โšก Transformer Architecture HIGH YIELD

Google Brain 2017. Solves RNN's sequential bottleneck. Reads entire sequence AT ONCE (parallel).

Self-Attention: Q=Query (What I'm looking for?) K=Key (What I can offer?) V=Value (Actual content) Attention(Q,K,V) = softmax(QK^T / โˆšd_k) ร— V Positional Encoding: Sine/Cosine waves โ†’ adds word order info Why needed? Parallel processing โ†’ loses word order โ†’ must add it back CA Q12: Why positional encoding? โ†’ Provide ordered sequence data โ†’ Answer (a) โœ“

Encoder: Positional Encoding โ†’ Multi-Head Attention โ†’ Add&Norm โ†’ FFN โ†’ Rich vector representation.

Decoder: Masked Attention (can't see future words) โ†’ Cross-Attention (looks at Encoder output) โ†’ Generate output.

Multi-Head Attention: Multiple attention mechanisms in parallel โ€” one head focuses grammar, another vocabulary, another context.

๐Ÿค– BERT vs GPT COMPARISON โ€” EXAM FAVOURITE

FeatureBERTGPT
DirectionBidirectional (L โ†” R)Unidirectional (L โ†’ R only)
ArchitectureEncoder-onlyDecoder-only
Training TaskMLM (mask 15%) + NSPAutoregressive (predict next token)
Best UseUnderstanding: QA, Classification, NER, SentimentGeneration: Text, Code, Dialogue, Summarization
Context WindowSees past AND future simultaneouslySees only past tokens (future masked)
TRAP: BERT reads Lโ†”R simultaneously. GPT reads Lโ†’R only. GPT GENERATES new text; search engines RETRIEVE existing pages (Sample Q43 โ†’ Answer a).

๐Ÿ—ฃ NLP Core Concepts PHASES MCQ

NLP Pipeline for Chatbot (Sample Q31 โ†’ Answer c): Speech Recognition โ†’ Text Preprocessing โ†’ Intent Recognition โ†’ Response Generation Ambiguity types: - Syntactic: "I saw the man with the telescope" (structural) - Semantic: "Bank" = river bank OR financial bank (word meaning)

Tokenization: Splitting text into tokens (words, subwords, characters).

Embedding: Dense vector representation in continuous high-dimensional space. Captures semantic similarity.

Attention: Model focuses on most relevant input parts dynamically. Solves fixed-length bottleneck of Seq2Seq models.

๐Ÿค Chatbots MCQ

Rule-Based Chatbots

  • Predefined scripts
  • Keyword matching
  • Fixed responses
  • Limited flexibility

AI-Based Chatbots

  • ML-powered NLP
  • Understands context
  • Improves over time
  • Example: ChatGPT

NLU: Extracts intent + entities from user input ("Book flight to Delhi Friday" โ†’ intent: book, entities: Delhi, Friday).

NLG: Converts structured data to human-like response.

NER in Voice Assistants (Sample Q38): Use NLP techniques like NER and Sentiment Analysis to improve Alexa/Siri. โ†’ Answer (b).

NLP for spell checking (Sample Q48): Edit Distance โ†’ Answer (a). NOT TF-IDF, NOT Tokenization.
5๏ธโƒฃ Unit 5 โ€” Generative AI & Prompt Engineering โ˜… Inferred from syllabus + sample papers

๐ŸŽจ Generative AI โ€” Definition KEY MCQ

AI that creates NEW content (text, images, audio, video, code) by detecting patterns in training data.

KEY (Sample Q19): GenAI CREATES new data; Traditional AI ANALYZES existing data โ†’ Answer (b).
KEY (Sample Q45): GenAI "learns" to create โ†’ By detecting patterns in training data (NOT memorizing past data) โ†’ Answer (b).

๐Ÿ”€ GANs โ€” Generative Adversarial Networks ARCHITECTURE MCQ

Generator

  • Creates synthetic/fake data
  • Input: random noise vector z
  • Goal: fool the Discriminator
  • GENERATES new samples

Discriminator

  • Judges real vs fake
  • Binary classifier
  • Feedback to Generator
  • Output: probability real/fake
TRAP (Sample Q7): Component generating NEW samples = Generator (NOT Encoder, Discriminator, or Decoder) โ†’ Answer: (d) Generator.
Training: Generator improves until Discriminator can't distinguish real from fake. Applications: Image generation, deepfakes, data augmentation, art creation

๐Ÿ“Š VAE โ€” Variational Autoencoders Sample Q41

Generate new data by learning a probabilistic latent space. Encoder maps to distribution (ฮผ, ฯƒยฒ). Sample z. Decoder reconstructs.

Primary Purpose (Sample Q41): Generate new data by learning a probabilistic latent space โ†’ Answer: (b).

VAE Loss = Reconstruction Loss + KL Divergence KL Divergence: forces latent space toward N(0,1) โ†’ enables random sampling

๐Ÿ”ค Large Language Models (LLMs) MODERN AI

Transformer-based models trained on massive text corpora. Demonstrate emergent abilities at scale.

PaLM vs smaller models (Sample Q46): PaLM has more parameters โ†’ understands complex queries better โ†’ Answer (c).

Emergent abilities: Zero-shot translation, code writing, chain-of-thought reasoning โ€” not explicitly trained for these tasks.

๐Ÿ’ฌ Prompt Engineering DEFINITIONS

What is a Prompt? (Sample Q30): An input given to a language model โ†’ Answer (b).

Best strategy to refine AI responses (Sample Q2): Rewriting and iterating prompts โ†’ Answer (a).

PatternDescriptionExample
Instruction-basedDirect command"Translate this to French:"
Chain-of-ThoughtStep-by-step reasoning"Solve step by step..."
Few-shotExamples provided first"Here are 3 examples. Now:"
Role-basedAssign persona"You are a doctor..."
Zero-shotNo examples given"Classify this text:"
TRAP (Sample Q58): All three โ€” instruction-based, chain-of-thought, few-shot โ€” ARE prompt patterns โ†’ Answer (d) All of the above.

๐Ÿงญ Zero-Shot vs Few-Shot Learning TRICKY MCQ

TRAP (Sample Q13): Zero-shot = Predict UNSEEN tasks directly (no task-specific training). NOT train only on labeled data. NOT ignore new input. NOT evaluate only known classes โ†’ Answer (c).

Few-shot: Learn from a small number of examples (1-shot, 5-shot). Model generalizes from few demonstrations.

๐ŸŽญ Diffusion Models MODERN

Generate content by reversing a noise process. Forward: add noise step by step. Reverse: denoise to generate.

Examples: DALL-E, Stable Diffusion, Midjourney, Sora (video).

Forward process: x_0 โ†’ x_1 โ†’ ... โ†’ x_T (pure Gaussian noise) Reverse process: x_T โ†’ x_{T-1} โ†’ ... โ†’ x_0 (generated image/content) Model learns: how to remove noise at each step

โš–๏ธ AI Ethics & Responsible AI CO5

  • Bias: Models inherit biases from training data (gender, racial bias)
  • Fairness: Equal treatment across demographic groups
  • Transparency/Explainability (XAI): Understanding why AI makes decisions
  • Privacy: User data protection; not using training data without consent
  • Accountability: Humans remain responsible for AI decisions
  • Hallucination: LLMs confidently generate false information
6๏ธโƒฃ Unit 6 โ€” Data Analysis, Tools & MLOps โ˜… Inferred from syllabus + sample papers

๐Ÿงช ChatGPT ADA (Advanced Data Analysis) TOOLS MCQ

Key difference (Sample Q50 โ†’ Answer c): ADA can analyze datasets and run Python code; standard ChatGPT cannot.

Error identification in ADA (Sample Q18 โ†’ Answer a): Using data validation methods to identify discrepancies or unusual patterns in input data.

Without error handling (Sample Q55 โ†’ Answer d): Output might include incorrect or incomplete data.

Media files in ADA (Sample Q35 โ†’ Answer a): Extract text and metadata using AI models.

๐Ÿ“Š Data Visualization MCQ

Categorical data (Sample Q12 โ†’ Answer c): Bar chart.

Data TypeBest Chart
CategoricalBar chart, Pie chart
DistributionHistogram
Two-variable relationshipScatter plot
Correlation matrixHeatmap
Time series / TrendLine chart

๐Ÿ Python Pandas Quick Reference CODE MCQ

Duplicate rows โ†’ df.drop_duplicates() (Sample Q21 โ†’ Answer d) Missing values โ†’ df.fillna(value) Preview data โ†’ df.head() Count non-null โ†’ df.count() ZeroDivisionError โ†’ dividing by zero (Sample Q15 โ†’ Answer b) ValueError โ†’ wrong type/value NameError โ†’ undefined variable IndexError โ†’ index out of range

AI writing assistant (Sample Q23 โ†’ Answer b): Grammarly.

Marketing/Social Media AI (Sample Q59 โ†’ Answer d): ChatGPT.

โ˜๏ธ Cloud AI & MLOps DEF

  • MLOps: ML + DevOps โ€” automates training, deployment, monitoring of ML models
  • Cloud Services: AWS SageMaker, GCP Vertex AI, Azure ML โ€” for scalable training/hosting
  • Edge Deployment: Run models on local devices (low latency, offline capable)
  • CI/CD Pipelines: Continuous integration/delivery for ML workflows
  • Model Monitoring: Track accuracy drift, data drift over time in production

๐Ÿ“‹ Knowledge Representation & Reasoning MCQ

Knowledge Representation approaches (Sample Q26 โ†’ Answer a): Frames, Semantic Networks, Logical Representation. Neural networks are NOT a KR approach.

Odd one out (Sample Q25 โ†’ Answer a): Heuristic Search is NOT a knowledge representation technique.

Backward chaining advantage (Sample Q42 โ†’ Answer b): It is goal-driven (starts from goal, works backward to find supporting facts).

Dempster-Shafer (Sample Q47 โ†’ Answer a): Belief functions = degree of confidence in a hypothesis.

๐Ÿ“‹ Cheat Sheets

๐Ÿ” Search Algorithms

BFSQueue, Level-by-level, O(b^d), Complete, Optimal (equal cost)
DFSStack, Depth-first, O(b^m), Incomplete, Not Optimal
IDSDLS+increasing L, Complete, Optimal, O(b^d), O(bd) space
Greedyf(n)=h(n) only, Fast, NOT Optimal
A*f(n)=g(n)+h(n), Complete, Optimal (admissible h)
MinimaxMAX maximizes, MIN minimizes, evaluates ALL states
Alpha-BetaPrunes Minimax, ฮฑ=best MAX, ฮฒ=best MIN
Sim. Anneal.Accepts worse solutions to escape local minima

๐Ÿ“Š ML Metrics

PrecisionTP/(TP+FP) โ€” of predicted +ve, how many correct?
RecallTP/(TP+FN) โ€” of actual +ve, how many caught?
Accuracy(TP+TN)/(TP+TN+FP+FN)
F1 Score2ร—Pร—R/(P+R) โ€” harmonic mean
Low RecallMisses many positives (high FN)
Low PrecisionMany false alarms (high FP)
Best ModelLow bias + Low variance
Cross-valUsed to REDUCE OVERFITTING

๐Ÿค– Neural Networks

PerceptronSingle neuron, linear classifier, binary output
MLPHidden layers, solves XOR, Universal Approx.
CNNImages, spatial features, Conv+Pool+FC
RNNSequences, hidden state h_t, vanishing gradient
LSTMSolves vanishing gradient, forget/input/output gates
TransformerParallel, self-attention (Q,K,V), positional enc.
BERTBidirectional, MLM+NSP, understanding tasks
GPTAutoregressive, next-token pred., generation tasks

๐ŸŽจ Generative AI

GANGenerator (creates) + Discriminator (judges)
VAEEncoderโ†’latent distributionโ†’Decoder, probabilistic
DiffusionAdd noise (forward) โ†’ Remove noise (reverse)
Zero-shotPredict UNSEEN tasks without specific training
Few-shotLearn from small number of examples
PromptInput given to a language model
CoTChain-of-thought: step-by-step reasoning
LLM ScalingMore params + more data โ†’ emergent abilities

๐Ÿงฎ Probability & Logic

BayesP(A|B) = P(B|A)ยทP(A) / P(B)
Joint PProduct of conditional probabilities (Bayesian nets)
Naive BayesFeatures INDEPENDENT given class
Bayesian NetDAG, probabilistic relationships, uncertainty
De Morganยฌ(PโˆจQ)=(ยฌP)โˆง(ยฌQ)
ImplicationPโ†’Q โ‰ก ยฌPโˆจQ
D-S TheoryBelief = degree of confidence in hypothesis

๐Ÿ’ป Python/Tools

Drop dupesdf.drop_duplicates()
Fill NAdf.fillna(value)
Div by zeroZeroDivisionError (NOT ValueError)
CategoricalBar chart visualization
NLP spellcheckEdit Distance (NOT TF-IDF)
Writing AIGrammarly
Marketing AIChatGPT
ADAChatGPT ADA can run Python code on datasets
๐ŸŒ™ One-Night-Before Exam โ€” 20 Must-Know Points

1. AI foundations: Philosophy, Math, Psychology, CS, Neuroscience, Linguistics โ€” NOT Astrology

2. Narrow AI=Siri/Alexa (EXISTS). General AI=theoretical. Super AI=theoretical.

3. BFS=Queue/Complete/Optimal | DFS=Stack/Incomplete/Not Optimal | A*=g(n)+h(n)/Optimal

4. Greedy BFS uses ONLY h(n). A* uses g(n)+h(n). A* is optimal (admissible h). Greedy is NOT.

5. Alpha-Beta goal = Reduce nodes in Minimax. ฮฑ=best MAX score. ฮฒ=best MIN score.

6. Branching factor = states generated FROM a given state (NOT paths to goal).

7. Precision=TP/(TP+FP) | Recall=TP/(TP+FN) | f(n)=g(n)+h(n) for A*

8. Naive Bayes assumption = features INDEPENDENT given class (NOT correlated).

9. Cross-validation = REDUCE OVERFITTING. Overfitting = good train, bad test performance.

10. CNN=images/spatial features. RNN=sequences/memory h_t. Transformer=parallel/attention.

11. RNN problem = Vanishing gradient during long sequences.

12. Positional encoding = needed because Transformer reads ALL at once (loses word order).

13. BERT=Bidirectional/MLM+NSP/Encoder-only. GPT=Autoregressive/Next-token/Decoder-only.

14. GAN: Generator GENERATES samples. Discriminator judges real/fake. Don't confuse!

15. VAE primary purpose = generate new data via probabilistic latent space.

16. Zero-shot = predict UNSEEN tasks directly. Few-shot = learn from few examples.

17. Prompt = input to language model. All 3 patterns (instruction, CoT, few-shot) are valid.

18. NLP chatbot pipeline: Speech Recog โ†’ Text Preprocessing โ†’ Intent Recog โ†’ Response Gen.

19. ChatGPT ADA can analyze datasets + run Python; standard ChatGPT cannot.

20. De Morgan: ยฌ(PโˆจQ)=(ยฌP)โˆง(ยฌQ). NOT a logical connector: Aggregation.

๐Ÿ”ข Complete Formula & Definition Sheet
A* f(n)
f(n) = g(n) + h(n)
Admissible h
h(n) โ‰ค h*(n) [never overestimates]
Manhattan Dist
|x1-x2| + |y1-y2|
Euclidean Dist
โˆš((x1-x2)ยฒ + (y1-y2)ยฒ)
Precision
TP / (TP + FP)
Recall
TP / (TP + FN)
Accuracy
(TP + TN) / (TP + TN + FP + FN)
F1 Score
2 ร— (P ร— R) / (P + R)
Bayes Theorem
P(A|B) = P(B|A)ร—P(A) / P(B)
Total Probability
P(B) = ฮฃ P(B|Aแตข)ร—P(Aแตข)
Mean (ฮผ)
ฮผ = ฮฃxแตข / N
Variance
ฯƒยฒ = ฮฃ(xแตข - ฮผ)ยฒ / N
Std Deviation
ฯƒ = โˆš(ฮฃ(xแตข-ฮผ)ยฒ / N)
BFS Time+Space
O(b^d) where b=branching factor, d=depth
DFS Time
O(b^m) where m=max depth
DFS Space
O(bร—m)
Water Jug States
(cap1 + 1) ร— (cap2 + 1)
Perceptron
output = activation(ฮฃwแตขxแตข + b)
Weight Update
w = w - ฮทยทx (ฮท = learning rate)
RNN Hidden State
h_t = tanh(W_xยทX_t + W_hยทh_{t-1} + b)
Self-Attention
Attention(Q,K,V) = softmax(QK^T/โˆšd_k)ยทV
Positional Enc.
PE(pos,2i) = sin(pos/10000^(2i/d_model))
De Morgan 1
ยฌ(PโˆจQ) = (ยฌP)โˆง(ยฌQ)
De Morgan 2
ยฌ(PโˆงQ) = (ยฌP)โˆจ(ยฌQ)
Implication
Pโ†’Q โ‰ก ยฌPโˆจQ
Biconditional
Pโ†”Q โ‰ก (Pโ†’Q)โˆง(Qโ†’P)
K-Means Centroid
New centroid = mean of all points in cluster
RL Bellman Eq.
V(s) = R + ฮณ ร— max_a V(s')
Discount ฮณโ‰ˆ1
Future rewards are important
Discount ฮณโ‰ˆ0
Only immediate rewards matter
๐Ÿ† Top 100 Most Important Points
โš–๏ธ Master Comparison Tables
CNN vs RNN vs Transformer
FeatureCNNRNNTransformer
Best forImages, Grid dataSequences, Time series, TextNLP, Any sequence
ProcessingParallel (spatial)Sequential (one step at a time)Fully Parallel
MemoryNo temporal memoryHidden state h_tSelf-attention (global context)
Key LayerConv + PoolingRecurrent connectionMulti-Head Attention
Vanishing GradLess problematicMajor issue (long sequences)Not an issue
Match (CA Q5)Image processingSequence modelingParallel processing
Also handlesObject detectionSpeech, Stock pricesTranslation, Generation
BERT vs GPT
FeatureBERTGPT
DirectionBidirectional (L โ†” R)Unidirectional (L โ†’ R)
ArchitectureEncoder-onlyDecoder-only
Training TaskMLM (mask 15%) + NSPAutoregressive next-token prediction
Best UseUnderstanding: QA, Classification, NER, SentimentGeneration: Text, Code, Dialogue
ContextSees past AND future simultaneouslySees only past tokens
ExamplesBERT-base, RoBERTa, DistilBERTGPT-2, GPT-3, GPT-4, ChatGPT
Supervised vs Unsupervised vs Reinforcement Learning
FeatureSupervisedUnsupervisedReinforcement
Training DataLabeled (X, Y pairs)Unlabeled (X only)Rewards/Penalties
GoalPredict labels/valuesFind patterns/clustersMaximize cumulative reward
AlgorithmsSVM, KNN, Linear Reg, DTK-Means, DBSCAN, PCAQ-Learning, Policy Gradient
ExampleEmail spam filter, Image classifierCustomer segmentationAlphaGo, Game agents
FeedbackDirect (label comparison)No direct feedbackDelayed reward signal
Search Algorithms Master Reference
AlgorithmTypeCompleteOptimalTimeSpace
BFSUninformedโœ… Yesโœ… Equal costO(b^d)O(b^d)
DFSUninformedโŒ NoโŒ NoO(b^m)O(bm)
IDSUninformedโœ… Yesโœ… YesO(b^d)O(bd)
Greedy BFSInformedโŒ NoโŒ NoO(b^m)O(b^m)
A*Informedโœ… Yesโœ… (admissible h)Exp.Exp.
Hill ClimbingLocalโŒ NoโŒ Noโ€”O(b)
Sim. AnnealingLocalโœ… Prob.โœ… Prob.โ€”O(1)
Narrow vs General vs Super AI
FeatureNarrow AI (Weak)General AI (Strong)Super AI
ScopeOne specific taskAny human intellectual taskSurpasses humans in ALL
LearningTask-specific onlyCross-domain learningSelf-improvement
ExamplesSiri, Alexa, ChatGPT, NetflixHumanoid robot (theoretical)Sci-fi AI (theoretical)
Statusโœ… EXISTS NOWโŒ TheoreticalโŒ Theoretical
๐Ÿƒ Flashcards โ€” Click Card to Flip
Loading...
Loading...
1 / 40
โ“ MCQ Bank (105+ Questions)
๐Ÿ“ Mock Test โ€” 30 Questions / 30 Minutes

๐Ÿ“‹ Instructions

  • 30 MCQs simulating actual INT428 exam pattern
  • 1 mark each, 0.25 negative marking per wrong answer
  • Timer: 30 minutes. Covers all 6 units.
  • Submit at any time or let timer run out