Top Banner Ad
2026-27 Model Paper · Predicted Practice SetSyllabus-aligned practice paper with marking scheme
AAI101 · 2026-27 Model Paper (Set 2)22 Questions

Introduction to AI and Prompt Engineering — 2026-27 Model Paper (Set 2)

Section A

2 Marks Each · 4 questions
Q62MUnit 4 — AI in Biotechnology and Healthcare
Predicted

Mention one AI application in agriculture and one in healthcare.

Answer: Agriculture: crop disease detection from leaf images or drone-based crop monitoring (1 mark). Healthcare: medical image analysis for tumor detection or AI-assisted drug discovery (1 mark). Result: AI detects crop disease from images in agriculture and supports tumor detection or drug discovery in healthcare.

Key Points

  • Agriculture: leaf-image crop disease detection or drone monitoring (1 mark)
  • Healthcare: medical image tumor detection or drug discovery (1 mark)
Q72MUnit 5 — Chain-of-thought prompting
Predicted

What is chain-of-thought prompting?

Answer: Chain-of-thought prompting asks the AI to reason step by step before giving the final answer. Showing intermediate reasoning improves performance on multi-step arithmetic, logic and reasoning problems (2 marks). Result: Chain-of-thought prompting makes the model reason in steps, improving multi-step answers.

Key Points

  • Requests step-by-step reasoning before final answer (2 marks)
  • Improves performance on multi-step problems
Q1(a)7MUnit 1 — Definition and scope of AI
Core Concept

(a) Describe the history and scope of AI. Explain how data, patterns, and predictions form the basis of machine learning with a simple example.

Concept / Given Data: Artificial Intelligence (AI) is the branch of computer science that builds systems capable of performing tasks normally requiring human intelligence — reasoning, perception, learning, and decision-making. Its scope ranges from today's narrow, single-task systems to the long-term theoretical goal of general and super intelligence.

Key Principle: AI is the *goal* (machines doing intelligent tasks); Machine Learning is the *method* (learning from data); Deep Learning is a *subset* of ML using stacked neural layers. The ML loop is: $\text{Data} \rightarrow \text{Patterns} \rightarrow \text{Predictions}$.

Step-by-Step Explanation:

1. History — from Alan Turing to ChatGPT

Year Milestone Significance
1950 Turing Test ("Imitation Game") First formal question: can a machine behave like a human?
1956 Dartmouth Conference Term "Artificial Intelligence" officially coined
1980s Expert Systems Rule-based AI for medical diagnosis, chess
2012 AlexNet wins ImageNet Deep learning revolution begins
2017 Transformer architecture Foundation for modern LLMs
2022–23 ChatGPT / GPT-4 AI reaches the general public

2. Scope of AI

  • Narrow AI (current reality): Systems that excel at one specific task — spam filters, recommendation engines, voice assistants, self-driving car perception modules.
  • General AI (theoretical): A hypothetical system matching or exceeding human cognitive ability across all domains simultaneously.
  • Super AI (concept): Intelligence that surpasses human capability in every measurable field, including scientific creativity and strategic planning.

3. Data → Patterns → Predictions: The Basis of Machine Learning

Machine learning works through a three-stage conceptual loop (no heavy mathematics required):

  • Data (Input): Raw observations collected from the real world. Example: 10,000 photographs of concrete beams, each labelled either "crack present" or "no crack" by a structural engineer.
  • Patterns (Learned Structure): The algorithm scans the labelled data and discovers recurring statistical regularities. In the example, it learns that a sharp gradient in pixel intensity along a diagonal line, combined with a specific colour shift, strongly correlates with the "crack" label. This learned mapping is the pattern.
  • Predictions (Output): The trained model is shown a new, unseen beam image. It applies the learned pattern and outputs a prediction: "Crack present, confidence =0.94= 0.94." The prediction is only as reliable as the quality and quantity of the training data.

Result: The three pillars — data (what the machine sees), patterns (what it learns), and predictions (what it outputs) — form the complete machine-learning loop. Without representative data, no valid pattern can emerge; without a correct pattern, predictions become meaningless. This is why data quality and visualisation are emphasised in the syllabus.

Tip from Examiner: For this 7-mark question, examiners award 2 marks for a correct history timeline (name at least 3 milestones with years), 2 marks for clearly distinguishing Narrow / General / Super AI, and 3 marks for the data → pattern → prediction explanation with a *concrete* example. Common mistake: writing only the names of the three stages without giving a real-world example. Always state the input, the learned pattern, and the output explicitly.

Key Points

  • Turing Test (1950) → Dartmouth (1956) → AlexNet (2012) → Transformer (2017) → ChatGPT (2022) is the core timeline to memorise.
  • Narrow AI = current single-task systems; General AI = human-level across all domains (theoretical); Super AI = surpasses humans (concept).
  • ML loop: Data (raw observations) → Patterns (learned statistical regularities) → Predictions (output on unseen data).
  • Always pair the data-pattern-prediction explanation with a concrete example (e.g., crack detection in concrete beams).
  • AI is the goal, ML is the method, Deep Learning is a subset of ML — this three-circle distinction answers both 2m and 7m questions.
Q1(b)7MUnit 1 — Data Visualization
Core Concept

(b) Explain data, data visualization, and data preprocessing in the context of AI/ML. Why are they important before training a model?

Concept / Given Data

Data in AI/ML refers to the raw observations or measurements that a model learns from. Data visualization is the graphical representation of this data to reveal patterns, trends, and anomalies. Data preprocessing is the set of operations that transform raw data into a clean, usable form for modelling.

Key Formula / Principle: Preprocessed Data=Clean(Raw Data)  &  Transform(Cleaned Data)\text{Preprocessed Data} = \text{Clean}(\text{Raw Data}) \; \& \; \text{Transform}(\text{Cleaned Data})

Step‑by‑Step Solution

  1. Collect: Gather labelled or unlabelled samples (images, text, sensor readings). Example: 10,000 images of cats and dogs.
  2. Clean: Remove duplicates, fix missing values, correct outliers. For images, resize and normalize pixel values.
  3. Transform: Encode categorical variables (one‑hot), scale numerical features (z‑score), augment data (rotations, flips).
  4. Visualize: Plot histograms, scatter plots, heatmaps to inspect distributions and correlations. This helps detect class imbalance or multicollinearity.
  5. Split: Divide into training, validation, and test sets to avoid leakage.
  6. Feed: Use the preprocessed, visualised data to train the model.

Why Important

  • Quality: Garbage in, garbage out. Clean data reduces noise that can mislead the learning algorithm.
  • Interpretability: Visualisation exposes hidden biases or data leakage, enabling corrective action before costly training.
  • Efficiency: Normalised features speed convergence and improve numerical stability.
  • Generalisation: Proper preprocessing and visual checks guard against over‑fitting and ensure the model performs well on unseen data.

Result: A well‑preprocessed, visualised dataset leads to faster training, higher accuracy, and robust generalisation.

Tip from Examiner: Highlight the *pipeline* order (collect → clean → transform → visualise → split). Mention a concrete example (e.g., image classification) to show understanding. Avoid vague statements like "clean data is good"; specify actions and their impact.

Key Points

  • Data = raw observations used for learning
  • Visualization reveals patterns and biases
  • Preprocessing cleans, transforms, and normalises data
  • Pipeline: collect → clean → transform → visualise → split
  • Clean data improves accuracy and generalisation
  • Visualization prevents data leakage and over‑fitting

Section B

7 Marks Each · 12 questions
Q12MUnit 1 — Definition and scope of AI
Predicted

State two differences between AI and traditional programming.

AI learns patterns from data to make predictions, while traditional programming follows fixed rules written by a developer. In AI, the model improves automatically with more data; in traditional programming, behaviour changes only when a programmer manually updates the code.

Key Points

  • AI: data-driven, learns patterns; Traditional: rule-driven, fixed logic
  • AI improves with more data; Traditional changes only via code edits
  • AI handles ambiguity and new inputs; Traditional fails on unhandled cases
Q22MUnit 1 — Reinforcement Learning
Core Concept

What is reinforcement learning? Give one example.

Reinforcement learning is a machine‑learning paradigm where an agent learns to make decisions by interacting with an environment and receiving feedback in the form of rewards or penalties. The agent seeks to maximise cumulative reward over time. Example: A robot learning to navigate a maze by receiving a positive reward when it reaches the exit and a negative reward for hitting walls.

Key Points

  • Agent learns from rewards
  • Goal: maximise cumulative reward
  • Interaction with environment
  • Example: maze‑navigation robot
Q32MUnit 2 — precision
Predicted

Define precision in classification.

Answer: Precision is the proportion of correctly predicted positive cases among all cases predicted positive: Precision = TP / (TP + FP), where TP is true positive and FP is false positive. It measures correctness of positive predictions and is sensitive to false positives, so it matters when false positives are costly (Definition/formula 2 marks). Result: Precision answers how many of the predicted positives were actually correct.

Key Points

  • Precision = TP/(TP+FP) (2 marks)
  • Measures correctness of positive predictions; sensitive to false positives
Q42MUnit 2 — Neural networks
Core Concept

What is the role of activation in a neural network neuron?

In a neural‑network neuron, the activation function introduces non‑linearity, enabling the network to model complex patterns. It transforms the weighted sum z=sumiwixi+bz=sum_i w_i x_i+b into an output a=f(z)a=f(z), e.g., f(z)=tanh⁡(z)f(z)=\tanh(z) or f(z)=sigma(z)=1/(1+e−z)f(z)=sigma(z)=1/(1+e^{-z}).

Key Points

  • Adds non‑linearity
  • Transforms weighted sum
  • Common functions: sigmoid, tanh, ReLU
Q52MUnit 3 — context window
Predicted

What is meant by "context window" in an LLM?

A context window is the maximum number of tokens that an LLM can process at one time, including the prompt, retrieved text and safety buffer. It limits the amount of information the model can attend to when generating a response. Available tokens=Window−Prompt−Retrieved−Safety\text{Available tokens}=\text{Window}-\text{Prompt}-\text{Retrieved}-\text{Safety}

Key Points

  • Maximum token capacity of an LLM
  • Includes prompt, retrieved text and safety buffer
  • Limits information the model can attend to
Q17MUnit 1 — Reinforcement Learning
Predicted

Explain the types of machine learning: supervised, unsupervised, and reinforcement learning. Include one real-life example for each.

Concept / Given Data

Machine learning (ML) is a subset of AI that enables systems to learn patterns from data and improve performance without explicit programming. The three primary learning paradigms are supervised, unsupervised, and reinforcement learning. Each paradigm differs in the type of feedback provided during training and the nature of the problem it solves.

Key Formula / Principle: Learning Paradigm=Supervised,Unsupervised,Reinforcement\text{Learning Paradigm} = { \text{Supervised}, \text{Unsupervised}, \text{Reinforcement} }

1. Supervised Learning

  • Definition: The model is trained on a labelled dataset ((mathbfxi,yi)i=1N{(mathbf{x}_i, y_i)}_{i=1}^N) where each input (mathbf{x}_i) is paired with a target output (y_i). The objective is to learn a mapping (f:mathbf{x}\rightarrow y) that generalises to unseen data.
  • Typical Tasks: Classification (e.g., spam detection) and regression (e.g., house price prediction).
  • Real‑life Example: In civil engineering, a supervised model classifies images of bridge components as cracked or intact using labelled photographs. The model learns from thousands of annotated images and then predicts the status of new inspections.

2. Unsupervised Learning

  • Definition: The dataset contains only inputs ({mathbf{x}i}{i=1}^N) with no explicit labels. The algorithm discovers hidden structure such as clusters, associations, or dimensionality reduction.
  • Typical Tasks: Clustering, anomaly detection, and feature extraction.
  • Real‑life Example: In mechanical engineering, vibration signals from machinery are clustered to identify similar operating conditions. An unsupervised algorithm groups these signals, helping maintenance teams spot anomalous patterns that may indicate impending failure.

3. Reinforcement Learning (RL)

  • Definition: An agent interacts with an environment (mathcal{E}) by taking actions (a_t) in states (s_t), receiving rewards (r_t). The goal is to learn a policy (pi(a|s)) that maximises cumulative discounted reward (sum_{t=0}^{infty}gamma^t r_t).
  • Typical Tasks: Sequential decision making, control, and optimisation.
  • Real‑life Example: In electrical engineering, an RL agent manages a smart grid by learning to balance supply and demand. The agent receives a reward for maintaining voltage stability and penalises for overloads, gradually learning an optimal dispatch strategy.

Step‑by‑Step Summary

  1. Identify the type of feedback available (labels, patterns, rewards).
  2. Choose the appropriate learning paradigm.
  3. Collect and preprocess data (or define the environment for RL).
  4. Train the model or agent and evaluate performance.
  5. Deploy the solution in the target application.

Result: The three learning paradigms—supervised, unsupervised, and reinforcement—provide a comprehensive toolkit for tackling diverse AI problems, from image classification to autonomous control, each with distinct data requirements and real‑world applications.

Tip from Examiner: Highlight the *feedback* difference: labels for supervised, structure for unsupervised, rewards for reinforcement. Give one concrete example per type and mention the typical task (classification, clustering, control). Avoid generic statements like "ML learns from data" without specifying the paradigm.

Key Points

  • Supervised learning uses labelled data to learn a mapping f:mathbfx→yf:mathbf{x}\rightarrow y
  • Unsupervised learning discovers hidden structure such as clusters from unlabelled data
  • Reinforcement learning optimises a policy pi(a∣s)pi(a|s) to maximise cumulative reward
  • Each paradigm has a distinct real‑life application: image classification, vibration clustering, smart‑grid control
Q27MUnit 2 — Clustering Technique-K-Means
Predicted

Explain K-Means clustering. Describe its steps and mention one practical application.

Concept / Given Data: K-Means is an unsupervised clustering algorithm that partitions nn data points into kk non-overlapping clusters by minimising the within-cluster sum of squares (WCSS). No class labels are required — the algorithm discovers natural groupings purely from feature-space distances.

Objective (WCSS): WCSS=∑i=1k∑x∈Ci∥x−μi∥2\text{WCSS} = \sum_{i=1}^{k} \sum_{x \in C_i} \| x - \mu_i \|^2

where μi\mu_i is the centroid of cluster CiC_i.

Step-by-Step Algorithm:

  1. Initialise: Choose kk initial centroids. Random selection works; K-Means++ spreads them apart for faster convergence.
  2. Assign: For every data point xx, compute Euclidean distance to each centroid and assign xx to the nearest one:
d(x,c)=∑j=1d(xj−cj)2d(x, c) = \sqrt{\sum_{j=1}^{d}(x_j - c_j)^2}
  1. Update: Recompute each centroid as the arithmetic mean of all points currently assigned to that cluster:
μi=1∣Ci∣∑x∈Cix\mu_i = \frac{1}{|C_i|}\sum_{x \in C_i} x
  1. Repeat: Go back to step 2. Stop when centroids no longer change (convergence) or a maximum iteration count is reached.

Worked Example (2-D, k=2k = 2): Points: A(1,1)A(1,1), B(2,1)B(2,1), C(8,8)C(8,8), D(9,8)D(9,8).

Iteration c1c_1 c2c_2 Assignments
Init (1,1)(1,1) (8,8)(8,8) —
1 (1.5,  1)(1.5,\;1) (8.5,  8)(8.5,\;8) A,B→c1A,B \to c_1; C,D→c2C,D \to c_2
2 (1.5,  1)(1.5,\;1) (8.5,  8)(8.5,\;8) Same → converged

After one update the centroids equal the means of their assigned points, so iteration 2 produces no change — the algorithm has converged in a single effective pass.

Practical Application: Customer segmentation in e-commerce: group buyers by average order value and purchase frequency into kk segments (e.g., high-value loyal, occasional, bargain-hunters) so marketing teams can tailor promotions per segment. Other examples include image colour quantisation (reduce 256 colours to kk representative colours) and anomaly detection (points far from any centroid are flagged).

Result: K-Means is simple, fast (O(nkd⋅iterations)O(nkd \cdot \text{iterations})), and works well when clusters are roughly spherical and similar in size. It fails on non-convex shapes (use DBSCAN) and requires the user to specify kk (use the Elbow method or Silhouette score to choose kk).

Tip from Examiner: The 2026-27 MP-S1 asked K-Means for 2 m — a one-line definition plus the four steps in bullet form suffices. If the question is worth 7 m (as in some university papers), add the WCSS formula, the worked 2-D example, and one application. Common mistake: writing "K-Means is supervised" — it is **unsupervised** (no labels). Another trap: confusing the number of clusters $k$ with the number of features $d$.

Key Points

  • K-Means is unsupervised: no labels needed; groups points by distance.
  • Objective: minimise WCSS (sum of squared distances to cluster centroid).
  • Four steps: Initialise → Assign → Update centroid → Repeat until convergence.
  • Time complexity O(nkd × iterations); sensitive to initialisation (use K-Means++).
  • Practical use: customer segmentation, image colour quantisation, anomaly detection.
  • Limitations: assumes spherical clusters, requires k in advance, fails on non-convex shapes.
Q37MUnit 3 — What is Generative AI
Predicted

What is Generative AI? Explain text, image, code, audio, and video generation with examples. Also mention responsible use of such tools.

Concept / Given Data

Generative AI refers to a class of artificial intelligence models that can create new content rather than merely classify or predict existing data. The content can be textual, visual, auditory, or multimodal. The core idea is that the model learns a probability distribution P(mathbfx)P(mathbf{x}) over a data space and samples from it to generate novel instances.

Key Formula / Principle

Key Formula: hatmathbfx=argmaxmathbfxP(mathbfxmidprompt)hat{mathbf{x}} = argmax_{mathbf{x}} P(mathbf{x}mid \text{prompt})

Step‑by‑Step Explanation

  1. Training Phase – A large corpus of data (text, images, audio, video) is fed into a neural network (often a transformer). The network learns to predict the next token or pixel, thereby estimating P(mathbfx)P(mathbf{x}).
  2. Prompting – The user supplies a prompt (e.g., a sentence, a sketch, a melody). The prompt is tokenised and embedded, forming a context vector.
  3. Sampling – The model generates a sequence of tokens or pixels by sampling from the learned distribution. Temperature τ\tau controls randomness: Pτ(t)=elogP(t)/τ∑elogP(t)/τP_{\tau}(t)=\frac{e^{log P(t)/\tau}}{\sum e^{log P(t)/\tau}}.
  4. Post‑processing – Generated tokens are decoded back to human‑readable form (text), images (pixel grids), audio (waveforms), or video (frame sequences).

Examples of Generation

  • Text – ChatGPT produces coherent paragraphs from a user query.
  • Image – Stable Diffusion creates a painting from a textual description.
  • Code – GitHub Copilot generates Python functions from comments.
  • Audio – ElevenLabs TTS synthesises speech from text.
  • Video – Meta’s Make-A-Video generates a short clip from a caption.

Responsible Use

  1. Verification – Always fact‑check AI outputs; hallucinations can be misleading.
  2. Citation – Disclose AI assistance in academic work to avoid plagiarism.
  3. Bias Mitigation – Be aware that training data may encode societal biases; review outputs critically.
  4. Ethical Disclosure – Follow institutional guidelines for AI‑generated content.

Result: Generative AI models learn a probability distribution over a data modality and, given a prompt, sample from this distribution to produce new, context‑appropriate content. Responsible use requires verification, citation, bias awareness, and ethical disclosure.

Tip from Examiner: Highlight the *sampling* step and temperature formula; students often omit the temperature explanation. Use the $\tau$ formula to show how randomness is controlled.

Key Points

  • Generative AI creates new content by sampling from a learned distribution
  • Key formula: x^=arg⁡max⁡xP(x∣prompt)\hat{x}=\arg\max_x P(x|prompt)
  • Temperature τ\tau controls randomness: Pτ(t)=elog⁡P(t)/τ∑elog⁡P(t)/τP_{\tau}(t)=\frac{e^{\log P(t)/\tau}}{\sum e^{\log P(t)/\tau}}
  • Examples: text, image, code, audio, video
  • Responsible use: verification, citation, bias mitigation, disclosure
Q47MUnit 4 — AI in Electrical and Electronics
Predicted

Explain how AI is used in CSE and electrical/electronics engineering. Include at least three concrete applications in your answer.

Concept / Given Data AI refers to computational techniques that enable machines to learn patterns from data and make decisions without explicit programming. In Computer Science & Engineering (CSE) and Electrical/Electronics Engineering (EEE), AI is embedded in software tools, firmware, and hardware platforms to automate design, optimise operation, and enhance reliability. Typical data sources include code repositories, sensor streams, power‑flow logs, and circuit simulation results.

Key Formula / Principle: y^=fθ(x)\hat{y}=f_{\theta}(\mathbf{x})

where x\mathbf{x} is the input feature vector, fθf_{\theta} a learned model (e.g., neural network) with parameters θ\theta, and y^\hat{y} the predicted output such as a class label, regression value, or control command.

Step‑by‑Step Solution / Working

  1. Code Generation (GitHub Copilot, Tabnine) – The model receives a code context x\mathbf{x} (preceding tokens) and predicts the next token sequence y^\hat{y}. Training uses a massive corpus of public repositories, minimising the cross‑entropy loss L=−∑ilog⁡p(yi∣xi)\mathcal{L}= -\sum_{i}\log p(y_i|x_i). The result is auto‑completed code that speeds development and reduces syntactic errors.
  2. Smart Grid Load Forecasting – Historical load LtL_t and exogenous variables (weather WtW_t, calendar CtC_t) form xt\mathbf{x}_t. A recurrent neural network (RNN) learns L^t+1=fθ(xt)\hat{L}_{t+1}=f_{\theta}(\mathbf{x}_t). Accurate forecasts enable optimal dispatch of generators and storage, lowering peak demand and operational cost.
  3. Fault Detection in Power Electronics – Sensors capture voltage v(t)v(t), current i(t)i(t), and temperature T(t)T(t). Feature extraction yields x={FFT(v),FFT(i),T}\mathbf{x}=\{\text{FFT}(v),\text{FFT}(i),T\}. A support‑vector machine (SVM) classifies normal vs. faulty states:
sign(w⊤ϕ(x)+b)\text{sign}(\mathbf{w}^\top\phi(\mathbf{x})+b)

where ϕ\phi maps features to a higher‑dimensional space. Early alarms prevent equipment damage. 4. VLSI Design Automation – Placement and routing are cast as combinatorial optimisation. A reinforcement‑learning agent receives a layout state ss and selects an action aa (place cell, route wire). The policy πθ(a∣s)\pi_{\theta}(a|s) is updated via gradient ascent on the expected reward RR, typically the inverse of total wire length and timing violation count. 5. Cybersecurity Intrusion Detection – Network traffic logs form x\mathbf{x}; a deep auto‑encoder learns a compact representation z=fθ(x)z=f_{\theta}(\mathbf{x}). Reconstruction error ∥x−x^∥2\|\mathbf{x}-\hat{\mathbf{x}}\|_2 exceeding a threshold flags anomalous activity.

Result: AI empowers CSE and EEE with intelligent code assistants, predictive grid management, proactive fault detection, automated chip layout, and robust security monitoring. Each application translates raw data into actionable insights, improving productivity, reliability, and energy efficiency.

Tip from Examiner: Allocate marks by covering the three required applications (code generation, smart grid, fault detection) first, then add any extra (VLSI, cybersecurity) for bonus. Avoid vague statements; cite the model type (e.g., RNN, SVM) and the concrete benefit.

Key Points

  • AI models map input features x\mathbf{x} to predictions y^\hat{y} via learned parameters θ\theta
  • Code generation accelerates software development by predicting next tokens
  • Smart‑grid forecasting uses time‑series AI to optimise generation and storage
Q57MUnit 5 — Assignment 5 (Unit V) Write 5 prompts for an engineering problem from your branch using: (a) Zero-shot (b) Few-shot (c) Chain-ofthought (d) Role prompting (e) Format-specific prompt
Predicted

What makes a prompt effective? Explain role prompting, format instruction, and specificity using a sample prompt for an engineering student.

Effective Prompt Design for Engineering Students

An effective prompt is concise, specific, and structured so the model can map input to the desired output without ambiguity. The five core slots—Role, Task, Context, Format, Constraint—guide the model’s internal reasoning.

Key Formula / Principle: Prompt=Role+Task+Context+Format+Constraint\text{Prompt} = \text{Role} + \text{Task} + \text{Context} + \text{Format} + \text{Constraint}

1. Role Prompting

Assigning a professional persona aligns the model’s knowledge base with domain‑specific terminology and expectations.

Example: "Act as a mechanical engineering student preparing a lab report on torsional analysis of a shaft."

2. Format Instruction

Specifying the output structure (e.g., bullet list, table, code block) reduces post‑processing effort and ensures consistency.

Example: "Provide the results in a Markdown table with columns: Parameter, Value, Unit."

3. Specificity

The more precise the prompt, the less the model must infer. Include units, numerical ranges, and desired depth.

Example: "Calculate the torsional stiffness of a 200 mm diameter steel shaft (E = 210 GPa, G = 81 GPa) under a 500 Nm torque, and express the angle of twist in degrees."

4. Combined Sample Prompt

Act as a mechanical engineering student. Task: Compute the torsional stiffness of a 200 mm diameter steel shaft under 500 Nm torque. Context: Shaft made of ASTM AISI 1045 steel (E = 210 GPa, G = 81 GPa). Format: Provide a Markdown table with columns: Property, Value, Unit. Constraint: Show all intermediate steps and round the final stiffness to two decimal places.

The model will output:

| Property            | Value   | Unit |
|---------------------|---------|------|
| Polar moment of inertia (J) | 1.57×10⁶ | mm⁴ |
| Torsional stiffness (K) | 1.02×10⁸ | N·mm/° |

5. Why This Works

  • Role activates domain knowledge.
  • Task defines the objective.
  • Context supplies necessary constants.
  • Format eliminates ambiguity in presentation.
  • Constraint ensures numerical precision and completeness.
Tip from Examiner: Avoid vague verbs like "explain" or "describe" without specifying depth; use “calculate”, “list”, or “provide a table” instead. Always include units to prevent dimensional errors.

Key Points

  • Prompt = Role + Task + Context + Format + Constraint
  • Role activates domain knowledge
  • Specificity + format reduce ambiguity
Q2(a)7MUnit 2 — Computer vision
Core Concept

(a) Explain CNN and computer vision. How does AI "see" an image? Give one application in medical imaging or plant disease detection.

Concept / Given Data

Convolutional Neural Network (CNN) is a deep learning architecture designed for grid‑structured data such as images. It consists of alternating convolutional layers that learn spatial filters, pooling layers that reduce dimensionality, and fully‑connected layers that map extracted features to class scores. In computer vision, an image is treated as a 3‑D tensor (height × width × channels). CNNs learn to see by automatically discovering hierarchical visual patterns: low‑level edges → mid‑level textures → high‑level objects.

Key Formula / Principle: y=σ(W∗X+b)\mathbf{y}=\sigma\bigl(\mathbf{W}\ast\mathbf{X}+\mathbf{b}\bigr)

Step‑by‑Step Solution

  1. Input Layer – raw pixel values X∈RH×W×C\mathbf{X}\in\mathbb{R}^{H\times W\times C}.
  2. Convolution – apply KK learnable filters Wk∈Rf×f×C\mathbf{W}_k\in\mathbb{R}^{f\times f\times C}: Zk=Wk∗X+bk\mathbf{Z}_k=\mathbf{W}_k\ast\mathbf{X}+b_k.
  3. Non‑linearity – ReLU: Ak=max⁡(0,Zk)\mathbf{A}_k=\max(0,\mathbf{Z}_k).
  4. Pooling – e.g., max‑pool over 2×22\times2 windows: reduces spatial size, retains salient activations.
  5. Stacking – repeat steps 2–4 to build deeper feature hierarchies.
  6. Flatten & FC – vectorise final feature map and apply fully‑connected layers to produce logits z\mathbf{z}.
  7. Softmax – pi=ezi∑jezjp_i=\frac{e^{z_i}}{\sum_j e^{z_j}} gives class probabilities.

Application Example In medical imaging, a CNN can classify chest X‑rays as pneumonia or normal. The network learns edges of lungs, texture of infiltrates, and global shape, achieving >90 % accuracy on public datasets.

Result: CNNs transform raw pixels into high‑level semantic representations, enabling automated diagnosis or plant disease detection with minimal human intervention.

Tip from Examiner: Highlight the *hierarchical feature learning* and give a concrete medical or agricultural example. Avoid over‑emphasising back‑propagation details; focus on the flow from pixels to predictions.

Key Points

  • CNN learns hierarchical visual features via convolution + pooling
  • Input image treated as a 3‑D tensor
  • Softmax outputs class probabilities
  • Medical imaging example: pneumonia detection
  • Plant disease detection via image classification
Q2(b)7MUnit 2 — why it needs GPUs
Core Concept

(b) Describe Natural Language Processing and deep learning. Explain why deep learning needs GPUs and how layers help in learning complex patterns.

Concept / Given Data

Natural Language Processing (NLP) is the branch of AI that enables machines to understand, interpret, and generate human language — both text and speech. Deep learning is a sub-field of machine learning that uses multi-layered neural networks to learn hierarchical representations from raw data. The question asks us to connect these two areas and explain the hardware (GPU) and architectural (layers) reasons behind deep learning's power.

Key Principle — Why GPUs: Training one dense layer performs $W \times b$ multiply-accumulate operations per sample. For a layer of size $64 \times 512 \times 256 \times 2 \approx 16.8$ million FLOPs per batch, a CPU with 8 cores takes far longer than a GPU with $\sim 5000$ CUDA cores executing the same matrix in parallel.

Step-by-Step Explanation

  1. NLP Pipeline: Raw text → tokenisation → embedding (e.g., ei∈R300\mathbf{e}_i \in \mathbb{R}^{300}) → sequence model (RNN/Transformer) → output (sentiment, translation, speech). Modern NLP relies on deep architectures like BERT or GPT, which are themselves deep neural networks.

  2. Deep Learning Definition: A neural network is called deep when it contains multiple hidden layers (typically ≥3\geq 3). Each layer learns a progressively more abstract feature: layer 1 detects edges, layer 2 detects shapes, layer 3 detects object parts, layer 4 detects whole objects.

  3. Why GPUs are Needed:

    • A forward pass through a fully-connected layer computes h=σ(Wx+b)\mathbf{h} = \sigma(W\mathbf{x} + \mathbf{b}), which is a matrix-vector multiplication — thousands of independent multiply-adds.
    • A CPU has 4–16 powerful cores optimised for sequential logic.
    • A GPU has thousands of simple cores (e.g., NVIDIA A100: 6912 CUDA cores) designed for massively parallel matrix operations.
    • Backpropagation requires the same computation in reverse, doubling the workload.
    • Result: training a model with 10910^9 parameters on a GPU can be 50–100× faster than on a CPU.
  4. How Layers Help Learn Complex Patterns:

    • Compositionality: A 2-layer network can only learn linearly separable boundaries. Adding layers allows the network to represent non-linear decision boundaries of arbitrary complexity.
    • Feature hierarchy: In a CNN for medical imaging, layer 1 learns edges, layer 2 learns textures, layer 3 learns organ boundaries, layer 4 classifies tumour vs. healthy tissue.
    • Dimensionality reduction: Each layer compresses information, forcing the network to retain only the most discriminative features.
InputHiddenLayer 1edgesHiddenLayer 2shapesOutputW₁,b₁W₂,b₂W₃,b₃Each layer: h = σ(Wx + b) — parallel on GPU

Result: Deep learning combines NLP's language understanding with multi-layer feature learning; GPUs accelerate the parallel matrix operations that make training feasible, and stacked layers enable the network to build complex, hierarchical representations from raw pixels or text tokens.

Tip from Examiner: For this 7-mark question, split marks as: NLP description (1.5 m), deep learning definition (1.5 m), GPU explanation with one FLOP example (2 m), layer hierarchy with a concrete example like medical imaging (2 m). Common mistake: writing only about GPUs without connecting to the matrix-multiplication workload. Always include the formula $\mathbf{h} = \sigma(W\mathbf{x} + \mathbf{b})$ to show you understand *what* is being parallelised.

Key Points

  • NLP converts text/speech into numerical embeddings and uses deep models (BERT, GPT) for understanding and generation.
  • Deep learning = neural networks with multiple hidden layers that learn hierarchical features (edges → shapes → objects).
  • GPUs have thousands of simple cores ideal for parallel matrix multiply-accumulate operations; one dense layer batch can be ~16.8 million FLOPs.
  • Layers enable non-linear decision boundaries and progressive feature abstraction; without depth, only linearly separable patterns are learnable.
  • Backpropagation doubles the compute (forward + backward), making GPU parallelism essential for practical training times.

Section C

7 Marks Each · 6 questions
Q3(a)7MUnit 3 — context window
Core Concept

(a) Explain tokens, context window, and temperature in LLMs. How do these parameters/settings affect the response generated?

Concept / Given Data Tokens are sub‑word units that a tokenizer splits text into. A context window is the maximum number of tokens (prompt + retrieved text + model output) that an LLM can process at one time. Temperature is a sampling hyper‑parameter that controls the randomness of the next‑token distribution.

Key Formula / Principle: P(ti+1∣t1:i)=softmax(zi+1T)P(t_{i+1}\mid t_{1:i})=\text{softmax}\bigl(\frac{z_{i+1}}{T}\bigr)

where zi+1z_{i+1} is the logits vector and TT is temperature.

Step‑by‑Step Solution

  1. Tokenisation – The input sentence is split into tokens: e.g. "prompt engineering" → ["prompt", "engineering"]. Each token is mapped to an ID and then to an embedding vector.
  2. Context‑Window Budget – If the model has a 4096‑token window and the prompt uses 1800 tokens, the remaining budget for the answer is 4096−1800=22964096-1800=2296 tokens. If 1500 tokens are retrieved from a knowledge base and a safety margin of 100 tokens is reserved, the available answer length is
4096−1800−1500−100=6964096-1800-1500-100=696

tokens. 3. Temperature Effect – With T=1T=1, the softmax is sharp, producing high‑confidence, deterministic outputs. Lowering TT (e.g. T=0.5T=0.5) sharpens the distribution further, making the model more conservative. Raising TT (e.g. T=1.5T=1.5) flattens the distribution, encouraging diverse, creative responses. 4. Generation Loop – The model predicts the next token using the probability distribution above, appends it to the context, and repeats until an end‑of‑sequence token or the token budget is exhausted. 5. Result Interpretation – A higher temperature yields varied outputs but may introduce hallucinations; a lower temperature gives more reliable but potentially repetitive answers.

Visual Aid

flowchart TD
    A[Prompt Tokens] -->|1800| B[Context Window]
    B -->|1500| C[Retrieved Text]
    B -->|100| D[Safety Margin]
    B -->|696| E[Answer Tokens]

Result: Tokens define the granularity of language; the context window limits how much text the model can consider; temperature tunes the creativity vs. determinism of the generated response.

Tip from Examiner: Show the exact subtraction for the context‑window calculation; explain temperature’s effect with a single numeric example; keep the answer within 275–360 words.

Key Points

  • Tokens are sub‑word units mapped to embeddings
  • Context window = max tokens the model can process
  • Temperature scales the softmax distribution
  • Higher T → more diverse, lower T → more deterministic
  • Budget calculation: window – prompt – retrieved – safety
Q3(b)7MUnit 3 — Limitations of LLMs
Core Concept

(b) Discuss limitations of LLMs: hallucination, knowledge cutoff, and bias. Suggest practical ways a student can verify and responsibly use AI-generated content.

Concept / Given Data

Large Language Models (LLMs) are neural networks trained on vast text corpora to predict the next token. Their limitations arise from the data and training process:

  1. Hallucination – the model generates plausible but factually incorrect statements.
  2. Knowledge Cut‑off – training data ends at a fixed date; events after that are unknown.
  3. Bias – the model reproduces societal biases present in the training set.

Key Formula / Principle

LLM Output Probability: P(tokeni∣context)=emathbfhicdotmathbfwisumjemathbfhicdotmathbfwjP(\text{token}_i|\text{context}) = \frac{e^{mathbf{h}_icdotmathbf{w}_i}}{sum_j e^{mathbf{h}_icdotmathbf{w}_j}}

Step‑by‑Step Solution / Practical Mitigation

  1. Identify Hallucination

    • Check factual claims against reliable sources (peer‑reviewed articles, official databases).
    • Cross‑verify with at least two independent references.
    • Use fact‑checking APIs (e.g., OpenAI’s gpt-4o with search function) to confirm.
  2. Handle Knowledge Cut‑off

    • Timestamp the model’s training data (e.g., GPT‑4’s cut‑off is 2023‑09).
    • Add a prompt cue: "As of 2023‑09, what is the status of…?" to avoid post‑cut‑off speculation.
    • Supplement with up‑to‑date sources when the answer requires recent information.
  3. Mitigate Bias

    • Audit the output for gender, racial, or cultural stereotypes.
    • Use prompt engineering to request neutral language: "Provide an unbiased summary of…".
    • Apply post‑processing filters that flag or replace biased terms.
  4. Verification Workflow for Students

    • Step 1: Generate the answer.
    • Step 2: Highlight all factual statements.
    • Step 3: Search each claim in a trusted database.
    • Step 4: Cite the source in the final submission.
    • Step 5: Add a disclosure note: "AI assistance was used; content verified by the student."

Result: By systematically fact‑checking, timestamping, and bias‑filtering, students can transform raw LLM output into reliable, ethically sound academic work.

Tip from Examiner: Allocate 2 marks for *hallucination* discussion, 2 for *knowledge cut‑off*, 2 for *bias*, and 1 for *verification strategy*. Common mistake: treating the model’s confidence score as truth; always cross‑check.

Key Points

  • Hallucination = plausible but false output
  • Knowledge cut‑off limits post‑training events
  • Bias reflects training data patterns
  • Verification = source‑check, timestamp, bias‑filter
Q4(a)7MUnit 4 — AI in Civil Engineering
Core Concept

(a) Explain AI applications in mechanical and civil engineering. Cover predictive maintenance, design optimisation, robotics, structural health monitoring, smart cities, and traffic optimisation.

Concept / Given Data AI in engineering transforms design, operation and maintenance by learning from data. In mechanical and civil branches the key applications are:

  1. Predictive Maintenance – sensors record vibration, temperature, strain; a model forecasts component failure.
  2. Design Optimisation – surrogate models (e.g., Gaussian processes) search design space for minimal weight or maximal stiffness.
  3. Robotics – autonomous robots inspect bridges, welds or perform repetitive tasks.
  4. Structural Health Monitoring (SHM) – network of accelerometers feeds a classifier that flags damage.
  5. Smart Cities – AI aggregates traffic, energy, waste data to optimise city services.
  6. Traffic Optimisation – reinforcement learning controls signal timing to reduce congestion.
Key Formula / Principle: haty=f(mathbfx)hat{y}=f(mathbf{x})

where ff is a learned mapping from sensor features mathbfxmathbf{x} to a target (e.g., remaining useful life, damage index, optimal signal phase).

Step‑by‑Step Solution / Working

  1. Data Acquisition – Deploy IoT sensors (strain gauges, accelerometers, cameras) on structures or vehicles.
  2. Feature Extraction – Compute time‑domain (mean, RMS) and frequency‑domain (FFT peaks) statistics; for images use CNN embeddings.
  3. Model Training – Use supervised learning (e.g., Random Forest, LSTM) for regression (RUL) or classification (damage/no‑damage). For optimisation, use Bayesian optimisation or genetic algorithms.
  4. Deployment – Embed the model in edge devices or cloud; set thresholds for alerts.
  5. Decision & Action – Trigger maintenance, adjust traffic signals, or re‑route vehicles.
  6. Feedback Loop – Continuously update the model with new data to improve accuracy.

Result: AI enables proactive maintenance, reduces downtime, improves safety, and optimises urban resources. For example, a bridge equipped with SHM sensors can predict crack growth 6 months ahead, allowing timely repairs.

Tip from Examiner: Allocate 2 marks for each of the three core applications (predictive maintenance, design optimisation, robotics) and 1 mark for SHM, smart cities, and traffic optimisation. Avoid generic statements; cite specific sensor types and learning algorithms.

Key Points

  • Predictive maintenance uses sensor data to forecast failures
  • Design optimisation employs surrogate models to explore design space
  • Robotics automates inspection and repetitive tasks
  • SHM classifies damage from vibration signatures
  • Smart cities aggregate multimodal data for service optimisation
  • Traffic optimisation uses RL to control signal timing
Q4(b)7MUnit 4 — Ethical concerns
Core Concept

(b) Discuss ethical concerns in AI: bias, data privacy, job displacement, and responsible AI. Illustrate with examples from engineering or daily life.

Ethical concerns in AI

Opening Concept / Given Data AI systems are increasingly deployed in engineering domains such as civil, mechanical, electrical, and healthcare. The ethical issues that arise are:

  1. Bias – systematic favoritism toward certain groups or outcomes.
  2. Data privacy – unauthorized use or leakage of personal or sensitive data.
  3. Job displacement – automation replacing human roles.
  4. Responsible AI – ensuring transparency, accountability, and fairness in AI decisions.
Key Formula / Principle: Fairness=True Positive Rategroup ATrue Positive Rategroup B\text{Fairness} = \frac{\text{True Positive Rate}_{\text{group A}}}{\text{True Positive Rate}_{\text{group B}}}

Step‑by‑Step Explanation

  1. Bias – In structural health monitoring, a sensor‑placement algorithm trained on data from older bridges may under‑detect cracks in newer, lighter‑weight designs. This bias leads to unequal safety standards. In daily life, facial‑recognition systems misidentify people of certain ethnicities, causing wrongful arrests.
  2. Data privacy – Smart‑city traffic‑optimisation platforms collect GPS traces of commuters. If these traces are not anonymised, they can reveal home addresses or health conditions. In healthcare, AI models trained on patient records must comply with HIPAA; a breach could expose sensitive medical histories.
  3. Job displacement – Predictive‑maintenance robots in manufacturing can replace maintenance technicians. Similarly, autonomous inspection drones reduce the need for human inspectors in civil infrastructure. The displacement is not only economic but also affects skill development.
  4. Responsible AI – Engineers must adopt a four‑step accountability framework:
    • Audit: Regularly test models for bias and drift.
    • Explain: Provide interpretable outputs (e.g., SHAP values) to stakeholders.
    • Govern: Enforce data‑handling policies and consent mechanisms.
    • Iterate: Update models with diverse, representative data.

Illustrative Example A smart‑grid operator uses a reinforcement‑learning agent to schedule power dispatch. If the training data over‑represents sunny days, the agent may under‑allocate storage during cloudy periods, leading to blackouts. An audit reveals the bias; the operator retrains with balanced weather data, restoring reliability.

Result: Ethical AI in engineering requires continuous monitoring for bias, strict data‑privacy safeguards, proactive workforce planning to mitigate job loss, and a robust responsible‑AI framework that embeds transparency and accountability.

Tip from Examiner: Allocate 1 mark for each ethical dimension, 1 mark for an engineering example, and 1 mark for a mitigation strategy. Avoid generic statements; cite concrete engineering scenarios.

Key Points

  • Bias can skew safety decisions in structural monitoring
  • Data privacy breaches expose commuter or patient information
  • Automation may displace maintenance and inspection jobs
  • Responsible AI demands audit, explain, govern, iterate
Q5(a)7MUnit 5 — Assignment 5 (Unit V) Write 5 prompts for an engineering problem from your branch using: (a) Zero-shot (b) Few-shot (c) Chain-ofthought (d) Role prompting (e) Format-specific prompt
Core Concept

(a) Compare zero-shot, few-shot, chain-of-thought, and role prompting. For an electronics student asking AI to explain a smart sensor system, write one suitable prompt using any two of these techniques.

Comparison of Prompting Techniques

Zero‑shot prompting asks the model a direct question without any examples. It relies entirely on the model’s pre‑trained knowledge and works best for straightforward queries. Few‑shot prompting supplies a few input‑output pairs inside the prompt, guiding the model toward the desired style or reasoning pattern. Chain‑of‑thought (CoT) prompting explicitly requests the model to reason step‑by‑step, which improves accuracy on complex logical tasks. Role prompting assigns a persona to the model (e.g., "Act as an electronics engineer"), shaping the tone, depth, and domain‑specific vocabulary of the response.

Key Prompt Structure: Prompt=Role+Task+Context+Format+Constraint\text{Prompt}=\text{Role}+\text{Task}+\text{Context}+\text{Format}+\text{Constraint}

For an electronics student who wants an explanation of a smart‑sensor system, we can combine **few‑shot** and **role** techniques to obtain a concise, technically accurate answer.

Sample Prompt (Few‑shot + Role)

Act as a senior electronics engineer.

Example 1: Q: Explain the working principle of a thermistor. A: A thermistor changes its resistance with temperature; the relationship is given by R(T)=R0exp⁡[β(1/T−1/T0)]R(T)=R_0\exp[\beta(1/T-1/T_0)].

Example 2: Q: Describe the architecture of a basic Arduino‑based temperature logger. A: The system uses an Arduino Uno, a DS18B20 sensor, and an SD card module. The sensor reads temperature, the Arduino formats the data, and stores it on the SD card.

Now, explain the complete smart‑sensor system used for real‑time air‑quality monitoring, including the sensor types, signal conditioning, wireless transmission, and cloud integration. Provide the explanation in three bullet points, each under 20 words.

This prompt first sets the role, then gives two short examples (few‑shot) that illustrate the expected depth and format. The final request asks for a structured, concise answer, ensuring the model follows the demonstrated pattern.

Result: The AI returns a three‑bullet, technically precise description that matches the student’s learning level.
Tip from Examiner: In 7‑mark answers allocate roughly 30 % to definition/comparison, 40 % to a worked prompt, and 30 % to justification. Avoid overly long examples; two short few‑shot pairs are sufficient.

Key Points

  • Zero‑shot: direct question, no examples
  • Few‑shot: includes 2–3 input‑output examples
  • Chain‑of‑thought: asks model to think step‑by‑step
  • Role prompting: assigns a persona to shape tone
Q5(b)7MUnit 5 — Assignment 5 (Unit V) Write 5 prompts for an engineering problem from your branch using: (a) Zero-shot (b) Few-shot (c) Chain-ofthought (d) Role prompting (e) Format-specific prompt
Core Concept

(b) Explain domain-specific prompting for engineers. Write two prompts: one for a mechanical engineering problem and one for a computer science problem. Explain how context and format improve the answers.

Concept / Given Data

Domain-specific prompting is the practice of tailoring a prompt with the technical vocabulary, constraints, standards, and output format of a particular engineering discipline so that the AI model produces answers that are technically accurate, professionally structured, and immediately usable by a practitioner in that field. Unlike generic prompts, domain-specific prompts embed branch-specific context (e.g., IS codes for CE, thermodynamic cycles for ME, Big-O notation for CS) and explicit format instructions (tables, bullet lists, code blocks) that dramatically reduce hallucination and improve relevance.

Key Principle: A domain-specific prompt follows the anatomy Prompt=Role+Task+Domain Context+Format Instruction+Constraint\text{Prompt} = \text{Role} + \text{Task} + \text{Domain Context} + \text{Format Instruction} + \text{Constraint}

where each slot narrows the model's output space toward the correct technical answer.

Step-by-Step Working

Step 1 — Mechanical Engineering Prompt (Thermodynamics):

Act as a senior mechanical engineer specialising in power plants. A steam turbine operates between a boiler pressure of P1=60  barP_1 = 60\;\text{bar} and a condenser pressure of P2=0.05  barP_2 = 0.05\;\text{bar}. The steam enters the turbine at T1=500∘CT_1 = 500^\circ\text{C} with a dryness fraction of x1=1.0x_1 = 1.0. Calculate the isentropic efficiency if the actual work output is 950  kJ/kg950\;\text{kJ/kg}. Show each step: (i) find h1h_1 and s1s_1 from steam tables, (ii) find h2sh_2s at P2P_2 and s2=s1s_2 = s_1, (iii) compute isentropic work, (iv) compute efficiency. Present the final answer in a table with columns: Parameter, Value, Unit.

Step 2 — Computer Science Prompt (Algorithms):

Act as a CS professor preparing a lecture slide. Explain the time complexity of Merge Sort using divide-and-conquer recurrence. Use the following format: (a) State the recurrence relation T(n)=2T(n/2)+O(n)T(n) = 2T(n/2) + O(n), (b) Apply the Master Theorem step-by-step identifying aa, bb, and f(n)f(n), (c) Conclude with the final complexity in Big-O notation, (d) Provide a 3-line pseudocode snippet in a code block. Keep total explanation under 150 words.

Step 3 — How Context Improves Answers:

Aspect Generic Prompt Domain-Specific Prompt
Vocabulary Model may use lay terms Model uses h1h_1, s1s_1, x1x_1, Big-O, Master Theorem
Accuracy May skip steam-table lookup Forces table-based values, reducing hallucination
Relevance Generic explanation Matches IS/ASME/ACM conventions
Trust Student must verify everything Output is closer to exam-ready format

Step 4 — How Format Improves Answers:

  • Table format (ME prompt) forces the model to organise numerical results in a scannable grid, making it easy to spot unit errors or missing values.
  • Numbered sub-steps (both prompts) prevent the model from skipping intermediate algebra, which is the most common source of wrong final answers.
  • Code block (CS prompt) ensures syntax-highlighted, copy-paste-ready pseudocode rather than prose description.
  • Word limit (CS prompt) prevents verbose, off-topic filler that dilutes the key result.

Result: Domain-specific prompting transforms a generic LLM into a discipline-aware assistant. By embedding role, domain context, and format constraints, the student reduces the model's output space from millions of possible responses to a narrow, technically correct, and professionally formatted answer — directly improving exam performance and workplace productivity.

Tip from Examiner: In 7-mark questions on domain-specific prompting, always write the FULL prompt text (not just describe it). Examiners award 2 marks for the prompt itself, 2 for explaining context improvement, and 2 for format improvement. A common mistake is writing only one prompt — the question explicitly asks for TWO (one ME, one CS). Always include at least one numeric value or technical symbol inside the prompt to demonstrate genuine domain knowledge.

Key Points

  • Domain-specific prompt = Role + Task + Domain Context + Format Instruction + Constraint
  • ME prompt embeds steam-table parameters (P, T, x) and forces tabular output
  • CS prompt embeds recurrence relation and Master Theorem, forces code block + word limit
  • Context reduces hallucination by anchoring the model to branch-specific vocabulary and standards
  • Format (table, numbered steps, code block, word limit) makes output exam-ready and verifiable
  • Always write the full prompt text in the answer — do not merely describe it