Class X Artificial Intelligence (417)

Minimum Learning Support Material · CBSE 2026-27

Notes · Numericals with working · 684 solved questions · Flashcards · Quiz · Practice Paper Maker

Designed by NareN, PGT (Computer Science), PM SHRI K V Shalimar Bagh, Delhi-88 (Shift-I) ✨ Click Here For Your Valuable Feedback ✨
1

Know the paper first

CBSE Sample Question Paper 2026-27: 21 questions, 50 marks, 2 hours

QuestionWhat comesAttemptMarks
Q16 objective questions on Employability Skillsany 41 x 4 = 4
Q2 to Q56 objective questions each on the AI units (MCQ, True/False statements, Assertion-Reason, small numericals)any 5 in each4 x 5 = 20
Q6 to Q10Employability Skills, 20 to 30 words eachany 3 of 52 x 3 = 6
Q11 to Q16AI units, 20 to 30 words eachany 4 of 62 x 4 = 8
Q17 to Q21AI units, 50 to 80 words each: case study, neural network, confusion matrix numerical, Bag of Words numericalany 3 of 54 x 3 = 12

The paper has 21 questions and is of 2 hours. You answer 15 questions: all of Q1 to Q5 (with the choice inside each) and 10 out of Q6 to Q21.

Unit-wise marks in the theory paper (50)

Unit 4 (Statistical Data) and Unit 7 (Advance Python) are assessed in the practical only.

Blueprint of the paper

One common blueprint, as per the CBSE Sample Question Paper 2026-27. All the practice papers of this kit follow it. Each cell shows the number of questions given from that unit.

Unit1mark2marks4marksTotalquestions
Part ACommunication Skills-II11-2
Part ASelf-Management Skills-II21-3
Part AICT Skills-II11-2
Part AEntrepreneurial Skills-II11-2
Part AGreen Skills-II11-2
Part BUnit 1: AI Project Cycle and Ethical Frameworks5117
Part BUnit 2: Advanced Concepts of Modeling in AI4228
Part BUnit 3: Evaluating Models6118
Part BUnit 5: Computer Vision41-5
Part BUnit 6: Natural Language Processing5117
Questions given3011546
To be answered247334
Marks24141250

Numericals that come every year

4 marksConfusion matrix: accuracy, precision, recall, F1Unit 3
4 marksBag of Words: document vectors, DF, IDF, TF-IDFUnit 6
1 or 4 marksNeuron: weighted sum with biasUnit 2
1 markPrecision or accuracy from given resultsUnit 3
1 markCount the tokens of a sentenceUnit 6
1 markError rate and accuracy of a predictionUnit 3

Practical: 50 marks

2

Pass plan in three steps

Where the 50 marks come from, easiest first

Step 1 · 10 marksEmployability Skills: only definitions and lists. Learn the five small tables in section 3.
Step 2 · 16 marksThe two sure numericals of 4 marks (confusion matrix, Bag of Words) and the one-mark numericals. Practise ten of each from the question bank.
Step 3 · 24 marksShort theory of the five AI units: project cycle, ethical frameworks, types of learning, neural network, CV tasks, NLP steps.
Marks milne wali baat
  • In a numerical, write the formula first, then put the values. The formula itself carries marks.
  • You have a choice in every question. Read all the parts first and pick the ones you are sure of.
  • Keep 2-mark answers to 20-30 words and 4-mark answers to 50-80 words.
Common mistake
  • Precision has FP in the formula; recall has FN. Do not mix them.
  • A punctuation mark is also a token.
  • IDF is total documents / document frequency, not the other way round.
  • Bioethics is sector-based, not value-based.
3

Part A: Employability skills

10 marks · five units · detailed chapters

Unit 1: Communication Skills-II

1.1 Communication: meaning and importance

Communication is the process of exchanging information, ideas, thoughts and feelings between people through speech, writing, signs or behaviour, so that both reach the same understanding. In Class IX we learnt the basic cycle; in Class X we study the methods, the role of feedback, the barriers and the writing skills needed at the workplace.

Communication at the workplace
📢
Giving instructions

a supervisor explains a task to the team

🙋
Asking for help

a new employee asks how to use a machine

📝
Reporting

sending a daily sales report by e-mail

🤝
Customer service

listening to and solving complaints

🎤
Presenting

showing a new idea in a meeting

👥
Teamwork

sharing updates so that work is not repeated

1.2 The communication cycle

Communication cycle
1Sender
➜
2Idea
➜
3Encoding
➜
4Message through a channel
➜
5Receiver
➜
6Decoding
➜
7Feedback
↻ back to step 1 — it is a cycle
StageWho / whatExample: a sales manager
Senderstarts the messagethe sales manager
Encodingputs the idea into words or symbolswrites "Target: 50 units this week"
Channelthe mediume-mail to the team
Receivergets the messagethe sales team
Decodingunderstands the meaningteam understands the weekly target
Feedbackresponsea member replies, "Does it include online orders?"

1.3 Methods of communication

Three methods
Communication
Verbal (oral + written)
Non-verbal (body language, tone)
Visual (signs, charts, maps)

Verbal communication

OralWritten
face-to-face talks, phone calls, meetings, video calls, speechesletters, e-mails, SMS, notices, reports, minutes
fast; immediate feedback; tone helps meaningpermanent record; can be read again; reaches many
no record; may be forgottenslow feedback; needs good language skills

Tips for effective verbal communication: know your purpose and audience, use simple words, speak clearly at a moderate speed, be polite, avoid slang at work, and check understanding by asking questions.

Non-verbal communication

Non-verbal messages are sent through facial expressions, gestures, posture, eye contact, touch, space and paralanguage (tone, pitch, volume and speed of voice). Non-verbal signals can support, replace or even contradict words. If someone says "I am fine" with tears in the eyes, we believe the non-verbal signal.

Positive body languageNegative body language
smiling, nodding, open palmsfrowning, rolling eyes
straight posture, leaning slightly forwardslouching, crossed arms
steady eye contactlooking away, checking the phone
firm handshakelimp handshake or crushing grip

Visual communication

Visual communication uses pictures, signs, symbols, maps, charts, graphs, infographics and videos. Road signs, safety signs in factories, emojis and company logos are visual. It is quick, crosses language barriers and is remembered easily, but cannot express every detail.

1.4 The importance of feedback

Feedback is the response of the receiver to the sender's message. It completes the communication cycle and tells the sender whether the message was received, understood and accepted.

Types of feedback
👍
Positive

praise for good work: "Your report was very clear."

🛠️
Negative / corrective

points out what needs to change

🔎
Specific (descriptive)

gives details: "Add the chart on page 2."

🌫️
Non-specific

vague: "Good" or "Bad" - less useful

Feedback examples
Non-specific
  • "Your project is not good."
  • does not help improvement
VS
Specific
  • "Your data is correct
  • add labels to the graph and a conclusion."
  • tells exactly what to do

Qualities of good feedback: specific, timely, polite, focused on the work and not the person, balanced (good points and improvements) and actionable.

1.5 The 7 Cs and principles of effective communication

7 Cs of communication
💡
Clear

one clear purpose

✂️
Concise

no unnecessary words

🔎
Concrete

specific facts and figures

✅
Correct

right language and facts

🔗
Coherent

logical and connected

📦
Complete

all information included

🌸
Courteous

polite and respectful

1.6 Barriers to effective communication

BarrierExampleSolution
Physicalnoisy machines, poor phone network, distancequiet place, better equipment
Linguistica customer speaks only Tamil; technical jargonsimple words, translator, common language
Interpersonallack of trust, anger, shynessbuild trust, stay calm, listen actively
Organisationalmany levels, strict rules, no open discussionclear channels, open-door policy
Culturaldifferent customs and gesturesrespect and learn about other cultures
Psychologicalstress, prejudice, assumptionskeep an open mind, clarify doubts
Overcoming barriers
1Use simple language
➜
2Avoid emotional reactions
➜
3Listen actively
➜
4Ask for feedback
➜
5Use visual aids when needed

1.7 Writing skills: simple sentences and parts of speech

A sentence must have a subject and a verb and must give complete meaning. A simple sentence has one subject and one main verb: "The train arrived late."

Part of speechFunctionExample in a sentence
Nounnames a person, place, thing or ideaPriya visited Agra.
Pronounreplaces a nounShe liked it.
Verbshows action or stateShe took photos.
Adjectivedescribes a nounthe white marble
Adverbdescribes a verb, adjective or adverbshe walked slowly
Prepositionshows relation or positioninside the tomb
Conjunctionjoins words or sentencestired but happy
Interjectionshows sudden feelingWow!

Kinds of sentences

  • Declarative: "The shop opens at nine."
  • Interrogative: "Do you deliver on Sunday?"
  • Imperative: "Please fill in this form."
  • Exclamatory: "What a great offer!"

Active and passive voice

Active (doer first)Passive (action first)
The manager signed the letter.The letter was signed by the manager.
Students planted trees.Trees were planted by students.

Use the active voice in most workplace writing because it is direct and clear.

1.8 Writing a professional e-mail

Parts of a professional e-mail
1Clear subject
➜
2Greeting
➜
3Purpose in the first line
➜
4Details in short paragraphs
➜
5Polite closing
➜
6Name and signature
Sample e-mail

Subject: Request for leave on 12 March. Dear Sir, I request leave on 12 March as I have to attend my sister's wedding. I have completed my pending reports. Thank you. Regards, Ravi Kumar, Sales Assistant.

1.9 Exam-ready answers

Q. Why is feedback important in communication? (2 marks)

Feedback completes the communication cycle. It tells the sender whether the message was received and understood correctly, helps correct misunderstandings, and improves future communication.

Q. Differentiate between verbal and non-verbal communication with two examples each. (4 marks)

Verbal communication uses spoken or written words, e.g. a phone call and an e-mail. Non-verbal communication sends messages without words through body language and tone, e.g. a smile and a thumbs-up. Verbal messages carry the content; non-verbal signals show feelings and can support or contradict the words.

Unit 2: Self-Management Skills-II

2.1 Self-management

Self-management is the ability to manage our emotions, thoughts, time and actions to achieve our goals and do well at school and work. In Class X the focus is on stress management, self-awareness, self-motivation, goal setting and time management.

Self-management skills
Self-management
Stress management
Self-awareness
Self-motivation
Goal setting (SMART)
Time management
Self-regulation

2.2 Stress and stress management

Stress is the feeling of pressure or tension when we face a difficult or demanding situation - exams, competitions, a new school, family problems. A small amount of stress (called eustress) pushes us to perform; too much stress (distress) harms health and performance.

Two kinds of stress
Eustress (good)
  • short-term
  • motivates
  • improves focus
  • e.g. excitement before a match
VS
Distress (bad)
  • long-term
  • reduces performance
  • causes illness
  • e.g. constant fear of failure

Signs of stress

PhysicalEmotionalBehavioural
headache, tiredness, poor sleep, stomach acheworry, anger, irritation, sadnessavoiding work, overeating or not eating, too much phone use

Stress management techniques

Ways to manage stress
⏰
Time management

plan and finish work early

🏃
Physical exercise

games, cycling, walking

🧘
Yoga and meditation

deep breathing calms the mind

🥗
Healthy food and sleep

8 hours of sleep, less junk food

🌳
Nature and hobbies

music, gardening, art

👨‍👩‍👧
Talk it out

share with family, friends, counsellor

🙂
Positive thinking

focus on what you can control

ABC model of stress

Adversity (event): Ravi scores low in a unit test. Belief (thought): "I am a failure." Consequence: he feels sad and stops studying. If Ravi changes the belief to "I need more practice in algebra", the consequence becomes extra practice and better marks. Changing our thinking changes how stress affects us.

2.3 Self-awareness

Self-awareness is understanding our own strengths, weaknesses, values, interests and emotions. It helps us choose the right subjects, careers and friends.

Know yourQuestion to askExample
StrengthsWhat do I do well?I explain concepts well to friends
WeaknessesWhat do I find hard?I get nervous in interviews
InterestsWhat do I enjoy?coding, cricket
ValuesWhat matters to me?honesty, helping others

2.4 Self-motivation

Self-motivation is the inner force that makes us start and continue doing something without being pushed by others.

Internal (intrinsic)External (extrinsic)
comes from within: interest, satisfaction, curiositycomes from outside: marks, prizes, money, praise
learning to code because it is funstudying only to get a new phone
Qualities of self-motivated people
🎯
Know what they want

clear goals

📈
Keep improving

learn new skills

🚫
No excuses

take responsibility

🔁
Never give up

keep trying after failure

How to build self-motivation: find your why, set goals, break them into small steps, track progress, reward yourself, and stay with motivated people.

2.5 Goal setting: SMART

Goal setting means deciding what we want to achieve and planning how to get there.

How to set and reach a goal
1Decide the goal
➜
2Make it SMART
➜
3Write the action plan
➜
4Work on it daily
➜
5Review and adjust
➜
6Achieve and celebrate
LetterMeansCheck question
SSpecificIs the goal clear and exact?
MMeasurableCan I count or measure progress?
AAchievableIs it possible for me?
RRealistic / RelevantDoes it fit my situation and aims?
TTime-boundIs there a deadline?
From wish to SMART goal

Wish: "I want to be fit." SMART goal: "I will jog for 20 minutes every morning, 5 days a week, and reduce my 1 km running time from 8 minutes to 6 minutes by 31 March."

2.6 Time management

Time management is planning and controlling how we spend our time to do the most important work efficiently.

Four steps of time management
1Organise
➜
2Prioritise
➜
3Control
➜
4Track
StepWhat to do
Organiselist all tasks; use a diary, calendar or app
Prioritisedo the most important and urgent work first
Controlavoid distractions such as social media; say no politely
Trackcheck at the end of the day what was done and what is left

The urgent-important matrix

UrgentNot urgent
ImportantDo now: assignment due tomorrowPlan: revision for exams next month
Not importantDelegate or do quickly: some callsAvoid: endless scrolling

Time wasters: procrastination (delaying work), too much phone use, unclear goals, doing too many things at once.

2.7 Self-regulation

Self-regulation means controlling our behaviour and emotions - not reacting in anger, keeping promises, completing work on time. It includes self-discipline, adaptability and accountability.

2.8 Exam-ready answers

Q. Explain any four techniques of stress management. (4 marks)

Time management - planning work reduces last-minute pressure. Physical exercise and yoga - release tension and improve mood. Healthy diet and enough sleep - keep the body strong. Talking to friends and family - sharing reduces worry. Positive thinking and hobbies also help.

Q. Write the four steps of time management. (2 marks)

Organise, Prioritise, Control and Track.

Unit 3: ICT Skills-II

3.1 Operating system

An operating system (OS) is the system software that manages the computer's hardware and software and acts as an interface between the user and the computer. Without an OS, we cannot run applications. Examples: Windows, Linux (Ubuntu), macOS, Android, iOS.

Where the OS sits
1User
➜
2Application software (Word, Chrome)
➜
3Operating system
➜
4Hardware (CPU, memory, disk)
Functions of an operating system
🧠
Process management

runs many programs; shares the CPU

💾
Memory management

gives RAM to programs and frees it

📁
File management

creates, saves, organises and deletes files

🖨️
Device management

controls keyboard, printer, disk through drivers

🔐
Security

passwords and user accounts

🖥️
User interface

lets us interact with the computer

Types of user interface

User interfaces
GUI (Graphical)
  • uses icons, windows, menus
  • mouse and touch
  • easy for beginners
  • e.g. Windows, Android
VS
CLI (Command Line)
  • type text commands
  • keyboard only
  • fast for experts
  • e.g. Linux terminal, MS-DOS

Types of operating systems

TypeExample
Desktop OSWindows 11, Ubuntu, macOS
Mobile OSAndroid, iOS
Open source (free to use and change)Linux, Android (AOSP)
Proprietary (owned by a company)Windows, macOS

3.2 Basic file operations

OperationHow (Windows)
Create a folderright-click > New > Folder
Renameselect > F2 or right-click > Rename
Copy / Cut / PasteCtrl + C / Ctrl + X / Ctrl + V
DeleteDelete key; file goes to the Recycle Bin
Restoreopen the Recycle Bin > Restore
Permanently deleteShift + Delete
Searchsearch box in File Explorer
Remember

A file extension tells the type of a file: .docx (Word), .xlsx (Excel), .pptx (PowerPoint), .pdf, .jpg, .mp4, .py, .txt.

3.3 Computer care and maintenance

Regular care keeps the computer fast and long-lasting.

Daily, weekly, monthly care
🧹
Clean

wipe the keyboard and screen; keep vents dust-free

🔄
Update

install OS and software updates

🛡️
Scan

run an antivirus scan weekly

🗂️
Organise

delete unwanted files, empty the Recycle Bin

💾
Back up

copy important data to a drive or cloud

🔌
Protect power

use a UPS and surge protector

Do not eat or drink near the computer, do not move a laptop while the hard disk is working, handle cables carefully and shut down properly.

3.4 Computer threats

Common threats
Threats
Virus
Worm
Trojan horse
Spyware
Adware
Ransomware
Phishing
Hacking
ThreatWhat it doesHow it spreads
Virusa program that attaches to files and harms data; runs when the file runsinfected files, pen drives, downloads
Wormcopies itself and spreads automatically across networks; slows systemsnetworks, e-mail
Trojan horselooks like a useful program but harms when run; does not copy itselffake apps, cracked software
Spywaresecretly records what you do (passwords, browsing)free software, malicious sites
Adwareshows unwanted advertisementsfree apps
Ransomwarelocks files and demands moneye-mail attachments
Phishingfake e-mails or messages to steal passwords and bank detailse-mail, SMS, fake websites
Hackingunauthorised access to a computer or accountweak passwords, unprotected networks

Signs of infection: the computer becomes slow, programs crash, unknown pop-ups appear, files disappear or change, settings change by themselves.

3.5 Protecting the computer and data

Layers of protection
1Strong password
➜
2Antivirus and updates
➜
3Firewall
➜
4Safe browsing (https)
➜
5Regular backup
MeasureExplanation
Strong passwordat least 8 characters with capitals, small letters, numbers and symbols, e.g. Kv@2026#Ai; change regularly
Antivirusdetects and removes malware; keep it updated (e.g. Windows Defender, Quick Heal)
Firewallblocks unauthorised network access
Updatesfix security holes in the OS and apps
Encryptionturns data into a secret code so others cannot read it
Backupkeeps a copy safe in case of loss
Safe browsinguse https sites, do not click unknown links, do not download pirated software
Two-factor authenticationpassword + OTP for extra safety
Phishing alert

Neha gets an SMS: "Your bank account will be blocked today. Click here and enter your PIN." It is phishing - banks never ask for PINs. She deletes the message and reports it at cybercrime.gov.in (helpline 1930).

3.6 Exam-ready answers

Q. Differentiate between a virus and a worm. (2 marks)

A virus attaches itself to a file and spreads when the infected file is run or shared. A worm is a standalone program that copies itself and spreads automatically through networks without user action.

Q. Write any four ways to protect a computer. (4 marks)

Use strong passwords and change them regularly; install and update antivirus software; turn on the firewall and install updates; avoid unknown links, attachments and pirated software; back up important data regularly.

Unit 4: Entrepreneurial Skills-II

4.1 Entrepreneurship and society

Entrepreneurship is the process of identifying an opportunity, starting a business, taking risks and managing resources to provide goods or services and earn profit. An entrepreneur is the person who does this.

Entrepreneurs are important for society because they create jobs, bring new products, develop regions, use local resources and increase the country's income. Every big company - Tata, Infosys, Zomato, Paytm - was once a small idea.

Entrepreneurship helps society
Entrepreneurship
Jobs and self-employment
New products and services
Lower prices through competition
Development of villages and towns
Exports and national income
Solutions to social problems
Social entrepreneurship

Arunachalam Muruganantham from Tamil Nadu made a low-cost machine to produce affordable sanitary pads. Rural women run these machines, earn money and improve health in their villages. He earned profit and also solved a social problem - this is social entrepreneurship.

4.2 Qualities of a successful entrepreneur

Entrepreneurial qualities
⏳
Patience

success takes time

🙂
Positivity

sees the good in problems

🏋️
Hard work

long hours in the start-up phase

🔁
Perseverance

never gives up after failure

💪
Self-confidence

believes in the idea

🧪
Willingness to try

learns from mistakes

💡
Creativity and innovation

finds new solutions

🤝
Teamwork and leadership

builds and guides a team

4.3 Functions of an entrepreneur

What an entrepreneur does
1Make decisions
➜
2Manage the business
➜
3Divide income
➜
4Take risks
➜
5Create new methods
FunctionExplanationExample: a bakery
Decision makingwhat to produce, where, at what pricemake eggless cakes for the local market
Managing the businessplanning, hiring, controlling daily workhire two bakers; plan stock
Dividing incomepaying wages, rent, suppliers, keeping profitpay salaries before keeping profit
Taking riskbearing the chance of lossbuys an expensive oven on loan
Creating new methods (innovation)improving products and processesonline ordering through a website

4.4 Myths about entrepreneurship

MythFact
Starting a business needs a lot of moneymany start with little money (home tiffin, tuition) and grow
Entrepreneurs are born, not madeskills can be learnt by training and practice
Only big ideas succeedsmall improvements to existing products also succeed
Failure means the endmany entrepreneurs fail first and then succeed
A business is for older people onlymany students start online businesses and startups

4.5 Entrepreneurship as a career option

Career choices
Wage employment
  • works for others
  • fixed salary
  • less risk
  • follows decisions of the employer
VS
Self-employment / entrepreneurship
  • own business
  • income depends on profit
  • more risk
  • freedom to decide

The entrepreneurship process

Process
1Self-analysis - am I ready?
➜
2Identify an opportunity
➜
3Generate and select an idea
➜
4Prepare a business plan
➜
5Arrange finance
➜
6Launch
➜
7Manage and grow
StageKey activity
Self-analysisknow your interests, skills and capacity for risk
Opportunityfind unmet needs: market survey, observation
Ideabrainstorm ideas, choose the most practical one
Business planproduct, customers, cost, price, marketing, profit estimate
Financeown savings, family, bank loan, government schemes
Launchstart small and test
Growthadd products, branches, online sales

Support from the government

Startup India, Stand-Up India (loans for SC/ST and women entrepreneurs), PM Mudra Yojana (Shishu, Kishor, Tarun loans for small businesses), Skill India and Atal Innovation Mission (Atal Tinkering Labs in schools).

4.6 Types of business by activity

TypeExample
Manufacturingfurniture making, textile mill
Tradinggrocery store, wholesale market
Servicesalon, coaching, courier
Agriculture-baseddairy, poultry, organic farm
Online / e-commerceselling handicrafts online
Profit calculation

A tailor buys cloth worth Rs 6,000 and spends Rs 2,000 on thread and electricity. She sells shirts for Rs 12,500. Profit = 12,500 - (6,000 + 2,000) = Rs 4,500.

4.8 Case study: from a small idea to a brand

Case study: Amul

In 1946, dairy farmers of Kheda (Gujarat) were paid very little by middlemen. Under the leadership of Tribhuvandas Patel and later Dr Verghese Kurien, they formed a cooperative. Farmers sold milk directly, processing plants were set up and the brand Amul was born. Today millions of farmers are members, and India became the world's largest milk producer (White Revolution). Lessons: spot a real problem, organise people, maintain quality, and keep the customer first.

Lessons for young entrepreneurs
🔎
Start with a problem

solve a real need

🤝
Build trust

quality and honesty create loyal customers

📈
Grow step by step

test, learn, then expand

💬
Listen to customers

feedback shapes the product

4.9 Business planning in brief

QuestionPlan section
What will I sell?product or service
Who will buy it?target customers
How much will it cost and at what price will I sell?costs and pricing
How will people know about it?promotion: posters, social media, word of mouth
Where will I sell?place: shop, online, door to door
How much money do I need?capital and sources

4.7 Exam-ready answers

Q. Explain any two functions of an entrepreneur. (2 marks)

Decision making - deciding what to produce, how and at what price. Risk taking - bearing the possibility of loss when investing money and effort. (Others: managing, dividing income, innovation.)

Q. Write any four myths about entrepreneurship and the facts. (4 marks)

Myth: it needs a lot of money - fact: many start small. Myth: entrepreneurs are born - fact: skills can be learnt. Myth: only new ideas succeed - fact: improving old ideas works. Myth: failure is the end - fact: failure teaches and many succeed later.

Unit 5: Green Skills-II

5.1 Sustainable development

Sustainable development is development that meets the needs of the present generation without compromising the ability of future generations to meet their own needs (Brundtland Report, 1987). It means using resources wisely, so that our children also get clean air, water, forests and minerals.

Three dimensions
Sustainable development
Economic - jobs, income, growth
Social - education, health, equality
Environmental - clean air, water, biodiversity
Two paths of development
Unsustainable
  • cutting forests for quick profit
  • burning coal without limits
  • dumping waste in rivers
VS
Sustainable
  • replanting and using forests carefully
  • solar and wind energy
  • treating waste and recycling

5.2 Importance of sustainable development

  • Protects natural resources for future generations.
  • Reduces pollution and climate change.
  • Ensures food, water and energy security.
  • Creates green jobs and long-term economic growth.
  • Reduces poverty and inequality.

5.3 Problems related to sustainable development

Key problems
🍚
Food

soil loss, overuse of fertilisers, food waste

💧
Water

over-pumping of groundwater, polluted rivers

⚡
Energy

dependence on coal and oil

🌳
Forests

deforestation and forest fires

🏙️
Cities

crowding, waste and traffic

🌡️
Climate

global warming, floods and droughts

ProblemCauseSustainable solution
Soil degradationchemical fertilisers, overgrazingorganic farming, crop rotation
Water shortagewasting water, deforestationrainwater harvesting, drip irrigation
Energy crisisfossil fuels are limitedsolar, wind, hydro, biogas
Air pollutionvehicles, industry, crop burningpublic transport, EVs, cleaner fuels
Wasteplastic, e-wastereduce, reuse, recycle, segregate

5.4 Sustainable Development Goals (SDGs)

In 2015, the United Nations adopted 17 Sustainable Development Goals to be achieved by 2030.

No.GoalNo.Goal
1No poverty10Reduced inequalities
2Zero hunger11Sustainable cities and communities
3Good health and well-being12Responsible consumption and production
4Quality education13Climate action
5Gender equality14Life below water
6Clean water and sanitation15Life on land
7Affordable and clean energy16Peace, justice and strong institutions
8Decent work and economic growth17Partnerships for the goals
9Industry, innovation and infrastructure
SDGs in action

A school (SDG 4) teaches girls coding (SDG 5), runs on solar power (SDG 7) and harvests rainwater (SDG 6). A single project can support many goals.

5.5 Green economy and green jobs

A green economy is low-carbon, resource-efficient and socially inclusive. Green jobs are jobs that help protect or restore the environment.

Green jobs
☀️
Solar technician

installs and repairs solar panels

🚲
EV mechanic

services electric vehicles

♻️
Recycling worker

sorts and processes waste

🌾
Organic farmer

grows crops without chemicals

🏗️
Green building designer

energy-saving buildings

💧
Water conservationist

rainwater harvesting systems

5.6 Our role in sustainable development

What students can do
1Save water and electricity
➜
2Reduce plastic
➜
3Segregate waste
➜
4Plant and protect trees
➜
5Spread awareness
At homeAt schoolIn society
turn off taps, lights and fanseco-club, composting pitcleanliness and plantation drives
use cloth bagsuse both sides of paperuse public transport
repair before replacingno food waste in the canteenreport pollution, support local products

5.7 India's efforts for sustainable development

Steps taken by India
☀️
International Solar Alliance

India co-founded it to promote solar power worldwide

🌱
Mission LiFE

Lifestyle for Environment - mindful use of resources

🚰
Jal Jeevan Mission

tap water to every rural home

🧹
Swachh Bharat Mission

sanitation and waste management

🔋
National Electric Mobility

electric vehicles and charging network

🌳
Green India Mission

increase forest cover

Village case study: Hiware Bazar

Hiware Bazar in Maharashtra once suffered from drought and migration. The villagers built check dams, planted trees, banned water-hungry crops and managed groundwater together. Within a few years, wells were full, farm incomes rose and people returned to the village. It shows that community action can make development sustainable.

5.8 Sustainable lifestyle checklist

AreaSustainable choice
Foodeat local and seasonal food; do not waste food
Waterbucket bath; reuse RO waste water for plants
Energy5-star appliances; switch off at the plug
Travelwalk, cycle, bus, metro; car-pool
Shoppingbuy only what you need; repair and reuse

5.7 Exam-ready answers

Q. Name any four Sustainable Development Goals. (2 marks)

No poverty, zero hunger, quality education, clean water and sanitation, affordable and clean energy, climate action. (Any four.)

Q. Explain any four problems related to sustainable development and their solutions. (4 marks)

Water shortage - rainwater harvesting and drip irrigation. Energy crisis - renewable energy such as solar and wind. Soil degradation - organic farming and crop rotation. Air pollution - public transport and electric vehicles. Waste - reduce, reuse, recycle.

Quick revision: all five units at a glance

Ten marks: four one-mark questions (out of six) and three two-mark questions (out of five). One question comes from each unit, and two one-markers from Self-Management.

Unit 1: Communication Skills

Sender>Message>Encoding>Channel>Receiver>Decoding>Feedback
Methods
  • Verbal: words, spoken (talk, phone) or written (letter, e-mail)
  • Non-verbal: gestures, expressions, posture, eye contact
  • Visual: signs, symbols, charts, maps
7 Cs

Clear, Concise, Concrete, Correct, Coherent, Complete, Courteous

Barriers

Physical (noise), linguistic (language), interpersonal (trust), organisational (rules), cultural

Feedback

The reply of the receiver. Good feedback is specific, timely, polite and helpful.

Unit 2: Self-Management Skills

Stress management

Stress is our reaction to a difficult situation.

  • Time management
  • Exercise, yoga, healthy food, sleep
  • Talk to family and friends; think positively
SMART goals

Specific, Measurable, Achievable, Realistic, Time bound

Self-motivation
  • Internal: you do it because you enjoy it
  • External: you do it for a prize, marks or praise
Time management

Organise, Prioritise, Control, Track

Unit 3: ICT Skills

TermMeaning
Operating systeminterface between the user and the hardware: Windows, Linux, Android
File and foldera file stores data and has an extension (.txt Notepad, .docx Word, .jpg picture, .mp3 audio); a folder holds files
Virusa program that harms the computer
Wormcopies itself and spreads from computer to computer
Trojan Horselooks useful, harms when run; does not copy itself
Protectionstrong passwords, antivirus, firewall, backup, secure (https) sites

Unit 4: Entrepreneurial Skills

Qualities

Patience, positivity, hard work, perseverance, confidence, creativity, open to trial and error

Functions

Takes decisions, manages the business, takes risk, brings new ideas, divides the income, creates jobs

Myths
  • Every idea must be unique
  • A lot of money is needed
  • Entrepreneurs are born, not made
Career

Self-employed (own boss) and wage employed (works for a salary). Stages: Enter, Survive, Grow.

Unit 5: Green Skills

TermMeaning
Sustainable developmentmeets the needs of the present without harming the ability of future generations to meet theirs
SDGs17 goals adopted by the United Nations in 2015, to be achieved by 2030
Goals to remember1 No Poverty, 2 Zero Hunger, 4 Quality Education, 6 Clean Water and Sanitation, 7 Affordable and Clean Energy, 12 Responsible Consumption and Production, 13 Climate Action
Our rolereduce, reuse, recycle; save water and power; plant trees; say no to plastic
4

Unit 1: AI project cycle and ethical frameworks

7 marks · five one-markers, one short and one long question

1.1 Why revisit the AI Project Cycle?

AI project cycle
1Problem scoping
➜
2Data acquisition
➜
3Data exploration
➜
4Modelling
➜
5Evaluation
➜
6Deployment
↻ back to step 1 — it is a cycle

In Class IX you learnt that an AI project is not built in one jump. It moves through a fixed set of stages, and each stage gives the input for the next one. In Class X we use the same cycle again, but now we look at each stage more carefully and we also ask a new question at every stage: is this fair and safe for the people affected? That second question is the subject of the second half of this chapter, the ethical frameworks for AI.

The AI Project Cycle is a step-by-step framework used to plan, build and use an AI solution for a real problem. It has six stages:

  1. Problem Scoping: understand the problem and set a clear goal.
  2. Data Acquisition: collect reliable and relevant data.
  3. Data Exploration: clean, arrange and visualise the data to find patterns.
  4. Modelling: choose and train an AI model.
  5. Evaluation: test the model on new data and measure how good it is.
  6. Deployment: put the model into real use and keep watching it.

It is called a cycle because the stages repeat. If the model fails in Evaluation, we go back to collect more data or to try another model; after Deployment, feedback from users may start a new round of problem scoping.

Remember the orderSome Ants Eat Mangoes Every Day - Scoping, Acquisition, Exploration, Modelling, Evaluation, Deployment.

1.2 Stage 1: Problem Scoping

Problem scoping means understanding the problem so clearly that we can write it in one or two sentences and decide what success will look like. A badly scoped problem wastes all later work: the best model in the world is useless if it solves the wrong problem.

The 4Ws Problem Canvas

WQuestion we askExample: students of a village school drop out after Class VIII
WhoWho are the stakeholders? Who faces the problem?students, parents, teachers, the school principal
WhatWhat is the problem? What is the evidence?about 20% students leave school after Class VIII every year
WhereIn which context, situation or place does it happen?in families with low income, mostly in the harvest season
WhyWhy should it be solved? What is the benefit?education improves jobs and income; achieves SDG 4

Problem statement template

Our [stakeholders] have a problem that [issue] when/while [context]. An ideal solution would [benefit].

Writing a problem statement

Our students of Classes VI-VIII and their parents have a problem that many students leave school before Class IX when their families need them for farm work in the harvest season. An ideal solution would identify students at risk early so that teachers can counsel families and arrange support, reducing dropouts.

1.3 Stage 2: Data Acquisition

Data acquisition is collecting the data needed to train and test the model. The model learns only from this data, so the quality of the data decides the quality of the model ("garbage in, garbage out").

  • Data features: the factors that affect the problem. For the dropout problem: attendance, marks, distance from home, family income, number of siblings.
  • Training data teaches the model; testing data is kept aside to check it later (for example 80% and 20%).
  • Sources: surveys and interviews, school records, sensors and cameras, open government portals such as data.gov.in, web scraping with permission, APIs.
  • Good data is relevant, accurate, enough in quantity, up to date and collected with consent.
Common mistake

Collecting data without the permission of the people concerned is unethical even if the project goal is good. Always take consent and protect personal details.

1.4 Stage 3: Data Exploration

Raw data is often messy: missing values, duplicate rows, spelling differences. In data exploration we clean the data and draw graphs to understand it. Graphs make trends visible that are hidden in long tables.

GraphBest forExample
Bar graphcomparing categoriesdropouts in each village
Line graphchange over timeattendance month by month
Pie chartparts of a wholereasons for leaving school
Scatter plotrelation between two variablesattendance vs marks
Histogramhow values are spreadnumber of students in each marks range

From the graphs we may find, for example, that students whose attendance falls below 60% in August are most likely to drop out. Such insights help us choose features and a model.

1.5 Stage 4: Modelling

A model is a program that takes inputs (features) and gives an output (prediction). There are two broad approaches:

  • Rule-based approach: the developer writes the rules. Example: "if attendance < 60% and marks < 40%, mark the student 'at risk'". Simple and explainable, but it cannot learn new patterns.
  • Learning-based approach: the machine learns the rules from data (Machine Learning). It can find patterns humans miss and improve with more data, but needs good data and is harder to explain.

The details of learning-based models - supervised, unsupervised, reinforcement learning and neural networks - are the subject of Unit 2.

1.6 Stage 5: Evaluation

The trained model is tested on the testing data, which it has never seen. We compare its predictions with the real answers and calculate measures such as accuracy, precision, recall and F1 score (Unit 3). If the results are poor we go back - more data, better features or a different model.

1.7 Stage 6: Deployment

Deployment means putting the tested model into real use: as a mobile app, a website, a dashboard for teachers or a part of a machine. Deployment also includes training the users, watching the model's performance over time and updating it when the situation changes (for example after a new admission policy).

Deployment example

The dropout model is added to the school's attendance app. Every Monday it shows the class teacher a short list of students at risk with the reason (low attendance, falling marks). The teacher calls the parents. Each term the school checks how many listed students actually stayed in school, and the model is retrained with the new data.

1.8 What are ethical frameworks?

A framework is a set of steps or principles that helps us solve a problem in an organised way. Ethical frameworks are frameworks that help us make sure that the choices we make - while building and using AI - do not cause unintended harm to people.

Why do we need ethical frameworks for AI?

AI systems take decisions that affect people: who gets a loan, who gets called for an interview, which patient gets extra care. These systems learn from past data, and past data can carry human bias. Without a careful ethical check, an AI can be unfair to some groups, invade privacy or cause harm, even when its designers had good intentions. Ethical frameworks:

  • give a common language to discuss right and wrong in a project,
  • help spot problems early (in problem scoping and data acquisition, not after harm is done),
  • make decisions consistent, explainable and accountable,
  • build trust between users and the people who build AI.

1.9 Types of ethical frameworks

Ethical frameworks for AI are of two main types: sector-based and value-based.

A. Sector-based frameworks

These are made for one particular field (sector), because each field has its own risks. The best-known example is bioethics, used in healthcare and medical research. Similar frameworks exist for finance, education and law enforcement.

B. Value-based frameworks

These are based on basic moral values and can be used in any field. There are three kinds:

Value-based frameworkMain ideaQuestion it asksAI example
Rights-basedprotect human rights and dignityDoes it respect every person's rights (privacy, equality, freedom)?a face-recognition system must not track people without consent
Utility-basedgreatest good for the greatest numberWhich choice gives the most benefit and the least harm overall?a traffic AI chooses signal timings that cut total waiting time for the city
Virtue-basedact as a good person wouldWould an honest, fair, kind and responsible person do this?a company refuses to sell a chatbot that manipulates children to buy things
Remember

Rights = respect each person; Utility = count total good and harm; Virtue = the character of the decision-maker.

1.10 Bioethics: a sector-based framework

Bioethics is the study of ethical issues in biology and medicine. It is guided by four principles:

PrincipleMeaningIn an AI for hospitals
Respect for autonomypeople have the right to make informed decisions about their own body and datapatients are told that AI is used and can refuse
Do not harm (non-maleficence)avoid causing harmtest the AI carefully; a wrong diagnosis can hurt
Ensure maximum benefit for all (beneficence)act for the good of patientsthe AI should improve care, not only cut cost
Give justicetreat people fairly and share benefits equallythe AI must work equally well for every group

1.11 Case study: a biased healthcare algorithm

A large hospital system used an AI algorithm to decide which patients needed extra care (special nurses, more follow-ups). The algorithm was trained to predict future health-care cost, on the idea that sicker patients spend more.

What went wrong? One community of patients had historically spent less money on health care - not because they were healthier, but because of lower income and poorer access to hospitals. The algorithm therefore gave them lower risk scores, and many seriously ill patients from that community were not selected for extra care.

Applying bioethics:

  • Justice is violated: two equally sick patients did not get equal care.
  • Do not harm is violated: sick patients missed care they needed.
  • Maximum benefit was not achieved: the hospital's resources did not reach the neediest.

Fix: use direct measures of health (number of active illnesses, test results) instead of cost as the target, test the model separately for every group, and keep doctors in the final decision.

Common mistake

The mistake was in problem scoping and data acquisition (choosing cost as the label), not in the code. Ethical checks must start at the very first stage of the AI project cycle.

1.12 Applying the frameworks at every stage

StageEthical question to ask
Problem ScopingWho could be harmed? Are all stakeholders included?
Data AcquisitionIs there consent? Is the data representative of all groups?
Data ExplorationAre some groups missing or under-represented?
ModellingIs the model explainable? Does it use unfair features (caste, religion, gender)?
EvaluationIs accuracy equal for every group?
DeploymentCan people appeal a decision? Who is accountable for mistakes?

1.13 Exam-ready answers

Q. Differentiate between sector-based and value-based frameworks. (2 marks)

Sector-based frameworks are designed for a specific field, e.g. bioethics for healthcare. Value-based frameworks are based on general moral values and can be used in any field; they are rights-based, utility-based and virtue-based.

Q. Name the four principles of bioethics and explain any two. (4 marks)

Respect for autonomy, do not harm, ensure maximum benefit for all, give justice. Respect for autonomy: patients decide about their own treatment and data after being informed. Give justice: benefits and burdens of health care are shared fairly among all groups; an AI must not favour one group.

Q. Which value-based framework is used when a city chooses the AI plan that saves the most lives in a flood? (1 mark)

Utility-based framework - it chooses the action with the greatest good for the greatest number.

Quick revision: one-look summary

AI Project Cycle

Problem Scoping>Data Acquisition>Data Exploration>Modelling>Evaluation>Deployment
StageWhat is doneRemember
Problem Scopingunderstand the problem and set the goal4Ws canvas: Who, What, Where, Why
Data Acquisitioncollect reliable, relevant datasurveys, sensors, cameras, web, open portals
Data Explorationarrange the data and draw graphsto see trends and patterns
Modellingchoose and train the AI modelrule-based or learning-based
Evaluationtest the model on new dataaccuracy, precision, recall, F1
Deploymentput the model to real useapp, website, device

Three domains of AI

Statistical Data

Numbers and tables.

Price prediction, weather forecast
Computer Vision

Images and videos.

Face unlock, self-driving cars
Natural Language Processing

Text and speech.

Voice assistants, translation

Ethical frameworks for AI

An ethical framework is a set of values and principles that helps us decide what is right while building and using AI, so that the system is fair and does not harm people.

Picture: the types of ethical frameworks

Ethical frameworksSector-basedValue-basedBioethics(health care)RightsbasedUtilitybasedVirtuebasedBioethics: respect autonomy, do not harm, maximum benefit for all, give justice

In daily life: School rules for the science lab are sector-based. The values of honesty and fairness, which apply everywhere, are value-based.

FrameworkAsksExample
Rights-basedDoes the action protect the rights and dignity of every person?an AI must not use personal data without consent
Utility-basedDoes it give the greatest good to the greatest number?a traffic AI that saves the most travel time for the city
Virtue-basedWould an honest, kind and fair person do it?a company openly reports the mistakes of its AI
Bioethics (sector-based)health care: respect for autonomy, do not harm, ensure maximum benefit for all, give justicea diagnosis AI tested on patients of all groups
5

Unit 2: Advanced concepts of modeling in AI

11 marks · the heaviest AI unit

2.1 AI, Machine Learning and Deep Learning

AI family
Artificial Intelligence
Machine Learning
Deep Learning

Artificial Intelligence (AI) is the broad idea of machines that act intelligently: they sense, learn, reason and decide. Machine Learning (ML) is a part of AI in which machines learn from data instead of following only hand-written rules. Deep Learning (DL) is a part of ML that uses artificial neural networks with many layers and very large data.

AIMLDL
Scopewidestpart of AIpart of ML
How it worksany technique that shows intelligent behaviour, including ruleslearns patterns from datalearns features by itself using many-layer neural networks
Data neededmay need none (rule-based)moderatevery large
Examplea chess program with rulesa spam filterface recognition, voice assistants
Picture itAI is the big circle; ML is a circle inside AI; DL is a circle inside ML.

2.2 Rule-based and learning-based approaches

In the rule-based approach the developer studies the problem and writes rules: *if temperature > 38 and cough = yes then "see a doctor"*. The machine follows the rules but cannot learn new ones. In the learning-based approach the developer gives examples (data) and the machine discovers the rules.

PointRule-basedLearning-based
Who makes the rules?the programmerthe machine, from data
Learns from new data?noyes
Handles new situationspoorlybetter, if trained on similar data
Explainabilityeasy to explaincan be hard to explain
Examplea fixed-reply chatbot, a grading rulespam filter, movie recommendations

2.3 Data for a model: features, labels, training and testing

  • Features are the inputs (for a house: area, rooms, location).
  • Label (target) is the output to predict (price).
  • Labelled data has the correct answer for each example; unlabelled data does not.
  • Data is split into a training set (to learn) and a testing set (to check), often 80:20.

2.4 Types of Machine Learning

Machine learning models are grouped by the kind of data and feedback they learn from.

Types of machine learning
Machine learning
Supervised - classification, regression
Unsupervised - clustering, association
Reinforcement - rewards and penalties

A. Supervised learning

The model learns from labelled data - like a student learning with an answer key. It learns the mapping from features to label and then predicts labels for new data.

  • Classification: the label is a category (class). Examples: spam / not spam; pass / fail; identifying a fruit as apple, mango or banana; detecting a disease from an X-ray.
  • Regression: the label is a continuous number. Examples: predicting house price, temperature, monthly sales, a student's marks from study hours.
Classification or regression?

(i) Predict whether it will rain tomorrow - classification (yes/no). (ii) Predict how many millimetres of rain will fall - regression (a number). (iii) Identify the breed of a dog in a photo - classification. (iv) Predict the price of a used car - regression.

B. Unsupervised learning

The model gets unlabelled data and finds hidden structure by itself - like sorting a box of mixed buttons without being told the groups.

  • Clustering: grouping similar items. Examples: grouping customers by buying habits; grouping news articles by topic; grouping students by learning style.
  • Association: finding items that occur together. Example: "people who buy bread often buy butter" - used for shop shelf layout and "frequently bought together" suggestions.

C. Reinforcement learning

An agent learns by trial and error in an environment. Each action gives a reward (good) or a penalty (bad), and the agent learns to choose actions that give the most reward over time - like training a pet with treats.

Examples: game-playing AI (AlphaGo), robots learning to walk, self-driving car simulations, ad placement.

TypeDataGoalExample
Supervisedlabelledpredict a labelspam detection, price prediction
Unsupervisedunlabelledfind groups or patternscustomer segmentation
Reinforcementrewards / penaltieslearn the best actionsgame AI, robots
Common mistake

Clustering is NOT classification. Classification needs labels given in advance; clustering creates its own groups from unlabelled data.

2.5 Neural networks

Artificial neural networks (ANNs) are inspired by the human brain, where billions of neurons pass signals to one another. An artificial neuron (node) takes several inputs, multiplies each by a weight, adds a bias, and passes the result through an activation function to produce an output.

Neuron outputoutput = activation( w1 x1 + w2 x2 + ... + wn xn + bias )

Layers of a neural network

LayerRole
Input layerreceives the raw data (for an image, one node per pixel); does no processing
Hidden layer(s)do the processing; each node combines inputs with weights and passes the result on; "deep" networks have many hidden layers
Output layergives the final result, e.g. one node for "cat" and one for "dog"

How a neural network learns

  1. The network starts with random weights and makes a prediction.
  2. The prediction is compared with the correct label; the difference is the error.
  3. The weights are adjusted a little to reduce the error (this is called back-propagation).
  4. Steps 1-3 repeat for thousands of examples until the error becomes small.
A simple neuron

Inputs: hours studied x1 = 4, attendance x2 = 0.9. Weights w1 = 0.5, w2 = 2, bias = -1.5. Weighted sum = 0.5 x 4 + 2 x 0.9 - 1.5 = 2 + 1.8 - 1.5 = 2.3. With a step activation "output 1 if sum > 0", the neuron outputs 1 (pass).

Features of neural networks

  • They learn features automatically from raw data (no need to hand-pick edges or words).
  • More data and more layers usually give better results, but need more computing power (GPUs).
  • They are used in image recognition, speech recognition, translation, chatbots and self-driving cars.
  • They work like a "black box": it is often hard to explain why a particular decision was made.

2.6 Choosing the right model

ProblemTypeWhy
Will a customer leave the bank?supervised - classificationpast customers are labelled left / stayed
How many units will we sell next month?supervised - regressionoutput is a number
Group 10,000 shoppers for offersunsupervised - clusteringno labels given
Teach a robot arm to pick objectsreinforcementit learns from success and failure
Recognise handwritten digitssupervised - classification (often a neural network)labelled images of digits

2.7 No-code AI tools

The handbook encourages trying models without coding:

  • Teachable Machine (Google): train an image, sound or pose classifier from your webcam in minutes - a hands-on example of supervised classification.
  • Orange Data Mining: drag-and-drop widgets to load data, train models and see results.
  • Machine Learning for Kids / Scratch extensions: simple classification projects.
Activity: Teachable Machine

Make two classes, "Thumbs up" and "Thumbs down". Record about 50 webcam images of each (the labelled training data). Click Train. Show your hand to the camera: the model predicts the class with a confidence percentage. If you show a new gesture it was never trained on, it will still pick one of the two classes - showing that a model only knows what it was trained on.

2.8 Exam-ready answers

Q. Differentiate between supervised and unsupervised learning with an example each. (2 marks)

Supervised learning trains on labelled data to predict labels for new data, e.g. classifying e-mails as spam. Unsupervised learning works on unlabelled data and finds hidden groups, e.g. grouping customers by buying behaviour.

Q. Explain the layers of a neural network. (4 marks)

A neural network has an input layer, one or more hidden layers and an output layer. The input layer receives the data, one node per feature (e.g. each pixel). Hidden layers process the data: each node multiplies inputs by weights, adds a bias and applies an activation function; many hidden layers make the network "deep". The output layer gives the final prediction, e.g. the probability of each class. The network learns by adjusting weights to reduce the error between predicted and actual outputs.

Q. Which type of learning is used by a robot that learns to walk by getting points for every step it takes without falling? (1 mark)

Reinforcement learning.

Quick revision: one-look summary

Picture: AI, ML and DL

Artificial Intelligence: machines that act intelligentlyMachine Learning: learns from dataDeep Learning:neural networks with many layers
Deep Learning is a part of Machine Learning, and Machine Learning is a part of AI.

In daily life: Fruits, mangoes and Alphonso mangoes: every Alphonso is a mango and every mango is a fruit.

Words used for data

TermMeaningExample: will a student pass?
Featuresthe input columnsattendance, study hours
Labelthe output to be predictedpass or fail
Training dataused to teach the model80% of the records
Testing datakept aside to check the model20% of the records

Two approaches to modelling

Rule-based

The developer writes the rules. The machine only follows them.

Fixed-reply chatbot. Does not learn from new data.
Learning-based

The machine finds the patterns from data on its own.

Spam filter. Improves with more data.

Three types of learning

TypeDataSub-categoriesExample
SupervisedlabelledClassification (category), Regression (number)spam or not spam; price of a house
UnsupervisedunlabelledClustering (groups), Association (items together), anomaly detectiongroups of customers; bread and butter; fraud
Reinforcementrewards and penaltiestrial and errorgame-playing AI, robot learning to walk

Artificial neural network

Picture: the layers

InputHidden 1Hidden 2Output
Input layer takes the data, hidden layers process it, output layer gives the answer.

In daily life: A relay race: the first runner takes the baton (input), the middle runners carry it (hidden), the last runner finishes (output).

Picture: how one neuron decides

x1 = 1w1 = 3x2 = 0w2 = 5x3 = 1w3 = 1sum+ biasactivationsum >= 4 ?(1 x 3) + (0 x 5) + (1 x 1) + (-1) = 33 is less than 4, so the output is 0
Each input is multiplied by its weight; the products and the bias are added; the activation function decides the output.

Try it Neuron calculator

6

Unit 3: Evaluating models

10 marks · six one-markers, one short question and the confusion matrix numerical

3.1 What is evaluation and why is it needed?

Evaluation is the process of checking how well a trained AI model performs on data it has not seen before. It is the fifth stage of the AI project cycle and decides whether the model is ready for deployment.

Why is evaluation necessary?

  • A model may look perfect on the data it learnt from but fail on new data (this is called overfitting - the model has memorised instead of learning).
  • Different models can be compared fairly using the same test data and the same measures.
  • In serious uses - medicine, banking, safety - wrong predictions can harm people, so we must know how often and in which way the model goes wrong.
  • Evaluation shows what to improve: more data, better features or a different algorithm.
Common mistake

Never evaluate a model on its own training data. It is like giving students the exact questions they practised: the marks will look high but will not show real understanding.

3.2 Train-test split

Evaluating a model
1Split data into train and test
➜
2Train the model
➜
3Predict on test data
➜
4Build the confusion matrix
➜
5Calculate accuracy, precision, recall, F1
➜
6Choose the right metric

Before training, the available labelled data is divided into two parts:

PartUsed forTypical share
Training setteaching the model the patterns70% to 80%
Testing setchecking the trained model on unseen data20% to 30%
Train-test split

A dataset has 1,000 labelled X-ray images. With an 80:20 split, 800 images are used to train and 200 are kept aside to test.

3.3 Accuracy and error

  • Accuracy tells what fraction of predictions were correct.
  • Error is the difference between the predicted and the actual value; for classification, error rate = 1 - accuracy.
AccuracyAccuracy = Correct predictions / Total predictions x 100%

Accuracy alone can be misleading. Suppose only 2 out of 100 forest areas actually catch fire. A lazy model that always predicts "no fire" is correct 98 times - 98% accuracy - but it never warns about a single real fire! We therefore need a more detailed picture: the confusion matrix.

3.4 The confusion matrix

For a classification problem with two classes (Positive and Negative), every prediction falls into one of four boxes:

Reality: Yes (Positive)Reality: No (Negative)
Prediction: YesTrue Positive (TP) - correctly predicted YesFalse Positive (FP) - predicted Yes, actually No (false alarm)
Prediction: NoFalse Negative (FN) - predicted No, actually Yes (missed case)True Negative (TN) - correctly predicted No

The words are easy to decode: True / False says whether the prediction was right; Positive / Negative says what the model predicted.

Forest-fire model

The model predicts "fire" and there really is a fire: TP. It predicts "fire" but there is none: FP (fire brigade rushes for nothing). It predicts "no fire" but there is a fire: FN (dangerous - the fire spreads). It predicts "no fire" and there is none: TN.

3.5 Evaluation metrics

All four measures below come from the confusion matrix.

Accuracy(TP + TN) / (TP + TN + FP + FN)
PrecisionTP / (TP + FP) - of all the cases predicted positive, how many were really positive?
RecallTP / (TP + FN) - of all the really positive cases, how many did the model catch?
F1 Score2 x Precision x Recall / (Precision + Recall) - the balance of precision and recall

Understanding precision and recall

  • High precision means few false alarms: when the model says "Yes", it is usually right.
  • High recall means few missed cases: the model catches most of the real "Yes" cases.
  • Usually improving one lowers the other, so the F1 score combines both. F1 is high only when both precision and recall are high. It ranges from 0 to 1 (0% to 100%).

3.6 Which metric matters more?

The choice depends on which mistake is more costly.

SituationCostlier mistakeMetric to focus onReason
Forest fire / viral outbreak detectionFN (missing a real fire or outbreak)Recalla missed case can cause huge damage
Cancer screening testFNRecalla missed patient goes untreated
Spam filterFP (a real e-mail goes to spam)Precisionlosing an important mail is worse than seeing one spam
Mining - predicting where to dig for goldFP (digging at the wrong place)Precisioneach wrong dig costs crores
Balanced situationsbothF1 scorebalances precision and recall
Shortcut

if missing a positive is dangerous - recall; if a false alarm is costly - precision.

3.7 Solved numericals

Example 1: complete calculation

A model tested on 200 cases gives TP = 60, FP = 20, FN = 10, TN = 110. Find accuracy, precision, recall and F1 score.

  • Total = 60 + 20 + 10 + 110 = 200
  • Accuracy = (TP + TN) / Total = (60 + 110) / 200 = 170 / 200 = 0.85 = 85%
  • Precision = TP / (TP + FP) = 60 / (60 + 20) = 60 / 80 = 0.75
  • Recall = TP / (TP + FN) = 60 / (60 + 10) = 60 / 70 = 0.857
  • F1 = 2 x 0.75 x 0.857 / (0.75 + 0.857) = 1.2857 / 1.607 = 0.80
Example 2: building the confusion matrix from a story

An AI checks 100 patients for a disease. 30 really have the disease; the AI correctly finds 24 of them. Of the 70 healthy people, the AI wrongly says 6 have the disease.

  • TP = 24 (sick, predicted sick); FN = 30 - 24 = 6 (sick, predicted healthy)
  • FP = 6 (healthy, predicted sick); TN = 70 - 6 = 64
  • Accuracy = (24 + 64) / 100 = 88%; Precision = 24 / 30 = 0.8; Recall = 24 / 30 = 0.8; F1 = 0.8
  • Here recall is most important: 6 sick patients were missed.
Example 3: why accuracy misleads

Out of 1,000 transactions only 10 are fraud. Model A always says "not fraud": TP = 0, FN = 10, FP = 0, TN = 990. Accuracy = 990 / 1000 = 99%, but Recall = 0 / 10 = 0 - it catches no fraud at all. Model B gives TP = 8, FN = 2, FP = 40, TN = 950: accuracy 95.8% (lower) but recall 0.8 - far more useful.

3.8 Ethical concerns around model evaluation

  • Bias: a model may be accurate overall but poor for one group (e.g. a face-recognition model that fails more often for darker skin). Evaluate separately for each group.
  • Transparency: users should know how the model was tested and its error rates.
  • Accountability: someone must be responsible for deciding that the model is "good enough".
  • Choice of metric: choosing accuracy when recall matters can hide dangerous failures.

3.9 Exam-ready answers

Q. What is a confusion matrix? (2 marks)

A confusion matrix is a 2 x 2 table that compares a model's predictions with the actual values. Its cells are TP, FP, FN and TN. All evaluation metrics - accuracy, precision, recall and F1 - are calculated from it.

Q. In a viral outbreak prediction model, which metric is more important and why? (2 marks)

Recall, because a False Negative (an actual outbreak predicted as no outbreak) means no preparation is made and the virus spreads; missing real cases is far more costly than a false alarm.

Quick revision: one-look summary

Model evaluation means checking how well a trained model works, before it is deployed. The model is always tested on data it has not seen in training.

The confusion matrix

Confusion matrix

Reality: YesReality: No
Predicted: Yes40TP10FP
Predicted: No5FN45TN

Read it like this

  • True Positive (TP): predicted Yes, really Yes
  • True Negative (TN): predicted No, really No
  • False Positive (FP): predicted Yes, really No (false alarm)
  • False Negative (FN): predicted No, really Yes (missed case)

Four formulas, one worked example

MetricFormulaWith TP = 40, FP = 10, FN = 5, TN = 45
Accuracy(TP + TN) / Total(40 + 45) / 100 = 85 / 100 = 0.85 (85%)
PrecisionTP / (TP + FP)40 / (40 + 10) = 40 / 50 = 0.80 (80%)
RecallTP / (TP + FN)40 / (40 + 5) = 40 / 45 = 0.89 (88.9%)
F1 score2 x Precision x Recall / (Precision + Recall)2 x 0.80 x 0.89 / (0.80 + 0.89) = 1.4222 / 1.69 = 0.84
When is precision important?

When a False Positive is costly.

Spam filter: a genuine mail must not go to spam.
When is recall important?

When a False Negative is costly.

Disease test, fire alarm: no real case should be missed.

Accuracy and error of one prediction

Actual value = 400      Predicted value = 380
Error       = |400 - 380| = 20
Error rate  = 20 / 400 = 0.05 = 5%
Accuracy    = 100% - 5% = 95%

Try it Confusion matrix calculator

Remember
  • Precision looks at the predicted positives (row of the matrix). Recall looks at the actual positives (column).
  • F1 is high only when both precision and recall are high.
  • Ethical concerns in evaluation: bias, transparency and accuracy.
Common mistake
  • High accuracy does not always mean a good model. If only 2 of 100 people are sick, a model that says "healthy" for all is 98% accurate and useless.
  • Testing on training data shows only what the model memorised (overfitting).
7

Unit 5: Computer vision

4 marks · four one-markers and one short question

5.1 What is Computer Vision?

Computer Vision (CV) is the domain of AI that enables machines to see, understand and interpret images and videos - and take decisions from them, just as humans do with their eyes and brain. A camera only captures light; computer vision gives meaning to what is captured: "this is a cat", "the traffic light is red", "this X-ray shows a fracture".

Image processingComputer vision
Goalimprove or change an imageunderstand what is in the image
Outputanother imageinformation or a decision
Examplebrightening, cropping, removing noise, filtersrecognising faces, reading number plates

5.2 Applications of Computer Vision

ApplicationWhat CV does
Facial recognitionunlocks phones, marks attendance, tags friends in photos
Face filtersdetects eyes, nose and mouth to place filters (Instagram, Snapchat)
Google Lens / search by imageidentifies objects, plants, products and text from a photo
Self-driving carsdetects lanes, signals, pedestrians and other vehicles
Medical imagingfinds tumours, fractures and eye disease in scans
Google Translate camerareads text in a photo and translates it on screen
Retailtracks stock on shelves, automatic billing counters
Agriculturedetects crop disease and weeds from drone photos
SecurityCCTV analysis, number-plate recognition at toll plazas

5.3 Computer vision tasks

CV tasks at a glance
🏷️
Classification

one label for the image

📍
Classification + localisation

label + one box

📦
Object detection

many objects, many boxes

✂️
Instance segmentation

exact outline of each object

CV tasks are grouped by how many objects are involved and how precisely they are located.

TaskObjectsOutputExample
Image classificationsingleone label for the whole image"this photo is a dog"
Classification + localisationsinglelabel + a bounding box around the object"dog, here"
Object detectionmultiplelabel + box for each objectall cars and people in a street photo
Instance segmentationmultipleexact outline (pixel mask) of each objectseparating each person in a crowd, pixel by pixel
Order of difficulty

classification < classification + localisation < object detection < instance segmentation.

5.4 Basics of images: pixels and resolution

A digital image is a grid of tiny squares called pixels (picture elements). Each pixel stores a number (or three numbers) for its colour.

  • Resolution is the number of pixels, written as width x height, e.g. 1280 x 720. More pixels mean more detail. A 1280 x 720 image has 921,600 pixels (about 0.9 megapixel).
  • Pixel value: in an 8-bit image each value ranges from 0 to 255 (256 levels). 0 is black (no light) and 255 is the brightest (white).
How many pixels?

An image is 640 pixels wide and 480 pixels high. Number of pixels = 640 x 480 = 307,200. If it is grayscale, it needs 307,200 values; if it is a colour (RGB) image, it needs 3 x 307,200 = 921,600 values.

5.5 Grayscale and RGB images

  • Grayscale image: each pixel has one value from 0 (black) to 255 (white); in between are shades of grey. The image is one matrix of numbers.
  • RGB (colour) image: each pixel has three values - Red, Green, Blue - each 0 to 255. The image is three matrices (channels) stacked together. Colours are made by mixing: (255, 0, 0) is red, (0, 255, 0) green, (0, 0, 255) blue, (255, 255, 0) yellow, (255, 255, 255) white, (0, 0, 0) black.
RGB valueColour
(255, 0, 0)red
(0, 255, 0)green
(0, 0, 255)blue
(255, 255, 0)yellow (red + green)
(0, 255, 255)cyan (green + blue)
(255, 0, 255)magenta (red + blue)
(128, 128, 128)grey

Number of possible colours in 24-bit RGB = 256 x 256 x 256 = 16,777,216 (about 16.7 million).

5.6 Image features

A feature is a piece of information in an image that helps to identify objects. Good features are distinctive and easy to find again in another image.

  • Edges: places where brightness changes sharply - the outline of objects.
  • Corners: points where two edges meet; very useful because they are easy to locate exactly.
  • Blobs: regions that differ in brightness or colour from their surroundings.
Jigsaw puzzle idea (handbook)

When solving a jigsaw, pieces of plain sky are hard to place, edge pieces are easier, and corner pieces are the easiest. In the same way, for a computer, corners are the best features, then edges, while flat regions give little information.

5.7 Convolution

Convolution is the operation used to find features. A small matrix called a kernel (filter), e.g. 3 x 3, is slid over the image. At each position the overlapping pixel values are multiplied by the kernel values and added; the sum becomes one pixel of the output (the feature map). Different kernels detect different features: one finds vertical edges, another horizontal edges, another sharpens or blurs.

Convolution at one position

Image patch: [[2, 2, 2], [0, 0, 0], [5, 5, 5]], kernel: [[1, 1, 1], [0, 0, 0], [-1, -1, -1]] (a horizontal-edge detector). Multiply element by element and add: (2+2+2) + 0 + (-5-5-5) = 6 - 15 = -9. A large value (positive or negative) means a strong edge here.

5.8 Convolutional Neural Network (CNN)

A CNN is a neural network designed for images. Its layers are:

LayerWhat it does
Convolution layerapplies many kernels to find features such as edges and textures, creating feature maps
ReLU (Rectified Linear Unit) layerreplaces negative values with 0, keeping only useful positive signals and adding non-linearity
Pooling layershrinks the feature maps (e.g. max pooling keeps the largest value in each 2 x 2 block), making the network faster and less sensitive to small shifts
Fully connected layercombines all the features and gives the final class probabilities, e.g. cat 0.92, dog 0.08

Early layers find simple features (edges), middle layers find shapes (eyes, wheels), and the last layers recognise whole objects (faces, cars).

5.9 Challenges and ethics in computer vision

  • Privacy: cameras and face recognition can track people without consent.
  • Bias: systems trained on unbalanced data recognise some faces less accurately.
  • Deepfakes: CV and generative AI can create fake videos.
  • Lighting, angle and blockage: objects partly hidden or in poor light are hard to recognise.
  • Security: small, invisible changes to an image (adversarial attacks) can fool a model.

5.10 Exam-ready answers

Q. Differentiate between object detection and instance segmentation. (2 marks)

Object detection finds multiple objects and draws a bounding box with a label around each. Instance segmentation goes further and marks the exact pixel outline of every object, separating even objects of the same class.

Q. What is the range of pixel values in an 8-bit image? What do 0 and 255 represent? (1 mark)

0 to 255; 0 is black (no intensity) and 255 is white (full intensity).

Quick revision: one-look summary

Computer Vision is the domain of AI that lets a machine see, process and understand images and videos. Uses: face recognition, self-driving cars, medical imaging, search by image, number-plate reading.

Picture: an image is a grid of numbers

Each small square is a pixel (picture element). In an 8-bit grayscale image each pixel has a value from 0 (black) to 255 (white).

black0
64
grey128
192
white255

A colour (RGB) pixel stores three such values: red, green and blue. (255, 0, 0) is red; (255, 255, 0) is yellow; (255, 255, 255) is white.

TermMeaningNumerical
Resolutionnumber of pixels, width x height640 x 480 = 3,07,200 pixels
Grayscale image1 channel, 1 byte per pixel640 x 480 image needs 3,07,200 bytes
RGB image3 channels, 3 bytes per pixel3,07,200 x 3 = 9,21,600 bytes
8-bit pixel2 to the power 8 shades256 values: 0 to 255

Four tasks of Computer Vision

Image classification
cat
One label for the whole image: "cat".
Classification + localisation
cat
The label and a box for the single object.
Object detection
catdog
Many objects: a box and a label for each.
Instance segmentation
cat 1cat 2
The exact outline (pixels) of every object.

For the practical: features, convolution and CNN

TermMeaning
Image featurescorners and edges are good features; flat patches are not
Convolutiona small matrix (kernel) slides over the image and brings out features such as edges
CNN layersConvolution layer, ReLU layer, Pooling layer (makes the feature map smaller), Fully connected layer (gives the class)
No-code toolsTeachable Machine, Lobe, Orange Data Mining
8

Unit 6: Natural language processing

8 marks · five one-markers, one short question and the Bag of Words numerical

6.1 What is Natural Language Processing?

Natural Language Processing (NLP) is the domain of AI that helps computers understand, interpret and generate human language - spoken or written. Human ("natural") languages such as Hindi or English are full of ambiguity and variety, while computers understand only exact, structured instructions. NLP bridges this gap.

6.2 Applications of NLP

ApplicationExample
Automatic summarisationnews apps give a short summary of a long article
Sentiment analysiscompanies find whether reviews and tweets are positive, negative or neutral
Text classificationspam filtering; sorting complaints by department
Virtual assistantsSiri, Alexa, Google Assistant understand spoken commands
Machine translationGoogle Translate, Bhashini for Indian languages
Chatbotscustomer-support bots on bank and railway sites
Autocomplete and grammar checkGmail Smart Compose, Grammarly

6.3 Chatbots

Chatbots
Script bot
  • fixed script and rules
  • easy to make
  • fails on new questions
VS
Smart bot
  • AI and NLP
  • learns from data
  • handles varied questions

A chatbot is a program that talks with users in natural language.

Script botSmart bot
Workingfollows a fixed script and rulesuses AI and NLP; learns from data
Flexibilitylimited; fails on unexpected questionsunderstands varied questions
Buildingeasy, little or no codingneeds data, training and coding
Memory / learningnoneimproves with use
Examplea bank's menu bot ("press 1 for balance")ChatGPT, Google Assistant, Alexa

6.4 Human language vs computer language

Human languageComputer language
ambiguous: one word can have many meaningsexact: each instruction has one meaning
grammar is flexible; small mistakes are understoodany syntax error stops the program
meaning depends on context, tone and culturecontext-free

Two ideas explain why understanding language is hard:

  • Syntax is the grammatical structure of a sentence. "Chickens feed extravagantly while the moon drinks tea" has correct syntax but no sense.
  • Semantics is the meaning. A sentence can be grammatically different but mean the same ("2 + 3" and "3 + 2"), or the same words can mean different things in different contexts.
  • Multiple meanings: "His face turns red after consuming the medicine" - is it an allergy or embarrassment? Only context tells.
  • Perfect syntax, no meaning: "Colourless green ideas sleep furiously."

6.5 Text processing: text normalisation

Text normalisation
1Sentence segmentation
➜
2Tokenisation
➜
3Remove stop words, special characters, numbers
➜
4Common case
➜
5Stemming or lemmatisation

Before a computer can work with text, the text is cleaned and simplified - text normalisation. The collection of all the documents used is called the corpus.

  1. Sentence segmentation: the corpus is divided into sentences.
  2. Tokenisation: each sentence is split into tokens (words, numbers, punctuation).
  3. Removing stop words, special characters and numbers: stop words are very common words with little meaning - a, an, the, is, and, to, of. Special characters and numbers are removed if not needed.
  4. Converting to common case: usually all lower case, so that "Data" and "data" become the same token.
  5. Stemming: removing affixes to get the stem, which may not be a real word: "studies" -> "studi", "playing" -> "play", "caring" -> "car".
  6. Lemmatisation: reducing a word to its dictionary form, the lemma, which is always a meaningful word: "studies" -> "study", "caring" -> "care", "better" -> "good". Lemmatisation is slower but more accurate than stemming.
Normalising a sentence

"Raj and Vijay are best friends! They play together." -> segmentation: 2 sentences -> tokens: Raj, and, Vijay, are, best, friends, !, They, play, together, . -> remove stop words and punctuation: Raj, Vijay, best, friends, play, together -> lower case: raj, vijay, best, friends, play, together -> stemming/lemmatisation: friends -> friend.

WordStemLemma
studiesstudistudy
studyingstudystudy
caringcarcare
healedhealheal
betterbettergood

6.6 Bag of Words (BoW)

Bag of Words is an NLP model that represents text by the frequency of each word, ignoring grammar and word order - as if all the words were thrown into a bag and counted.

Steps of the BoW algorithm:

  1. Text normalisation: collect and clean the documents.
  2. Create the dictionary (vocabulary): list every unique word in the whole corpus once.
  3. Create the document vectors: for each document, write how many times each dictionary word occurs.
  4. Repeat step 3 for all documents to get the document vector table.
Bag of Words worked example

Corpus after normalisation - Document 1: "aman and anil are stressed"; Document 2: "aman went to a therapist"; Document 3: "anil went to download a health chatbot". Dictionary: aman, and, anil, are, stressed, went, to, a, therapist, download, health, chatbot.

Documentamanandanilarestressedwenttoatherapistdownloadhealthchatbot
D1111110000000
D2100001111000
D3001001110111

6.7 TF-IDF: Term Frequency - Inverse Document Frequency

Bag of Words treats common words and rare words alike. TF-IDF gives a word more importance if it occurs often in one document but rarely in the others - such words tell us what that document is about.

Term Frequency (TF)number of times a word appears in a document
Document Frequency (DF)number of documents in which the word appears
Inverse Document Frequency (IDF)IDF = log10( total number of documents N / DF )
TF-IDFTF x IDF = TF x log10( N / DF )
TF-IDF for the corpus above (N = 3)
  • "aman" appears in D1 and D2: DF = 2, IDF = log(3/2) = log 1.5 = 0.176. TF-IDF in D1 = 1 x 0.176 = 0.176.
  • "went" appears in D2 and D3: DF = 2, IDF = 0.176.
  • "stressed" appears only in D1: DF = 1, IDF = log(3/1) = log 3 = 0.477. TF-IDF in D1 = 1 x 0.477 = 0.477 - higher, so "stressed" is a key word of D1.
  • A word that appears in all documents: IDF = log(3/3) = log 1 = 0, so its TF-IDF is 0 - it carries no special meaning (like a stop word).

Applications of TF-IDF: document classification, topic modelling, information retrieval (search engines rank pages), keyword extraction and stop-word filtering.

6.8 No-code NLP

Tools such as Orange Data Mining (text widgets: corpus, preprocess text, bag of words, word cloud, sentiment analysis) let students try NLP without coding. In a sentiment-analysis activity, product reviews are loaded, normalised, converted to a bag of words and labelled positive or negative.

6.9 Exam-ready answers

Q. Differentiate between stemming and lemmatisation. (2 marks)

Stemming removes affixes to get a stem, which may not be a meaningful word (caring -> car); it is fast. Lemmatisation gives the dictionary base word (lemma), which is always meaningful (caring -> care); it is slower but more accurate.

Q. Why is the IDF of a word that appears in every document zero? (1 mark)

IDF = log(N / DF) = log(N / N) = log 1 = 0, because such a word does not help to distinguish one document from another.

Quick revision: one-look summary

Natural Language Processing is the domain of AI that lets a machine understand and produce human language. Uses: voice assistants, language translation, sentiment analysis, text classification, keyword extraction, automatic captions.

Script bot

Works on a fixed script of rules. Easy to make, limited use.

Menu-based customer care bot
Smart bot

Uses AI, learns from data, handles new questions.

Alexa, Google Assistant

Why language is hard for a machine

LevelMeaningExample
Syntaxgrammar: the arrangement of words"Chickens feed extravagantly while the moon drinks tea" has correct syntax but no meaning
Semanticsmeaning of the words and sentence"bank" of a river and money in the "bank"

Text normalisation, step by step

Sentence segmentation>Tokenisation>Remove stop words, special characters, numbers>Common case>Stemming>Lemmatisation
StepWorkExample
Tokenisationbreaks a sentence into tokens: words, numbers and special characters"I love AI!" gives 4 tokens: I | love | AI | !
Stop wordsvery frequent words with little meaning are removeda, an, the, is, are, to, and
Stemmingcuts the affixes; the result may not be a wordstudies gives studi
Lemmatisationgives the meaningful base word (lemma); slowerstudies gives study; better gives good

Try it Token counter

Bag of Words: a full worked example

Bag of Words counts how many times each word of the vocabulary occurs in each document. The order of the words is not kept.

  1. Aman likes to play cricket.
  2. Riya likes to play chess.
  3. Aman and Riya play together.

Step 1. Text normalisation: lower case, punctuation removed. Step 2. Dictionary (vocabulary) of 9 words: aman, likes, to, play, cricket, riya, chess, and, together. Step 3 and 4. Document vectors:

amanlikestoplaycricketriyachessandtogether
Document 1111110000
Document 2011101100
Document 3100101011

TF-IDF on the same corpus

Wordamanlikestoplaycricketriyachessandtogether
DF222312111
IDF = 3 / DF3/23/23/23/33/13/23/13/13/1
log(IDF)0.1760.1760.1760.0000.4770.1760.4770.4770.477
TF-IDF(W) = TF(W) x log( IDF(W) )          IDF = total documents / document frequency

'cricket' in Document 1:  1 x log(3/1) = 1 x 0.477 = 0.477     (rare word, high value)
'aman'    in Document 1:  1 x log(3/2) = 1 x 0.176 = 0.176
'play'    in Document 1:  1 x log(3/3) = 1 x 0     = 0         (in every document, no value)

Try it Bag of Words and TF-IDF builder

Remember
  • log 1 = 0, log 1.5 = 0.176, log 2 = 0.301, log 3 = 0.477 (base 10).
  • Stop words occur in almost every document, so their TF-IDF is near 0.
  • Rare words have the highest TF-IDF value: they are the most valuable.
Common mistake
  • Write the vocabulary in the order in which the words first appear.
  • A word that comes twice in a document gets 2 in the document vector, not 1.
  • Document frequency counts documents, not occurrences.
9

Question bank: every type, with answers

684 questions in 15 types, including 187 numericals with full working

SQP 2026-27 31 questions follow the CBSE sample paper (shortened and reworded) Practice 653 written on the same pattern

Tap a type to open it. In the one-mark types, tap an option to check yourself. The answers of all the numericals were worked out by a program.

Objective type · 1 mark each

A1Employability skills MCQ1 mark · 69 questions
A1.1Practice1 mark

In the communication cycle, changing the idea into words, pictures or gestures is called

Answer

(b) encoding Encoding turns the sender's idea into a message (words, pictures, gestures); decoding is the receiver understanding it.

A1.2Practice1 mark

The receiver's reply that tells the sender the message is understood is called

Answer

(b) feedback Feedback completes the communication cycle by telling the sender how the message was received.

A1.3Practice1 mark

Which of these is NOT a part of the 7 Cs of communication?

Answer

(a) Costly The 7 Cs are Clear, Concise, Concrete, Correct, Coherent, Complete and Courteous; 'Costly' is not one of them.

A1.4Practice1 mark

A road sign showing a zebra crossing is an example of

Answer

(d) visual communication It sends the message through a picture, so it is visual communication.

A1.5Practice1 mark

A smile, a nod and a handshake are examples of

Answer

(b) non-verbal communication They communicate without words, using body language, so they are non-verbal.

A1.6Practice1 mark

Ravi cannot understand his new classmate because they speak different languages. This is a

Answer

(c) linguistic barrier A difference of language is a linguistic (language) barrier.

A1.7Practice1 mark

Loud traffic noise outside the classroom disturbs a lesson. This is a

Answer

(a) physical barrier Noise in the surroundings is a physical (environmental) barrier.

A1.8Practice1 mark

"Well done! Your chart is neat and the headings are clear." This is an example of

Answer

(a) specific (descriptive) feedback It praises and also says exactly what was good, so it is specific (descriptive) feedback.

A1.9Practice1 mark

Which type of sentence gives an order or makes a request?

Answer

(a) Imperative Imperative sentences give orders or requests, e.g. "Close the door."

A1.10Practice1 mark

In the sentence "Divya reads a book", the word 'reads' is the

Answer

(d) verb 'reads' shows the action, so it is the verb.

A1.11Practice1 mark

E-mail, SMS and letters are forms of

Answer

(c) written verbal communication They use written words, so they are written verbal communication.

A1.12Practice1 mark

Which of the 7 Cs asks us to use only as many words as needed?

Answer

(c) Concise Concise means short and to the point.

A1.13SQP 2026-271 mark

Riya practises hard only because the best performer will get a trophy. Her motivation is

Answer

(b) external motivation A prize, praise or reward from others is external motivation.

A1.14Practice1 mark

Our emotional, mental and physical reaction to a difficult situation is called

Answer

(c) stress Stress is the body's and mind's reaction to pressure.

A1.15Practice1 mark

In SMART goals, the letter M stands for

Answer

(d) Measurable M = Measurable: progress can be counted or checked.

A1.16Practice1 mark

In SMART goals, the letter T stands for

Answer

(b) Time bound T = Time-bound: the goal has a deadline.

A1.17Practice1 mark

"I will improve" is a weak goal. Which is a SMART goal?

Answer

(c) I will score 80% in the AI pre-board in January by studying one hour daily It is Specific (AI pre-board), Measurable (80%), Achievable, Relevant and Time-bound (January, one hour daily).

A1.18Practice1 mark

Aman learns the guitar because he enjoys music. This is

Answer

(c) internal motivation He is driven by his own enjoyment, so it is internal (intrinsic) motivation.

A1.19Practice1 mark

Knowing your own strengths, weaknesses, likes and dislikes is called

Answer

(d) self-awareness Self-awareness means knowing yourself.

A1.20Practice1 mark

Which of these is a stress management technique?

Answer

(d) Regular physical exercise Exercise releases tension and improves mood; it is a healthy way to manage stress.

A1.21Practice1 mark

The ability to control your behaviour, emotions and thoughts in the long-term interest is

Answer

(c) self-regulation Self-regulation (self-control) is managing your own behaviour and emotions.

A1.22Practice1 mark

Which of these is the first step of time management?

Answer

(c) Organise: plan the day's activities First organise (plan) the activities; then prioritise, control and track.

A1.23Practice1 mark

Doing the most important task first is called

Answer

(c) prioritising Prioritising means doing tasks in order of importance.

A1.24Practice1 mark

Which quality is needed to work independently?

Answer

(c) Self-motivation Self-motivation keeps a person working without being pushed by others.

A1.25Practice1 mark

Which of these is a sign of stress?

Answer

(d) Headache and sleeplessness Headache and sleeplessness are physical signs of stress.

A1.26Practice1 mark

A student feels nervous before the board exam. Which is the best way to manage it?

Answer

(b) Make a time table and take short breaks A time table removes confusion and short breaks keep the mind fresh.

A1.27Practice1 mark

In SMART goals, 'A' stands for

Answer

(c) Achievable A = Achievable: the goal can really be reached.

A1.28Practice1 mark

Which of these is NOT a step of time management?

Answer

(d) Postpone Postponing is procrastination, the opposite of good time management.

A1.29Practice1 mark

Good stress that pushes us to perform better, such as before a match, is called

Answer

(c) eustress (positive stress) Eustress is positive stress that motivates us.

A1.30Practice1 mark

Which habit builds self-confidence?

Answer

(b) Getting feedback and working on it Working on feedback improves skills, which builds confidence.

A1.31Practice1 mark

Finding where your time was spent during the day is called

Answer

(b) tracking Tracking records how time was used, so it can be improved.

A1.32Practice1 mark

Yoga and meditation mainly help in

Answer

(c) reducing stress They calm the mind and body, which reduces stress.

A1.33Practice1 mark

A person who can manage himself or herself well

Answer

(b) sets goals and works to achieve them Self-management means setting goals and working steadily towards them.

A1.34SQP 2026-271 mark

Which is the default file extension of a file made in Notepad?

Answer

(d) .txt Notepad saves plain text files with the extension .txt.

A1.35Practice1 mark

The software that works as an interface between the user and the computer hardware is the

Answer

(a) operating system The operating system manages the hardware and lets the user and programs use it.

A1.36Practice1 mark

Which of these is an operating system for mobile phones?

Answer

(b) Android Android (by Google) runs on most mobile phones.

A1.37Practice1 mark

A program that looks useful but harms the computer when it is run is a

Answer

(a) Trojan Horse A Trojan Horse hides harmful code inside a program that looks useful.

A1.38Practice1 mark

A malicious program that copies itself from one computer to another without human help is a

Answer

(a) worm A worm spreads by itself through networks.

A1.39Practice1 mark

Which of these protects a computer from viruses?

Answer

(d) Antivirus software Antivirus software detects and removes viruses.

A1.40Practice1 mark

A copy of important files kept at another place is called a

Answer

(c) backup A backup lets you recover files if the original is lost or damaged.

A1.41Practice1 mark

Which is the strongest password?

Answer

(d) Tr@in#2027kv It mixes capital and small letters, digits and symbols and is long.

A1.42Practice1 mark

A website address that begins with https shows that the

Answer

(b) data sent to the site is encrypted The S means secure: the data sent is encrypted.

A1.43Practice1 mark

Which key combination copies the selected file or text?

Answer

(d) Ctrl + C Ctrl + C copies, Ctrl + X cuts and Ctrl + V pastes.

A1.44Practice1 mark

Stealing someone's personal details to cheat others in that person's name is

Answer

(a) identity theft Using another person's identity to cheat is identity theft.

A1.45Practice1 mark

Which of these is a good way to care for a computer?

Answer

(c) Shut it down properly and keep it dust-free Proper shutdown and a clean, dust-free machine keep it working longer.

A1.46Practice1 mark

A person who starts a business by taking a risk to earn profit and solve a problem is an

Answer

(b) entrepreneur An entrepreneur takes risk to start a business that solves a problem.

A1.47Practice1 mark

A person who works for a salary under an employer is

Answer

(b) wage employed Wage employment means working for someone else for a salary.

A1.48Practice1 mark

Which of these is a quality of a successful entrepreneur?

Answer

(d) Perseverance: never giving up Perseverance means not giving up after failures.

A1.49Practice1 mark

"Entrepreneurs are born, not made." This statement is a

Answer

(d) myth It is a myth: entrepreneurial skills can be learnt and developed.

A1.50Practice1 mark

Which of these is a function of an entrepreneur?

Answer

(a) Taking decisions and managing the business An entrepreneur takes decisions and manages the business.

A1.51Practice1 mark

Finding a new method or product to solve a problem is called

Answer

(a) innovation Innovation is creating new ideas, methods or products.

A1.52Practice1 mark

Which is the correct order of the stages of an entrepreneur's career?

Answer

(d) Enter, Survive, Grow An entrepreneur first enters (starts), then survives the early years, then grows the business.

A1.53Practice1 mark

Which of these is NOT a role of an entrepreneur?

Answer

(b) Refusing to take any risk Entrepreneurs must take calculated risks; refusing all risk is not their role.

A1.54Practice1 mark

Meena opens a tiffin service that employs five women of her village. She helps society by

Answer

(d) creating jobs Her business gives jobs to others, which helps society.

A1.55Practice1 mark

"A business needs a lot of money to start." This statement is a

Answer

(b) myth about entrepreneurship It is a myth: many businesses start small with little money.

A1.56Practice1 mark

The ability to keep working even after failing is called

Answer

(b) perseverance Perseverance is continuing in spite of difficulties.

A1.57Practice1 mark

A person who runs his or her own small shop is

Answer

(b) self-employed Working for oneself is self-employment.

A1.58SQP 2026-271 mark

A company makes spoons that can be eaten and that decay naturally. Which Sustainable Development Goal does this support most directly?

Answer

(d) SDG 12: Responsible Consumption and Production Edible, biodegradable spoons cut plastic waste: responsible consumption and production (SDG 12).

A1.59Practice1 mark

How many Sustainable Development Goals were adopted by the United Nations in 2015?

Answer

(a) 17 The UN adopted 17 SDGs in 2015.

A1.60Practice1 mark

The Sustainable Development Goals are to be achieved by the year

Answer

(d) 2030 The SDGs are to be met by 2030 (Agenda 2030).

A1.61Practice1 mark

Development that meets the needs of the present without harming the ability of future generations to meet their needs is

Answer

(c) sustainable development This is the definition of sustainable development.

A1.62Practice1 mark

Which SDG is about Quality Education?

Answer

(b) SDG 4 SDG 4 is Quality Education.

A1.63Practice1 mark

Using solar panels on the school roof supports

Answer

(c) SDG 7: Affordable and Clean Energy Solar power is clean, affordable energy: SDG 7.

A1.64Practice1 mark

Carrying a cloth bag to the market follows which of the 3 Rs?

Answer

(a) Reduce (and reuse) It reduces the use of plastic bags (and the cloth bag is reused).

A1.65Practice1 mark

Which SDG is called Climate Action?

Answer

(c) SDG 13 SDG 13 is Climate Action.

A1.66Practice1 mark

Which of these is a sustainable practice?

Answer

(d) Rainwater harvesting Rainwater harvesting saves water for the future.

A1.67Practice1 mark

Which SDG is about Clean Water and Sanitation?

Answer

(d) SDG 6 SDG 6 is Clean Water and Sanitation.

A1.68Practice1 mark

Which of these is a problem that sustainable development tries to solve?

Answer

(a) Fast use of natural resources Natural resources are being used up too fast; sustainable development tries to slow this down.

A1.69Practice1 mark

Making new paper from old newspapers is an example of

Answer

(b) recycling Turning waste into new material is recycling.

A2AI project cycle and ethics MCQ1 mark · 34 questions
A2.1SQP 2026-271 mark

What is the main purpose of the Modelling stage of the AI Project Cycle?

Answer

(c) To choose or build an AI model and train it on the data In Modelling a suitable AI model is chosen or built and trained on the data.

A2.2SQP 2026-271 mark

Which activities belong to the Data Exploration stage?

Answer

(d) Arranging the data and drawing graphs to see patterns and trends Data Exploration arranges the data and uses graphs to find patterns and trends.

A2.3SQP 2026-271 mark

The ethical principle 'do not harm' means that an AI system should

Answer

(c) not cause injury or damage to people Non-maleficence ('do no harm') means the AI must not hurt people or cause damage.

A2.4SQP 2026-271 mark

Which action follows an ethical framework for AI?

Answer

(a) Checking the training data for bias before using the model Checking for bias makes the AI fair, which an ethical framework requires.

A2.5Practice1 mark

Which is the first stage of the AI Project Cycle?

Answer

(d) Problem Scoping Problem Scoping comes first: understand and define the problem.

A2.6Practice1 mark

In the 4Ws problem canvas, which W asks about the people facing the problem?

Answer

(c) Who Who = the stakeholders affected by the problem.

A2.7Practice1 mark

Collecting data from surveys, sensors, cameras and websites is the stage of

Answer

(d) Data Acquisition Data Acquisition means collecting data.

A2.8Practice1 mark

Which stage comes just after Modelling?

Answer

(c) Evaluation After Modelling the model is evaluated on test data.

A2.9Practice1 mark

Making the tested model available to real users is called

Answer

(c) Deployment Deployment puts the model into real use.

A2.10Practice1 mark

Which is the correct order?

Answer

(b) Problem Scoping, Data Acquisition, Data Exploration, Modelling, Evaluation, Deployment Problem Scoping → Data Acquisition → Data Exploration → Modelling → Evaluation → Deployment.

A2.11Practice1 mark

Which AI domain works with numbers and tables to find patterns?

Answer

(b) Statistical Data (Data Science) Statistical Data (Data Science) works with numerical and tabular data.

A2.12Practice1 mark

A face-unlock feature of a phone belongs to which AI domain?

Answer

(d) Computer Vision It recognises faces in camera images, so it is Computer Vision.

A2.13Practice1 mark

A voice assistant that understands spoken questions belongs to which AI domain?

Answer

(c) Natural Language Processing Understanding human language is NLP.

A2.14Practice1 mark

A price-comparison website that predicts the best time to buy uses mainly

Answer

(a) Statistical Data It studies price data and trends: Statistical Data.

A2.15Practice1 mark

A set of values and principles that helps us decide what is right and wrong while building AI is an

Answer

(a) ethical framework An ethical framework guides right decisions while building AI.

A2.16Practice1 mark

Ethical frameworks are broadly of two types:

Answer

(c) sector-based and value-based They are sector-based (e.g. bioethics) and value-based (rights, utility, virtue).

A2.17Practice1 mark

Bioethics is an example of a

Answer

(a) sector-based framework Bioethics is made for one sector (health care), so it is sector-based.

A2.18Practice1 mark

Bioethics is the ethical framework used in

Answer

(d) health care and life sciences Bioethics guides health care and life sciences.

A2.19Practice1 mark

Which of these is NOT a type of value-based framework?

Answer

(a) Sector-based Value-based frameworks are rights-based, utility-based and virtue-based; sector-based is the other main type.

A2.20Practice1 mark

A framework that chooses the action giving the greatest good to the largest number of people is

Answer

(d) utility-based Utility-based ethics aims at the greatest good for the greatest number.

A2.21Practice1 mark

A framework that puts human rights and dignity first is

Answer

(d) rights-based Rights-based ethics protects human rights and dignity.

A2.22Practice1 mark

A framework that looks at the character and intention of the person who acts is

Answer

(b) virtue-based Virtue-based ethics looks at good character and intentions.

A2.23Practice1 mark

Respecting a patient's right to take his or her own decision is the principle of

Answer

(b) respect for autonomy Autonomy means the patient decides for himself or herself.

A2.24Practice1 mark

Giving every group of patients a fair share of benefits and care is the principle of

Answer

(d) justice Justice means fairness for all groups.

A2.25Practice1 mark

A hospital AI was trained mostly on data of one group and gives poor results for others. The main ethical problem is

Answer

(a) bias in the training data The data did not represent all groups, so the model is biased.

A2.26Practice1 mark

Why are ethical frameworks needed for AI?

Answer

(a) To avoid unintended harm and make fair, responsible decisions They help avoid unintended harm and make AI decisions fair and responsible.

A2.27Practice1 mark

The 4Ws problem canvas is used in which stage?

Answer

(d) Problem Scoping The 4Ws (Who, What, Where, Why) are filled in Problem Scoping.

A2.28Practice1 mark

Which of these is a reliable source for data acquisition?

Answer

(b) An open government data portal Open government data portals give authentic, checked data.

A2.29Practice1 mark

The 4Ws of the problem canvas are

Answer

(b) Who, What, Where, Why Who, What, Where and Why.

A2.30Practice1 mark

Testing the model on new data to see how well it works is the stage of

Answer

(b) Evaluation Evaluation checks the model on unseen test data.

A2.31Practice1 mark

Checking whether a loan-approval AI treats all applicants equally is mainly a question of

Answer

(d) fairness Treating everyone equally is fairness.

A2.32Practice1 mark

Which of the following is one of the four principles of bioethics?

Answer

(a) Ensure maximum benefit for all The four principles are respect for autonomy, do not harm, ensure maximum benefit for all, and justice.

A2.33Practice1 mark

A problem statement template is written at the end of

Answer

(c) Problem Scoping After the 4Ws, the problem statement template sums up the problem at the end of Problem Scoping.

A2.34Practice1 mark

Data shown as a bar graph or scatter plot during the project belongs to

Answer

(d) Data Exploration Graphs that show patterns are made in Data Exploration.

A3Modeling MCQ, with neuron numericals1 mark · 46 questions
A3.1SQP 2026-271 mark

A game-playing AI improves by playing against itself; it gets points for good moves and loses points for bad moves. This is

Answer

(d) reinforcement learning Learning from rewards and penalties is reinforcement learning.

A3.2Practice1 mark

A music app groups songs that sound alike, with no tags given. This is an example of

Answer

(c) Unsupervised learning No labels are given, so grouping similar songs is unsupervised learning.

A3.3Practice1 mark

Learning from unlabelled data to find hidden groups is called

Answer

(c) unsupervised learning Unsupervised learning finds patterns in unlabelled data.

A3.4Practice1 mark

In a neural network, the processing is done mainly in the

Answer

(b) hidden layers The hidden layers transform the inputs and do the main processing.

A3.5Practice1 mark

A neuron has the inputs x1 = 5 with weight w1 = -2, x2 = 1 with weight w2 = -1, x3 = 2 with weight w3 = 4. The bias is -2. What is the weighted sum (with bias)?

Answer

(d) -5 Weighted sum = (5 x -2) + (1 x -1) + (2 x 4) + (-2) = -5.

A3.6Practice1 mark

A neuron has the inputs x1 = 0 with weight w1 = 4, x2 = 4 with weight w2 = 1, x3 = 2 with weight w3 = -1 and bias -1. It gives the output 1 if the weighted sum is 2 or more, otherwise 0. What is the output?

Answer

(a) 0 Weighted sum = (0 x 4) + (4 x 1) + (2 x -1) + (-1) = 1. It is less than the threshold 2.

A3.7Practice1 mark

The data kept aside to check a trained model is called

Answer

(b) testing data Testing data is not used in training; it checks the model.

A3.8Practice1 mark

Clustering and association are types of

Answer

(d) unsupervised learning Both work on unlabelled data, so they are unsupervised learning.

A3.9Practice1 mark

Predicting the price of a house (a number) is a problem of

Answer

(d) regression Predicting a continuous number is regression.

A3.10Practice1 mark

A neuron has the inputs x1 = 0 with weight w1 = 4, x2 = 4 with weight w2 = 2. The bias is -1. What is the weighted sum (with bias)?

Answer

(d) 7 Weighted sum = (0 x 4) + (4 x 2) + (-1) = 7.

A3.11Practice1 mark

Learning from labelled data is called

Answer

(d) supervised learning Supervised learning learns from examples with the correct labels.

A3.12Practice1 mark

The function that decides whether a neuron should 'fire' is the

Answer

(c) activation function The activation function decides the neuron's output.

A3.13Practice1 mark

A neuron has the inputs x1 = 5 with weight w1 = 2, x2 = 4 with weight w2 = 4 and bias 3. It gives the output 1 if the weighted sum is 30 or more, otherwise 0. What is the output?

Answer

(c) 0 Weighted sum = (5 x 2) + (4 x 4) + (3) = 29. It is less than the threshold 30.

A3.14Practice1 mark

A neuron has the inputs x1 = 2 with weight w1 = -2, x2 = 3 with weight w2 = 3 and bias -2. It gives the output 1 if the weighted sum is 5 or more, otherwise 0. What is the output?

Answer

(b) 0 Weighted sum = (2 x -2) + (3 x 3) + (-2) = 3. It is less than the threshold 5.

A3.15Practice1 mark

A neuron has the inputs x1 = 5 with weight w1 = 3, x2 = 4 with weight w2 = 3, x3 = 4 with weight w3 = 4. The bias is 3. What is the weighted sum (with bias)?

Answer

(a) 46 Weighted sum = (5 x 3) + (4 x 3) + (4 x 4) + (3) = 46.

A3.16Practice1 mark

A model in which the developer writes the rules is called

Answer

(b) rule-based In a rule-based model the rules are written by people.

A3.17Practice1 mark

The numbers that tell how important each input is to a neuron are called

Answer

(d) weights Weights show the importance of each input.

A3.18Practice1 mark

A neural network with many hidden layers is the basis of

Answer

(c) deep learning Deep learning uses neural networks with many hidden layers.

A3.19Practice1 mark

A supermarket studies bills to find items that are bought together. This is an example of

Answer

(c) Unsupervised learning Finding items bought together without labels is association (unsupervised learning).

A3.20Practice1 mark

A neuron has the inputs x1 = 1 with weight w1 = 3, x2 = 0 with weight w2 = -1, x3 = 0 with weight w3 = 1. The bias is 1. What is the weighted sum (with bias)?

Answer

(b) 4 Weighted sum = (1 x 3) + (0 x -1) + (0 x 1) + (1) = 4.

A3.21Practice1 mark

A neuron has the inputs x1 = 2 with weight w1 = 2, x2 = 2 with weight w2 = 3. The bias is 1. What is the weighted sum (with bias)?

Answer

(b) 11 Weighted sum = (2 x 2) + (2 x 3) + (1) = 11.

A3.22Practice1 mark

In an artificial neural network, the layer that receives the data is the

Answer

(c) input layer The input layer takes in the data.

A3.23Practice1 mark

In a data set of houses, 'area' and 'number of rooms' used to predict the price are

Answer

(d) features The inputs used to make a prediction are features.

A3.24Practice1 mark

Classification and regression are types of

Answer

(d) supervised learning Both learn from labelled data, so they are supervised learning.

A3.25Practice1 mark

Grouping customers with similar buying habits, without any labels, is

Answer

(d) clustering Making groups of similar items without labels is clustering.

A3.26Practice1 mark

A neuron has the inputs x1 = 3 with weight w1 = -2, x2 = 0 with weight w2 = -1, x3 = 5 with weight w3 = -2 and bias 1. It gives the output 1 if the weighted sum is -16 or more, otherwise 0. What is the output?

Answer

(c) 1 Weighted sum = (3 x -2) + (0 x -1) + (5 x -2) + (1) = -15. It is not less than the threshold -16.

A3.27Practice1 mark

A neuron has the inputs x1 = 1 with weight w1 = 4, x2 = 3 with weight w2 = 1, x3 = 1 with weight w3 = 4. The bias is -2. What is the weighted sum (with bias)?

Answer

(c) 9 Weighted sum = (1 x 4) + (3 x 1) + (1 x 4) + (-2) = 9.

A3.28Practice1 mark

"People who buy bread also buy butter." Finding such rules is called

Answer

(d) association Finding 'if this, then that' buying rules is association.

A3.29Practice1 mark

An app learns to recognise handwritten digits from 60,000 images, each tagged with the correct digit. This is an example of

Answer

(c) Supervised learning Each image has the correct label, so it is supervised learning.

A3.30Practice1 mark

Predicting whether an e-mail is 'spam' or 'not spam' is a problem of

Answer

(a) classification Predicting one of a fixed set of classes is classification.

A3.31Practice1 mark

A neuron has the inputs x1 = 0 with weight w1 = 3, x2 = 1 with weight w2 = 1. The bias is 1. What is the weighted sum (with bias)?

Answer

(a) 2 Weighted sum = (0 x 3) + (1 x 1) + (1) = 2.

A3.32Practice1 mark

Finding the one unusual transaction among thousands of normal ones is

Answer

(a) anomaly detection Spotting rare, unusual data is anomaly detection.

A3.33Practice1 mark

Which type of neural network is used mostly for images?

Answer

(b) Convolutional Neural Network (CNN) CNNs (Convolutional Neural Networks) are built for images.

A3.34Practice1 mark

The data used to teach a model is called

Answer

(a) training data Training data is used to teach the model.

A3.35Practice1 mark

A weather model is trained on past years' data with the recorded rainfall to predict rainfall. This is an example of

Answer

(d) Supervised learning The past data has the correct answers (recorded rainfall), so it is supervised learning.

A3.36Practice1 mark

A robot vacuum gets +1 for every clean tile and -1 for every bump, and improves its path. This is an example of

Answer

(a) Reinforcement learning It learns from rewards and penalties: reinforcement learning.

A3.37Practice1 mark

A neuron has the inputs x1 = 0 with weight w1 = -2, x2 = 3 with weight w2 = 4. The bias is -3. What is the weighted sum (with bias)?

Answer

(b) 9 Weighted sum = (0 x -2) + (3 x 4) + (-3) = 9.

A3.38Practice1 mark

A neuron has the inputs x1 = 3 with weight w1 = -1, x2 = 0 with weight w2 = 1. The bias is -1. What is the weighted sum (with bias)?

Answer

(d) -4 Weighted sum = (3 x -1) + (0 x 1) + (-1) = -4.

A3.39Practice1 mark

Which statement about AI, ML and DL is correct?

Answer

(d) DL is a part of ML, and ML is a part of AI DL ⊂ ML ⊂ AI: deep learning is a part of machine learning, which is a part of AI.

A3.40Practice1 mark

A dog is trained by giving a treat for every correct action. In AI this idea is used in

Answer

(b) reinforcement learning Rewarding correct actions is the idea behind reinforcement learning.

A3.41Practice1 mark

A program gives a discount if the bill is above 5,000 rupees, as written by the programmer. This is an example of

Answer

(b) Rule-based approach The rule is written by the programmer, so it is rule-based.

A3.42Practice1 mark

The extra value added to the weighted sum of a neuron is called the

Answer

(c) bias Bias is added to the weighted sum to shift the output.

A3.43Practice1 mark

A chatbot that answers only from a fixed list of 'if this, then that' replies follows the

Answer

(c) rule-based approach Fixed if-then replies are a rule-based approach.

A3.44Practice1 mark

In a table used for training, the column that the model has to predict is the

Answer

(b) label The target column is the label.

A3.45Practice1 mark

A model that finds the patterns from data on its own is called

Answer

(d) learning-based A learning-based model learns the patterns from data.

A3.46Practice1 mark

A neuron has the inputs x1 = 2 with weight w1 = -1, x2 = 3 with weight w2 = 1, x3 = 2 with weight w3 = 1. The bias is -1. What is the weighted sum (with bias)?

Answer

(b) 2 Weighted sum = (2 x -1) + (3 x 1) + (2 x 1) + (-1) = 2.

A4Evaluating models MCQ, with numericals1 mark · 75 questions
A4.1SQP 2026-271 mark

What does a high F1 score tell us about a model?

Answer

(c) Both its precision and its recall are good F1 is high only when both precision and recall are high.

A4.2SQP 2026-271 mark

A flood-warning AI gave an alarm, but no flood came. This outcome is a

Answer

(a) False Positive The prediction was positive (flood) and it was wrong.

A4.3SQP 2026-271 mark

Which is the correct meaning of precision?

Answer

(b) Out of all the positive predictions, the share that is actually positive Precision = TP / (TP + FP): of all 'yes' predictions, how many were right.

A4.4SQP 2026-271 mark

Which statement about the train-test split is INCORRECT?

Answer

(c) The model should be tested on the same data on which it was trained Testing on training data hides overfitting; the model must be tested on unseen data.

A4.5Practice1 mark

A model gave these results on the test data: TP = 24, FP = 24, FN = 8 and TN = 44. What is its precision?

Answer

(b) 0.50 Precision = TP / (TP + FP) = 24 / 48.

A4.6Practice1 mark

Checking how well a model works, using metrics, is called

Answer

(a) model evaluation Model evaluation uses metrics such as accuracy, precision, recall and F1.

A4.7Practice1 mark

A model gave these results on the test data: TP = 24, FP = 26, FN = 8 and TN = 42. What is its recall?

Answer

(d) 0.75 Recall = TP / (TP + FN) = 24 / 32.

A4.8Practice1 mark

Which is an ethical concern in model evaluation?

Answer

(a) The model may be biased against a group A model that works poorly for one group is biased and unfair.

A4.9Practice1 mark

A spam filter marked a genuine mail as spam. This outcome is a

Answer

(a) False Positive Predicted spam (positive) but really genuine: False Positive.

A4.10Practice1 mark

A model gave these results on the test data: TP = 26, FP = 26, FN = 14 and TN = 34. What is its accuracy?

Answer

(c) 60% Accuracy = (TP + TN) / Total = 60 / 100.

A4.11Practice1 mark

A model made 320 correct predictions out of 400 test cases. What is its accuracy?

Answer

(d) 80% Accuracy = correct predictions / total predictions = 320 / 400.

A4.12Practice1 mark

A rain-prediction app said 'rain', and it rained. This outcome is a

Answer

(a) True Positive Predicted yes and it was yes: True Positive.

A4.13Practice1 mark

A model gave these results on the test data: TP = 21, FP = 14, FN = 7 and TN = 8. What is its recall?

Answer

(c) 0.75 Recall = TP / (TP + FN) = 21 / 28.

A4.14Practice1 mark

A model predicted the weight of a parcel (in grams) as 360. The actual value was 400. What is the error rate?

Answer

(c) 10% Error = 40. Error rate = error / actual value = 40 / 400 = 10%.

A4.15Practice1 mark

A data set of 400 records is split 70:30 into training and testing data. How many records are used for testing?

Answer

(d) 120 Testing part = 30% of 400.

A4.16Practice1 mark

A test said 'not infected', but the person was infected. This outcome is a

Answer

(d) False Negative Predicted no but really yes: False Negative.

A4.17Practice1 mark

A model gave these results on the test data: TP = 54, FP = 6, FN = 18 and TN = 22. What is its recall?

Answer

(c) 0.75 Recall = TP / (TP + FN) = 54 / 72.

A4.18Practice1 mark

A spam filter must not send genuine mail to the spam folder. Which metric is most important?

Answer

(b) Precision A genuine mail marked as spam is a False Positive; precision measures it.

A4.19Practice1 mark

Out of 100 mails, 95 are genuine. A model marks every mail as genuine. Its accuracy is 95%, but it is useless because

Answer

(c) it never catches any spam (recall for spam is 0) Accuracy is 95/100, but it finds 0 of the 5 spam mails, so recall for spam is 0.

A4.20Practice1 mark

A model made 320 correct predictions out of 400 test cases. What is its accuracy?

Answer

(b) 80% Accuracy = correct predictions / total predictions = 320 / 400.

A4.21Practice1 mark

A model gave these results on the test data: TP = 44, FP = 44, FN = 36 and TN = 76. What is its precision?

Answer

(a) 0.50 Precision = TP / (TP + FP) = 44 / 88.

A4.22Practice1 mark

A model gave these results on the test data: TP = 60, FP = 40, FN = 20 and TN = 80. What is its accuracy?

Answer

(b) 70% Accuracy = (TP + TN) / Total = 140 / 200.

A4.23Practice1 mark

A spam filter let a genuine mail go to the inbox (positive class = spam). This outcome is a

Answer

(c) True Negative Predicted not spam and it was not spam: True Negative.

A4.24Practice1 mark

A model gave these results on the test data: TP = 21, FP = 14, FN = 4 and TN = 11. What is its precision?

Answer

(c) 0.60 Precision = TP / (TP + FP) = 21 / 35.

A4.25Practice1 mark

A model predicted the number of visitors to a fair as 360. The actual value was 400. What is the accuracy of this prediction?

Answer

(c) 90% Error = 40. Error rate = 40 / 400 = 10%. Accuracy = 100% - 10% = 90%.

A4.26Practice1 mark

Which formula gives recall?

Answer

(b) TP / (TP + FN) Recall = TP / (TP + FN): of all real positives, how many were found.

A4.27Practice1 mark

A model predicted the runs scored by a team as 736. The actual value was 800. What is the error rate?

Answer

(c) 8% Error = 64. Error rate = error / actual value = 64 / 800 = 8%.

A4.28Practice1 mark

A model gave these results on the test data: TP = 15, FP = 5, FN = 10 and TN = 20. What is its accuracy?

Answer

(c) 70% Accuracy = (TP + TN) / Total = 35 / 50.

A4.29Practice1 mark

A model gave these results on the test data: TP = 28, FP = 22, FN = 28 and TN = 22. What is its accuracy?

Answer

(d) 50% Accuracy = (TP + TN) / Total = 50 / 100.

A4.30Practice1 mark

The difference between the actual value and the predicted value is called

Answer

(c) error Error = actual value − predicted value.

A4.31Practice1 mark

A model gave these results on the test data: TP = 16, FP = 16, FN = 24 and TN = 44. What is its accuracy?

Answer

(d) 60% Accuracy = (TP + TN) / Total = 60 / 100.

A4.32Practice1 mark

A model gave these results on the test data: TP = 26, FP = 14, FN = 26 and TN = 34. What is its precision?

Answer

(d) 0.65 Precision = TP / (TP + FP) = 26 / 40.

A4.33Practice1 mark

A model made 800 correct predictions out of 1000 test cases. What is its accuracy?

Answer

(a) 80% Accuracy = correct predictions / total predictions = 800 / 1000.

A4.34Practice1 mark

A test for a serious disease must not miss any sick person. Which metric is most important?

Answer

(d) Recall Missing a sick person is a False Negative; recall measures it.

A4.35Practice1 mark

A model predicted the number of visitors to a fair as 540. The actual value was 500. What is the accuracy of this prediction?

Answer

(a) 92% Error = 40. Error rate = 40 / 500 = 8%. Accuracy = 100% - 8% = 92%.

A4.36Practice1 mark

Which formula gives accuracy?

Answer

(a) (TP + TN) / (TP + TN + FP + FN) Accuracy = correct predictions / all predictions = (TP + TN) / (TP + TN + FP + FN).

A4.37Practice1 mark

A model gives very good results on training data but poor results on new data. This is called

Answer

(b) overfitting It has memorised the training data instead of learning general patterns: overfitting.

A4.38Practice1 mark

A model gave these results on the test data: TP = 52, FP = 52, FN = 48 and TN = 48. What is its precision?

Answer

(b) 0.50 Precision = TP / (TP + FP) = 52 / 104.

A4.39Practice1 mark

A model predicted the weight of a parcel (in grams) as 960. The actual value was 800. What is the error rate?

Answer

(c) 20% Error = 160. Error rate = error / actual value = 160 / 800 = 20%.

A4.40Practice1 mark

A data set of 200 records is split 70:30 into training and testing data. How many records are used for testing?

Answer

(d) 60 Testing part = 30% of 200.

A4.41Practice1 mark

A face-unlock phone opened for a stranger (positive class = owner). This outcome is a

Answer

(b) False Positive Predicted owner (positive) but really a stranger: False Positive.

A4.42Practice1 mark

A table that compares the predictions of a model with the reality is a

Answer

(b) confusion matrix A confusion matrix shows TP, TN, FP and FN.

A4.43Practice1 mark

A smoke alarm did not ring, but there was a fire. This outcome is a

Answer

(a) False Negative Predicted no fire but there was a fire: False Negative.

A4.44Practice1 mark

A fraud detector flagged a genuine payment as fraud. This outcome is a

Answer

(a) False Positive Predicted fraud (positive) but really genuine: False Positive.

A4.45Practice1 mark

A model predicted the runs scored by a team as 525. The actual value was 500. What is the error rate?

Answer

(d) 5% Error = 25. Error rate = error / actual value = 25 / 500 = 5%.

A4.46Practice1 mark

An 80:20 train-test split of 500 records gives how many records for testing?

Answer

(d) 100 20% of 500 = 100 records for testing (400 for training).

A4.47Practice1 mark

A model gave these results on the test data: TP = 12, FP = 4, FN = 3 and TN = 31. What is its recall?

Answer

(d) 0.80 Recall = TP / (TP + FN) = 12 / 15.

A4.48Practice1 mark

A smoke alarm rang, and there was really a fire. This outcome is a

Answer

(c) True Positive Predicted fire and there was a fire: True Positive.

A4.49Practice1 mark

Which formula gives the F1 score?

Answer

(b) 2 x Precision x Recall / (Precision + Recall) F1 = 2 × Precision × Recall / (Precision + Recall), the harmonic mean.

A4.50Practice1 mark

The model predicted 'No' and the reality is 'No'. This is a

Answer

(a) True Negative Correct 'no': True Negative.

A4.51Practice1 mark

A plagiarism checker passed an essay that was really copied (positive class = copied). This outcome is a

Answer

(b) False Negative Predicted not copied but it was copied: False Negative.

A4.52Practice1 mark

The highest possible value of the F1 score is

Answer

(d) 1 F1 lies between 0 and 1; 1 means perfect precision and recall.

A4.53Practice1 mark

A model predicted the price of a bicycle (in rupees) as 224. The actual value was 200. What is the accuracy of this prediction?

Answer

(c) 88% Error = 24. Error rate = 24 / 200 = 12%. Accuracy = 100% - 12% = 88%.

A4.54Practice1 mark

A model gave these results on the test data: TP = 84, FP = 16, FN = 28 and TN = 72. What is its accuracy?

Answer

(a) 78% Accuracy = (TP + TN) / Total = 156 / 200.

A4.55Practice1 mark

A model gave these results on the test data: TP = 18, FP = 6, FN = 22 and TN = 54. What is its precision?

Answer

(b) 0.75 Precision = TP / (TP + FP) = 18 / 24.

A4.56Practice1 mark

A data set of 500 records is split 70:30 into training and testing data. How many records are used for testing?

Answer

(b) 150 Testing part = 30% of 500.

A4.57Practice1 mark

When a model's working and results can be explained and checked by people, the model is

Answer

(c) transparent Such a model is transparent (explainable).

A4.58Practice1 mark

A model gave these results on the test data: TP = 24, FP = 26, FN = 8 and TN = 42. What is its recall?

Answer

(b) 0.75 Recall = TP / (TP + FN) = 24 / 32.

A4.59Practice1 mark

A model gave these results on the test data: TP = 36, FP = 4, FN = 44 and TN = 116. What is its accuracy?

Answer

(a) 76% Accuracy = (TP + TN) / Total = 152 / 200.

A4.60Practice1 mark

If the accuracy of a model is 92%, its error rate is

Answer

(b) 8% Error rate = 100% − accuracy = 8%.

A4.61Practice1 mark

A model gave these results on the test data: TP = 9, FP = 6, FN = 11 and TN = 24. What is its recall?

Answer

(c) 0.45 Recall = TP / (TP + FN) = 9 / 20.

A4.62Practice1 mark

A metal detector stayed silent, and the bag had no metal. This outcome is a

Answer

(a) True Negative Predicted no and it was no: True Negative.

A4.63Practice1 mark

A model gave these results on the test data: TP = 112, FP = 28, FN = 48 and TN = 12. What is its recall?

Answer

(c) 0.70 Recall = TP / (TP + FN) = 112 / 160.

A4.64Practice1 mark

A model gave these results on the test data: TP = 48, FP = 16, FN = 12 and TN = 124. What is its precision?

Answer

(d) 0.75 Precision = TP / (TP + FP) = 48 / 64.

A4.65Practice1 mark

A model gave these results on the test data: TP = 18, FP = 18, FN = 12 and TN = 52. What is its accuracy?

Answer

(b) 70% Accuracy = (TP + TN) / Total = 70 / 100.

A4.66Practice1 mark

The model predicted 'Yes' and the reality is 'Yes'. This is a

Answer

(a) True Positive Correct 'yes': True Positive.

A4.67Practice1 mark

A model gave these results on the test data: TP = 26, FP = 14, FN = 24 and TN = 36. What is its precision?

Answer

(c) 0.65 Precision = TP / (TP + FP) = 26 / 40.

A4.68Practice1 mark

A model gave these results on the test data: TP = 9, FP = 3, FN = 9 and TN = 29. What is its recall?

Answer

(c) 0.50 Recall = TP / (TP + FN) = 9 / 18.

A4.69Practice1 mark

A model predicted the price of a bicycle (in rupees) as 550. The actual value was 500. What is the accuracy of this prediction?

Answer

(a) 90% Error = 50. Error rate = 50 / 500 = 10%. Accuracy = 100% - 10% = 90%.

A4.70Practice1 mark

In a confusion matrix, the correct predictions are

Answer

(d) TP and TN TP and TN are correct; FP and FN are errors.

A4.71Practice1 mark

The model predicted 'No' but the reality is 'Yes'. This is a

Answer

(d) False Negative Missed a real 'yes': False Negative.

A4.72Practice1 mark

A model that gives 100% accuracy on the data it was trained on is

Answer

(b) not proved good, because it has only memorised that data It may only have memorised that data; it must be tested on new data.

A4.73Practice1 mark

A model gave these results on the test data: TP = 18, FP = 7, FN = 12 and TN = 13. What is its recall?

Answer

(a) 0.60 Recall = TP / (TP + FN) = 18 / 30.

A4.74Practice1 mark

A model gave these results on the test data: TP = 36, FP = 24, FN = 12 and TN = 28. What is its accuracy?

Answer

(b) 64% Accuracy = (TP + TN) / Total = 64 / 100.

A4.75Practice1 mark

A model gave these results on the test data: TP = 18, FP = 2, FN = 18 and TN = 62. What is its precision?

Answer

(d) 0.90 Precision = TP / (TP + FP) = 18 / 20.

A5Computer vision MCQ, with pixel numericals1 mark · 42 questions
A5.1SQP 2026-271 mark

Finding the objects in an image or video and marking where each one is, is called

Answer

(b) object detection Object detection finds many objects and draws a box around each.

A5.2SQP 2026-271 mark

Which is a use of Computer Vision in online shopping?

Answer

(c) Searching for a product by uploading its photo Visual search finds products from a photo.

A5.3Practice1 mark

Marking the exact outline (pixels) of every separate object in an image is

Answer

(a) instance segmentation Instance segmentation marks the exact pixels of each separate object.

A5.4Practice1 mark

Google Lens identifying a plant from its photo is an application of

Answer

(c) Computer Vision It understands an image, so it is Computer Vision.

A5.5Practice1 mark

Classifying the single object in an image and also marking its place with a box is

Answer

(c) classification + localisation Saying what the object is (classification) and where it is (localisation).

A5.6Practice1 mark

The process of sliding a small kernel over an image to bring out features such as edges is

Answer

(c) convolution Convolution multiplies the kernel with each patch of pixels and adds them up.

A5.7Practice1 mark

Which is NOT an application of Computer Vision?

Answer

(a) Language translation Language translation works with text, so it is NLP, not computer vision.

A5.8Practice1 mark

The AI domain that helps machines to see and understand images and videos is

Answer

(b) Computer Vision Computer Vision lets machines understand images and videos.

A5.9Practice1 mark

The kernel used in convolution is a

Answer

(d) small matrix of numbers A kernel (filter) is a small matrix of numbers, such as 3 × 3.

A5.10Practice1 mark

In a grayscale image, a pixel value of 0 means

Answer

(b) black 0 is the darkest value: black (255 is white).

A5.11Practice1 mark

Which has the highest resolution?

Answer

(b) 1920 x 1080 1920 × 1080 has the most pixels (about 2 million).

A5.12Practice1 mark

In a colour image, each pixel stores

Answer

(c) three values, one each for red, green and blue Each pixel stores red, green and blue values.

A5.13Practice1 mark

An image is stored in the computer as

Answer

(c) numbers Every pixel is stored as numbers.

A5.14Practice1 mark

Which features of an image are most useful for a machine to recognise objects?

Answer

(c) Corners and edges Corners and edges are distinctive, so they help to recognise objects.

A5.15Practice1 mark

In an RGB image, the pixel (255, 255, 255) is

Answer

(b) white All three colours at full brightness give white.

A5.16Practice1 mark

A self-driving car finding pedestrians and traffic lights on the road uses

Answer

(b) Computer Vision Finding objects in camera images is Computer Vision.

A5.17Practice1 mark

Which tool can be used to train an image model without writing code?

Answer

(d) Teachable Machine Teachable Machine (by Google) trains models in the browser without code.

A5.18Practice1 mark

The number of pixels in an image (width x height) is called its

Answer

(b) resolution Resolution is width × height in pixels.

A5.19Practice1 mark

An RGB image has the resolution 4 x 3. How many values (numbers) are stored for the whole image?

Answer

(c) 36 Each of the 12 pixels stores 3 values: red, green and blue.

A5.20Practice1 mark

An RGB image has the resolution 640 x 480. How many values (numbers) are stored for the whole image?

Answer

(c) 921,600 Each of the 307,200 pixels stores 3 values: red, green and blue.

A5.21Practice1 mark

How many shades can one pixel of an 8-bit grayscale image show?

Answer

(a) 256 8 bits give 2⁸ = 256 shades (0 to 255).

A5.22Practice1 mark

How many channels does an RGB image have?

Answer

(c) 3 Three channels: Red, Green and Blue.

A5.23Practice1 mark

How many pixels are there in an image of resolution 28 x 28?

Answer

(b) 784 Pixels = width x height.

A5.24Practice1 mark

The smallest unit of a digital image is a

Answer

(c) pixel A pixel (picture element) is the smallest unit.

A5.25Practice1 mark

How many pixels are there in an image of resolution 8 x 8?

Answer

(b) 64 Pixels = width x height.

A5.26Practice1 mark

Which task works on an image that has many objects?

Answer

(a) Object detection Object detection finds many objects in one image.

A5.27Practice1 mark

A camera that reads number plates at a toll plaza uses

Answer

(c) Computer Vision Reading plates from images is Computer Vision.

A5.28Practice1 mark

The range of pixel values in an 8-bit image is

Answer

(a) 0 to 255 8 bits store 0 to 255.

A5.29Practice1 mark

An 8-bit grayscale image has the resolution 64 x 64. How many bytes are needed to store its pixel values?

Answer

(a) 4,096 One byte for each pixel: 64 x 64.

A5.30Practice1 mark

How many pixels are there in an image of resolution 10 x 5?

Answer

(d) 50 Pixels = width x height.

A5.31Practice1 mark

In an RGB image, the pixel (255, 0, 0) is

Answer

(b) red Full red, no green, no blue: red.

A5.32Practice1 mark

A megapixel is equal to about

Answer

(a) one million pixels Mega = million, so 1 megapixel ≈ one million pixels.

A5.33Practice1 mark

Telling only whether a photo shows a 'cat' or a 'dog' is

Answer

(d) image classification Giving one label to the whole image is image classification.

A5.34Practice1 mark

An 8-bit grayscale image has the resolution 28 x 28. How many bytes are needed to store its pixel values?

Answer

(c) 784 One byte for each pixel: 28 x 28.

A5.35Practice1 mark

How many pixels are there in an image of resolution 10 x 5?

Answer

(c) 50 Pixels = width x height.

A5.36Practice1 mark

In a CNN, which layer makes the feature map smaller while keeping the important features?

Answer

(b) Pooling layer Pooling (e.g. max pooling) shrinks the feature map and keeps the strongest values.

A5.37Practice1 mark

The last layer of a CNN that gives the final class is the

Answer

(a) fully connected layer The fully connected layer combines the features and gives the class.

A5.38Practice1 mark

The word 'pixel' comes from

Answer

(b) picture element pixel = picture element.

A5.39Practice1 mark

An 8-bit grayscale image has the resolution 4 x 3. How many bytes are needed to store its pixel values?

Answer

(d) 12 One byte for each pixel: 4 x 3.

A5.40Practice1 mark

In a grayscale image, a pixel value of 255 means

Answer

(b) white 255 is the brightest value: white.

A5.41Practice1 mark

RGB stands for

Answer

(a) Red, Green, Blue R = Red, G = Green, B = Blue.

A5.42Practice1 mark

An RGB image has the resolution 28 x 28. How many values (numbers) are stored for the whole image?

Answer

(b) 2,352 Each of the 784 pixels stores 3 values: red, green and blue.

A6NLP MCQ, with token and Bag of Words numericals1 mark · 60 questions
A6.1SQP 2026-271 mark

The base form (lemma) of the word 'better' is

Answer

(b) good Lemmatisation gives a meaningful dictionary word.

A6.2SQP 2026-271 mark

What is the main goal of keyword extraction?

Answer

(c) To find the most important words or phrases of a text Keyword extraction picks out the most important words or phrases.

A6.3SQP 2026-271 mark

An NLP application that sorts news articles into sports, politics and business is

Answer

(a) text classification Putting texts into categories is text classification.

A6.4Practice1 mark

A corpus has three documents. D1: Trees give us oxygen. / D2: We must plant trees. / D3: Plant trees and save the earth. The word 'trees' occurs once in Document 1. What is its TF-IDF value in Document 1? (log 3 = 0.477, log 1.5 = 0.176, log 1 = 0)

Answer

(b) 0 TF = 1, IDF = 3/3, so TF-IDF = 1 x log(3/3) = 0.

A6.5Practice1 mark

Cutting the affixes of a word to get its root, even if the root is not a meaningful word, is

Answer

(b) stemming Stemming just cuts endings, e.g. 'studies' → 'studi'.

A6.6Practice1 mark

The Bag of Words model gives us

Answer

(a) the vocabulary of the corpus and the frequency of each word BoW gives the vocabulary and how many times each word occurs.

A6.7Practice1 mark

The stop words a, an, the, is, are, to, and, of, in, on, at, it, my, we, he, she, with are removed from the sentence "Delhi is the capital of India." (punctuation is also removed). How many words are left?

Answer

(c) 3 Words left: delhi, capital, india.

A6.8Practice1 mark

In TF-IDF, IDF stands for

Answer

(a) Inverse Document Frequency IDF = Inverse Document Frequency.

A6.9Practice1 mark

A corpus has three documents. D1: Yoga keeps the body fit. / D2: A fit body has a fit mind. / D3: Yoga keeps the mind calm. What is the document frequency of the word 'calm'?

Answer

(b) 1 Document frequency = number of documents that contain the word.

A6.10Practice1 mark

A chatbot that learns from data and improves with use is a

Answer

(c) smart bot A smart bot uses AI to learn and improve.

A6.11Practice1 mark

A corpus has three documents. D1: The bus was late today. / D2: I missed the bus. / D3: I was late for school today. The word 'the' occurs once in Document 1. What is its TF-IDF value in Document 1? (log 3 = 0.477, log 1.5 = 0.176, log 1 = 0)

Answer

(c) 0.176 TF = 1, IDF = 3/2, so TF-IDF = 1 x log(3/2) = 0.176.

A6.12Practice1 mark

Converting all the text to lower case in normalisation is done so that

Answer

(d) 'Hello' and 'hello' are treated as the same word Lower case makes 'Hello' and 'hello' the same token.

A6.13Practice1 mark

Dividing a sentence into words, numbers and special characters is called

Answer

(b) tokenisation Tokenisation splits a sentence into tokens.

A6.14Practice1 mark

How many tokens are there in the sentence: "Wow! We won the match."

Answer

(c) 7 Every word, number and punctuation mark is one token: Wow | ! | We | won | the | match | ..

A6.15Practice1 mark

What is the lemma of the word 'feet'?

Answer

(c) foot Lemmatisation gives the meaningful base word.

A6.16Practice1 mark

Which of these is a smart bot?

Answer

(b) A voice assistant such as Alexa or Google Assistant Alexa and Google Assistant understand varied questions and learn: smart bots.

A6.17Practice1 mark

The number of documents in which a word occurs is its

Answer

(d) document frequency Document frequency counts the documents that contain the word.

A6.18Practice1 mark

Which is NOT an application of NLP?

Answer

(d) Face recognition Face recognition works on images, so it is Computer Vision.

A6.19Practice1 mark

The stop words a, an, the, is, are, to, and, of, in, on, at, it, my, we, he, she, with are removed from the sentence "Practice makes a man perfect!" (punctuation is also removed). How many words are left?

Answer

(d) 4 Words left: practice, makes, man, perfect.

A6.20Practice1 mark

Finding the meaning of words and sentences is

Answer

(a) semantic analysis Semantic analysis is about meaning.

A6.21Practice1 mark

The stop words a, an, the, is, are, to, and, of, in, on, at, it, my, we, he, she, with are removed from the sentence "I love my school!" (punctuation is also removed). How many words are left?

Answer

(a) 2 Words left: love, school.

A6.22Practice1 mark

A corpus has three documents. D1: We love our school. / D2: Our school has a big library. / D3: We read books in the library. After changing to lower case and removing punctuation (no word is dropped), how many words are there in the vocabulary?

Answer

(a) 12 Each different word is counted once: we, love, our, school, has, a, big, library, read, books, in, the.

A6.23Practice1 mark

The stop words a, an, the, is, are, to, and, of, in, on, at, it, my, we, he, she, with are removed from the sentence "My name is Asha." (punctuation is also removed). How many words are left?

Answer

(c) 2 Words left: name, asha.

A6.24Practice1 mark

How many tokens are there in the sentence: "The cat sat on the mat."

Answer

(b) 7 Every word, number and punctuation mark is one token: The | cat | sat | on | the | mat | ..

A6.25Practice1 mark

Finding whether a product review is positive, negative or neutral is

Answer

(b) sentiment analysis Sentiment analysis finds the feeling (opinion) in a text.

A6.26Practice1 mark

A corpus has three documents. D1: Divya went to the market. / D2: The market was closed. / D3: Divya came back home. After changing to lower case and removing punctuation (no word is dropped), how many words are there in the vocabulary?

Answer

(d) 10 Each different word is counted once: divya, went, to, the, market, was, closed, came, back, home.

A6.27Practice1 mark

What is the lemma of the word 'caring'?

Answer

(c) care Lemmatisation gives the meaningful base word.

A6.28Practice1 mark

The stop words a, an, the, is, are, to, and, of, in, on, at, it, my, we, he, she, with are removed from the sentence "The sun rises in the east." (punctuation is also removed). How many words are left?

Answer

(a) 3 Words left: sun, rises, east.

A6.29Practice1 mark

How many tokens are there in the sentence: "Is it raining today?"

Answer

(c) 5 Every word, number and punctuation mark is one token: Is | it | raining | today | ?.

A6.30Practice1 mark

Words such as 'a', 'an', 'the', 'is', 'to', which occur very often but add little meaning, are

Answer

(a) stop words Stop words are very common words that carry little meaning.

A6.31Practice1 mark

The stop words a, an, the, is, are, to, and, of, in, on, at, it, my, we, he, she, with are removed from the sentence "Hello, how are you?" (punctuation is also removed). How many words are left?

Answer

(a) 3 Words left: hello, how, you.

A6.32Practice1 mark

"Chickens feed extravagantly while the moon drinks tea." This sentence has

Answer

(c) correct syntax but no sensible meaning The grammar is correct but the meaning makes no sense: correct syntax, wrong semantics.

A6.33Practice1 mark

The stop words a, an, the, is, are, to, and, of, in, on, at, it, my, we, he, she, with are removed from the sentence "She bought 3 pens and 2 books." (punctuation is also removed). How many words are left?

Answer

(a) 5 Words left: bought, 3, pens, 2, books.

A6.34Practice1 mark

What is the lemma of the word 'children'?

Answer

(a) child Lemmatisation gives the meaningful base word.

A6.35Practice1 mark

The stop words a, an, the, is, are, to, and, of, in, on, at, it, my, we, he, she, with are removed from the sentence "Save water, save life." (punctuation is also removed). How many words are left?

Answer

(a) 4 Words left: save, water, save, life.

A6.36Practice1 mark

How many tokens are there in the sentence: "We are learning Python at school."

Answer

(b) 7 Every word, number and punctuation mark is one token: We | are | learning | Python | at | school | ..

A6.37Practice1 mark

The AI domain that helps machines to understand human language is

Answer

(c) Natural Language Processing NLP (Natural Language Processing) deals with human language.

A6.38Practice1 mark

A corpus has three documents. D1: Robots can help doctors. / D2: Doctors help sick people. / D3: Robots can not feel. What is the document frequency of the word 'feel'?

Answer

(b) 1 Document frequency = number of documents that contain the word.

A6.39Practice1 mark

How many tokens are there in the sentence: "AI is changing the world, right?"

Answer

(d) 8 Every word, number and punctuation mark is one token: AI | is | changing | the | world | , | right | ?.

A6.40Practice1 mark

A corpus has three documents. D1: The sun is hot. / D2: The moon is cool. / D3: The sun and the moon are in the sky. What is the document frequency of the word 'moon'?

Answer

(a) 2 Document frequency = number of documents that contain the word.

A6.41Practice1 mark

The stem of 'studies' is 'studi' and the lemma is 'study'. This shows that

Answer

(a) lemmatisation gives a meaningful word but stemming may not Lemmatisation gives a real word (study); stemming may not (studi).

A6.42Practice1 mark

What is the lemma of the word 'went'?

Answer

(b) go Lemmatisation gives the meaningful base word.

A6.43Practice1 mark

How many tokens are there in the sentence: "Reading makes a full man."

Answer

(b) 6 Every word, number and punctuation mark is one token: Reading | makes | a | full | man | ..

A6.44Practice1 mark

A corpus has three documents. D1: Data is the new oil. / D2: AI needs data. / D3: AI is the future. The word 'data' occurs once in Document 1. What is its TF-IDF value in Document 1? (log 3 = 0.477, log 1.5 = 0.176, log 1 = 0)

Answer

(b) 0.176 TF = 1, IDF = 3/2, so TF-IDF = 1 x log(3/2) = 0.176.

A6.45Practice1 mark

A corpus has three documents. D1: I like mango juice. / D2: Mango is the king of fruits. / D3: I like fruits. What is the document frequency of the word 'of'?

Answer

(d) 1 Document frequency = number of documents that contain the word.

A6.46Practice1 mark

In TF-IDF, TF stands for

Answer

(b) Term Frequency TF = Term Frequency, how often a word occurs in a document.

A6.47Practice1 mark

Dividing the corpus into sentences is called

Answer

(b) sentence segmentation Sentence segmentation splits text into sentences.

A6.48Practice1 mark

The whole collection of text documents used in an NLP project is called the

Answer

(b) corpus The corpus is the whole collection of text.

A6.49Practice1 mark

What is the lemma of the word 'studies'?

Answer

(a) study Lemmatisation gives the meaningful base word.

A6.50Practice1 mark

A corpus has three documents. D1: Solar panels save power. / D2: We save power at home. / D3: Solar power is clean. The word 'power' occurs once in Document 1. What is its TF-IDF value in Document 1? (log 3 = 0.477, log 1.5 = 0.176, log 1 = 0)

Answer

(a) 0 TF = 1, IDF = 3/3, so TF-IDF = 1 x log(3/3) = 0.

A6.51Practice1 mark

Checking the grammar and arrangement of words in a sentence is

Answer

(d) syntactic analysis (syntax) Syntactic analysis checks grammar and word order.

A6.52Practice1 mark

Which step comes first in text normalisation?

Answer

(c) Sentence segmentation Sentence segmentation, then tokenisation, stop-word removal, lower case, stemming/lemmatisation.

A6.53Practice1 mark

How many tokens are there in the sentence: "Raj and Vicky are best friends."

Answer

(c) 7 Every word, number and punctuation mark is one token: Raj | and | Vicky | are | best | friends | ..

A6.54Practice1 mark

A word that occurs in every document of the corpus has a TF-IDF value that is

Answer

(b) zero or very low log(N/N) = log 1 = 0.

A6.55Practice1 mark

A corpus has three documents. D1: India won the final match. / D2: The final match was in Mumbai. / D3: India plays well. After changing to lower case and removing punctuation (no word is dropped), how many words are there in the vocabulary?

Answer

(c) 10 Each different word is counted once: india, won, the, final, match, was, in, mumbai, plays, well.

A6.56Practice1 mark

How many tokens are there in the sentence: "He is playing in the park with a ball."

Answer

(b) 10 Every word, number and punctuation mark is one token: He | is | playing | in | the | park | with | a | ball | ..

A6.57Practice1 mark

A chatbot that works on a fixed script and cannot handle unexpected questions is a

Answer

(c) script bot A script bot follows fixed rules only.

A6.58Practice1 mark

In which word does the meaning change with the sentence: 'bank of the river' and 'money in the bank'?

Answer

(b) bank The same word can have different meanings; this makes human language hard for machines.

A6.59Practice1 mark

What is the lemma of the word 'running'?

Answer

(d) run Lemmatisation gives the meaningful base word.

A6.60Practice1 mark

A corpus has three documents. D1: Ravi plays football daily. / D2: Football is a team game. / D3: Ravi loves his team. After changing to lower case and removing punctuation (no word is dropped), how many words are there in the vocabulary?

Answer

(c) 10 Each different word is counted once: ravi, plays, football, daily, is, a, team, game, loves, his.

A7True or False: two statements1 mark · 33 questions
A7.1Practice1 mark

Statement 1: Sector-based frameworks are made for one field, such as health care.

Statement 2: Value-based frameworks look at the values behind a decision, such as rights, utility and virtue.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

A7.2Practice1 mark

Statement 1: Bioethics is a value-based framework.

Statement 2: Rights-based, utility-based and virtue-based are value-based frameworks.

Answer

(d) Statement 1 is false and Statement 2 is true. Statement 1 is false; Statement 2 is true.

A7.3Practice1 mark

Statement 1: Problem Scoping is the last stage of the AI Project Cycle.

Statement 2: Deployment comes before Data Acquisition.

Answer

(b) Both the statements are false. Statement 1 is false; Statement 2 is false.

A7.4Practice1 mark

Statement 1: The 4Ws canvas is used in Problem Scoping.

Statement 2: The 4Ws are Who, What, Where and Why.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

A7.5Practice1 mark

Statement 1: Data Exploration helps us to see trends and patterns in the data.

Statement 2: Graphs and charts are not used in Data Exploration.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

A7.6Practice1 mark

Statement 1: Computer Vision works with images and videos.

Statement 2: Natural Language Processing works only with numbers in tables.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

A7.7Practice1 mark

Statement 1: 'Do not harm' is a principle of bioethics.

Statement 2: 'Give justice' is a principle of bioethics.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

A7.8Practice1 mark

Statement 1: An ethical framework helps to avoid unintended harm from an AI system.

Statement 2: Ethics is needed only after the AI system has caused harm.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

A7.9Practice1 mark

Statement 1: A utility-based framework looks for the greatest good for the greatest number.

Statement 2: A rights-based framework ignores human dignity.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

A7.10Practice1 mark

Statement 1: Evaluation is done before Modelling.

Statement 2: Data Acquisition is done after Problem Scoping.

Answer

(d) Statement 1 is false and Statement 2 is true. Statement 1 is false; Statement 2 is true.

A7.11Practice1 mark

Statement 1: Machine Learning is a subset of Artificial Intelligence.

Statement 2: Deep Learning is a subset of Machine Learning.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

A7.12Practice1 mark

Statement 1: Supervised learning uses labelled data.

Statement 2: Clustering is a type of supervised learning.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

A7.13Practice1 mark

Statement 1: Regression predicts a continuous number.

Statement 2: Classification predicts a category.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

A7.14Practice1 mark

Statement 1: In a rule-based model, the machine finds the rules itself.

Statement 2: In a learning-based model, the developer writes all the rules.

Answer

(b) Both the statements are false. Statement 1 is false; Statement 2 is false.

A7.15Practice1 mark

Statement 1: The hidden layers of a neural network do most of the processing.

Statement 2: The output layer receives the raw input data.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

A7.16Practice1 mark

Statement 1: Reinforcement learning uses rewards and penalties.

Statement 2: Association finds items that often occur together.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

A7.17Practice1 mark

Statement 1: Precision = TP / (TP + FP).

Statement 2: Recall = TP / (TP + FP).

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

A7.18Practice1 mark

Statement 1: A model should be tested on data it has not seen in training.

Statement 2: The testing data is usually larger than the training data.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

A7.19Practice1 mark

Statement 1: The F1 score is high only when both precision and recall are high.

Statement 2: The F1 score can be more than 1.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

A7.20Practice1 mark

Statement 1: A False Positive means the model predicted 'Yes' but the reality is 'No'.

Statement 2: A False Negative means the model predicted 'No' but the reality is 'Yes'.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

A7.21Practice1 mark

Statement 1: Accuracy is always the best metric, even when one class is very rare.

Statement 2: TP and TN are the wrong predictions of a model.

Answer

(b) Both the statements are false. Statement 1 is false; Statement 2 is false.

A7.22Practice1 mark

Statement 1: When False Negatives are costly, recall is the important metric.

Statement 2: When False Positives are costly, precision is the important metric.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

A7.23Practice1 mark

Statement 1: A grayscale pixel has a value from 0 to 255.

Statement 2: An RGB image has three channels.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

A7.24Practice1 mark

Statement 1: Image classification tells where each object is with a box.

Statement 2: Object detection can find many objects in one image.

Answer

(d) Statement 1 is false and Statement 2 is true. Statement 1 is false; Statement 2 is true.

A7.25Practice1 mark

Statement 1: Resolution is the number of pixels in an image.

Statement 2: In a grayscale image, 0 stands for white.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

A7.26Practice1 mark

Statement 1: Instance segmentation marks the pixels of each separate object.

Statement 2: Computer Vision is used in face recognition.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

A7.27Practice1 mark

Statement 1: A pixel is the largest unit of a digital image.

Statement 2: A 1 megapixel image has about one thousand pixels.

Answer

(b) Both the statements are false. Statement 1 is false; Statement 2 is false.

A7.28Practice1 mark

Statement 1: Stemming always gives a meaningful word.

Statement 2: Lemmatisation gives a meaningful word.

Answer

(d) Statement 1 is false and Statement 2 is true. Statement 1 is false; Statement 2 is true.

A7.29Practice1 mark

Statement 1: Tokenisation divides a sentence into tokens.

Statement 2: A punctuation mark is also counted as a token.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

A7.30Practice1 mark

Statement 1: Stop words such as 'the' and 'is' occur very often in a corpus.

Statement 2: Stop words have the highest TF-IDF values.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

A7.31Practice1 mark

Statement 1: A script bot learns from data on its own.

Statement 2: A smart bot works only on a fixed script.

Answer

(b) Both the statements are false. Statement 1 is false; Statement 2 is false.

A7.32Practice1 mark

Statement 1: Bag of Words gives the frequency of each word of the vocabulary.

Statement 2: Bag of Words keeps the order of the words of a sentence.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

A7.33Practice1 mark

Statement 1: Sentiment analysis is an application of NLP.

Statement 2: Language translation is an application of Computer Vision.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

A8Assertion and Reason1 mark · 32 questions
A8.1Practice1 mark

Assertion (A): The 4Ws problem canvas is filled in the Problem Scoping stage.

Reason (R): The 4Ws help us to understand who has the problem, what it is, where it occurs and why it should be solved.

Answer

(a) Both A and R are true and R is the correct explanation of A. The 4Ws help to understand the problem (R), which is the job of Problem Scoping (A).

A8.2Practice1 mark

Assertion (A): Bioethics is a sector-based ethical framework.

Reason (R): Bioethics deals with ethical questions of health care and life sciences.

Answer

(a) Both A and R are true and R is the correct explanation of A. Bioethics deals with one sector, health care and life sciences (R), so it is sector-based (A).

A8.3Practice1 mark

Assertion (A): Data Exploration is done before Modelling.

Reason (R): Understanding patterns in the data helps in choosing a suitable model.

Answer

(a) Both A and R are true and R is the correct explanation of A. Patterns found in exploration help to choose the model (R), so it comes first (A).

A8.4Practice1 mark

Assertion (A): An AI system should be checked for bias before deployment.

Reason (R): A biased system can treat some groups of people unfairly.

Answer

(a) Both A and R are true and R is the correct explanation of A. A biased system treats some groups unfairly (R), so it must be checked first (A).

A8.5Practice1 mark

Assertion (A): Evaluation is the first stage of the AI Project Cycle.

Reason (R): A model has to be tested before it is deployed.

Answer

(d) A is false but R is true. Problem Scoping is the first stage.

A8.6Practice1 mark

Assertion (A): Deployment is done after Evaluation.

Reason (R): Data is collected in the Data Acquisition stage.

Answer

(b) Both A and R are true but R is not the correct explanation of A. Both are true, but R talks about data acquisition, which does not explain why deployment follows evaluation.

A8.7Practice1 mark

Assertion (A): A utility-based framework always protects the rights of every single person.

Reason (R): A utility-based framework looks for the greatest good of the greatest number.

Answer

(d) A is false but R is true. The good of the majority may still hurt a few people.

A8.8Practice1 mark

Assertion (A): Ethical frameworks are useful for AI developers.

Reason (R): They give a structured way to take morally right decisions.

Answer

(a) Both A and R are true and R is the correct explanation of A. They give a structured way to take right decisions (R), which makes them useful (A).

A8.9Practice1 mark

Assertion (A): Computer Vision is one of the domains of AI.

Reason (R): Computer Vision works on text documents only.

Answer

(c) A is true but R is false. A is true, but R is false: computer vision works on images and videos, not text.

A8.10Practice1 mark

Assertion (A): Data should be collected from reliable sources.

Reason (R): Wrong or biased data leads to a wrong or biased model.

Answer

(a) Both A and R are true and R is the correct explanation of A. Wrong or biased data gives a wrong or biased model (R), so sources must be reliable (A).

A8.11Practice1 mark

Assertion (A): Supervised learning needs labelled data.

Reason (R): Clustering is a type of supervised learning.

Answer

(c) A is true but R is false. Clustering is unsupervised learning.

A8.12Practice1 mark

Assertion (A): Predicting tomorrow's temperature is a regression problem.

Reason (R): Regression predicts a continuous numeric value.

Answer

(a) Both A and R are true and R is the correct explanation of A. Temperature is a continuous number and regression predicts numbers (R).

A8.13Practice1 mark

Assertion (A): Grouping news articles without any labels is clustering.

Reason (R): Unsupervised learning works on unlabelled data.

Answer

(a) Both A and R are true and R is the correct explanation of A. Unsupervised learning works without labels (R), and grouping is clustering (A).

A8.14Practice1 mark

Assertion (A): A neural network can learn from data.

Reason (R): During training, the weights and bias of its neurons are adjusted.

Answer

(a) Both A and R are true and R is the correct explanation of A. Training adjusts the weights and bias (R), which is how it learns (A).

A8.15Practice1 mark

Assertion (A): A rule-based model learns the rules from the data by itself.

Reason (R): In a learning-based model the machine finds the patterns from data.

Answer

(d) A is false but R is true. A is false: in a rule-based model people write the rules. R (about learning-based models) is true.

A8.16Practice1 mark

Assertion (A): Deep Learning is a subset of Machine Learning.

Reason (R): Deep Learning uses neural networks with many layers.

Answer

(b) Both A and R are true but R is not the correct explanation of A. Both are true, but R tells how deep learning works (many layers), not why it is a part of ML.

A8.17Practice1 mark

Assertion (A): A model must be tested on unseen data.

Reason (R): Testing on training data only shows what the model has memorised.

Answer

(a) Both A and R are true and R is the correct explanation of A. Testing on training data only shows memory (R), so unseen data is needed (A).

A8.18Practice1 mark

Assertion (A): Recall is the most important metric for a model that detects a serious disease.

Reason (R): A False Negative means a sick person is told that he or she is healthy.

Answer

(a) Both A and R are true and R is the correct explanation of A. A false negative sends a sick person home (R); recall counts how few such misses happen (A).

A8.19Practice1 mark

Assertion (A): Accuracy alone can be misleading.

Reason (R): When one class is very rare, a model can get high accuracy by always predicting the common class.

Answer

(a) Both A and R are true and R is the correct explanation of A. With a rare class, always predicting the common class gives high accuracy (R), so accuracy alone misleads (A).

A8.20Practice1 mark

Assertion (A): The F1 score of a model can be 1.5.

Reason (R): The F1 score combines precision and recall.

Answer

(d) A is false but R is true. F1 lies between 0 and 1.

A8.21Practice1 mark

Assertion (A): Precision is important for a spam filter.

Reason (R): Precision = TP / (TP + FN).

Answer

(c) A is true but R is false. Precision = TP / (TP + FP).

A8.22Practice1 mark

Assertion (A): A confusion matrix for two classes has four cells.

Reason (R): The four cells are TP, TN, FP and FN.

Answer

(a) Both A and R are true and R is the correct explanation of A. The four cells are TP, TN, FP and FN (R).

A8.23Practice1 mark

Assertion (A): Computer Vision systems can identify objects in images.

Reason (R): A machine sees an image as a grid of numbers called pixel values.

Answer

(b) Both A and R are true but R is not the correct explanation of A. Both are true, but R only says how images are stored; it does not explain how objects are identified.

A8.24Practice1 mark

Assertion (A): An RGB image needs more storage than a grayscale image of the same resolution.

Reason (R): Each pixel of an RGB image stores three values in place of one.

Answer

(a) Both A and R are true and R is the correct explanation of A. Each RGB pixel stores three values instead of one (R), so it needs about three times the space (A).

A8.25Practice1 mark

Assertion (A): Object detection is used in self-driving cars.

Reason (R): Object detection finds the objects in a scene and their locations.

Answer

(a) Both A and R are true and R is the correct explanation of A. It finds objects and their positions (R), which the car needs to drive safely (A).

A8.26Practice1 mark

Assertion (A): In a grayscale image, the pixel value 255 shows black.

Reason (R): Pixel values of an 8-bit image lie between 0 and 255.

Answer

(d) A is false but R is true. 255 is white and 0 is black.

A8.27Practice1 mark

Assertion (A): Stop words are usually removed during text normalisation.

Reason (R): Stop words occur very often but add little meaning to the corpus.

Answer

(a) Both A and R are true and R is the correct explanation of A. They occur often but add little meaning (R), so they are removed (A).

A8.28Practice1 mark

Assertion (A): Lemmatisation takes more time than stemming.

Reason (R): Lemmatisation makes sure that the root word is a meaningful word.

Answer

(a) Both A and R are true and R is the correct explanation of A. Lemmatisation must make sure the root is a real word (R), which needs more work (A).

A8.29Practice1 mark

Assertion (A): A word that occurs in every document has a high TF-IDF value.

Reason (R): IDF becomes smaller as the document frequency becomes larger.

Answer

(d) A is false but R is true. A is false: IDF = log(N/DF) is 0 when the word is in every document (R is true), so TF-IDF is low.

A8.30Practice1 mark

Assertion (A): A script bot cannot answer a question outside its script.

Reason (R): A script bot works on pre-written rules.

Answer

(a) Both A and R are true and R is the correct explanation of A. It works only on pre-written rules (R), so unexpected questions fail (A).

A8.31Practice1 mark

Assertion (A): Human language is difficult for a machine to understand.

Reason (R): The same word can have different meanings in different sentences.

Answer

(a) Both A and R are true and R is the correct explanation of A. One word can mean different things in different sentences (R), which makes language hard (A).

A8.32Practice1 mark

Assertion (A): Tokenisation is done before sentence segmentation.

Reason (R): A token can be a word, a number or a special character.

Answer

(d) A is false but R is true. Sentence segmentation comes first.

AEEmployability skills: Assertion and Reason (5 per unit)1 mark · 25 questions
AE.1Practice1 mark

Assertion (A): Feedback completes the communication cycle.

Reason (R): Without feedback the sender cannot know whether the message was understood.

Answer

(a) Both A and R are true and R is the correct explanation of A. Both statements are true, and R gives the reason why A is true.

AE.2Practice1 mark

Assertion (A): Specific feedback is more useful than non-specific feedback.

Reason (R): Specific feedback tells exactly what is good and what to improve.

Answer

(a) Both A and R are true and R is the correct explanation of A. Both statements are true, and R gives the reason why A is true.

AE.3Practice1 mark

Assertion (A): Written communication gives immediate feedback.

Reason (R): Written communication provides a permanent record.

Answer

(d) A is false but R is true. Oral communication gives immediate feedback; written feedback is slow. R is true.

AE.4Practice1 mark

Assertion (A): Crossed arms and looking away show positive body language.

Reason (R): Positive body language includes smiling, nodding and eye contact.

Answer

(d) A is false but R is true. Crossed arms and looking away are negative body language, so A is false.

AE.5Practice1 mark

Assertion (A): "The letter was signed by the manager" is in the passive voice.

Reason (R): In the passive voice the receiver of the action comes first.

Answer

(a) Both A and R are true and R is the correct explanation of A. Both statements are true, and R gives the reason why A is true.

AE.6Practice1 mark

Assertion (A): A small amount of stress can improve performance.

Reason (R): Eustress motivates and improves focus.

Answer

(a) Both A and R are true and R is the correct explanation of A. Both statements are true, and R gives the reason why A is true.

AE.7Practice1 mark

Assertion (A): SMART goals have a deadline.

Reason (R): The T in SMART stands for Time-bound.

Answer

(a) Both A and R are true and R is the correct explanation of A. Both statements are true, and R gives the reason why A is true.

AE.8Practice1 mark

Assertion (A): Procrastination helps in time management.

Reason (R): Procrastination means delaying work.

Answer

(d) A is false but R is true. Procrastination wastes time, so A is false; R is true.

AE.9Practice1 mark

Assertion (A): Talking to family and friends can reduce stress.

Reason (R): Sharing problems reduces worry and gives support.

Answer

(a) Both A and R are true and R is the correct explanation of A. Both statements are true, and R gives the reason why A is true.

AE.10Practice1 mark

Assertion (A): Studying only to get a new phone is internal motivation.

Reason (R): Internal motivation comes from interest and enjoyment of the task.

Answer

(d) A is false but R is true. Studying for a phone is external motivation, so A is false; R is true.

AE.11Practice1 mark

Assertion (A): The operating system acts as an interface between the user and the hardware.

Reason (R): Application software such as a word processor runs on top of the operating system.

Answer

(b) Both A and R are true but R is not the correct explanation of A. Both are true, but R does not explain why the OS is an interface.

AE.12Practice1 mark

Assertion (A): A worm needs a user to run an infected file to spread.

Reason (R): A worm copies itself and spreads automatically through networks.

Answer

(d) A is false but R is true. A worm spreads by itself; A is false.

AE.13Practice1 mark

Assertion (A): A Trojan horse looks like a useful program.

Reason (R): A Trojan horse copies itself to other computers.

Answer

(c) A is true but R is false. A Trojan does not replicate itself, so R is false.

AE.14Practice1 mark

Assertion (A): Shift + Delete removes a file permanently.

Reason (R): Files deleted with Shift + Delete do not go to the Recycle Bin.

Answer

(a) Both A and R are true and R is the correct explanation of A. Both statements are true, and R gives the reason why A is true.

AE.15Practice1 mark

Assertion (A): Regular backups protect data.

Reason (R): If the computer is damaged or infected, the backup copy can be restored.

Answer

(a) Both A and R are true and R is the correct explanation of A. Both statements are true, and R gives the reason why A is true.

AE.16Practice1 mark

Assertion (A): Entrepreneurs take risks.

Reason (R): They invest money and effort without being sure of profit.

Answer

(a) Both A and R are true and R is the correct explanation of A. Both statements are true, and R gives the reason why A is true.

AE.17Practice1 mark

Assertion (A): Innovation is a function of an entrepreneur.

Reason (R): Entrepreneurs create new products and better methods.

Answer

(a) Both A and R are true and R is the correct explanation of A. Both statements are true, and R gives the reason why A is true.

AE.18Practice1 mark

Assertion (A): A wage-employed person bears the risk of the business.

Reason (R): Wage employees get a fixed salary.

Answer

(d) A is false but R is true. The business risk is borne by the owner, so A is false; R is true.

AE.19Practice1 mark

Assertion (A): Failure means the end of an entrepreneur's career.

Reason (R): Many entrepreneurs learn from failure and succeed later.

Answer

(d) A is false but R is true. A is a myth; R is true.

AE.20Practice1 mark

Assertion (A): A business plan is useful for an entrepreneur.

Reason (R): It shows the product, customers, costs, price and expected profit.

Answer

(a) Both A and R are true and R is the correct explanation of A. Both statements are true, and R gives the reason why A is true.

AE.21Practice1 mark

Assertion (A): The SDGs were adopted by the United Nations in 2015.

Reason (R): They are to be achieved by 2030.

Answer

(b) Both A and R are true but R is not the correct explanation of A. Both are true, but R does not explain A.

AE.22Practice1 mark

Assertion (A): Rainwater harvesting supports sustainable development.

Reason (R): It conserves water for future use.

Answer

(a) Both A and R are true and R is the correct explanation of A. Both statements are true, and R gives the reason why A is true.

AE.23Practice1 mark

Assertion (A): Organic farming harms soil health.

Reason (R): Organic farming avoids chemical fertilisers and pesticides.

Answer

(d) A is false but R is true. Organic farming improves soil health, so A is false.

AE.24Practice1 mark

Assertion (A): Sustainable development has three dimensions.

Reason (R): They are economic, social and environmental.

Answer

(a) Both A and R are true and R is the correct explanation of A. Both statements are true, and R gives the reason why A is true.

AE.25Practice1 mark

Assertion (A): Using public transport reduces air pollution.

Reason (R): Public transport carries more people with fewer vehicles.

Answer

(a) Both A and R are true and R is the correct explanation of A. Both statements are true, and R gives the reason why A is true.

Short answers · 2 marks each

B1Employability skills2 marks · 55 questions
B1.1SQP 2026-272 marks

Name the types of verbal communication, with one example of each.

Answer

(1) Oral (spoken) communication: face-to-face talk, phone call, speech. (2) Written communication: letter, e-mail, SMS, notice. Words are used in both.

B1.2Practice2 marks

What is the communication cycle? Name its elements.

Answer

It is the path a message takes from the sender to the receiver and back. Elements: sender, message, encoding, channel, receiver, decoding and feedback.

B1.3Practice2 marks

Write any four of the 7 Cs of effective communication.

Answer

Clear, Concise, Concrete, Correct, Coherent, Complete, Courteous. (Any four; one line on each, for example Concise: use only the words that are needed.)

B1.4Practice2 marks

What is non-verbal communication? Give two examples.

Answer

Sending a message without words, through expressions, gestures, posture, touch or eye contact. Examples: nodding the head for 'yes', a firm handshake, a smile.

B1.5Practice2 marks

What is feedback? Why is it important?

Answer

Feedback is the receiver's response to the sender's message. It shows whether the message was understood, and it helps the sender to improve.

B1.6Practice2 marks

Write two differences between verbal and non-verbal communication.

Answer

(1) Verbal communication uses words, spoken or written; non-verbal uses gestures, expressions and body language. (2) Verbal messages can be recorded exactly; non-verbal signals can be understood differently by different people.

B1.7Practice2 marks

Name any four barriers to effective communication.

Answer

Physical barriers (noise, distance), linguistic barriers (different language), interpersonal barriers (lack of trust or interest), organisational barriers (strict rules, hierarchy) and cultural barriers. (Any four.)

B1.8Practice2 marks

What is visual communication? Give two examples.

Answer

Sending a message through pictures, signs, symbols, charts and maps. Examples: traffic signs, the 'no smoking' symbol, a bar chart of results.

B1.9Practice2 marks

Write two ways to overcome barriers to communication.

Answer

(1) Use simple language and speak clearly; check that the listener has understood (take feedback). (2) Choose a quiet place and the right channel; respect the culture and feelings of the other person.

B1.10Practice2 marks

What are descriptive (specific) feedback and non-specific feedback? Give one example of each.

Answer

Specific feedback tells exactly what is good or what to improve: "Your introduction is clear; add one example." Non-specific feedback is general: "Good job."

B1.11Practice2 marks

Identify the subject, verb and object in the sentence: "The teacher praised the students." Which kind of sentence is it?

Answer

Subject: The teacher. Verb: praised. Object: the students. It is a declarative (statement) sentence.

B1.12SQP 2026-272 marks

What does SMART stand for in goal setting?

Answer

Specific, Measurable, Achievable, Realistic and Time bound. A SMART goal is clear, can be measured, is possible to reach and has a deadline.

B1.13Practice2 marks

What is stress? Write two techniques to manage it.

Answer

Stress is our emotional, mental and physical reaction to a difficult situation. Techniques: time management, physical exercise or yoga, a healthy diet, enough sleep, talking to family and friends, positive thinking. (Any two.)

B1.14Practice2 marks

What is self-motivation? Name its two types.

Answer

Self-motivation is the inner force that makes us do things to achieve our goals without being pushed by others. Types: internal motivation (for our own joy and satisfaction) and external motivation (for a reward or praise).

B1.15Practice2 marks

Write two differences between internal and external motivation.

Answer

(1) Internal motivation comes from within: we do the work because we enjoy it. External motivation comes from outside: a prize, marks or praise. (2) Internal motivation lasts longer; external motivation ends when the reward stops.

B1.16Practice2 marks

What is self-awareness? Why is it useful?

Answer

Self-awareness is knowing your own strengths, weaknesses, values, likes and dislikes. It helps you to choose the right goals, use your strengths and work on your weak points.

B1.17Practice2 marks

Write the four steps of effective time management.

Answer

(1) Organise: plan the day. (2) Prioritise: do the most important work first. (3) Control: avoid wasting time. (4) Track: check where the time was spent.

B1.18Practice2 marks

Write any two qualities of a person who can work independently.

Answer

Self-awareness, self-motivation, self-regulation, taking responsibility for one's own work and learning continuously. (Any two.)

B1.19Practice2 marks

Rewrite the goal "I want to be fit" as a SMART goal.

Answer

"I will jog for 20 minutes every morning, five days a week, and reduce my weight by 3 kg in the next three months." It is specific, measurable, achievable, realistic and has a time limit.

B1.20Practice2 marks

What is self-regulation? Give one example.

Answer

Self-regulation is controlling our emotions, thoughts and behaviour to reach long-term goals. Example: switching off the phone while studying even though you want to watch videos.

B1.21Practice2 marks

Write two signs of stress and two effects of stress on studies.

Answer

Signs: headache, sleeplessness, sadness, anger. Effects: poor concentration, forgetting what was learnt, low marks. (Any two each.)

B1.22Practice2 marks

Why is goal setting important? Write two points.

Answer

(1) It gives a clear direction and keeps us focused. (2) It helps us to plan time, measure progress and stay motivated.

B1.23SQP 2026-272 marks

How does a Trojan Horse virus work?

Answer

A Trojan Horse looks like a useful program, so the user installs it. Once it runs, it harms the computer: it can steal data and passwords or let other harmful programs in. It does not copy itself like a worm.

B1.24Practice2 marks

What is an operating system? Write two of its functions.

Answer

It is the software that works as an interface between the user and the hardware. Functions: manages memory and files, controls devices such as printer and keyboard, runs application programs. (Any two.) Examples: Windows, Linux, Android.

B1.25Practice2 marks

Write two differences between a file and a folder.

Answer

(1) A file stores information (text, picture, video); a folder stores files and other folders. (2) A file has an extension such as .txt or .jpg; a folder has no extension.

B1.26Practice2 marks

Write any four ways to protect a computer from threats.

Answer

Use strong passwords; install and update antivirus software; turn on the firewall; do not open unknown attachments or links; take regular backups; use only secure (https) sites. (Any four.)

B1.27Practice2 marks

What is a computer virus? Name two types.

Answer

A virus is a program made to harm a computer: it can delete data, slow the machine or steal information. Types: worms, Trojan Horse (also boot sector and file viruses).

B1.28Practice2 marks

Write two differences between a worm and a Trojan Horse.

Answer

(1) A worm copies itself and spreads from one computer to another on its own; a Trojan Horse does not copy itself. (2) A worm needs no host program; a Trojan Horse hides inside a program that looks useful.

B1.29Practice2 marks

Write any four steps of basic computer maintenance.

Answer

Keep the computer clean and dust-free; shut it down properly; take backups; scan for viruses regularly; delete temporary files with a disk cleaner; keep the software updated. (Any four.)

B1.30Practice2 marks

What is a backup? Why is it needed?

Answer

A backup is a copy of important data kept on another device or online. If the computer is damaged, stolen or attacked by a virus, the data can be restored from the backup.

B1.31Practice2 marks

What is identity theft? How can you stay safe from it?

Answer

A person steals your personal details (name, password, card number) and uses them to cheat. Safety: do not share OTP or passwords, use strong passwords, shop only on secure sites.

B1.32Practice2 marks

Name the file extension for each:

  1. Notepad file
  2. Picture
  3. MS Word document
  4. Audio.
Answer

(i) .txt (ii) .jpg or .png (iii) .docx (iv) .mp3

B1.33Practice2 marks

What is a firewall? What does antivirus software do?

Answer

A firewall is hardware or software that checks the data coming into and going out of a network and blocks unsafe traffic. Antivirus software finds and removes viruses from the computer.

B1.34SQP 2026-272 marks

Write any four qualities of a successful entrepreneur.

Answer

Patience, positivity, hard work, never giving up (perseverance), confidence, willingness to try and learn from errors, creativity and innovation. (Any four.)

B1.35Practice2 marks

Who is an entrepreneur? Write two functions of an entrepreneur.

Answer

A person who starts and runs a business to meet a need, taking a risk to earn profit. Functions: takes decisions, manages the business, takes risk, brings new ideas or products, divides the income. (Any two.)

B1.36Practice2 marks

Write two ways in which entrepreneurs help society.

Answer

(1) They create jobs. (2) They give useful goods and services, often at lower prices, and use local materials. They also add to the income of the country.

B1.37Practice2 marks

Write two differences between wage employment and self-employment.

Answer

(1) A wage-employed person works for an employer and gets a fixed salary; a self-employed person works for himself or herself and earns profit. (2) The employer takes the decisions and the risk in wage employment; the self-employed person takes both.

B1.38Practice2 marks

Write any two myths about entrepreneurship and the truth about each.

Answer

Myth: every business idea must be unique. Truth: a common idea done in a better way also works. Myth: a lot of money is needed. Truth: many businesses start small. Myth: entrepreneurs are born. Truth: the skills can be learnt.

B1.39Practice2 marks

What are the stages of an entrepreneur's career? Explain in brief.

Answer

Enter: start the business. Survive: compete with others and stay in the market. Grow: expand the business to new products or places.

B1.40Practice2 marks

What is innovation? Give one example of an innovative business idea.

Answer

Innovation is finding a new or better way of doing something. Example: a service that delivers home-cooked tiffin through a mobile app; edible spoons in place of plastic spoons.

B1.41Practice2 marks

What is meant by risk taking in business? Why is it needed?

Answer

It means investing money, time and effort without being sure of the result. Without taking some risk, a new idea can never be tried and the business cannot grow.

B1.42Practice2 marks

Raju sells vegetables on a cart; Meera has started a company that makes paper bags and employs ten people. Who is an entrepreneur? Give a reason.

Answer

Both are self-employed, but Meera is an entrepreneur in the full sense: she started with a new idea, took a risk, creates jobs and plans to grow.

B1.43Practice2 marks

Why is entrepreneurship a good career option? Write two points.

Answer

(1) You are your own boss and can work on your own idea. (2) There is no limit on earning and growth, and you create jobs for others.

B1.44Practice2 marks

Write two differences between an entrepreneur and an employee.

Answer

(1) An entrepreneur owns the business and takes the risk; an employee works in it for a salary. (2) An entrepreneur earns profit, which is not fixed; an employee earns a fixed salary.

B1.45SQP 2026-272 marks

What is the role of education in sustainable development?

Answer

Education makes people aware of the environment and of their duties. Educated people use resources wisely, adopt clean technology and get better jobs, which reduces poverty. Quality Education is itself SDG 4.

B1.46Practice2 marks

What is sustainable development?

Answer

Development that meets the needs of the present generation without harming the ability of future generations to meet their own needs. It balances economic growth, care for the environment and the welfare of society.

B1.47Practice2 marks

What are the Sustainable Development Goals? When were they adopted?

Answer

They are 17 goals adopted by the United Nations in 2015 to end poverty, protect the planet and bring peace and prosperity for all by 2030.

B1.48Practice2 marks

Name any four Sustainable Development Goals.

Answer

No Poverty (1), Zero Hunger (2), Quality Education (4), Clean Water and Sanitation (6), Affordable and Clean Energy (7), Responsible Consumption and Production (12), Climate Action (13). (Any four.)

B1.49Practice2 marks

Write two things a student can do for sustainable development.

Answer

Save water and electricity; say no to single-use plastic and carry a cloth bag; plant trees; use both sides of paper; walk, cycle or use public transport. (Any two.)

B1.50Practice2 marks

What are the 3 Rs? Give one example of each.

Answer

Reduce: buy and use less, for example switch off fans when not needed. Reuse: use a thing again, for example a glass bottle. Recycle: make a new product from waste, for example paper from old newspapers.

B1.51Practice2 marks

Which SDG is supported by each of these?

  1. Rainwater harvesting in a school
  2. Solar street lights.
Answer

(i) SDG 6: Clean Water and Sanitation. (ii) SDG 7: Affordable and Clean Energy.

B1.52Practice2 marks

Write two problems caused by the over-use of natural resources.

Answer

(1) Resources such as coal, petroleum and ground water may finish. (2) Pollution, cutting of forests and climate change harm the health of people and animals.

B1.53Practice2 marks

What is meant by 'Responsible Consumption and Production'? Give one example.

Answer

It means producing and using goods in a way that wastes less and harms nature less. Example: using edible or steel cutlery in place of plastic, or buying only what is needed.

B1.54Practice2 marks

What are green skills? Why are they important?

Answer

Green skills are the knowledge, abilities and values needed to live and work in a way that protects the environment. They are needed for green jobs such as solar energy, waste management and organic farming.

B1.55Practice2 marks

Write two differences between sustainable and unsustainable development.

Answer

(1) Sustainable development saves resources for the future; unsustainable development uses them up quickly. (2) Sustainable development reduces pollution; unsustainable development increases it.

B2AI units: explain and differentiate2 marks · 69 questions
B2.1SQP 2026-272 marks

What is bioethics? Write any two of its principles.

Answer

Bioethics is a sector-based ethical framework for health care and life sciences. Principles: respect for autonomy, do not harm, ensure maximum benefit for all, give justice. (Any two.)

B2.2Practice2 marks

Name the six stages of the AI Project Cycle in order.

Answer

Problem Scoping, Data Acquisition, Data Exploration, Modelling, Evaluation, Deployment.

B2.3Practice2 marks

What is the 4Ws problem canvas?

Answer

It is a tool of Problem Scoping. Who: the people who face the problem. What: the nature of the problem. Where: the place or situation in which it occurs. Why: why it should be solved and how the people will benefit.

B2.4Practice2 marks

Name the three domains of AI with one example of each.

Answer

Statistical Data: price prediction. Computer Vision: face unlock. Natural Language Processing: voice assistant or language translation.

B2.5Practice2 marks

What is an ethical framework? Why is it needed in AI?

Answer

It is a set of values and principles that guides us to take morally right decisions. In AI it is needed so that the system is fair, does not harm people and can be trusted.

B2.6Practice2 marks

Write two differences between sector-based and value-based ethical frameworks.

Answer

(1) A sector-based framework is made for one field, such as health care (bioethics); a value-based framework can be used in any field. (2) Value-based frameworks look at the values behind a decision and are of three types: rights-based, utility-based and virtue-based.

B2.7Practice2 marks

Explain rights-based and utility-based frameworks in one line each.

Answer

Rights-based: an action is right if it protects the rights and dignity of people. Utility-based: an action is right if it gives the greatest good to the greatest number of people.

B2.8Practice2 marks

What is done in the Data Acquisition stage? Name two sources of data.

Answer

Reliable and relevant data is collected for the project. Sources: surveys, sensors, cameras, web scraping, open government portals. (Any two.)

B2.9Practice2 marks

Write the difference between Evaluation and Deployment.

Answer

Evaluation: the trained model is tested on new data and its performance is measured. Deployment: the tested model is put to use in the real world for the users.

B2.10Practice2 marks

An AI used for selecting candidates rejects most women because it was trained on old data of male employees. Name the problem and suggest one solution.

Answer

The problem is bias in the training data. Solution: train the model on balanced data that represents all groups, and test the results for fairness before use.

B2.11Practice2 marks

What is a virtue-based framework?

Answer

It judges an action by the character and intention of the person who acts. It asks whether the action reflects virtues such as honesty, kindness and fairness.

B2.12Practice2 marks

Why is Data Exploration needed before Modelling?

Answer

The collected data is large and untidy. Arranging it and drawing graphs shows the trends, patterns and relationships, and helps us to choose the right model.

B2.13SQP 2026-272 marks

What is association (association rule learning)? Give an example with products.

Answer

It is an unsupervised learning method that finds items which often occur together. Example: customers who buy bread often buy butter also, so a shop keeps them side by side.

B2.14SQP 2026-272 marks

What is anomaly detection? Give one example.

Answer

It is finding the data points that are very different from the normal pattern. Example: a bank catching an unusually large transaction on a card as a possible fraud.

B2.15Practice2 marks

Write two differences between rule-based and learning-based approaches.

Answer

(1) In the rule-based approach the developer gives the rules; in the learning-based approach the machine finds the patterns from data. (2) A rule-based model does not change with new data; a learning-based model improves with more data.

B2.16Practice2 marks

Write two differences between supervised and unsupervised learning.

Answer

(1) Supervised learning uses labelled data; unsupervised learning uses unlabelled data. (2) Supervised learning predicts a known output (classification, regression); unsupervised learning finds hidden groups or patterns (clustering, association).

B2.17Practice2 marks

Write two differences between classification and regression.

Answer

(1) Classification predicts a category, such as spam or not spam; regression predicts a number, such as price. (2) The output of classification is discrete; the output of regression is continuous.

B2.18Practice2 marks

What is reinforcement learning? Give one example.

Answer

The machine learns by trial and error: it gets a reward for a right action and a penalty for a wrong one, and tries to get the maximum reward. Example: an AI learning to play chess, or a robot learning to walk.

B2.19Practice2 marks

What is clustering? Give one example.

Answer

Clustering is unsupervised learning that puts similar data points into groups (clusters) without any labels. Example: grouping the customers of a mall by their buying habits.

B2.20Practice2 marks

Explain the relation between AI, ML and DL.

Answer

AI is the broad field of making machines intelligent. Machine Learning is a part of AI in which machines learn from data. Deep Learning is a part of ML that uses neural networks with many layers.

B2.21Practice2 marks

What are features and labels? Give an example.

Answer

Features are the input columns used for prediction; the label is the output to be predicted. Example: to predict the price of a house, area and number of rooms are features and price is the label.

B2.22Practice2 marks

What is the difference between training data and testing data?

Answer

Training data is used to teach the model. Testing data is kept aside and is used to check how well the trained model works on data it has not seen.

B2.23Practice2 marks

Name the three kinds of layers of an artificial neural network and the work of each.

Answer

Input layer: receives the data. Hidden layers: process the data using weights and bias. Output layer: gives the final result.

B2.24Practice2 marks

What are weights and bias in a neural network?

Answer

A weight is a number that shows how important an input is. The bias is an extra number added to the weighted sum. Both are adjusted during training so that the output becomes correct.

B2.25Practice2 marks

Identify the type of learning:

  1. Predicting marks from study hours
  2. Grouping similar songs with no labels.
Answer

(i) Supervised learning (regression). (ii) Unsupervised learning (clustering).

B2.26Practice2 marks

Identify the model:

  1. A cat-or-dog photo sorter trained on labelled photos
  2. A shop finding which items are bought together.
Answer

(i) Classification (supervised). (ii) Association (unsupervised).

B2.27Practice2 marks

What is an artificial neural network? How is it like the human brain?

Answer

It is a learning model made of layers of connected units called neurons. Like the neurons of the brain, each unit receives signals, processes them and passes the result to the next units.

B2.28Practice2 marks

Write one advantage and one limitation of a rule-based model.

Answer

Advantage: it is simple, and its decisions are easy to explain. Limitation: it cannot handle situations for which no rule was written, and it does not learn from new data.

B2.29Practice2 marks

What is labelled data? Give one example of labelled and unlabelled data.

Answer

Labelled data has the correct answer attached to every record. Labelled: photos tagged 'cat' or 'dog'. Unlabelled: a folder of photos with no tags.

B2.30Practice2 marks

Which type of learning is suitable for each?

  1. A robot learning to balance
  2. Detecting spam mail from marked examples.
Answer

(i) Reinforcement learning. (ii) Supervised learning (classification).

B2.31Practice2 marks

What is deep learning? Name two of its uses.

Answer

Deep learning is machine learning with neural networks that have many hidden layers; the machine finds the features itself. Uses: face recognition, speech recognition, self-driving cars. (Any two.)

B2.32Practice2 marks

What is an activation function?

Answer

It is the function applied to the weighted sum of a neuron to decide its output, that is, whether and how strongly the neuron passes the signal to the next layer.

B2.33Practice2 marks

Why does a learning-based model need a large amount of data?

Answer

The model finds the rules from examples. More and varied examples help it to learn the true pattern, so it makes fewer mistakes on new data.

B2.34Practice2 marks

Name any two sub-categories of unsupervised learning and write one use of each.

Answer

Clustering: grouping customers. Association: finding products bought together. (Anomaly detection: catching fraud.)

B2.35SQP 2026-272 marks

Why is model evaluation needed? Why is the model tested on unseen data?

Answer

Evaluation tells how well the model works and whether it can be trusted before deployment. Testing on unseen data shows whether the model has really learnt the pattern; testing on training data only shows what it memorised.

B2.36Practice2 marks

What is a train-test split?

Answer

The data set is divided into two parts: a bigger training set to teach the model (for example 80%) and a smaller testing set (20%) to check it on unseen data.

B2.37Practice2 marks

Define True Positive and False Negative with an example of a disease test.

Answer

True Positive: the model says 'sick' and the person is sick. False Negative: the model says 'healthy' but the person is sick.

B2.38Practice2 marks

Write the formulas of precision and recall.

Answer

Precision = TP / (TP + FP). Recall = TP / (TP + FN).

B2.39Practice2 marks

What is the F1 score? Write its formula.

Answer

The F1 score combines precision and recall in one number (their harmonic mean). F1 = 2 x Precision x Recall / (Precision + Recall). It is high only when both are high.

B2.40Practice2 marks

Which metric is more important for a model that detects forest fire, precision or recall? Why?

Answer

Recall. Missing a real fire (False Negative) is very dangerous, so the model must catch every fire even if it gives a few false alarms.

B2.41Practice2 marks

Which metric is more important for a spam filter, precision or recall? Why?

Answer

Precision. If a genuine mail is marked as spam (False Positive), the user may lose an important message.

B2.42Practice2 marks

Why can accuracy be misleading? Give an example.

Answer

When one class is very rare, a model can score high accuracy by always predicting the common class. Example: if 2 of 100 people are sick, a model saying 'healthy' for all is 98% accurate but finds no patient.

B2.43Practice2 marks

What is overfitting?

Answer

The model learns the training data too closely, including its noise. It gives very good results on training data but poor results on new data.

B2.44Practice2 marks

Write two ethical concerns in model evaluation.

Answer

Bias: the model may work well for one group and badly for another. Transparency: people should be able to know how the model was tested and how it decides. Accuracy: results should be reported honestly. (Any two.)

B2.45Practice2 marks

What is a confusion matrix?

Answer

It is a table that compares the predictions of a model with the actual values. For two classes it has four cells: True Positive, True Negative, False Positive and False Negative.

B2.46SQP 2026-272 marks

Write the difference between object detection and instance segmentation.

Answer

Object detection finds the objects in an image and marks each with a box. Instance segmentation goes further: it marks the exact pixels (outline) of every separate object.

B2.47Practice2 marks

What is Computer Vision? Name two applications.

Answer

Computer Vision is the AI domain that lets machines see, process and understand images and videos. Applications: face recognition, self-driving cars, medical imaging, search by image. (Any two.)

B2.48Practice2 marks

What is a pixel? What is resolution?

Answer

A pixel (picture element) is the smallest unit of a digital image. Resolution is the number of pixels in the image, written as width x height, for example 1280 x 720.

B2.49Practice2 marks

Write two differences between a grayscale image and an RGB image.

Answer

(1) A grayscale image has one channel with shades from black (0) to white (255); an RGB image has three channels: red, green and blue. (2) A grayscale pixel stores one value (1 byte); an RGB pixel stores three values (3 bytes).

B2.50Practice2 marks

Name the four tasks of Computer Vision.

Answer

For a single object: image classification, classification + localisation. For multiple objects: object detection, instance segmentation.

B2.51Practice2 marks

How does a computer store an image?

Answer

As a grid of numbers. Each pixel has a value from 0 to 255 (one value in grayscale, three values for red, green and blue in a colour image).

B2.52Practice2 marks

What is image classification? Give one example.

Answer

Giving one label to the whole image out of a fixed set of classes. Example: telling whether an X-ray is 'normal' or 'not normal'.

B2.53Practice2 marks

What colour do these RGB pixels show?

  1. (0, 0, 0)
  2. (0, 255, 0)
  3. (255, 255, 0)
  4. (255, 255, 255)
Answer

(i) Black (ii) Green (iii) Yellow (red + green) (iv) White.

B2.54Practice2 marks

Write two uses of Computer Vision in health care or agriculture.

Answer

Health care: finding tumours in X-ray and MRI images. Agriculture: finding diseased leaves or weeds from photos taken by a drone.

B2.55Practice2 marks

What is classification + localisation?

Answer

The model tells what the single object in the image is (classification) and also where it is, by drawing a box around it (localisation).

B2.56Practice2 marks

What is a convolution? What is it used for?

Answer

Convolution multiplies a small matrix called a kernel with parts of the image, one after another, to make a new image. It brings out features such as edges and is the main step of a CNN.

B2.57Practice2 marks

Name the layers of a Convolutional Neural Network.

Answer

Convolution layer, Rectified Linear Unit (ReLU) layer, pooling layer and fully connected layer.

B2.58SQP 2026-272 marks

A news website sorts its articles into sports, business and entertainment automatically. Name the NLP application and write one benefit.

Answer

Text classification. Benefit: thousands of articles are sorted in seconds without manual work, so readers find the news of their interest quickly.

B2.59Practice2 marks

What is Natural Language Processing? Name two applications.

Answer

NLP is the AI domain that lets machines understand, interpret and produce human language. Applications: voice assistants, language translation, sentiment analysis, automatic captions, text classification. (Any two.)

B2.60Practice2 marks

Write two differences between a script bot and a smart bot.

Answer

(1) A script bot works on a fixed script of rules; a smart bot learns from data using AI. (2) A script bot is easy to make but has limited use; a smart bot is flexible and improves with use (example: Alexa).

B2.61Practice2 marks

Write two differences between stemming and lemmatisation.

Answer

(1) Stemming cuts the affixes and the result may not be a meaningful word (studies gives studi); lemmatisation gives a meaningful word (studies gives study). (2) Stemming is faster; lemmatisation takes more time.

B2.62Practice2 marks

What are stop words? Give four examples.

Answer

Stop words are words that occur very often in a text but add little meaning. Examples: a, an, the, is, are, to, and, of. They are usually removed in text normalisation.

B2.63Practice2 marks

Name the steps of text normalisation in order.

Answer

Sentence segmentation, tokenisation, removal of stop words, special characters and numbers, converting to a common case, stemming, lemmatisation.

B2.64Practice2 marks

What is the Bag of Words model?

Answer

It is an NLP model that takes out the unique words of the corpus (the vocabulary) and counts how many times each word occurs in each document. The order of words is not kept.

B2.65Practice2 marks

What is sentiment analysis? Where is it used?

Answer

Finding the feeling (positive, negative or neutral) expressed in a text. Companies use it on product reviews and social media posts to know what customers think.

B2.66Practice2 marks

What is the difference between syntax and semantics?

Answer

Syntax is the grammar: the correct arrangement of words in a sentence. Semantics is the meaning of the words and the sentence. A sentence can have correct syntax and still no meaning.

B2.67Practice2 marks

Why is human language difficult for a computer to understand? Write two reasons.

Answer

(1) The same word can have many meanings (bank of a river, money in the bank). (2) A perfectly grammatical sentence may have no meaning, and meaning also depends on the situation.

B2.68Practice2 marks

What is TF-IDF? Why is it better than a simple word count?

Answer

TF-IDF = Term Frequency x Inverse Document Frequency. It gives a high value to words that are frequent in one document but rare in the corpus, so the important words stand out and common words get a low value.

B2.69Practice2 marks

What is a corpus? What is a token?

Answer

A corpus is the whole collection of text of a project. A token is one unit of a sentence: a word, a number or a special character.

B3Numericals for 2 marks2 marks · 36 questions
B3.1Practice2 marks

A model was tested on 100 cases. The results are: TP = 48, TN = 34, FP = 16, FN = 2. Calculate the accuracy and the error rate of the model.

Answer

Accuracy = (TP + TN) / Total = (48 + 34) / 100 = 82 / 100 = 0.82 (82%)

Error rate = 1 - Accuracy = (FP + FN) / Total = 18 / 100 = 0.18 (18%)

B3.2Practice2 marks

For a model, TP = 12, FP = 13 and FN = 12. Calculate its precision and recall.

Answer

Precision = TP / (TP + FP) = 12 / (12 + 13) = 12 / 25 = 0.48 (48%)

Recall = TP / (TP + FN) = 12 / (12 + 12) = 12 / 24 = 0.50 (50%)

B3.3Practice2 marks

The precision of a model is 0.90 and its recall is 0.60. Calculate the F1 score.

Answer

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.90 x 0.60 / (0.90 + 0.60) = 1.08 / 1.50 = 0.72

B3.4Practice2 marks

A model was tested on 200 cases. The results are: TP = 36, TN = 104, FP = 24, FN = 36. Calculate the accuracy and the error rate of the model.

Answer

Accuracy = (TP + TN) / Total = (36 + 104) / 200 = 140 / 200 = 0.70 (70%)

Error rate = 1 - Accuracy = (FP + FN) / Total = 60 / 200 = 0.30 (30%)

B3.5Practice2 marks

For a model, TP = 72, FP = 8 and FN = 28. Calculate its precision and recall.

Answer

Precision = TP / (TP + FP) = 72 / (72 + 8) = 72 / 80 = 0.90 (90%)

Recall = TP / (TP + FN) = 72 / (72 + 28) = 72 / 100 = 0.72 (72%)

B3.6Practice2 marks

The precision of a model is 0.50 and its recall is 0.60. Calculate the F1 score.

Answer

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.50 x 0.60 / (0.50 + 0.60) = 0.6 / 1.10 = 0.55

B3.7Practice2 marks

A model was tested on 50 cases. The results are: TP = 21, TN = 13, FP = 9, FN = 7. Calculate the accuracy and the error rate of the model.

Answer

Accuracy = (TP + TN) / Total = (21 + 13) / 50 = 34 / 50 = 0.68 (68%)

Error rate = 1 - Accuracy = (FP + FN) / Total = 16 / 50 = 0.32 (32%)

B3.8Practice2 marks

For a model, TP = 9, FP = 6 and FN = 3. Calculate its precision and recall.

Answer

Precision = TP / (TP + FP) = 9 / (9 + 6) = 9 / 15 = 0.60 (60%)

Recall = TP / (TP + FN) = 9 / (9 + 3) = 9 / 12 = 0.75 (75%)

B3.9Practice2 marks

The precision of a model is 0.90 and its recall is 0.60. Calculate the F1 score.

Answer

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.90 x 0.60 / (0.90 + 0.60) = 1.08 / 1.50 = 0.72

B3.10Practice2 marks

A model was tested on 100 cases. The results are: TP = 36, TN = 28, FP = 24, FN = 12. Calculate the accuracy and the error rate of the model.

Answer

Accuracy = (TP + TN) / Total = (36 + 28) / 100 = 64 / 100 = 0.64 (64%)

Error rate = 1 - Accuracy = (FP + FN) / Total = 36 / 100 = 0.36 (36%)

B3.11Practice2 marks

For a model, TP = 24, FP = 16 and FN = 8. Calculate its precision and recall.

Answer

Precision = TP / (TP + FP) = 24 / (24 + 16) = 24 / 40 = 0.60 (60%)

Recall = TP / (TP + FN) = 24 / (24 + 8) = 24 / 32 = 0.75 (75%)

B3.12Practice2 marks

The precision of a model is 0.60 and its recall is 0.40. Calculate the F1 score.

Answer

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.60 x 0.40 / (0.60 + 0.40) = 0.48 / 1.00 = 0.48

B3.13Practice2 marks

A model predicted the price of a shirt (in rupees) as 270. The actual value is 250. Calculate the error, the error rate and the accuracy of the prediction.

Answer

Error = |actual - predicted| = |250 - 270| = 20. Error rate = error / actual = 20 / 250 = 0.08 = 8%. Accuracy = 100% - 8% = 92%

B3.14Practice2 marks

A model predicted the marks of a class (total) as 380. The actual value is 400. Calculate the error, the error rate and the accuracy of the prediction.

Answer

Error = |actual - predicted| = |400 - 380| = 20. Error rate = error / actual = 20 / 400 = 0.05 = 5%. Accuracy = 100% - 5% = 95%

B3.15Practice2 marks

A model predicted the daily visitors of a park as 560. The actual value is 500. Calculate the error, the error rate and the accuracy of the prediction.

Answer

Error = |actual - predicted| = |500 - 560| = 60. Error rate = error / actual = 60 / 500 = 0.12 = 12%. Accuracy = 100% - 12% = 88%

B3.16Practice2 marks

A model predicted the units of electricity used as 720. The actual value is 800. Calculate the error, the error rate and the accuracy of the prediction.

Answer

Error = |actual - predicted| = |800 - 720| = 80. Error rate = error / actual = 80 / 800 = 0.10 = 10%. Accuracy = 100% - 10% = 90%

B3.17Practice2 marks

A model predicted the weight of a bag of rice (in grams) as 1040. The actual value is 1000. Calculate the error, the error rate and the accuracy of the prediction.

Answer

Error = |actual - predicted| = |1000 - 1040| = 40. Error rate = error / actual = 40 / 1000 = 0.04 = 4%. Accuracy = 100% - 4% = 96%

B3.18Practice2 marks

A model predicted the monthly sale of a shop (in rupees) as 1700. The actual value is 2000. Calculate the error, the error rate and the accuracy of the prediction.

Answer

Error = |actual - predicted| = |2000 - 1700| = 300. Error rate = error / actual = 300 / 2000 = 0.15 = 15%. Accuracy = 100% - 15% = 85%

B3.19Practice2 marks

Perform these steps of text normalisation on the sentence "Raj and Vicky are best friends.":

  1. Tokenisation
  2. Removal of stop words and special characters, with all the words in lower case.
Answer
(i)

7 tokens: Raj | and | Vicky | are | best | friends | .

(ii)

4 words left: raj | vicky | best | friends

B3.20Practice2 marks

Two documents are given. Document 1: "Trees give us oxygen." Document 2: "We must plant trees." Write the vocabulary and the document vector of each document (change to lower case, remove punctuation, keep all the words).

Answer

Vocabulary: trees, give, us, oxygen, we, must, plant

treesgiveusoxygenwemustplant
Document 11111000
Document 21000111
B3.21Practice2 marks

Perform these steps of text normalisation on the sentence "We are learning Python at school.":

  1. Tokenisation
  2. Removal of stop words and special characters, with all the words in lower case.
Answer
(i)

7 tokens: We | are | learning | Python | at | school | .

(ii)

3 words left: learning | python | school

B3.22Practice2 marks

Two documents are given. Document 1: "We love our school." Document 2: "Our school has a big library." Write the vocabulary and the document vector of each document (change to lower case, remove punctuation, keep all the words).

Answer

Vocabulary: we, love, our, school, has, a, big, library

weloveourschoolhasabiglibrary
Document 111110000
Document 200111111
B3.23Practice2 marks

Perform these steps of text normalisation on the sentence "Is it raining today?":

  1. Tokenisation
  2. Removal of stop words and special characters, with all the words in lower case.
Answer
(i)

5 tokens: Is | it | raining | today | ?

(ii)

2 words left: raining | today

B3.24Practice2 marks

Two documents are given. Document 1: "Honey bees make honey." Document 2: "Bees live in a hive." Write the vocabulary and the document vector of each document (change to lower case, remove punctuation, keep all the words).

Answer

Vocabulary: honey, bees, make, live, in, a, hive

honeybeesmakeliveinahive
Document 12110000
Document 20101111
B3.25Practice2 marks

Perform these steps of text normalisation on the sentence "AI is changing the world, right?":

  1. Tokenisation
  2. Removal of stop words and special characters, with all the words in lower case.
Answer
(i)

8 tokens: AI | is | changing | the | world | , | right | ?

(ii)

4 words left: ai | changing | world | right

B3.26Practice2 marks

Two documents are given. Document 1: "Reading is a good habit." Document 2: "A good habit makes a good life." Write the vocabulary and the document vector of each document (change to lower case, remove punctuation, keep all the words).

Answer

Vocabulary: reading, is, a, good, habit, makes, life

readingisagoodhabitmakeslife
Document 11111100
Document 20022111
B3.27Practice2 marks

Perform these steps of text normalisation on the sentence "The cat sat on the mat.":

  1. Tokenisation
  2. Removal of stop words and special characters, with all the words in lower case.
Answer
(i)

7 tokens: The | cat | sat | on | the | mat | .

(ii)

3 words left: cat | sat | mat

B3.28Practice2 marks

Two documents are given. Document 1: "Rain helps the farmers." Document 2: "Farmers grow rice in rain." Write the vocabulary and the document vector of each document (change to lower case, remove punctuation, keep all the words).

Answer

Vocabulary: rain, helps, the, farmers, grow, rice, in

rainhelpsthefarmersgrowricein
Document 11111000
Document 21001111
B3.29Practice2 marks

Perform these steps of text normalisation on the sentence "Wow! We won the match.":

  1. Tokenisation
  2. Removal of stop words and special characters, with all the words in lower case.
Answer
(i)

7 tokens: Wow | ! | We | won | the | match | .

(ii)

3 words left: wow | won | match

B3.30Practice2 marks

Two documents are given. Document 1: "Chess is a mind game." Document 2: "Asha plays chess well." Write the vocabulary and the document vector of each document (change to lower case, remove punctuation, keep all the words).

Answer

Vocabulary: chess, is, a, mind, game, asha, plays, well

chessisamindgameashaplayswell
Document 111111000
Document 210000111
B3.31Practice2 marks

An image has the resolution 640 x 480.

  1. How many pixels does it have?
  2. How many bytes are needed to store it as an 8-bit grayscale image and as an RGB image (without compression)?
Answer
(i)

Pixels = 640 x 480 = 307,200

(ii)

Grayscale: 1 byte per pixel = 307,200 bytes. RGB: 3 bytes per pixel = 307,200 x 3 = 921,600 bytes

B3.32Practice2 marks

An image has the resolution 1280 x 720.

  1. How many pixels does it have?
  2. How many bytes are needed to store it as an 8-bit grayscale image and as an RGB image (without compression)?
Answer
(i)

Pixels = 1280 x 720 = 921,600

(ii)

Grayscale: 1 byte per pixel = 921,600 bytes. RGB: 3 bytes per pixel = 921,600 x 3 = 2,764,800 bytes

B3.33Practice2 marks

An image has the resolution 100 x 100.

  1. How many pixels does it have?
  2. How many bytes are needed to store it as an 8-bit grayscale image and as an RGB image (without compression)?
Answer
(i)

Pixels = 100 x 100 = 10,000

(ii)

Grayscale: 1 byte per pixel = 10,000 bytes. RGB: 3 bytes per pixel = 10,000 x 3 = 30,000 bytes

B3.34Practice2 marks

An image has the resolution 1920 x 1080.

  1. How many pixels does it have?
  2. How many bytes are needed to store it as an 8-bit grayscale image and as an RGB image (without compression)?
Answer
(i)

Pixels = 1920 x 1080 = 2,073,600

(ii)

Grayscale: 1 byte per pixel = 2,073,600 bytes. RGB: 3 bytes per pixel = 2,073,600 x 3 = 6,220,800 bytes

B3.35Practice2 marks

An image has the resolution 800 x 600.

  1. How many pixels does it have?
  2. How many bytes are needed to store it as an 8-bit grayscale image and as an RGB image (without compression)?
Answer
(i)

Pixels = 800 x 600 = 480,000

(ii)

Grayscale: 1 byte per pixel = 480,000 bytes. RGB: 3 bytes per pixel = 480,000 x 3 = 1,440,000 bytes

B3.36Practice2 marks

An image has the resolution 256 x 256.

  1. How many pixels does it have?
  2. How many bytes are needed to store it as an 8-bit grayscale image and as an RGB image (without compression)?
Answer
(i)

Pixels = 256 x 256 = 65,536

(ii)

Grayscale: 1 byte per pixel = 65,536 bytes. RGB: 3 bytes per pixel = 65,536 x 3 = 196,608 bytes

Long answers · 4 marks each

C1Long answers and case studies4 marks · 26 questions
C1.1SQP 2026-274 marks

A city uses AI cameras with face recognition in all public places to catch criminals. Discuss two ethical concerns. Suggest two safeguards that protect the privacy of citizens.

Answer

Concerns: (1) Privacy: every person is watched and recorded without consent. (2) Bias and wrong matches: the system may wrongly identify innocent people, more often from some groups. Data may also be misused or leaked. Safeguards: (1) Clear rules on what is recorded, who can see it and for how long it is kept. (2) Regular checks of the system for bias and accuracy, with a human taking the final decision; strong data security and a way for citizens to complain.

C1.2Practice4 marks

Explain the six stages of the AI Project Cycle with one line on each.

Answer

Problem Scoping: understand the problem using the 4Ws. Data Acquisition: collect reliable data. Data Exploration: arrange the data and draw graphs to find patterns. Modelling: choose and train a model. Evaluation: test the model on new data. Deployment: put the model to use for real users.

C1.3Practice4 marks

A school wants an AI system that warns teachers about students who may fail. Fill the 4Ws problem canvas for it.

Answer

Who: students at risk of failing, their teachers and parents. What: weak students are identified too late, after the result. Where: in the school, during the session, in class tests and attendance. Why: early help will improve learning and results, and reduce stress.

C1.4Practice4 marks

Explain the four principles of bioethics with an example of an AI tool that suggests treatment.

Answer

Respect for autonomy: the patient and doctor must be told how the tool works and may refuse its advice. Do not harm: the tool must not suggest a treatment that injures the patient. Ensure maximum benefit for all: it should give the best possible result to every patient. Give justice: it must work equally well for all groups, with no bias of gender, region or income.

C1.5Practice4 marks

What are value-based frameworks? Explain the three types with one line each.

Answer

Value-based frameworks look at the moral values that guide a decision. Rights-based: protect human rights and dignity above everything. Utility-based: choose the action that gives the greatest good to the greatest number. Virtue-based: act as a person of good character would: honestly, kindly and fairly.

C1.6Practice4 marks

A hospital's AI for skin disease was trained mainly on images of one skin type and makes more mistakes for other patients. (a) Name the ethical problem. (b) Which principle of bioethics is broken? (c) Suggest two corrections.

Answer

(a) Bias in the training data. (b) 'Give justice' (and 'do not harm'): all patients are not served equally. (c) Collect training images of all skin types; test the model separately for each group before use; keep a doctor to check the result.

C1.7Practice4 marks

Name the three domains of AI. For each, write what kind of data it uses and one application.

Answer

Statistical Data (Data Science): numbers and tables; price prediction, weather forecast. Computer Vision: images and videos; face unlock, self-driving cars. Natural Language Processing: text and speech; voice assistants, translation.

C1.8Practice4 marks

A bank uses AI to approve loans. Applicants are not told why a loan is rejected. Discuss the issue using an ethical framework and suggest improvements.

Answer

The issue is lack of transparency and possible unfairness. A rights-based view says every applicant has a right to fair treatment and to an explanation. Improvements: give the reason for each decision; check the data and results for bias; allow an appeal to a human officer; protect the applicants' data.

C1.9Practice4 marks

Why do we need ethical frameworks for AI? Explain with two examples.

Answer

AI systems take decisions that affect people's lives, and they can cause harm without intending to. Frameworks give a structured way to think before building. Examples: (1) a hiring AI trained on old data may reject women; a framework makes us test for bias. (2) a health app may share patient data; a framework makes us protect privacy and take consent.

C1.10Practice4 marks

Differentiate between Data Acquisition and Data Exploration. Why are both needed before Modelling?

Answer

Data Acquisition collects relevant, reliable data from sources such as surveys, sensors and websites. Data Exploration arranges that data and shows it as graphs to find patterns and errors. A model learns only from data: wrong or poorly understood data gives a wrong model.

C1.11Practice4 marks

A self-driving car must choose between two risky actions in an accident. How would a utility-based and a rights-based framework look at the choice?

Answer

Utility-based: choose the action that saves the most lives or causes the least total harm. Rights-based: every person has an equal right to life and safety, so no person should be treated only as a means to save others. The two can give different answers, which is why clear public rules are needed.

C1.12SQP 2026-274 marks

Explain the layers of an artificial neural network. How do they help in recognising an object in an image?

Answer

Input layer: receives the pixel values of the image. Hidden layers: each neuron multiplies its inputs by weights, adds a bias and applies an activation function; the early layers find edges and simple shapes, the later layers combine them into parts and objects. Output layer: gives the final answer, for example 'cat' or 'dog'. During training the weights and biases are adjusted until the answers are correct.

C1.13SQP 2026-274 marks

A company wants a chatbot for customer support. Should it choose the rule-based or the learning-based approach? Compare the two and justify.

Answer

Rule-based: replies come from fixed 'if-then' rules; cheap and predictable, good for a few standard questions (order status, timings), but it fails on unexpected questions. Learning-based: the bot learns from past chats; it understands different ways of asking and improves with use, but needs a lot of data and testing. For a small set of fixed questions choose rule-based; for varied questions from many customers choose learning-based.

C1.14Practice4 marks

Explain supervised, unsupervised and reinforcement learning with one example of each.

Answer

Supervised: learns from labelled data; example: spam detection from marked e-mails. Unsupervised: finds hidden groups in unlabelled data; example: grouping customers by buying habits. Reinforcement: learns by trial and error using rewards and penalties; example: an AI learning to play a game.

C1.15Practice4 marks

Explain classification, regression, clustering and association with one example each.

Answer

Classification (supervised): predicts a category; mail is spam or not spam. Regression (supervised): predicts a number; price of a house. Clustering (unsupervised): groups similar items; types of customers. Association (unsupervised): finds items that occur together; bread and butter.

C1.16Practice4 marks

Compare the rule-based and learning-based approaches in four points.

Answer

(1) Rules are written by the developer / patterns are learnt from data. (2) Needs little data / needs a lot of data. (3) Does not change after it is made / improves with new data. (4) Fails in new situations / can handle new situations. Example: a fixed-reply bot / a spam filter that learns.

C1.17Practice4 marks

Explain how one neuron of a neural network takes a decision. Use the terms input, weight, bias and activation function.

Answer

Each input is multiplied by its weight, which shows its importance. The products are added and the bias is added to the sum. The activation function is applied to this weighted sum; for a simple step function the neuron gives 1 if the sum reaches the threshold and 0 otherwise. The output goes to the next layer.

C1.18Practice4 marks

Identify the type of learning and its sub-category: (a) predicting rainfall in mm, (b) sorting photos into 'cat' and 'dog' using tagged photos, (c) a shop finding groups of similar customers, (d) a robot learning to walk by trial and error.

Answer

(a) Supervised, regression. (b) Supervised, classification. (c) Unsupervised, clustering. (d) Reinforcement learning.

C1.19Practice4 marks

Explain AI, Machine Learning and Deep Learning. How are they related? Give one example of each.

Answer

AI: any technique that lets a machine act intelligently; a rule-based chess program. ML: a part of AI in which the machine learns from data; a spam filter. DL: a part of ML that uses neural networks with many layers; face recognition. DL is inside ML, and ML is inside AI.

C1.20Practice4 marks

An online store wants to (a) predict next month's sales, (b) group its customers, (c) find products bought together, (d) catch fake orders. Name the technique for each.

Answer

(a) Regression (supervised). (b) Clustering (unsupervised). (c) Association (unsupervised). (d) Anomaly detection.

C1.21Practice4 marks

What are the common terms used for data in AI? Explain features, labels, training data and testing data with an example of predicting whether a student will pass.

Answer

Features: the inputs, such as attendance and study hours. Label: the output to predict, 'pass' or 'fail'. Training data: records with features and labels used to teach the model. Testing data: records kept aside to check the trained model on unseen cases.

C1.22Practice4 marks

Write two advantages and two limitations of neural networks.

Answer

Advantages: (1) they find the features on their own, so no rules need to be written; (2) they work very well on images, speech and text. Limitations: (1) they need a large amount of data and computing power; (2) their decisions are hard to explain (a 'black box').

C1.23Practice4 marks

Explain the steps of text normalisation with the sentence: "The children are playing happily."

Answer

Sentence segmentation: one sentence. Tokenisation: The | children | are | playing | happily | . Removing stop words and special characters: children | playing | happily. Common case: all in lower case. Stemming: children, play, happili. Lemmatisation: child, play, happily (meaningful words).

C1.24Practice4 marks

Write the four steps of the Bag of Words algorithm.

Answer

(1) Text normalisation: collect the data and pre-process it. (2) Create the dictionary: list all the unique words of the corpus. (3) Create a document vector: for one document, write how many times each word of the dictionary occurs. (4) Repeat for all the documents to get the document vector table.

C1.25Practice4 marks

Explain the four tasks of Computer Vision with one example of each.

Answer

Image classification: one label for the image; cat or dog. Classification + localisation: the label and a box around the single object. Object detection: boxes and labels for many objects; cars and people on a road. Instance segmentation: the exact outline of each object; every person in a crowd marked separately.

C1.26Practice4 marks

Explain precision, recall and F1 score. When is each one important? Give an example for precision and for recall.

Answer

Precision = TP / (TP + FP): of the cases predicted positive, how many are right. Important when a False Positive is costly, such as a spam filter. Recall = TP / (TP + FN): of the real positives, how many were found. Important when a False Negative is costly, such as a disease test. F1 = 2PR / (P + R) balances the two and is used when both matter or the classes are unequal.

C2Confusion matrix numericals4 marks · 20 questions
C2.1Practice4 marks

The confusion matrix of a disease-screening AI, tested on 50 cases, is given below. Calculate:

  1. Accuracy
  2. Precision
  3. Recall and
  4. F1 score. Show the working.

Confusion matrix

Reality: has the diseaseReality: is healthy
Predicted: has the disease21TP14FP
Predicted: is healthy7FN8TN
Answer
(i)

Accuracy = (TP + TN) / Total = (21 + 8) / 50 = 29 / 50 = 0.58 (58%)

(ii)

Precision = TP / (TP + FP) = 21 / (21 + 14) = 21 / 35 = 0.60 (60%)

(iii)

Recall = TP / (TP + FN) = 21 / (21 + 7) = 21 / 28 = 0.75 (75%)

(iv)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.60 x 0.75 / (0.60 + 0.75) = 0.9 / 1.35 = 0.67

C2.2Practice4 marks

A spam filter was tested on 50 cases. It predicted 'spam' for 30 cases; out of these, 18 were really 'spam'. It predicted 'genuine mail' for the other 20 cases; out of these, 13 were really 'genuine mail'.

  1. Draw the confusion matrix.
  2. Calculate accuracy, precision, recall and F1 score.
  3. Which metric is more important for this system, precision or recall? Why?
Answer
(i)

TP = 18, FP = 30 - 18 = 12, TN = 13, FN = 20 - 13 = 7.

Confusion matrix

Reality: spamReality: genuine mail
Predicted: spam18TP12FP
Predicted: genuine mail7FN13TN
(ii)

Accuracy = (TP + TN) / Total = (18 + 13) / 50 = 31 / 50 = 0.62 (62%)

Precision = TP / (TP + FP) = 18 / (18 + 12) = 18 / 30 = 0.60 (60%)

Recall = TP / (TP + FN) = 18 / (18 + 7) = 18 / 25 = 0.72 (72%)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.60 x 0.72 / (0.60 + 0.72) = 0.864 / 1.32 = 0.65

(iii)

Precision, because a genuine mail sent to the spam folder (False Positive) may be an important message.

C2.3Practice4 marks

The confusion matrix of a forest-fire alert system, tested on 1000 cases, is given below. Calculate:

  1. Accuracy
  2. Precision
  3. Recall and
  4. F1 score. Show the working.

Confusion matrix

Reality: fireReality: no fire
Predicted: fire240TP80FP
Predicted: no fire260FN420TN
Answer
(i)

Accuracy = (TP + TN) / Total = (240 + 420) / 1000 = 660 / 1000 = 0.66 (66%)

(ii)

Precision = TP / (TP + FP) = 240 / (240 + 80) = 240 / 320 = 0.75 (75%)

(iii)

Recall = TP / (TP + FN) = 240 / (240 + 260) = 240 / 500 = 0.48 (48%)

(iv)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.75 x 0.48 / (0.75 + 0.48) = 0.72 / 1.23 = 0.59

C2.4Practice4 marks

A bank's fraud detector was tested on 1000 cases. It predicted 'fraud' for 520 cases; out of these, 260 were really 'fraud'. It predicted 'genuine transaction' for the other 480 cases; out of these, 240 were really 'genuine transaction'.

  1. Draw the confusion matrix.
  2. Calculate accuracy, precision, recall and F1 score.
  3. Which metric is more important for this system, precision or recall? Why?
Answer
(i)

TP = 260, FP = 520 - 260 = 260, TN = 240, FN = 480 - 240 = 240.

Confusion matrix

Reality: fraudReality: genuine transaction
Predicted: fraud260TP260FP
Predicted: genuine transaction240FN240TN
(ii)

Accuracy = (TP + TN) / Total = (260 + 240) / 1000 = 500 / 1000 = 0.50 (50%)

Precision = TP / (TP + FP) = 260 / (260 + 260) = 260 / 520 = 0.50 (50%)

Recall = TP / (TP + FN) = 260 / (260 + 240) = 260 / 500 = 0.52 (52%)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.50 x 0.52 / (0.50 + 0.52) = 0.52 / 1.02 = 0.51

(iii)

Recall, because a fraud that is missed (False Negative) causes a loss of money.

C2.5Practice4 marks

The confusion matrix of a plagiarism checker, tested on 200 cases, is given below. Calculate:

  1. Accuracy
  2. Precision
  3. Recall and
  4. F1 score. Show the working.

Confusion matrix

Reality: copied workReality: original work
Predicted: copied work32TP48FP
Predicted: original work8FN112TN
Answer
(i)

Accuracy = (TP + TN) / Total = (32 + 112) / 200 = 144 / 200 = 0.72 (72%)

(ii)

Precision = TP / (TP + FP) = 32 / (32 + 48) = 32 / 80 = 0.40 (40%)

(iii)

Recall = TP / (TP + FN) = 32 / (32 + 8) = 32 / 40 = 0.80 (80%)

(iv)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.40 x 0.80 / (0.40 + 0.80) = 0.64 / 1.20 = 0.53

C2.6Practice4 marks

A face-unlock system (positive = owner) was tested on 500 cases. It predicted 'owner' for 250 cases; out of these, 150 were really 'owner'. It predicted 'stranger' for the other 250 cases; out of these, 200 were really 'stranger'.

  1. Draw the confusion matrix.
  2. Calculate accuracy, precision, recall and F1 score.
  3. Which metric is more important for this system, precision or recall? Why?
Answer
(i)

TP = 150, FP = 250 - 150 = 100, TN = 200, FN = 250 - 200 = 50.

Confusion matrix

Reality: ownerReality: stranger
Predicted: owner150TP100FP
Predicted: stranger50FN200TN
(ii)

Accuracy = (TP + TN) / Total = (150 + 200) / 500 = 350 / 500 = 0.70 (70%)

Precision = TP / (TP + FP) = 150 / (150 + 100) = 150 / 250 = 0.60 (60%)

Recall = TP / (TP + FN) = 150 / (150 + 50) = 150 / 200 = 0.75 (75%)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.60 x 0.75 / (0.60 + 0.75) = 0.9 / 1.35 = 0.67

(iii)

Precision, because a stranger accepted as the owner (False Positive) can open the phone.

C2.7Practice4 marks

The confusion matrix of a flood-warning model, tested on 1000 cases, is given below. Calculate:

  1. Accuracy
  2. Precision
  3. Recall and
  4. F1 score. Show the working.

Confusion matrix

Reality: floodReality: no flood
Predicted: flood260TP140FP
Predicted: no flood260FN340TN
Answer
(i)

Accuracy = (TP + TN) / Total = (260 + 340) / 1000 = 600 / 1000 = 0.60 (60%)

(ii)

Precision = TP / (TP + FP) = 260 / (260 + 140) = 260 / 400 = 0.65 (65%)

(iii)

Recall = TP / (TP + FN) = 260 / (260 + 260) = 260 / 520 = 0.50 (50%)

(iv)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.65 x 0.50 / (0.65 + 0.50) = 0.65 / 1.15 = 0.57

C2.8Practice4 marks

An AI that finds pneumonia in chest X-rays was tested on 50 cases. It predicted 'pneumonia' for 25 cases; out of these, 24 were really 'pneumonia'. It predicted 'normal' for the other 25 cases; out of these, 19 were really 'normal'.

  1. Draw the confusion matrix.
  2. Calculate accuracy, precision, recall and F1 score.
  3. Which metric is more important for this system, precision or recall? Why?
Answer
(i)

TP = 24, FP = 25 - 24 = 1, TN = 19, FN = 25 - 19 = 6.

Confusion matrix

Reality: pneumoniaReality: normal
Predicted: pneumonia24TP1FP
Predicted: normal6FN19TN
(ii)

Accuracy = (TP + TN) / Total = (24 + 19) / 50 = 43 / 50 = 0.86 (86%)

Precision = TP / (TP + FP) = 24 / (24 + 1) = 24 / 25 = 0.96 (96%)

Recall = TP / (TP + FN) = 24 / (24 + 6) = 24 / 30 = 0.80 (80%)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.96 x 0.80 / (0.96 + 0.80) = 1.536 / 1.76 = 0.87

(iii)

Recall, because a patient whose pneumonia is missed (False Negative) goes untreated.

C2.9Practice4 marks

The confusion matrix of a filter that blocks unsafe videos for children, tested on 100 cases, is given below. Calculate:

  1. Accuracy
  2. Precision
  3. Recall and
  4. F1 score. Show the working.

Confusion matrix

Reality: unsafe videoReality: safe video
Predicted: unsafe video24TP6FP
Predicted: safe video16FN54TN
Answer
(i)

Accuracy = (TP + TN) / Total = (24 + 54) / 100 = 78 / 100 = 0.78 (78%)

(ii)

Precision = TP / (TP + FP) = 24 / (24 + 6) = 24 / 30 = 0.80 (80%)

(iii)

Recall = TP / (TP + FN) = 24 / (24 + 16) = 24 / 40 = 0.60 (60%)

(iv)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.80 x 0.60 / (0.80 + 0.60) = 0.96 / 1.40 = 0.69

C2.10Practice4 marks

A camera that finds defective bottles in a factory was tested on 200 cases. It predicted 'defective bottle' for 120 cases; out of these, 84 were really 'defective bottle'. It predicted 'good bottle' for the other 80 cases; out of these, 24 were really 'good bottle'.

  1. Draw the confusion matrix.
  2. Calculate accuracy, precision, recall and F1 score.
  3. Which metric is more important for this system, precision or recall? Why?
Answer
(i)

TP = 84, FP = 120 - 84 = 36, TN = 24, FN = 80 - 24 = 56.

Confusion matrix

Reality: defective bottleReality: good bottle
Predicted: defective bottle84TP36FP
Predicted: good bottle56FN24TN
(ii)

Accuracy = (TP + TN) / Total = (84 + 24) / 200 = 108 / 200 = 0.54 (54%)

Precision = TP / (TP + FP) = 84 / (84 + 36) = 84 / 120 = 0.70 (70%)

Recall = TP / (TP + FN) = 84 / (84 + 56) = 84 / 140 = 0.60 (60%)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.70 x 0.60 / (0.70 + 0.60) = 0.84 / 1.30 = 0.65

(iii)

Recall, because a defective bottle that is passed (False Negative) reaches the customer.

C2.11Practice4 marks

The confusion matrix of a disease-screening AI, tested on 1000 cases, is given below. Calculate:

  1. Accuracy
  2. Precision
  3. Recall and
  4. F1 score. Show the working.

Confusion matrix

Reality: has the diseaseReality: is healthy
Predicted: has the disease120TP40FP
Predicted: is healthy180FN660TN
Answer
(i)

Accuracy = (TP + TN) / Total = (120 + 660) / 1000 = 780 / 1000 = 0.78 (78%)

(ii)

Precision = TP / (TP + FP) = 120 / (120 + 40) = 120 / 160 = 0.75 (75%)

(iii)

Recall = TP / (TP + FN) = 120 / (120 + 180) = 120 / 300 = 0.40 (40%)

(iv)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.75 x 0.40 / (0.75 + 0.40) = 0.6 / 1.15 = 0.52

C2.12Practice4 marks

A spam filter was tested on 200 cases. It predicted 'spam' for 112 cases; out of these, 84 were really 'spam'. It predicted 'genuine mail' for the other 88 cases; out of these, 32 were really 'genuine mail'.

  1. Draw the confusion matrix.
  2. Calculate accuracy, precision, recall and F1 score.
  3. Which metric is more important for this system, precision or recall? Why?
Answer
(i)

TP = 84, FP = 112 - 84 = 28, TN = 32, FN = 88 - 32 = 56.

Confusion matrix

Reality: spamReality: genuine mail
Predicted: spam84TP28FP
Predicted: genuine mail56FN32TN
(ii)

Accuracy = (TP + TN) / Total = (84 + 32) / 200 = 116 / 200 = 0.58 (58%)

Precision = TP / (TP + FP) = 84 / (84 + 28) = 84 / 112 = 0.75 (75%)

Recall = TP / (TP + FN) = 84 / (84 + 56) = 84 / 140 = 0.60 (60%)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.75 x 0.60 / (0.75 + 0.60) = 0.9 / 1.35 = 0.67

(iii)

Precision, because a genuine mail sent to the spam folder (False Positive) may be an important message.

C2.13Practice4 marks

The confusion matrix of a forest-fire alert system, tested on 100 cases, is given below. Calculate:

  1. Accuracy
  2. Precision
  3. Recall and
  4. F1 score. Show the working.

Confusion matrix

Reality: fireReality: no fire
Predicted: fire36TP24FP
Predicted: no fire14FN26TN
Answer
(i)

Accuracy = (TP + TN) / Total = (36 + 26) / 100 = 62 / 100 = 0.62 (62%)

(ii)

Precision = TP / (TP + FP) = 36 / (36 + 24) = 36 / 60 = 0.60 (60%)

(iii)

Recall = TP / (TP + FN) = 36 / (36 + 14) = 36 / 50 = 0.72 (72%)

(iv)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.60 x 0.72 / (0.60 + 0.72) = 0.864 / 1.32 = 0.65

C2.14Practice4 marks

A bank's fraud detector was tested on 100 cases. It predicted 'fraud' for 30 cases; out of these, 24 were really 'fraud'. It predicted 'genuine transaction' for the other 70 cases; out of these, 54 were really 'genuine transaction'.

  1. Draw the confusion matrix.
  2. Calculate accuracy, precision, recall and F1 score.
  3. Which metric is more important for this system, precision or recall? Why?
Answer
(i)

TP = 24, FP = 30 - 24 = 6, TN = 54, FN = 70 - 54 = 16.

Confusion matrix

Reality: fraudReality: genuine transaction
Predicted: fraud24TP6FP
Predicted: genuine transaction16FN54TN
(ii)

Accuracy = (TP + TN) / Total = (24 + 54) / 100 = 78 / 100 = 0.78 (78%)

Precision = TP / (TP + FP) = 24 / (24 + 6) = 24 / 30 = 0.80 (80%)

Recall = TP / (TP + FN) = 24 / (24 + 16) = 24 / 40 = 0.60 (60%)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.80 x 0.60 / (0.80 + 0.60) = 0.96 / 1.40 = 0.69

(iii)

Recall, because a fraud that is missed (False Negative) causes a loss of money.

C2.15Practice4 marks

The confusion matrix of a plagiarism checker, tested on 200 cases, is given below. Calculate:

  1. Accuracy
  2. Precision
  3. Recall and
  4. F1 score. Show the working.

Confusion matrix

Reality: copied workReality: original work
Predicted: copied work56TP56FP
Predicted: original work44FN44TN
Answer
(i)

Accuracy = (TP + TN) / Total = (56 + 44) / 200 = 100 / 200 = 0.50 (50%)

(ii)

Precision = TP / (TP + FP) = 56 / (56 + 56) = 56 / 112 = 0.50 (50%)

(iii)

Recall = TP / (TP + FN) = 56 / (56 + 44) = 56 / 100 = 0.56 (56%)

(iv)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.50 x 0.56 / (0.50 + 0.56) = 0.56 / 1.06 = 0.53

C2.16Practice4 marks

A face-unlock system (positive = owner) was tested on 1000 cases. It predicted 'owner' for 240 cases; out of these, 120 were really 'owner'. It predicted 'stranger' for the other 760 cases; out of these, 680 were really 'stranger'.

  1. Draw the confusion matrix.
  2. Calculate accuracy, precision, recall and F1 score.
  3. Which metric is more important for this system, precision or recall? Why?
Answer
(i)

TP = 120, FP = 240 - 120 = 120, TN = 680, FN = 760 - 680 = 80.

Confusion matrix

Reality: ownerReality: stranger
Predicted: owner120TP120FP
Predicted: stranger80FN680TN
(ii)

Accuracy = (TP + TN) / Total = (120 + 680) / 1000 = 800 / 1000 = 0.80 (80%)

Precision = TP / (TP + FP) = 120 / (120 + 120) = 120 / 240 = 0.50 (50%)

Recall = TP / (TP + FN) = 120 / (120 + 80) = 120 / 200 = 0.60 (60%)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.50 x 0.60 / (0.50 + 0.60) = 0.6 / 1.10 = 0.55

(iii)

Precision, because a stranger accepted as the owner (False Positive) can open the phone.

C2.17Practice4 marks

The confusion matrix of a flood-warning model, tested on 200 cases, is given below. Calculate:

  1. Accuracy
  2. Precision
  3. Recall and
  4. F1 score. Show the working.

Confusion matrix

Reality: floodReality: no flood
Predicted: flood36TP44FP
Predicted: no flood4FN116TN
Answer
(i)

Accuracy = (TP + TN) / Total = (36 + 116) / 200 = 152 / 200 = 0.76 (76%)

(ii)

Precision = TP / (TP + FP) = 36 / (36 + 44) = 36 / 80 = 0.45 (45%)

(iii)

Recall = TP / (TP + FN) = 36 / (36 + 4) = 36 / 40 = 0.90 (90%)

(iv)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.45 x 0.90 / (0.45 + 0.90) = 0.81 / 1.35 = 0.60

C2.18Practice4 marks

An AI that finds pneumonia in chest X-rays was tested on 200 cases. It predicted 'pneumonia' for 48 cases; out of these, 36 were really 'pneumonia'. It predicted 'normal' for the other 152 cases; out of these, 116 were really 'normal'.

  1. Draw the confusion matrix.
  2. Calculate accuracy, precision, recall and F1 score.
  3. Which metric is more important for this system, precision or recall? Why?
Answer
(i)

TP = 36, FP = 48 - 36 = 12, TN = 116, FN = 152 - 116 = 36.

Confusion matrix

Reality: pneumoniaReality: normal
Predicted: pneumonia36TP12FP
Predicted: normal36FN116TN
(ii)

Accuracy = (TP + TN) / Total = (36 + 116) / 200 = 152 / 200 = 0.76 (76%)

Precision = TP / (TP + FP) = 36 / (36 + 12) = 36 / 48 = 0.75 (75%)

Recall = TP / (TP + FN) = 36 / (36 + 36) = 36 / 72 = 0.50 (50%)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.75 x 0.50 / (0.75 + 0.50) = 0.75 / 1.25 = 0.60

(iii)

Recall, because a patient whose pneumonia is missed (False Negative) goes untreated.

C2.19Practice4 marks

The confusion matrix of a filter that blocks unsafe videos for children, tested on 100 cases, is given below. Calculate:

  1. Accuracy
  2. Precision
  3. Recall and
  4. F1 score. Show the working.

Confusion matrix

Reality: unsafe videoReality: safe video
Predicted: unsafe video54TP18FP
Predicted: safe video6FN22TN
Answer
(i)

Accuracy = (TP + TN) / Total = (54 + 22) / 100 = 76 / 100 = 0.76 (76%)

(ii)

Precision = TP / (TP + FP) = 54 / (54 + 18) = 54 / 72 = 0.75 (75%)

(iii)

Recall = TP / (TP + FN) = 54 / (54 + 6) = 54 / 60 = 0.90 (90%)

(iv)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.75 x 0.90 / (0.75 + 0.90) = 1.35 / 1.65 = 0.82

C2.20Practice4 marks

A camera that finds defective bottles in a factory was tested on 1000 cases. It predicted 'defective bottle' for 200 cases; out of these, 160 were really 'defective bottle'. It predicted 'good bottle' for the other 800 cases; out of these, 640 were really 'good bottle'.

  1. Draw the confusion matrix.
  2. Calculate accuracy, precision, recall and F1 score.
  3. Which metric is more important for this system, precision or recall? Why?
Answer
(i)

TP = 160, FP = 200 - 160 = 40, TN = 640, FN = 800 - 640 = 160.

Confusion matrix

Reality: defective bottleReality: good bottle
Predicted: defective bottle160TP40FP
Predicted: good bottle160FN640TN
(ii)

Accuracy = (TP + TN) / Total = (160 + 640) / 1000 = 800 / 1000 = 0.80 (80%)

Precision = TP / (TP + FP) = 160 / (160 + 40) = 160 / 200 = 0.80 (80%)

Recall = TP / (TP + FN) = 160 / (160 + 160) = 160 / 320 = 0.50 (50%)

F1 score = 2 x Precision x Recall / (Precision + Recall) = 2 x 0.80 x 0.50 / (0.80 + 0.50) = 0.8 / 1.30 = 0.62

(iii)

Recall, because a defective bottle that is passed (False Negative) reaches the customer.

C3Bag of Words and TF-IDF numericals4 marks · 20 questions
C3.1Practice4 marks

Consider the corpus of three documents given below. After text normalisation (change to lower case and remove punctuation; keep all the words),:

  1. Write the vocabulary (dictionary) of the corpus
  2. Make the document vector table
  3. Make a table of the document frequency (DF) and inverse document frequency (IDF) of every word
  4. Write the formula of TF-IDF.

Corpus

  1. Aman likes to play cricket.
  2. Riya likes to play chess.
  3. Aman and Riya play together.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (9 words): aman, likes, to, play, cricket, riya, chess, and, together

(ii)

Document vector table (frequency of each word)

amanlikestoplaycricketriyachessandtogether
Document 1111110000
Document 2011101100
Document 3100101011
(iii)

Document frequency and inverse document frequency

Wordamanlikestoplaycricketriyachessandtogether
DF222312111
IDF = 3 / DF3/23/23/23/33/13/23/13/13/1
log(IDF)0.1760.1760.1760.0000.4770.1760.4770.4770.477
(iv)

TF-IDF(W) = TF(W) x log(IDF(W)), where TF is the frequency of the word in the document and IDF = total number of documents / document frequency. The log is to the base 10.

C3.2Practice4 marks

Consider the corpus of three documents given below. Apply the Bag of Words algorithm after text normalisation (change to lower case and remove punctuation; keep all the words).

  1. Write the vocabulary and make the document vector table.
  2. Find the document frequency of every word.
  3. Calculate the TF-IDF value of the word 'love' in Document 1.
  4. Which words are the most valuable for telling the documents apart? Why?

Corpus

  1. We love our school.
  2. Our school has a big library.
  3. We read books in the library.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (12 words): we, love, our, school, has, a, big, library, read, books, in, the

Document vector table (frequency of each word)

weloveourschoolhasabiglibraryreadbooksinthe
Document 1111100000000
Document 2001111110000
Document 3100000011111
(ii)
Wordweloveourschoolhasabiglibraryreadbooksinthe
DF212211121111
(iii)

TF of 'love' in Document 1 = 1. DF = 1, so IDF = 3/1. TF-IDF = TF x log(IDF) = 1 x log(3/1) = 1 x 0.477 = 0.477

(iv)

The words that occur in only one document (DF = 1), such as love, has, a, big, read, books, in. They have the highest IDF (3/1), so their TF-IDF value is the highest.

C3.3Practice4 marks

Consider the corpus of three documents given below. After text normalisation (change to lower case and remove punctuation; keep all the words),:

  1. Write the vocabulary (dictionary) of the corpus
  2. Make the document vector table
  3. Make a table of the document frequency (DF) and inverse document frequency (IDF) of every word
  4. Write the formula of TF-IDF.

Corpus

  1. The sun is hot.
  2. The moon is cool.
  3. The sun and the moon are in the sky.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (10 words): the, sun, is, hot, moon, cool, and, are, in, sky

(ii)

Document vector table (frequency of each word)

thesunishotmooncoolandareinsky
Document 11111000000
Document 21010110000
Document 33100101111
(iii)

Document frequency and inverse document frequency

Wordthesunishotmooncoolandareinsky
DF3221211111
IDF = 3 / DF3/33/23/23/13/23/13/13/13/13/1
log(IDF)0.0000.1760.1760.4770.1760.4770.4770.4770.4770.477
(iv)

TF-IDF(W) = TF(W) x log(IDF(W)), where TF is the frequency of the word in the document and IDF = total number of documents / document frequency. The log is to the base 10.

C3.4Practice4 marks

Consider the corpus of three documents given below. Apply the Bag of Words algorithm after text normalisation (change to lower case and remove punctuation; keep all the words).

  1. Write the vocabulary and make the document vector table.
  2. Find the document frequency of every word.
  3. Calculate the TF-IDF value of the word 'helps' in Document 1.
  4. Which words are the most valuable for telling the documents apart? Why?

Corpus

  1. Rain helps the farmers.
  2. Farmers grow rice in rain.
  3. We eat rice.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (9 words): rain, helps, the, farmers, grow, rice, in, we, eat

Document vector table (frequency of each word)

rainhelpsthefarmersgrowriceinweeat
Document 1111100000
Document 2100111100
Document 3000001011
(ii)
Wordrainhelpsthefarmersgrowriceinweeat
DF211212111
(iii)

TF of 'helps' in Document 1 = 1. DF = 1, so IDF = 3/1. TF-IDF = TF x log(IDF) = 1 x log(3/1) = 1 x 0.477 = 0.477

(iv)

The words that occur in only one document (DF = 1), such as helps, the, grow, in, we. They have the highest IDF (3/1), so their TF-IDF value is the highest.

C3.5Practice4 marks

Consider the corpus of three documents given below. After text normalisation (change to lower case and remove punctuation; keep all the words),:

  1. Write the vocabulary (dictionary) of the corpus
  2. Make the document vector table
  3. Make a table of the document frequency (DF) and inverse document frequency (IDF) of every word
  4. Write the formula of TF-IDF.

Corpus

  1. I like mango juice.
  2. Mango is the king of fruits.
  3. I like fruits.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (9 words): i, like, mango, juice, is, the, king, of, fruits

(ii)

Document vector table (frequency of each word)

ilikemangojuiceisthekingoffruits
Document 1111100000
Document 2001011111
Document 3110000001
(iii)

Document frequency and inverse document frequency

Wordilikemangojuiceisthekingoffruits
DF222111112
IDF = 3 / DF3/23/23/23/13/13/13/13/13/2
log(IDF)0.1760.1760.1760.4770.4770.4770.4770.4770.176
(iv)

TF-IDF(W) = TF(W) x log(IDF(W)), where TF is the frequency of the word in the document and IDF = total number of documents / document frequency. The log is to the base 10.

C3.6Practice4 marks

Consider the corpus of three documents given below. Apply the Bag of Words algorithm after text normalisation (change to lower case and remove punctuation; keep all the words).

  1. Write the vocabulary and make the document vector table.
  2. Find the document frequency of every word.
  3. Calculate the TF-IDF value of the word 'new' in Document 1.
  4. Which words are the most valuable for telling the documents apart? Why?

Corpus

  1. Data is the new oil.
  2. AI needs data.
  3. AI is the future.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (8 words): data, is, the, new, oil, ai, needs, future

Document vector table (frequency of each word)

dataisthenewoilaineedsfuture
Document 111111000
Document 210000110
Document 301100101
(ii)
Worddataisthenewoilaineedsfuture
DF22211211
(iii)

TF of 'new' in Document 1 = 1. DF = 1, so IDF = 3/1. TF-IDF = TF x log(IDF) = 1 x log(3/1) = 1 x 0.477 = 0.477

(iv)

The words that occur in only one document (DF = 1), such as new, oil, needs. They have the highest IDF (3/1), so their TF-IDF value is the highest.

C3.7Practice4 marks

Consider the corpus of three documents given below. After text normalisation (change to lower case and remove punctuation; keep all the words),:

  1. Write the vocabulary (dictionary) of the corpus
  2. Make the document vector table
  3. Make a table of the document frequency (DF) and inverse document frequency (IDF) of every word
  4. Write the formula of TF-IDF.

Corpus

  1. Cats drink milk.
  2. Dogs drink water.
  3. Cats and dogs are pets.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (8 words): cats, drink, milk, dogs, water, and, are, pets

(ii)

Document vector table (frequency of each word)

catsdrinkmilkdogswaterandarepets
Document 111100000
Document 201011000
Document 310010111
(iii)

Document frequency and inverse document frequency

Wordcatsdrinkmilkdogswaterandarepets
DF22121111
IDF = 3 / DF3/23/23/13/23/13/13/13/1
log(IDF)0.1760.1760.4770.1760.4770.4770.4770.477
(iv)

TF-IDF(W) = TF(W) x log(IDF(W)), where TF is the frequency of the word in the document and IDF = total number of documents / document frequency. The log is to the base 10.

C3.8Practice4 marks

Consider the corpus of three documents given below. Apply the Bag of Words algorithm after text normalisation (change to lower case and remove punctuation; keep all the words).

  1. Write the vocabulary and make the document vector table.
  2. Find the document frequency of every word.
  3. Calculate the TF-IDF value of the word 'give' in Document 1.
  4. Which word has the TF-IDF value 0 in every document? Why?

Corpus

  1. Trees give us oxygen.
  2. We must plant trees.
  3. Plant trees and save the earth.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (11 words): trees, give, us, oxygen, we, must, plant, and, save, the, earth

Document vector table (frequency of each word)

treesgiveusoxygenwemustplantandsavetheearth
Document 111110000000
Document 210001110000
Document 310000011111
(ii)
Wordtreesgiveusoxygenwemustplantandsavetheearth
DF31111121111
(iii)

TF of 'give' in Document 1 = 1. DF = 1, so IDF = 3/1. TF-IDF = TF x log(IDF) = 1 x log(3/1) = 1 x 0.477 = 0.477

(iv)

trees. It occurs in all 3 documents, so IDF = 3/3 = 1 and log(1) = 0. Such a word does not help to tell the documents apart.

C3.9Practice4 marks

Consider the corpus of three documents given below. After text normalisation (change to lower case and remove punctuation; keep all the words),:

  1. Write the vocabulary (dictionary) of the corpus
  2. Make the document vector table
  3. Make a table of the document frequency (DF) and inverse document frequency (IDF) of every word
  4. Write the formula of TF-IDF.

Corpus

  1. Ravi plays football daily.
  2. Football is a team game.
  3. Ravi loves his team.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (10 words): ravi, plays, football, daily, is, a, team, game, loves, his

(ii)

Document vector table (frequency of each word)

raviplaysfootballdailyisateamgameloveshis
Document 11111000000
Document 20010111100
Document 31000001011
(iii)

Document frequency and inverse document frequency

Wordraviplaysfootballdailyisateamgameloveshis
DF2121112111
IDF = 3 / DF3/23/13/23/13/13/13/23/13/13/1
log(IDF)0.1760.4770.1760.4770.4770.4770.1760.4770.4770.477
(iv)

TF-IDF(W) = TF(W) x log(IDF(W)), where TF is the frequency of the word in the document and IDF = total number of documents / document frequency. The log is to the base 10.

C3.10Practice4 marks

Consider the corpus of three documents given below. Apply the Bag of Words algorithm after text normalisation (change to lower case and remove punctuation; keep all the words).

  1. Write the vocabulary and make the document vector table.
  2. Find the document frequency of every word.
  3. Calculate the TF-IDF value of the word 'makes' in Document 2.
  4. Which words are the most valuable for telling the documents apart? Why?

Corpus

  1. Reading is a good habit.
  2. A good habit makes a good life.
  3. Reading books is fun.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (9 words): reading, is, a, good, habit, makes, life, books, fun

Document vector table (frequency of each word)

readingisagoodhabitmakeslifebooksfun
Document 1111110000
Document 2002211100
Document 3110000011
(ii)
Wordreadingisagoodhabitmakeslifebooksfun
DF222221111
(iii)

TF of 'makes' in Document 2 = 1. DF = 1, so IDF = 3/1. TF-IDF = TF x log(IDF) = 1 x log(3/1) = 1 x 0.477 = 0.477

(iv)

The words that occur in only one document (DF = 1), such as makes, life, books. They have the highest IDF (3/1), so their TF-IDF value is the highest.

C3.11Practice4 marks

Consider the corpus of three documents given below. After text normalisation (change to lower case and remove punctuation; keep all the words),:

  1. Write the vocabulary (dictionary) of the corpus
  2. Make the document vector table
  3. Make a table of the document frequency (DF) and inverse document frequency (IDF) of every word
  4. Write the formula of TF-IDF.

Corpus

  1. Divya went to the market.
  2. The market was closed.
  3. Divya came back home.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (10 words): divya, went, to, the, market, was, closed, came, back, home

(ii)

Document vector table (frequency of each word)

divyawenttothemarketwasclosedcamebackhome
Document 11111100000
Document 20001111000
Document 31000000111
(iii)

Document frequency and inverse document frequency

Worddivyawenttothemarketwasclosedcamebackhome
DF2112211111
IDF = 3 / DF3/23/13/13/23/23/13/13/13/13/1
log(IDF)0.1760.4770.4770.1760.1760.4770.4770.4770.4770.477
(iv)

TF-IDF(W) = TF(W) x log(IDF(W)), where TF is the frequency of the word in the document and IDF = total number of documents / document frequency. The log is to the base 10.

C3.12Practice4 marks

Consider the corpus of three documents given below. Apply the Bag of Words algorithm after text normalisation (change to lower case and remove punctuation; keep all the words).

  1. Write the vocabulary and make the document vector table.
  2. Find the document frequency of every word.
  3. Calculate the TF-IDF value of the word 'sick' in Document 2.
  4. Which words are the most valuable for telling the documents apart? Why?

Corpus

  1. Robots can help doctors.
  2. Doctors help sick people.
  3. Robots can not feel.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (8 words): robots, can, help, doctors, sick, people, not, feel

Document vector table (frequency of each word)

robotscanhelpdoctorssickpeoplenotfeel
Document 111110000
Document 200111100
Document 311000011
(ii)
Wordrobotscanhelpdoctorssickpeoplenotfeel
DF22221111
(iii)

TF of 'sick' in Document 2 = 1. DF = 1, so IDF = 3/1. TF-IDF = TF x log(IDF) = 1 x log(3/1) = 1 x 0.477 = 0.477

(iv)

The words that occur in only one document (DF = 1), such as sick, people, not. They have the highest IDF (3/1), so their TF-IDF value is the highest.

C3.13Practice4 marks

Consider the corpus of three documents given below. After text normalisation (change to lower case and remove punctuation; keep all the words),:

  1. Write the vocabulary (dictionary) of the corpus
  2. Make the document vector table
  3. Make a table of the document frequency (DF) and inverse document frequency (IDF) of every word
  4. Write the formula of TF-IDF.

Corpus

  1. Clean water is life.
  2. Save water every day.
  3. Water is life.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (7 words): clean, water, is, life, save, every, day

(ii)

Document vector table (frequency of each word)

cleanwaterislifesaveeveryday
Document 11111000
Document 20100111
Document 30111000
(iii)

Document frequency and inverse document frequency

Wordcleanwaterislifesaveeveryday
DF1322111
IDF = 3 / DF3/13/33/23/23/13/13/1
log(IDF)0.4770.0000.1760.1760.4770.4770.477
(iv)

TF-IDF(W) = TF(W) x log(IDF(W)), where TF is the frequency of the word in the document and IDF = total number of documents / document frequency. The log is to the base 10.

C3.14Practice4 marks

Consider the corpus of three documents given below. Apply the Bag of Words algorithm after text normalisation (change to lower case and remove punctuation; keep all the words).

  1. Write the vocabulary and make the document vector table.
  2. Find the document frequency of every word.
  3. Calculate the TF-IDF value of the word 'a' in Document 2.
  4. Which words are the most valuable for telling the documents apart? Why?

Corpus

  1. Yoga keeps the body fit.
  2. A fit body has a fit mind.
  3. Yoga keeps the mind calm.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (9 words): yoga, keeps, the, body, fit, a, has, mind, calm

Document vector table (frequency of each word)

yogakeepsthebodyfitahasmindcalm
Document 1111110000
Document 2000122110
Document 3111000011
(ii)
Wordyogakeepsthebodyfitahasmindcalm
DF222221121
(iii)

TF of 'a' in Document 2 = 2. DF = 1, so IDF = 3/1. TF-IDF = TF x log(IDF) = 2 x log(3/1) = 2 x 0.477 = 0.954

(iv)

The words that occur in only one document (DF = 1), such as a, has. They have the highest IDF (3/1), so their TF-IDF value is the highest.

C3.15Practice4 marks

Consider the corpus of three documents given below. After text normalisation (change to lower case and remove punctuation; keep all the words),:

  1. Write the vocabulary (dictionary) of the corpus
  2. Make the document vector table
  3. Make a table of the document frequency (DF) and inverse document frequency (IDF) of every word
  4. Write the formula of TF-IDF.

Corpus

  1. The bus was late today.
  2. I missed the bus.
  3. I was late for school today.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (9 words): the, bus, was, late, today, i, missed, for, school

(ii)

Document vector table (frequency of each word)

thebuswaslatetodayimissedforschool
Document 1111110000
Document 2110001100
Document 3001111011
(iii)

Document frequency and inverse document frequency

Wordthebuswaslatetodayimissedforschool
DF222222111
IDF = 3 / DF3/23/23/23/23/23/23/13/13/1
log(IDF)0.1760.1760.1760.1760.1760.1760.4770.4770.477
(iv)

TF-IDF(W) = TF(W) x log(IDF(W)), where TF is the frequency of the word in the document and IDF = total number of documents / document frequency. The log is to the base 10.

C3.16Practice4 marks

Consider the corpus of three documents given below. Apply the Bag of Words algorithm after text normalisation (change to lower case and remove punctuation; keep all the words).

  1. Write the vocabulary and make the document vector table.
  2. Find the document frequency of every word.
  3. Calculate the TF-IDF value of the word 'make' in Document 1.
  4. Which words are the most valuable for telling the documents apart? Why?

Corpus

  1. Honey bees make honey.
  2. Bees live in a hive.
  3. Honey is sweet.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (9 words): honey, bees, make, live, in, a, hive, is, sweet

Document vector table (frequency of each word)

honeybeesmakeliveinahiveissweet
Document 1211000000
Document 2010111100
Document 3100000011
(ii)
Wordhoneybeesmakeliveinahiveissweet
DF221111111
(iii)

TF of 'make' in Document 1 = 1. DF = 1, so IDF = 3/1. TF-IDF = TF x log(IDF) = 1 x log(3/1) = 1 x 0.477 = 0.477

(iv)

The words that occur in only one document (DF = 1), such as make, live, in, a, hive, is. They have the highest IDF (3/1), so their TF-IDF value is the highest.

C3.17Practice4 marks

Consider the corpus of three documents given below. After text normalisation (change to lower case and remove punctuation; keep all the words),:

  1. Write the vocabulary (dictionary) of the corpus
  2. Make the document vector table
  3. Make a table of the document frequency (DF) and inverse document frequency (IDF) of every word
  4. Write the formula of TF-IDF.

Corpus

  1. Solar panels save power.
  2. We save power at home.
  3. Solar power is clean.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (9 words): solar, panels, save, power, we, at, home, is, clean

(ii)

Document vector table (frequency of each word)

solarpanelssavepowerweathomeisclean
Document 1111100000
Document 2001111100
Document 3100100011
(iii)

Document frequency and inverse document frequency

Wordsolarpanelssavepowerweathomeisclean
DF212311111
IDF = 3 / DF3/23/13/23/33/13/13/13/13/1
log(IDF)0.1760.4770.1760.0000.4770.4770.4770.4770.477
(iv)

TF-IDF(W) = TF(W) x log(IDF(W)), where TF is the frequency of the word in the document and IDF = total number of documents / document frequency. The log is to the base 10.

C3.18Practice4 marks

Consider the corpus of three documents given below. Apply the Bag of Words algorithm after text normalisation (change to lower case and remove punctuation; keep all the words).

  1. Write the vocabulary and make the document vector table.
  2. Find the document frequency of every word.
  3. Calculate the TF-IDF value of the word 'is' in Document 1.
  4. Which words are the most valuable for telling the documents apart? Why?

Corpus

  1. Chess is a mind game.
  2. Asha plays chess well.
  3. Asha has a sharp mind.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (10 words): chess, is, a, mind, game, asha, plays, well, has, sharp

Document vector table (frequency of each word)

chessisamindgameashaplayswellhassharp
Document 11111100000
Document 21000011100
Document 30011010011
(ii)
Wordchessisamindgameashaplayswellhassharp
DF2122121111
(iii)

TF of 'is' in Document 1 = 1. DF = 1, so IDF = 3/1. TF-IDF = TF x log(IDF) = 1 x log(3/1) = 1 x 0.477 = 0.477

(iv)

The words that occur in only one document (DF = 1), such as is, game, plays, well, has. They have the highest IDF (3/1), so their TF-IDF value is the highest.

C3.19Practice4 marks

Consider the corpus of three documents given below. After text normalisation (change to lower case and remove punctuation; keep all the words),:

  1. Write the vocabulary (dictionary) of the corpus
  2. Make the document vector table
  3. Make a table of the document frequency (DF) and inverse document frequency (IDF) of every word
  4. Write the formula of TF-IDF.

Corpus

  1. My phone has a camera.
  2. The camera takes clear photos.
  3. I share photos on my phone.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (12 words): my, phone, has, a, camera, the, takes, clear, photos, i, share, on

(ii)

Document vector table (frequency of each word)

myphonehasacamerathetakesclearphotosishareon
Document 1111110000000
Document 2000011111000
Document 3110000001111
(iii)

Document frequency and inverse document frequency

Wordmyphonehasacamerathetakesclearphotosishareon
DF221121112111
IDF = 3 / DF3/23/23/13/13/23/13/13/13/23/13/13/1
log(IDF)0.1760.1760.4770.4770.1760.4770.4770.4770.1760.4770.4770.477
(iv)

TF-IDF(W) = TF(W) x log(IDF(W)), where TF is the frequency of the word in the document and IDF = total number of documents / document frequency. The log is to the base 10.

C3.20Practice4 marks

Consider the corpus of three documents given below. Apply the Bag of Words algorithm after text normalisation (change to lower case and remove punctuation; keep all the words).

  1. Write the vocabulary and make the document vector table.
  2. Find the document frequency of every word.
  3. Calculate the TF-IDF value of the word 'won' in Document 1.
  4. Which words are the most valuable for telling the documents apart? Why?

Corpus

  1. India won the final match.
  2. The final match was in Mumbai.
  3. India plays well.
Answer
(i)

Rule used: all the letters are changed to lower case and the punctuation marks are removed; no word is dropped.

Vocabulary (10 words): india, won, the, final, match, was, in, mumbai, plays, well

Document vector table (frequency of each word)

indiawonthefinalmatchwasinmumbaiplayswell
Document 11111100000
Document 20011111100
Document 31000000011
(ii)
Wordindiawonthefinalmatchwasinmumbaiplayswell
DF2122211111
(iii)

TF of 'won' in Document 1 = 1. DF = 1, so IDF = 3/1. TF-IDF = TF x log(IDF) = 1 x log(3/1) = 1 x 0.477 = 0.477

(iv)

The words that occur in only one document (DF = 1), such as won, was, in, mumbai, plays. They have the highest IDF (3/1), so their TF-IDF value is the highest.

C4Neuron (perceptron) numericals4 marks · 12 questions
C4.1Practice4 marks

A single neuron (perceptron) is used to decide: "Should Riya go to the park?" Each factor is an input: Yes = 1, No = 0. The weights are given in the table. The bias is -1. The output is 1 (Yes) if the weighted sum is 4 or more, otherwise 0 (No).

  1. Write the formula of the weighted sum.
  2. Calculate the weighted sum and the decision for Day 1.
  3. Calculate them for Day 2.
  4. Which factor matters the most to this neuron? Why?
Factor (input)WeightDay 1Day 2
The weather is good3Yes (1)No (0)
Her friend is coming5No (0)Yes (1)
Her homework is done1No (0)Yes (1)
Answer
(i)

Weighted sum = (x1 x w1) + (x2 x w2) + (x3 x w3) + bias

(ii)

Sum = (1 x 3) + (0 x 5) + (0 x 1) + (-1) = 2. It is less than 4, so the output is 0 (No).

(iii)

Sum = (0 x 3) + (1 x 5) + (1 x 1) + (-1) = 5. It is not less than 4, so the output is 1 (Yes).

(iv)

Her friend is coming, because it has the largest weight (5). A larger weight means the input has more effect on the decision.

C4.2Practice4 marks

A single neuron (perceptron) is used to decide: "Should Arjun buy the phone?" Each factor is an input: Yes = 1, No = 0. The weights are given in the table. The bias is -1. The output is 1 (Yes) if the weighted sum is 3 or more, otherwise 0 (No).

  1. Write the formula of the weighted sum.
  2. Calculate the weighted sum and the decision for Day 1.
  3. Calculate them for Day 2.
  4. Which factor matters the most to this neuron? Why?
Factor (input)WeightDay 1Day 2
The price is within budget2No (0)Yes (1)
The camera is good1Yes (1)No (0)
The reviews are good5Yes (1)No (0)
Answer
(i)

Weighted sum = (x1 x w1) + (x2 x w2) + (x3 x w3) + bias

(ii)

Sum = (0 x 2) + (1 x 1) + (1 x 5) + (-1) = 5. It is not less than 3, so the output is 1 (Yes).

(iii)

Sum = (1 x 2) + (0 x 1) + (0 x 5) + (-1) = 1. It is less than 3, so the output is 0 (No).

(iv)

The reviews are good, because it has the largest weight (5). A larger weight means the input has more effect on the decision.

C4.3Practice4 marks

A single neuron (perceptron) is used to decide: "Should the school team play the match?" Each factor is an input: Yes = 1, No = 0. The weights are given in the table. The bias is -1. The output is 1 (Yes) if the weighted sum is 4 or more, otherwise 0 (No).

  1. Write the formula of the weighted sum.
  2. Calculate the weighted sum and the decision for Day 1.
  3. Calculate them for Day 2.
  4. Which factor matters the most to this neuron? Why?
Factor (input)WeightDay 1Day 2
The ground is dry3Yes (1)Yes (1)
All the players are fit5Yes (1)No (0)
The coach is present1Yes (1)No (0)
Answer
(i)

Weighted sum = (x1 x w1) + (x2 x w2) + (x3 x w3) + bias

(ii)

Sum = (1 x 3) + (1 x 5) + (1 x 1) + (-1) = 8. It is not less than 4, so the output is 1 (Yes).

(iii)

Sum = (1 x 3) + (0 x 5) + (0 x 1) + (-1) = 2. It is less than 4, so the output is 0 (No).

(iv)

All the players are fit, because it has the largest weight (5). A larger weight means the input has more effect on the decision.

C4.4Practice4 marks

A single neuron (perceptron) is used to decide: "Should Meena watch the film?" Each factor is an input: Yes = 1, No = 0. The weights are given in the table. The bias is 1. The output is 1 (Yes) if the weighted sum is 6 or more, otherwise 0 (No).

  1. Write the formula of the weighted sum.
  2. Calculate the weighted sum and the decision for Day 1.
  3. Calculate them for Day 2.
  4. Which factor matters the most to this neuron? Why?
Factor (input)WeightDay 1Day 2
Her exam is over1Yes (1)No (0)
Her friends are going5No (0)Yes (1)
The ticket is cheap4Yes (1)No (0)
Answer
(i)

Weighted sum = (x1 x w1) + (x2 x w2) + (x3 x w3) + bias

(ii)

Sum = (1 x 1) + (0 x 5) + (1 x 4) + (1) = 6. It is not less than 6, so the output is 1 (Yes).

(iii)

Sum = (0 x 1) + (1 x 5) + (0 x 4) + (1) = 6. It is not less than 6, so the output is 1 (Yes).

(iv)

Her friends are going, because it has the largest weight (5). A larger weight means the input has more effect on the decision.

C4.5Practice4 marks

A single neuron (perceptron) is used to decide: "Should the farmer water the field today?" Each factor is an input: Yes = 1, No = 0. The weights are given in the table. The bias is -2. The output is 1 (Yes) if the weighted sum is 3 or more, otherwise 0 (No).

  1. Write the formula of the weighted sum.
  2. Calculate the weighted sum and the decision for Day 1.
  3. Calculate them for Day 2.
  4. Which factor matters the most to this neuron? Why?
Factor (input)WeightDay 1Day 2
The soil is dry1Yes (1)No (0)
No rain is forecast5No (0)Yes (1)
The pump has power3No (0)Yes (1)
Answer
(i)

Weighted sum = (x1 x w1) + (x2 x w2) + (x3 x w3) + bias

(ii)

Sum = (1 x 1) + (0 x 5) + (0 x 3) + (-2) = -1. It is less than 3, so the output is 0 (No).

(iii)

Sum = (0 x 1) + (1 x 5) + (1 x 3) + (-2) = 6. It is not less than 3, so the output is 1 (Yes).

(iv)

No rain is forecast, because it has the largest weight (5). A larger weight means the input has more effect on the decision.

C4.6Practice4 marks

A single neuron (perceptron) is used to decide: "Should Kabir join the coding club?" Each factor is an input: Yes = 1, No = 0. The weights are given in the table. The bias is 1. The output is 1 (Yes) if the weighted sum is 4 or more, otherwise 0 (No).

  1. Write the formula of the weighted sum.
  2. Calculate the weighted sum and the decision for Day 1.
  3. Calculate them for Day 2.
  4. Which factor matters the most to this neuron? Why?
Factor (input)WeightDay 1Day 2
He is free on that day3Yes (1)No (0)
He likes coding1No (0)Yes (1)
His friend has joined2No (0)Yes (1)
Answer
(i)

Weighted sum = (x1 x w1) + (x2 x w2) + (x3 x w3) + bias

(ii)

Sum = (1 x 3) + (0 x 1) + (0 x 2) + (1) = 4. It is not less than 4, so the output is 1 (Yes).

(iii)

Sum = (0 x 3) + (1 x 1) + (1 x 2) + (1) = 4. It is not less than 4, so the output is 1 (Yes).

(iv)

He is free on that day, because it has the largest weight (3). A larger weight means the input has more effect on the decision.

C4.7Practice4 marks

A single neuron (perceptron) is used to decide: "Should the family go on a picnic?" Each factor is an input: Yes = 1, No = 0. The weights are given in the table. The bias is -1. The output is 1 (Yes) if the weighted sum is 4 or more, otherwise 0 (No).

  1. Write the formula of the weighted sum.
  2. Calculate the weighted sum and the decision for Day 1.
  3. Calculate them for Day 2.
  4. Which factor matters the most to this neuron? Why?
Factor (input)WeightDay 1Day 2
It is a holiday2No (0)Yes (1)
The weather is clear4Yes (1)No (0)
The car is available1Yes (1)No (0)
Answer
(i)

Weighted sum = (x1 x w1) + (x2 x w2) + (x3 x w3) + bias

(ii)

Sum = (0 x 2) + (1 x 4) + (1 x 1) + (-1) = 4. It is not less than 4, so the output is 1 (Yes).

(iii)

Sum = (1 x 2) + (0 x 4) + (0 x 1) + (-1) = 1. It is less than 4, so the output is 0 (No).

(iv)

The weather is clear, because it has the largest weight (4). A larger weight means the input has more effect on the decision.

C4.8Practice4 marks

A single neuron (perceptron) is used to decide: "Should Sana order food online?" Each factor is an input: Yes = 1, No = 0. The weights are given in the table. The bias is 1. The output is 1 (Yes) if the weighted sum is 4 or more, otherwise 0 (No).

  1. Write the formula of the weighted sum.
  2. Calculate the weighted sum and the decision for Day 1.
  3. Calculate them for Day 2.
  4. Which factor matters the most to this neuron? Why?
Factor (input)WeightDay 1Day 2
She is very hungry4Yes (1)No (0)
There is a discount1Yes (1)No (0)
Delivery is fast2No (0)Yes (1)
Answer
(i)

Weighted sum = (x1 x w1) + (x2 x w2) + (x3 x w3) + bias

(ii)

Sum = (1 x 4) + (1 x 1) + (0 x 2) + (1) = 6. It is not less than 4, so the output is 1 (Yes).

(iii)

Sum = (0 x 4) + (0 x 1) + (1 x 2) + (1) = 3. It is less than 4, so the output is 0 (No).

(iv)

She is very hungry, because it has the largest weight (4). A larger weight means the input has more effect on the decision.

C4.9Practice4 marks

A single neuron (perceptron) is used to decide: "Should the shop open on Sunday?" Each factor is an input: Yes = 1, No = 0. The weights are given in the table. The bias is -1. The output is 1 (Yes) if the weighted sum is 4 or more, otherwise 0 (No).

  1. Write the formula of the weighted sum.
  2. Calculate the weighted sum and the decision for Day 1.
  3. Calculate them for Day 2.
  4. Which factor matters the most to this neuron? Why?
Factor (input)WeightDay 1Day 2
Many customers are expected2Yes (1)No (0)
Staff is available3Yes (1)No (0)
It is a festival week4No (0)Yes (1)
Answer
(i)

Weighted sum = (x1 x w1) + (x2 x w2) + (x3 x w3) + bias

(ii)

Sum = (1 x 2) + (1 x 3) + (0 x 4) + (-1) = 4. It is not less than 4, so the output is 1 (Yes).

(iii)

Sum = (0 x 2) + (0 x 3) + (1 x 4) + (-1) = 3. It is less than 4, so the output is 0 (No).

(iv)

It is a festival week, because it has the largest weight (4). A larger weight means the input has more effect on the decision.

C4.10Practice4 marks

A single neuron (perceptron) is used to decide: "Should Dev go for the morning run?" Each factor is an input: Yes = 1, No = 0. The weights are given in the table. The bias is -1. The output is 1 (Yes) if the weighted sum is 4 or more, otherwise 0 (No).

  1. Write the formula of the weighted sum.
  2. Calculate the weighted sum and the decision for Day 1.
  3. Calculate them for Day 2.
  4. Which factor matters the most to this neuron? Why?
Factor (input)WeightDay 1Day 2
He slept well1No (0)Yes (1)
It is not raining4No (0)Yes (1)
His shoes are dry5Yes (1)No (0)
Answer
(i)

Weighted sum = (x1 x w1) + (x2 x w2) + (x3 x w3) + bias

(ii)

Sum = (0 x 1) + (0 x 4) + (1 x 5) + (-1) = 4. It is not less than 4, so the output is 1 (Yes).

(iii)

Sum = (1 x 1) + (1 x 4) + (0 x 5) + (-1) = 4. It is not less than 4, so the output is 1 (Yes).

(iv)

His shoes are dry, because it has the largest weight (5). A larger weight means the input has more effect on the decision.

C4.11Practice4 marks

A single neuron (perceptron) is used to decide: "Should the class go on the science trip?" Each factor is an input: Yes = 1, No = 0. The weights are given in the table. The bias is -1. The output is 1 (Yes) if the weighted sum is 4 or more, otherwise 0 (No).

  1. Write the formula of the weighted sum.
  2. Calculate the weighted sum and the decision for Day 1.
  3. Calculate them for Day 2.
  4. Which factor matters the most to this neuron? Why?
Factor (input)WeightDay 1Day 2
Parents have agreed4No (0)Yes (1)
The bus is booked5Yes (1)No (0)
The museum is open1Yes (1)No (0)
Answer
(i)

Weighted sum = (x1 x w1) + (x2 x w2) + (x3 x w3) + bias

(ii)

Sum = (0 x 4) + (1 x 5) + (1 x 1) + (-1) = 5. It is not less than 4, so the output is 1 (Yes).

(iii)

Sum = (1 x 4) + (0 x 5) + (0 x 1) + (-1) = 3. It is less than 4, so the output is 0 (No).

(iv)

The bus is booked, because it has the largest weight (5). A larger weight means the input has more effect on the decision.

C4.12Practice4 marks

A single neuron (perceptron) is used to decide: "Should Tara adopt the puppy?" Each factor is an input: Yes = 1, No = 0. The weights are given in the table. The bias is -1. The output is 1 (Yes) if the weighted sum is 4 or more, otherwise 0 (No).

  1. Write the formula of the weighted sum.
  2. Calculate the weighted sum and the decision for Day 1.
  3. Calculate them for Day 2.
  4. Which factor matters the most to this neuron? Why?
Factor (input)WeightDay 1Day 2
She has time for it2Yes (1)No (0)
Her parents agree5No (0)Yes (1)
There is space at home1Yes (1)No (0)
Answer
(i)

Weighted sum = (x1 x w1) + (x2 x w2) + (x3 x w3) + bias

(ii)

Sum = (1 x 2) + (0 x 5) + (1 x 1) + (-1) = 2. It is less than 4, so the output is 0 (No).

(iii)

Sum = (0 x 2) + (1 x 5) + (0 x 1) + (-1) = 4. It is not less than 4, so the output is 1 (Yes).

(iv)

Her parents agree, because it has the largest weight (5). A larger weight means the input has more effect on the decision.

CEEmployability skills: 4-mark practice answers (5 per unit)4 marks · 25 questions
CE.1Practice4 marks

Explain the communication cycle with a workplace example.

Answer

Sender - a sales manager has an idea (weekly target); Encoding - writes 'Target: 50 units this week'; Channel - e-mail; Receiver - the sales team; Decoding - team understands the target; Feedback - a member asks whether online orders count. Feedback completes the cycle and confirms understanding.

CE.2Practice4 marks

Differentiate between oral and written communication (any four points).

Answer

Oral uses spoken words (meetings, calls); written uses text (letters, e-mails). Oral is fast with immediate feedback; written feedback is slow. Oral has no permanent record; written gives a record and proof. Oral uses tone to add meaning; written needs good language skills and can be planned and edited.

CE.3Practice4 marks

What are the qualities of good feedback? Give an example of specific feedback.

Answer

Good feedback is specific, timely, polite, focused on the work not the person, balanced (good points and improvements) and actionable. Example: 'Your data is correct; add labels to the graph and write a conclusion.' It tells exactly what to keep and what to change.

CE.4Practice4 marks

Explain any four barriers to effective communication with solutions.

Answer

Physical - noise, poor network; use a quiet place and good equipment. Linguistic - different language, jargon; use simple words or a translator. Interpersonal - lack of trust, anger; stay calm and listen. Organisational - many levels, strict rules; clear channels and open-door policy. (Cultural and psychological barriers may also be written.)

CE.5Practice4 marks

Change into passive voice:

  1. Students planted trees.
  2. The manager signed the letter.
  3. Riya writes poems.
  4. They will open the shop.
Answer

(i) Trees were planted by students. (ii) The letter was signed by the manager. (iii) Poems are written by Riya. (iv) The shop will be opened by them.

CE.6Practice4 marks

What is stress? Write its signs and any four ways to manage it.

Answer

Stress is the feeling of pressure when facing a difficult situation. Signs: headache, poor sleep, irritation, avoiding work. Ways: time management, physical exercise, yoga and deep breathing, healthy food and sleep, talking to family and friends, hobbies and positive thinking. (Any four.)

CE.7Practice4 marks

Explain the four steps of time management.

Answer

Organise - list all tasks using a diary or app. Prioritise - do the most important and urgent work first. Control - avoid distractions like social media and say no politely. Track - check at the end of the day what was done and what is left.

CE.8Practice4 marks

Make a SMART goal for improving fitness and explain each letter.

Answer

'I will jog 20 minutes every morning, 5 days a week, and reduce my 1 km time from 8 to 6 minutes by 31 March.' Specific - jogging; Measurable - 20 minutes and running time; Achievable - possible daily; Realistic - fits my routine; Time-bound - by 31 March.

CE.9Practice4 marks

Explain the urgent-important matrix with examples.

Answer

Important and urgent - do now (assignment due tomorrow). Important but not urgent - plan (revision for next month's exam). Urgent but not important - delegate or do quickly (some calls). Neither urgent nor important - avoid (endless scrolling). It helps us prioritise.

CE.10Practice4 marks

Explain the ABC model of stress with an example.

Answer

A - Adversity, the event (low marks in a test). B - Belief, our thought about it ('I am a failure'). C - Consequence, our feeling and action (sadness, stops studying). Changing the belief to 'I need more practice' changes the consequence to extra practice and better marks.

CE.11Practice4 marks

What is an operating system? Explain any four functions.

Answer

An operating system is system software that manages hardware and software and acts as an interface between the user and the computer (Windows, Linux, Android). Functions: process management, memory management, file management, device management through drivers, security with user accounts and passwords, and providing a user interface. (Any four.)

CE.12Practice4 marks

Differentiate between GUI and CLI.

Answer

GUI (Graphical User Interface) uses icons, windows and menus operated with a mouse or touch; it is easy for beginners (Windows, Android). CLI (Command Line Interface) needs typed text commands using the keyboard; it is faster for experts but harder to learn (Linux terminal, MS-DOS).

CE.13Practice4 marks

Explain virus, worm, Trojan horse and ransomware.

Answer

Virus - attaches to files and harms data when the file runs. Worm - copies itself and spreads automatically through networks. Trojan horse - looks useful but harms when run; does not copy itself. Ransomware - locks or encrypts files and demands money to unlock them.

CE.14Practice4 marks

What is phishing? How can we protect ourselves from it?

Answer

Phishing is a fake e-mail, SMS or website pretending to be a trusted organisation to steal passwords, OTPs or bank details. Protection: never share OTP/PIN; check the sender and URL; do not click unknown links; use two-factor authentication; report it to cybercrime.gov.in or helpline 1930.

CE.15Practice4 marks

Write any four computer care tasks and their purpose.

Answer

Clean the keyboard and vents - prevents dust damage and overheating. Install updates - fixes security holes. Run antivirus scans - removes malware. Back up data - protects against loss. Delete unwanted files - keeps the computer fast. Use a UPS - protects from power cuts.

CE.16Practice4 marks

Explain the role of entrepreneurship in society.

Answer

Entrepreneurship creates jobs and self-employment, brings new products and services, lowers prices through competition, develops villages and small towns, increases exports and national income, and solves social problems through social enterprises, e.g. low-cost sanitary pad machines run by rural women.

CE.17Practice4 marks

Explain the five functions of an entrepreneur with an example.

Answer

Decision making - what, where and how to produce; managing - planning and controlling daily work; dividing income - paying wages, rent and suppliers; taking risk - investing without certainty of profit; innovation - new methods. Example: a bakery owner decides on eggless cakes, hires bakers, pays staff, takes a loan for an oven and starts online orders.

CE.18Practice4 marks

Differentiate between wage employment and self-employment.

Answer

Wage employment means working for others for a fixed salary with less risk, following the employer's decisions. Self-employment means running one's own business; income depends on profit, there is more risk, but there is freedom to decide and the chance to create jobs for others.

CE.19Practice4 marks

Explain the stages of the entrepreneurship process.

Answer

Self-analysis - know interests and capacity for risk; identify an opportunity - unmet needs; generate and select an idea; prepare a business plan - product, customers, costs, profit; arrange finance - savings, loans, schemes; launch small and test; manage and grow.

CE.20Practice4 marks

A tailor buys cloth for Rs 8,000 and spends Rs 1,500 on thread and electricity. She sells shirts for Rs 13,000. Find the total cost and profit, and name two government schemes that help such entrepreneurs.

Answer

Total cost = 8,000 + 1,500 = Rs 9,500. Profit = 13,000 - 9,500 = Rs 3,500. Schemes: PM Mudra Yojana, Startup India, Stand-Up India, Skill India. (Any two.)

CE.21Practice4 marks

What is sustainable development? Explain its three dimensions.

Answer

Sustainable development meets the needs of the present without compromising the ability of future generations to meet their own needs. Economic - jobs, income and growth; Social - education, health, equality; Environmental - clean air, water and biodiversity. All three must be balanced.

CE.22Practice4 marks

Explain any four problems related to sustainable development and their solutions.

Answer

Water shortage - rainwater harvesting, drip irrigation. Energy crisis - solar, wind, biogas. Soil degradation - organic farming, crop rotation. Air pollution - public transport, EVs. Waste - reduce, reuse, recycle and segregate.

CE.23Practice4 marks

Name any eight Sustainable Development Goals.

Answer

No poverty; zero hunger; good health and well-being; quality education; gender equality; clean water and sanitation; affordable and clean energy; decent work and economic growth; climate action; life below water; life on land. (Any eight.)

CE.24Practice4 marks

What are green jobs? Give four examples.

Answer

Green jobs are jobs that help protect or restore the environment. Examples: solar technician, EV mechanic, recycling worker, organic farmer, green building designer, water conservationist. (Any four.)

CE.25Practice4 marks

Explain how students can contribute to sustainable development at home, at school and in society.

Answer

At home - turn off taps, lights and fans; use cloth bags; repair before replacing. At school - eco-club, composting pit, both sides of paper, no food waste. In society - cleanliness and plantation drives, public transport, support local products, spread awareness.

CVComputer vision: more 4-mark answers4 marks · 5 questions
CV.1Practice4 marks

Explain the difference between grayscale and RGB images. How many values are needed to store a 100 x 50 colour image?

Answer

A grayscale image has one value per pixel from 0 (black) to 255 (white). An RGB image has three values per pixel - red, green and blue - each 0 to 255, mixed to make colours. A 100 x 50 image has 5,000 pixels; in RGB it needs 3 x 5,000 = 15,000 values.

CV.2Practice4 marks

Explain the four computer-vision tasks with examples.

Answer

Image classification - one label for the whole image (dog). Classification + localisation - label and a box for a single object. Object detection - labels and boxes for many objects (cars and people in a street). Instance segmentation - exact pixel outline of each object (each person in a crowd).

CV.3Practice4 marks

Explain the layers of a convolutional neural network.

Answer

Convolution layer - applies kernels to find features and makes feature maps; ReLU layer - replaces negative values with zero; Pooling layer - reduces the size of feature maps (e.g. max pooling) and makes the network faster; Fully connected layer - combines features and gives final class probabilities.

CV.4Practice4 marks

Perform convolution of the 3 x 3 image patch [[1, 2, 1], [0, 0, 0], [3, 3, 3]] with the kernel [[1, 1, 1], [0, 0, 0], [-1, -1, -1]]. What does the result indicate?

Answer

Multiply element by element and add: (1 + 2 + 1) + 0 + (-3 - 3 - 3) = 4 - 9 = -5. A large magnitude indicates a horizontal edge, i.e. a change in brightness from the top row to the bottom row.

CV.5Practice4 marks

Write any four applications of computer vision and two ethical concerns.

Answer

Face unlock and attendance; self-driving cars; medical image analysis; number-plate recognition at tolls; crop disease detection; Google Lens. Concerns: privacy and surveillance without consent; bias against some groups; deepfakes.

10

Flashcards for one-mark questions

Tap an option to check your answer at once; your score is saved

Quick quiz: 10 MCQs

Ten multiple-choice questions picked at random. Tap an option to answer. You get your score at the end.

11

Practice question papers

Ten ready papers with blueprints and a random paper maker, all on the design of the CBSE Sample Question Paper 2026-27

10 Sample Question Papers (CBSE pattern, 50 marks, 2 hours)

Each paper has 21 questions for 50 marks and 2 hours, with the same choices as the CBSE Sample Question Paper 2026-27: any 4 of 6 in Q1, any 5 of 6 in Q2 to Q5, any 3 of Q6 to Q10, any 4 of Q11 to Q16 and any 3 of Q17 to Q21. Every paper has numericals in Section A, and a confusion matrix, a Bag of Words and a neuron numerical in Q17 to Q21. No question is repeated: the ten papers use 460 different questions.

Or make a fresh random paper

Marking scheme, download and timer

Blueprint only:
02:00:00

Choose Paper 1 to Paper 10, or make a random paper. The blueprint and the paper open here.

12

Last-day checklist

Read this the evening before and again at the exam centre gate

Before the paper

  • Write the four formulas once: accuracy, precision, recall, F1.
  • Do one full Bag of Words and TF-IDF table from memory.
  • Revise: six stages of the project cycle, types of frameworks, types of learning, four CV tasks, steps of text normalisation.
  • Revise the five Employability Skills tables.

In the first 10 minutes

  • In Q1 to Q5, tick the parts you are sure of: 4 of 6 in Q1, 5 of 6 in the others.
  • From Q17 to Q21 choose three. The two numericals give full marks if the working is right.

While writing

  • Attempt the questions of a section in order.
  • In numericals, write the formula, put the values, then the answer.
  • Draw the confusion matrix and the document vector table neatly with a pencil.
Marks katne wali galti
  • Writing FN in place of FP in precision
  • Forgetting to count punctuation marks as tokens
  • Writing IDF as DF / N
  • Answering more parts than asked: only the first ones are checked
  • Leaving the 4-mark numericals