Class XI Artificial Intelligence (843)

Minimum Learning Support Material · CBSE 2026-27

Notes · Numericals with working · 1026 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

Marks, pattern and blueprint for Class XI AI (843), session 2026-27

Unit-wise marks of Part B (40)

UnitNameTheory hrsPractical hrsMarks
1Introduction: AI for Everyone4104
2Unlocking your Future in AI6105
3Python Programming10205
4Introduction to Capstone Project6155
5Data Literacy - Data Collection to Data Analysis6156
6Machine Learning Algorithms9156
7Leveraging Linguistics and Computer Science5105
8AI Ethics and Values454
Part B total5010040
Part A: Employability Skills (2 marks per unit)10

Practical and project work (50)

ComponentMarks
IBM SkillsBuild / other industry certification5
Capstone project12
Bootcamp / internship / other start-ups7
Practical file10
Lab test / written exam (based on the practical file)10
Viva voce (practical file and project)6

Pattern of the theory paper (50 marks, 2 hours)

CBSE publishes a sample paper for Class XII (843) only. Schools set the Class XI paper on the same design, so this kit follows that pattern with the Class XI units.

QuestionWhat comesAttemptMarks
Q16 objective questions on Employability Skillsany 41 x 4 = 4
Q2 to Q56 objective questions each from the eight AI units (MCQ, True/False, Assertion-Reason, small numericals, Python output)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 each (may be a numerical or Python output)any 4 of 62 x 4 = 8
Q17 to Q21AI units, 50 to 80 words each: Python program, design thinking case, statistics/matrix numerical, ML numerical, NLP caseany 3 of 54 x 3 = 12

Blueprint used in this kit

Each cell shows the number of questions given from that unit. Every unit gets three one-mark questions; the long questions cover the practical-heavy units.

Unit1mark2marks4marksTotalquestions
Part ACommunication Skills-III11-2
Part ASelf-Management Skills-III21-3
Part AICT Skills-III11-2
Part AEntrepreneurial Skills-III11-2
Part AGreen Skills-III11-2
Part BUnit 1: Introduction: AI for Everyone31-4
Part BUnit 2: Unlocking your Future in AI31-4
Part BUnit 3: Python Programming3115
Part BUnit 4: Introduction to Capstone Project3115
Part BUnit 5: Data Literacy - Data Collection to Data Analysis3115
Part BUnit 6: Machine Learning Algorithms3-14
Part BUnit 7: Leveraging Linguistics and Computer Science3-14
Part BUnit 8: AI Ethics and Values31-4
Questions given3011546
To be answered247334
Marks24141250

Questions to expect

1-2 marksTypes of AI, evolution timeline, domainsUnit 1
4 marksPython program: if, loops, lists, NumPy, PandasUnit 3
4 marksDesign thinking stages, empathy map, 5W1HUnit 4
4 marksMean, variance, SD; matrices; levels of measurementUnit 5
4 marksCorrelation r, regression line, k-NN, k-meansUnit 6
2-4 marksPhases of NLP, chatbot, five pillars of ethics, biasUnits 7-8
2

Pass plan in three steps

Where the 50 marks come from, easiest first

Step 1 · 10 marksEmployability Skills-III: communication styles, grooming and teamwork, time management, word processor features, entrepreneurial values and attitudes, green economy sectors.
Step 2 · 16 marksSure numericals and programs: mean-variance-SD, matrix operations, correlation and regression, k-NN, k-means, and one Python program.
Step 3 · 24 marksTheory of eight units: AI types and history, careers, Python tokens and data types, design thinking, data literacy, ML types, NLP phases, ethics pillars and bias.
Marks milne wali baat
  • Write the formula first in every numerical; show the table of working (x - mean, xy, x^2).
  • Draw the design thinking cycle, empathy map, NLP phases and the five pillars - diagrams earn marks.
  • Keep 2-mark answers to 20-30 words and 4-mark answers to 50-80 words.
Common mistake
  • Variance is the average of SQUARED deviations; SD is its square root.
  • AB is defined only when columns of A = rows of B; AB is usually not equal to BA.
  • k-NN is supervised (k = neighbours); k-means is unsupervised (k = clusters).
  • Correlation is not causation.
3

Part A: Employability skills-III

10 marks · five units, 2 marks each · detailed chapters

Unit 1: Communication Skills-III

1.1 Effective communication

Communication is the exchange of information, ideas and feelings so that the receiver understands exactly what the sender means. At Level III we go deeper into methods, communication styles and writing skills - the skills an employee uses daily to write e-mails, attend meetings and deal with customers.

Communication process
1Sender
➜
2Encodes the idea
➜
3Message via channel
➜
4Receiver decodes
➜
5Feedback
↻ back to step 1 — it is a cycle

1.2 Methods of communication

Methods
Communication
Verbal - spoken
Verbal - written
Non-verbal - body and voice
Visual - images and symbols

Verbal communication

Oral (spoken)Written
Examplesmeetings, phone calls, presentations, interviewsletters, e-mails, reports, notices, chat
Meritsfast, personal, instant feedback, tone adds meaningpermanent record, can be planned and edited, legal proof
Limitsno record, may be forgotten, unplanned wordsslower, needs good language, feedback delayed

Non-verbal communication

Non-verbal cues often tell more than words.

Elements of non-verbal communication
😊
Facial expressions

happiness, surprise, anger, confusion

✋
Gestures

waving, pointing, thumbs-up

🧍
Posture

upright = confident; slouched = bored

👀
Eye contact

confidence, interest, honesty

🤝
Touch

handshake, pat on the shoulder

↔️
Space (proxemics)

personal distance in conversation

🔊
Paralanguage

tone, pitch, volume, pace, pauses

👔
Appearance

dress and grooming send messages too

Personal space zoneDistance (approx.)Used for
Intimateup to 0.5 mfamily, close friends
Personal0.5 to 1.2 mfriends, conversation
Social1.2 to 3.5 mcolleagues, customers, interviews
Publicmore than 3.5 mspeeches, lectures

Visual communication

Infographics, charts, graphs, maps, signs, icons, logos and videos. They make data easy to understand: a sales graph shows growth faster than a table of numbers.

1.3 Communication styles

Four communication styles
🗣️
Assertive (best)

clear, honest, respectful; "I" statements; listens

😠
Aggressive

loud, dominating, blaming; ignores others' feelings

😏
Passive-aggressive

hides anger; sarcasm, sulking, silent treatment

🙇
Submissive (passive)

gives in, avoids conflict, ignores own needs

Situation: a colleague takes credit for your workResponse
Submissivesays nothing, feels hurt
Aggressive"You are a cheat!" in front of everyone
Passive-aggressive"Congratulations on *your* great idea," with sarcasm
Assertive"I prepared the data for this report. Please mention my part when you present it."
Assertive formula

"I feel ... when ... because ... I would like ..." - e.g. "I feel worried when the report is late because the client is waiting. I would like it by 4 p.m."

1.4 Writing skills: sentence and phrase

A sentence is a group of words with a subject and a verb that gives complete sense: "The bell rang." A phrase is a group of words without complete sense and usually without a subject-verb pair: "after the bell", "a very tall building".

Parts of a sentence

PartMeaningExample: *Riya wrote a poem.*
Subjectwho or what the sentence is aboutRiya
Predicatewhat is said about the subject (verb + rest)wrote a poem
Objectreceives the actiona poem

Kinds of sentences

KindPurposeExample
DeclarativestatementThe meeting is at 3 p.m.
InterrogativequestionHave you sent the report?
Imperativecommand / requestClose the door, please.
Exclamatorystrong feelingHow lovely the garden is!

1.5 Parts of speech and articles

Parts of speech
Words
Noun
Pronoun
Verb
Adjective
Adverb
Preposition
Conjunction
Interjection
PartFunctionExample
NounnameKavya, Mumbai, team, honesty
Pronounreplaces a nounshe, it, they, who
Verbaction or statebuild, is, seem
Adjectivedescribes a nounurgent task, three files
Adverbdescribes a verb / adjective / adverbquickly, very, always
Prepositionrelation of place, time, directionat, on, in, under, towards
Conjunctionjoinsand, but, because, although
Interjectionsudden feelingOh! Alas! Bravo!

Articles

ArticleUseExamples
abefore a consonant sounda book, a university (yoo sound), a one-rupee coin
anbefore a vowel soundan apple, an hour (silent h), an MBA
thea particular or unique thingthe Sun, the report you sent, the Ganga
Common mistake

The choice of a/an depends on the sound, not the letter: *an honest man*, *a European city*.

1.6 Writing a paragraph

Structure of a paragraph
1Topic sentence - the main idea
➜
2Supporting sentences - facts, examples, reasons
➜
3Concluding sentence - sums up
Model paragraph

Topic sentence: Regular exercise improves students' performance. Supporting: It increases blood flow to the brain, which improves concentration. It reduces stress before exams. Students who play sports also learn teamwork. Conclusion: Therefore, schools should include at least 30 minutes of physical activity every day.

Tips: one idea per paragraph, use linking words (firstly, moreover, however, therefore), keep sentences short, check spelling and punctuation.

1.7 Pronunciation and speaking skills

  • Speak at a moderate pace; pause between ideas.
  • Stress the right syllable: *PHO-to-graph* but *pho-TOG-ra-pher*.
  • Practise difficult sounds and record yourself.
  • Use a dictionary app to hear correct pronunciation.

1.8 Exam-ready answers

Q. Differentiate between a sentence and a phrase. (2 marks)

A sentence has a subject and a verb and gives complete meaning, e.g. "The train arrived late." A phrase is a group of words without complete meaning, e.g. "on the platform".

Q. Explain the four communication styles with examples. (4 marks)

Assertive - clear and respectful ("Please let me finish my point"). Aggressive - loud and blaming ("You never listen!"). Passive-aggressive - indirect anger or sarcasm ("Fine, do whatever you like"). Submissive - gives in and hides own needs ("It's okay, whatever you say"). Assertive is the most effective style.

Unit 2: Self-Management Skills-III

2.1 Self-management at Level III

Self-management means taking charge of our own behaviour, appearance, learning and time. At this level we study personal grooming, self-exploration, teamwork and time management - the habits that make a person job-ready.

Self-management skills
Self-management
Appearance and grooming
Self-exploration
Teamwork
Time management
Self-confidence
Positive attitude

2.2 Appearance and grooming

Our appearance creates the first impression - in an interview, the first few seconds matter. Grooming is taking care of personal cleanliness and dressing appropriately for the occasion.

Personal grooming checklist
🚿
Body

daily bath, deodorant, clean teeth

💇
Hair

clean, trimmed and neatly combed

💅
Nails

short and clean

👔
Clothes

clean, ironed, suitable for the place

👞
Shoes

polished and clean; matching socks

🧍
Posture

stand straight, smile, make eye contact

OccasionAppropriate dress
Schoolclean, ironed uniform, ID card, polished shoes
Interviewformal: shirt and trousers / salwar suit or sari, formal shoes
Workplace (office)business formal or business casual as per rules
Factory / labsafety gear: apron, gloves, helmet, safety shoes
Partysmart casual
Remember

Grooming is about being clean, neat and appropriate, not about expensive clothes.

2.3 Self-exploration

Self-exploration is discovering who we are - our interests, abilities, values, personality and goals - so that we can choose the right career and grow.

Ways to explore yourself
1Reflect and keep a journal
➜
2Ask for feedback
➜
3Take interest and aptitude tests
➜
4Try new activities
➜
5Set goals from what you learn
MethodHow it helps
Reflection and journalingwriting daily thoughts shows patterns in our behaviour
Feedback from othersteachers, parents and friends see things we miss
Interest and personality testssuggest suitable careers
Trying new activitiesclubs, sports, volunteering reveal hidden talents
SWOT analysisstrengths, weaknesses, opportunities, threats
Self-exploration in practice

Kabir thought he liked only computers. After volunteering at a school event, he found he enjoyed organising and talking to people. A career test showed strengths in both technology and communication. He now plans to become a product manager - a role that mixes both.

2.4 Teamwork

A team is a group of people working together towards a common goal. Most jobs require teamwork - surgeons, cricket teams, software teams, event managers.

Team building factors

What builds a strong team
🎯
Clear goal

everyone knows what to achieve

🧩
Defined roles

each member knows their job

🤝
Trust

members rely on each other

💬
Communication

open and regular sharing

🧭
Leadership

guides, motivates and decides

🙌
Recognition

appreciating everyone's effort

Teamwork factors (how members behave)

FactorMeaning
Cooperationhelping one another
Respectvaluing others' views and differences
Sharing credit"we did it", not "I did it"
Accountabilityowning one's part of the work
Conflict resolutiondiscussing disagreements calmly

Stages of team development (Tuckman)

Team stages
1Forming - getting to know
➜
2Storming - conflicts
➜
3Norming - rules and trust
➜
4Performing - working well
➜
5Adjourning - task ends

2.5 Time management

Time management
1Set goals
➜
2Prioritise
➜
3Schedule
➜
4Execute without distraction
➜
5Review

The urgent-important (Eisenhower) matrix

UrgentNot urgent
ImportantDo first: project due today, exam tomorrowSchedule: revision plan, exercise, skill learning
Not importantDelegate / minimise: some calls, routine requestsEliminate: aimless scrolling, gossip

Time management tips:

  • Make a daily to-do list and a weekly schedule.
  • Break big tasks into small parts.
  • Use the Pomodoro method: 25 minutes focused work + 5 minutes break.
  • Avoid procrastination (postponing work); start with a 2-minute action.
  • Balance work, rest and leisure.
A student's evening plan

5:00-6:00 games; 6:00-7:30 study the toughest subject; 7:30-8:00 dinner; 8:00-9:00 homework; 9:00-9:30 revise the day's notes; 9:30-10:00 relax, no phone in bed. The plan has priorities, breaks and enough sleep.

2.6 Exam-ready answers

Q. Write any four factors of team building. (2 marks)

Clear goal, defined roles, trust, open communication, good leadership and recognition of effort. (Any four.)

Q. What is personal grooming? Write a grooming checklist for an interview. (4 marks)

Personal grooming means keeping the body clean and dressing neatly and suitably. Checklist: bath and clean teeth; trimmed hair and nails; clean, ironed formal clothes; polished shoes; minimal accessories; carry documents in a file; upright posture and smile.

Unit 3: ICT Skills-III

3.1 Word processing

A word processor is application software used to create, edit, format, save and print documents such as letters, reports, resumes and notices. Examples: LibreOffice Writer (free and open source, saves .odt), Microsoft Word (.docx) and Google Docs (online).

Why use a word processor?
✍️
Easy editing

insert, delete, move text anytime

🎨
Formatting

fonts, colours, alignment, styles

🔍
Spell check

finds spelling and grammar mistakes

📋
Copy-paste

reuse text quickly

🖼️
Pictures and tables

add images, tables and charts

📤
Share

save as PDF, e-mail, print

3.2 The Writer window

PartUse
Title barshows the document name
Menu barFile, Edit, View, Insert, Format, Styles, Table, Tools
Standard toolbarNew, Open, Save, Print, Undo
Formatting toolbarfont, size, bold, alignment, bullets
Rulermargins and indents
Work areawhere we type
Status barpage number, word count, language, zoom

3.3 Basic file operations

Working with a document
1New (Ctrl+N)
➜
2Type and edit
➜
3Save (Ctrl+S)
➜
4Format
➜
5Check spelling (F7)
➜
6Print (Ctrl+P) or Export as PDF
TaskShortcut / menu
New documentCtrl + N
OpenCtrl + O
SaveCtrl + S
Save As (new name or format)Ctrl + Shift + S
PrintCtrl + P
Export as PDFFile > Export as PDF
CloseCtrl + W

3.4 Editing text

ActionShortcut
Select allCtrl + A
Copy / Cut / PasteCtrl + C / X / V
Undo / RedoCtrl + Z / Ctrl + Y
FindCtrl + F
Find and ReplaceCtrl + H
Delete a character to the left / rightBackspace / Delete

3.5 Formatting text and paragraphs

Formatting options
Formatting
Font face
Font size
Bold Ctrl+B
Italic Ctrl+I
Underline Ctrl+U
Font colour
Highlight
Superscript and subscript

Paragraph alignment

AlignmentShortcutUse
LeftCtrl + Lnormal text
CentreCtrl + Eheadings, titles
RightCtrl + Rdate, address in letters
JustifyCtrl + Jneat text with straight edges on both sides (books, reports)

Other paragraph settings: line spacing (single, 1.5, double), indentation, spacing before and after, borders and shading.

Superscript and subscript

x^2 uses superscript (Ctrl + Shift + P in Writer); H2O uses subscript (Ctrl + Shift + B).

3.6 Lists, tables and pictures

  • Bullets and numbering: Format > Bullets and Numbering - bullets for unordered points, numbers for steps.
  • Tables: Table > Insert Table (Ctrl + F12); choose rows and columns; merge or split cells; add borders.
  • Pictures: Insert > Image; set text wrapping (right-click > Wrap): none, page wrap, optimal, before, after, through.

3.7 Page setup, header and footer

FeatureWhereUse
Page size and orientationFormat > Page StyleA4, Letter; portrait / landscape
MarginsFormat > Page Style > Pagespace around text
Header and footerInsert > Header and Footertext repeated on every page: school name, title
Page numbersInsert > Field > Page Numbernumbering pages
Page breakCtrl + Enterstart a new page

3.8 Proofing tools

Tools that improve writing
🔤
Spelling and grammar

F7; red wavy line = spelling error

✏️
AutoCorrect

fixes common errors as you type (teh -> the)

📚
Thesaurus

synonyms (Ctrl + F7)

🔢
Word count

Tools > Word Count

3.9 Advanced features

  • Styles: apply the same heading format everywhere; helps make a table of contents automatically.
  • Mail merge: one letter sent to many people with different names and addresses from a list.
  • Track changes: shows edits made by others for review.
  • Templates: ready designs for resumes, letters and certificates.
Making a notice

Title "Science Exhibition" - centre, bold, 20 pt. Body text - justified, 12 pt, 1.5 line spacing. Date - right aligned. Insert a picture with square wrap. Add the school name in the header. Export as PDF and share.

3.10 Checking and sharing the document

Before you share
1Spell check (F7)
➜
2Word count
➜
3Print preview
➜
4Save in the right format (.odt, .docx, .pdf)
➜
5Share by e-mail or cloud
FormatWhen to use
.odtdefault LibreOffice format, editable
.docxto share with MS Word users
.pdffinal copy that looks the same everywhere; not easily edited
.txtplain text without formatting
Useful Writer shortcuts
🅱️
Ctrl + B / I / U

bold, italic, underline

📄
Ctrl + Enter

page break

🔎
Ctrl + F / Ctrl + H

find / find and replace

↩️
Ctrl + Z / Ctrl + Y

undo / redo

🖨️
Ctrl + P

print

🔤
Shift + F3

change case

3.10 Exam-ready answers

Q. What is the use of Find and Replace? Give its shortcut. (2 marks)

Find and Replace searches for a word or phrase in a document and replaces it with another, one by one or all at once. Shortcut: Ctrl + H.

Q. Explain any four text-alignment options with shortcuts. (4 marks)

Left (Ctrl + L) - text starts at the left margin; Centre (Ctrl + E) - text in the middle, used for headings; Right (Ctrl + R) - text along the right margin, used for dates; Justify (Ctrl + J) - text spread evenly to both margins for a neat look.

Unit 4: Entrepreneurial Skills-III

4.1 Entrepreneurship: recap

An entrepreneur identifies an opportunity, organises resources, takes risks and creates value by starting a business. At Level III we study the values, attitudes and competencies that make an entrepreneur successful.

The entrepreneurial journey
1Opportunity
➜
2Idea
➜
3Plan
➜
4Resources
➜
5Launch
➜
6Growth
➜
7Impact on society

4.2 Entrepreneurial values

Values are beliefs that guide our behaviour. Entrepreneurial values guide how a person runs a business.

Core entrepreneurial values
💡
Innovativeness

new products, services and methods

🦅
Independence

takes own decisions and responsibility

🏆
Outstanding performance

sets high standards of quality

🛠️
Respect for work

no work is small or big

⚖️
Honesty and integrity

fair dealings with customers and workers

🌱
Social responsibility

cares for society and environment

Values in action

A small dhaba owner in Punjab insists on clean kitchens, fresh food and fair wages, even when costs rise. Customers trust him and his business grows into a chain. Outstanding performance and honesty became his brand.

4.3 Entrepreneurial attitudes

An attitude is our way of thinking and feeling about something, which shows in behaviour.

AttitudeMeaningExample
Uses imagination and intuitionthinks creatively; trusts gut feeling with factsdesigns eco-friendly packaging
Takes moderate (calculated) risksneither reckless nor afraidtests a product in one area before expanding
Enjoys freedom of expression and actionlikes to decide and act independentlyleaves a job to start own studio
Seeks economic opportunitiessees business chances in problemsonline tuition during lockdown
Believes he/she can change the environmentpositive, proactivestarts a waste-recycling startup
Analyses situations and plans actionstudies the market before actingmarket survey before opening a cafe
Gets involved in activitieshands-on; learns by doingworks on the shop floor with staff

4.4 Entrepreneurial competencies

Competencies are skills and abilities needed to perform well.

Competencies
Entrepreneur
Decisiveness
Initiative
Interpersonal skills
Perseverance
Organisational skills
Problem solving
Financial literacy
CompetencyMeaning
Decisivenesstakes quick, clear decisions
Initiativestarts things without waiting
Interpersonal skillsgets along with customers, staff, suppliers
Perseverancecontinues despite failure
Organisational skillsplans and arranges resources and time

4.5 Types of entrepreneurs

TypeDescriptionExample
Innovativeintroduces new ideas and technologyan AI-based farming app
Imitativecopies successful ideas and adapts thema local food-delivery app
Fabiancautious; changes only when necessarya traditional family business
Droneresists change even with lossesa shop refusing digital payments
Socialsolves a social problem while earninglow-cost solar lamps for villages

4.6 Generating business ideas

Idea generation
1Observe problems around you
➜
2Brainstorm many ideas
➜
3Screen - is it practical?
➜
4Talk to customers
➜
5Choose and test the best idea

Sources of ideas: personal hobbies and skills, problems faced by people, changing trends (health, online shopping), government schemes, travel and reading, and feedback from customers.

Idea from a problem

Students waste time searching for second-hand books. Meera starts a WhatsApp group and later an app where seniors sell old books to juniors at half price. It saves money, reuses books (green value) and earns her a small commission.

4.7 Barriers and how to overcome them

BarrierSolution
Lack of moneysavings, family, bank loans, Mudra loans, crowdfunding
Fear of failurestart small, learn from mistakes
Lack of knowledgetraining, mentors, online courses
Competitionbetter quality, unique feature, good service
Legal formalitiestake help from experts; use government portals (Udyam registration)

4.8 Case study: an entrepreneurial journey

Case study: Zomato

In 2008, Deepinder Goyal and Pankaj Chaddah noticed that colleagues wasted time looking for restaurant menus. They scanned menus and put them online as "Foodiebay". The idea grew into Zomato, offering restaurant reviews and later food delivery in hundreds of cities. Values seen: innovativeness (a new solution), outstanding performance (constant improvement) and calculated risk (leaving secure jobs).

Growth of an enterprise
Market leader
Expansion to new places and products
Stable profits
Early customers and feedback
Idea and launch

4.8 Exam-ready answers

Q. Write any four entrepreneurial values. (2 marks)

Innovativeness, independence, outstanding performance, respect for work, honesty and social responsibility. (Any four.)

Q. Explain any four entrepreneurial attitudes with examples. (4 marks)

Taking calculated risks - testing in one market first; seeking economic opportunities - starting online classes during lockdown; analysing and planning - surveying before opening a cafe; believing one can change the environment - starting a recycling unit. Others: imagination and intuition, freedom of action, getting involved.

Unit 5: Green Skills-III

5.1 Green economy

A green economy is an economy that is low-carbon, resource-efficient and socially inclusive (UNEP). It aims at economic growth and jobs while reducing pollution and protecting nature. It is the economic path to sustainable development.

Brown vs green economy
Brown (traditional)
  • depends on coal and oil
  • high pollution and waste
  • uses resources faster than nature can renew
VS
Green
  • renewable energy
  • low emissions and recycling
  • efficient and fair use of resources
Features of a green economy
Green economy
Low carbon
Resource efficient
Socially inclusive
Green jobs
Clean technology
Protects biodiversity

5.2 Main sectors of the green economy

Green sectors
♻️
E-waste management

safe collection and recycling of old electronics

🚇
Green transportation

metro, CNG buses, electric vehicles, cycling

☀️
Renewable energy

solar, wind, small hydro, biomass

🏢
Green construction

GRIHA / LEED buildings, natural light

💧
Water management

rainwater harvesting, drip irrigation, recycling

🌾
Sustainable agriculture

organic farming, crop rotation

SectorGreen practiceGreen job
Energyrooftop solar, wind farmssolar PV installer, wind technician
TransportEVs, charging stationsEV service technician
Constructioninsulation, solar water heatersgreen building auditor
Wastesegregation, composting, e-waste recyclingwaste-management supervisor
Agricultureorganic manure, bio-pesticidesorganic farming advisor
Waterwatershed managementwater-quality analyst

5.3 Policy initiatives in India

InitiativeAim
National Action Plan on Climate Change (NAPCC), 2008eight national missions on solar energy, energy efficiency, sustainable habitat, water, Himalayan ecosystem, green India, sustainable agriculture, strategic knowledge
National Solar Missionlarge-scale solar power
Swachh Bharat Missionsanitation and waste management
FAME Indiafaster adoption of electric vehicles
UJALALED bulbs to save electricity
Jal Jeevan Mission / Jal Shakti Abhiyantap water for every home; water conservation
Mission LiFELifestyle for Environment - mindful use of resources

5.4 Stakeholders in the green economy

Who makes the green economy happen
1Government - policies and laws
➜
2Industry - clean technology
➜
3Banks - green finance
➜
4NGOs and communities - awareness
➜
5Consumers - green choices
➜
6Research bodies - innovation
StakeholderRole
Governmentmakes laws, gives subsidies (e.g. for solar pumps), sets standards
Private companiesadopt clean technology, reduce waste, CSR projects
NGOsawareness, community projects, protecting rights
Communitiesprotect local forests and water bodies
Consumersbuy energy-efficient and eco-friendly products
Banksgive loans for green projects (green bonds)
Research institutionsdevelop new clean technologies

5.5 Greening of different sectors

Greening sectors
🏙️
Cities

green spaces, public transport, waste plants

🏨
Tourism

eco-tourism, homestays, no plastic

🏭
Industry

cleaner production, effluent treatment

🌲
Forests

afforestation, community forests

🐟
Fisheries

no overfishing, protected breeding seasons

🚜
Agriculture

natural farming, solar pumps

5.6 Green skills and green jobs

Green skills are the knowledge, abilities, values and attitudes needed to live in, develop and support a sustainable and resource-efficient society. Green jobs protect or restore the environment while providing decent work.

Green career path

Arjun completes a course in solar PV installation under Skill India's Skill Council for Green Jobs (SCGJ). He installs rooftop solar panels for homes under a government subsidy scheme. He earns well, homes save electricity bills, and the country reduces coal use - benefits to him, society and the environment.

5.7 Our role

  • Choose products with energy star ratings; use LED lights.
  • Carry cloth bags and steel bottles; avoid single-use plastic.
  • Give old phones and batteries to authorised e-waste collectors.
  • Use public transport, cycle or car-pool.
  • Join Eco Clubs and Mission LiFE activities.

5.7 Measuring a green economy

IndicatorWhat it shows
Share of renewable energyhow much power comes from solar, wind, hydro
Carbon emissions per personpollution from energy use
Forest coverprotection of land and biodiversity
Waste recycledresource efficiency
Number of green jobssocial benefit
Everyday green choices
🔌
Star-rated appliances

use less electricity

🛍️
Cloth bags

less plastic waste

🚲
Cycle or walk

zero emissions for short trips

📱
E-waste to collectors

metals recovered safely

5.8 Exam-ready answers

Q. What is a green economy? Write any two features. (2 marks)

A green economy is low-carbon, resource-efficient and socially inclusive. Features: uses renewable energy, reduces waste and pollution, creates green jobs.

Q. Explain the role of any four stakeholders in the green economy. (4 marks)

Government - makes green policies and gives subsidies; industries - adopt clean technology and reduce waste; consumers - buy eco-friendly products; NGOs - spread awareness and run community projects. Banks give green finance and research bodies develop clean technology.

Quick revision: all five units at a glance

Part A carries 10 marks: four one-mark questions (out of six) and three two-mark questions (out of five). Each unit gives 2 marks.

Unit 1: Communication Skills-III

Methods of communication
  • Verbal: spoken (talks, calls) and written (letters, e-mails)
  • Non-verbal: facial expressions, gestures, posture, eye contact, touch, space, paralanguage
  • Visual: signs, symbols, charts, infographics, maps
Communication styles
  • Assertive: clear, honest, respectful - best
  • Aggressive: dominating, blaming, loud
  • Passive-aggressive: indirect anger, sarcasm, sulking
  • Submissive: gives in, avoids conflict, ignores own needs
Writing skillKey pointsExample
Sentence vs phrasesentence = subject + verb, complete sense; phrase = group of words without complete senseThe bell rang. / after the bell
Kinds of sentencesdeclarative, interrogative, imperative, exclamatoryClose the door. / How lovely!
Parts of a sentencesubject (who/what) and predicate (verb + object/complement)Riya (S) wrote a poem (P).
Parts of speechnoun, pronoun, verb, adjective, adverb, preposition, conjunction, interjectionShe (pron.) quickly (adv.) solved it.
Articlesa (consonant sound), an (vowel sound), the (particular)a university, an hour, the Sun
Paragraphone main idea: topic sentence, supporting sentences, concluding sentence

Unit 2: Self-Management Skills-III

Appearance and grooming
  • appropriate, clean, ironed dress for the occasion
  • personal hygiene and neat hair, nails, shoes
  • positive body language: upright posture, smile, eye contact
  • personal grooming checklist
Self-exploration
  • reflection and journaling
  • feedback from teachers, parents, friends
  • interest and personality tests
  • trying new activities
Teamwork
  • Team building factors: clear goals, defined roles, trust, communication, leadership
  • Teamwork factors: cooperation, respect, sharing credit, conflict resolution
Time management
  • set and prioritise goals (urgent-important matrix)
  • schedules and to-do lists
  • break big tasks into small ones
  • balance work and leisure; avoid procrastination

Unit 3: ICT Skills-III (word processing)

FeatureUseHow / shortcut
Word processorcreate, edit, format, save and print documentsLibreOffice Writer (.odt), MS Word (.docx), Google Docs
Open / New / Save / Printbasic file workCtrl + O, Ctrl + N, Ctrl + S, Ctrl + P; Save As for other formats; Export as PDF
Fontface, size, style, colourCtrl + B bold, Ctrl + I italic, Ctrl + U underline
Alignmentleft, centre, right, justifyCtrl + L, Ctrl + E, Ctrl + R, Ctrl + J
Header and footertext repeated at the top/bottom of each page; page numbersInsert > Header and Footer
Bullets and numberinglistsFormat > Bullets and Numbering
Tablesrows and columns of dataTable > Insert Table (Ctrl + F12)
Find and Replacesearch and change wordsCtrl + H
AutoCorrectfixes typing errors automaticallyTools > AutoCorrect
Text wrappinghow text flows around picturesright-click picture > Wrap

Unit 4: Entrepreneurial Skills-III

Entrepreneurial values
  • Innovativeness: new products and methods
  • Independence: own decisions
  • Outstanding performance: high standards
  • Respect for work: no work is small
Entrepreneurial attitudes
  • use imagination and intuition
  • take moderate (calculated) risks
  • enjoy freedom of expression and action
  • seek economic opportunities
  • believe you can change the environment
  • analyse situations and plan action
  • get involved in activities

Unit 5: Green Skills-III

TopicKey points
Green economylow-carbon, resource-efficient, socially inclusive
Main sectorse-waste management, green transportation (EVs, metro), renewable energy (solar, wind), green construction (GRIHA buildings), water management (rainwater harvesting, drip irrigation)
Policy initiatives in IndiaNational Action Plan on Climate Change (National Solar Mission etc.), Swachh Bharat Mission, FAME for EVs, UJALA LED scheme, Jal Jeevan Mission
Stakeholdersgovernment, private companies, NGOs, communities, consumers, banks, research bodies
Greening sectorscities, buildings, tourism (eco-tourism), industry, transport, renewable energy, waste, agriculture (organic), water, forests (afforestation), fisheries (no overfishing)
4

Unit 1: Introduction - AI for everyone

4 marks · meaning, evolution, types, domains, terminology, benefits and limits

1.1 What is Artificial Intelligence?

Artificial Intelligence (AI) is the branch of computer science that builds machines and software able to perform tasks that normally need human intelligence - learning, reasoning, problem solving, understanding language, recognising images and taking decisions. John McCarthy, who coined the term in 1956, defined it as "the science and engineering of making intelligent machines".

What intelligent machines can do
👁️
See

recognise faces, read number plates

👂
Hear and speak

voice assistants, speech-to-text

📖
Read and write

translate, summarise, chat

🧠
Learn

improve with more data

🎯
Decide

recommend, predict, plan routes

🤖
Act

robots, self-driving cars

1.2 Evolution of AI

Milestones
11950 Turing Test
➜
21956 Dartmouth - term AI coined
➜
31970s-80s Expert systems and AI winters
➜
41997 Deep Blue beats Kasparov
➜
52012 Deep learning breakthrough (ImageNet)
➜
62016 AlphaGo
➜
72022 onwards Generative AI - ChatGPT, Gemini
YearEventWhy it matters
1950Alan Turing proposes the Turing Testcan a machine's replies be told apart from a human's?
1956Dartmouth Conferencebirth of AI as a field
1966ELIZA chatbotearly natural language program
1970s-80sexpert systems; AI wintersrule-based systems, then funding drops
1997IBM Deep Blue defeats Garry Kasparov at chesscomputing power + search
2011IBM Watson wins Jeopardy!; Siri launchedquestion answering, voice assistants
2012deep learning wins ImageNetneural networks become practical
2016AlphaGo beats Lee Sedol at Goreinforcement learning
2022+ChatGPT, Gemini, image generatorsgenerative AI for everyone

1.3 Types of AI

By capability

Narrow and general AI
Narrow (Weak) AI
  • does one specific task
  • exists today
  • e.g. Siri, spam filter, face unlock
VS
General (Strong) AI
  • human-like intelligence across all tasks
  • does not exist yet
  • can learn any intellectual task

Super AI is a hypothetical AI that would be smarter than humans in every field.

By functionality

TypeDescriptionExample
Reactive machinesreact to the present; no memoryDeep Blue chess computer
Limited memoryuse recent past data to decideself-driving cars, chatbots
Theory of mindwould understand emotions and beliefsunder research
Self-awarewould have consciousnesshypothetical

1.4 Domains of AI

Three domains
AI
Data Science - numbers and tables
Computer Vision - images and video
Natural Language Processing - text and speech
DomainWorks onApplications
Data science / statistical datastructured dataprice prediction, fraud detection, recommendation
Computer visionimages, videosface recognition, medical scans, self-driving cars
NLPhuman languagetranslation, chatbots, sentiment analysis

1.5 AI terminology

AI family (outer to inner)
Artificial Intelligence - machines that act smart
Machine Learning - learn from data
Deep Learning - multi-layer neural networks
TermMeaning
Machine learning (ML)algorithms that learn patterns from data and improve with experience
Deep learning (DL)ML using artificial neural networks with many layers
Neural networka network of connected nodes (neurons) inspired by the brain
Datafacts used to train models
Modelthe learned function that makes predictions
Algorithmstep-by-step procedure to learn or solve
Training / testinglearning from data / checking on new data
Supervised / unsupervised / reinforcementlearning with labels / without labels / by rewards
Is it AI?

A calculator follows fixed rules - not AI. An e-mail filter that learns which mails are spam from examples - AI (machine learning). A robot vacuum that maps rooms and learns obstacles - AI. A timer-based street light - not AI.

1.6 Benefits and limitations

AI
Benefits
  • works 24x7 without tiring
  • fast and accurate with data
  • handles dangerous jobs
  • personalised services
  • helps in health, farming, disaster prediction
VS
Limitations
  • needs huge data and power
  • may be biased
  • no common sense or emotion
  • job displacement
  • privacy and security risks
  • costly

1.7 Applications of AI

AI in sectors
🏥
Healthcare

disease detection from scans, drug discovery

🌾
Agriculture

crop disease detection, weather-based advice (Kisan apps)

🏦
Finance

fraud detection, credit scoring, chatbots

🚗
Transport

navigation, traffic prediction, driver assistance

🛍️
Retail

recommendations, demand forecasting

🎓
Education

adaptive learning, automatic grading

🏛️
Governance

Bhashini translation, smart city cameras

🎮
Entertainment

games, music and video recommendations

1.8 Exam-ready answers

Q. Differentiate between narrow AI and general AI. (2 marks)

Narrow AI performs a single specific task (e.g. face unlock) and exists today. General AI would perform any intellectual task like a human; it does not exist yet.

Q. Explain the relationship between AI, ML and DL with examples. (4 marks)

AI is the broad field of making machines intelligent. ML is a subset of AI where machines learn from data, e.g. a spam filter. DL is a subset of ML that uses multi-layer neural networks, e.g. face recognition. So DL is inside ML, and ML is inside AI.

Quick revision: one-look summary

Artificial Intelligence is the branch of computer science that builds machines able to do tasks that normally need human intelligence: learning, reasoning, perception, language and decision making. Intelligent machines learn from data and improve with experience.

Picture: evolution of AI

1950Turing Test1956Dartmouth:"AI" named1966ELIZAchatbot1997Deep Bluebeats Kasparov2011Watson winsJeopardy!2016AlphaGo beatsLee Sedol2022ChatGPT
Two "AI winters" (1970s and late 1980s) slowed progress between these milestones.
YearMilestoneWhy it matters
1950Alan Turing's paper and the Turing Testcan a machine imitate a human in conversation?
1956Dartmouth workshop; John McCarthy coins "AI"birth of AI as a field
1966ELIZA chatbot (MIT)first conversation program
1970s, late 1980sAI wintersfunding fell when promises were not met
1997IBM Deep Blue beats Garry KasparovAI wins at chess
2011IBM Watson wins Jeopardy!understanding natural-language questions
2012deep learning wins image recognition (ImageNet)start of the deep learning era
2016DeepMind AlphaGo beats Lee Sedolreinforcement learning in a very complex game
2022 onwardsChatGPT and other generative AIAI for everyone

Types of AI

Based on capability
  • Narrow (weak) AI: one task - face unlock, chess (all present AI)
  • General (strong) AI: any human-level task (future)
  • Super AI: smarter than humans in everything (theoretical)
Based on functionality
  • Reactive machines: no memory - Deep Blue
  • Limited memory: uses recent data - self-driving cars
  • Theory of mind: understands emotions (research)
  • Self-aware: consciousness (hypothetical)

Domains of AI

DomainDataApplications
Data Sciencenumbers, tablesprice and sales prediction, fraud detection, weather forecasting
Computer Visionimages, videosface recognition, self-driving cars, medical imaging, number-plate reading
Natural Language Processingtext, speechchatbots, translation, sentiment analysis, voice assistants

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.

AI terminologies

TermMeaning
Machine Learningcomputers learn patterns from data without being explicitly programmed
Deep LearningML using neural networks with many layers
Neural networkconnected nodes in input, hidden and output layers, inspired by the brain
Supervised learninglearns from labelled data (classification, regression)
Unsupervised learningfinds patterns in unlabelled data (clustering)
Reinforcement learninglearns by rewards and penalties (game AI, robots)
Features / labelinputs / output to predict
Training / testing datadata to teach / data to check the model
Cognitive computingsystems that mimic perception, learning and reasoning (IBM Watson)
Benefits
  • 24x7 work, speed, accuracy
  • handles big data
  • works in dangerous places
  • better healthcare, farming, safety
Limitations
  • no common sense or emotions
  • needs large, good data
  • can be biased
  • costly; job loss; privacy risks
Practical file

Practical activity: categorise given applications into the three domains (e.g. Google Lens - CV, Alexa - NLP, stock prediction - Data Science).

5

Unit 2: Unlocking your future in AI

5 marks · demand, job roles, skills, tools, industries

2.1 Why AI careers are growing

AI is used in almost every industry, so the demand for people who can build, use and manage AI is rising fast. Reports by NASSCOM and the World Economic Forum list AI and machine learning specialists among the fastest-growing jobs. India's IndiaAI Mission and digital programmes are also creating opportunities.

Reasons for high demand
📈
Data explosion

every app and device creates data

🏭
Automation

industries want efficiency

💰
Investment

startups and companies fund AI

🌐
Digital India

e-governance, UPI, Aadhaar-based services

🧑‍💻
Skill gap

fewer trained people than jobs

2.2 AI job roles

Job roleWhat they doKey skills
Data scientistcollects, analyses and models data to find insightsstatistics, Python, ML
Data analystcleans data, makes reports and dashboardsExcel, SQL, visualisation
Machine learning engineerbuilds, trains and deploys ML modelsPython, ML libraries, cloud
AI research scientistcreates new algorithmsadvanced maths, research
Computer vision engineersystems that understand imagesOpenCV, CNNs
NLP engineersystems that understand languagetext processing, transformers
Robotics engineerdesigns intelligent robotselectronics, control, AI
AI product managerplans AI products to meet user needsbusiness + tech understanding
AI ethicist / policy expertensures fair and responsible AIethics, law, social science
Prompt engineerdesigns prompts for generative AIlanguage, domain knowledge
Data engineerbuilds data pipelines and storagedatabases, big data tools
A typical career path
1Class XI-XII with AI, Maths
➜
2Degree - B.Tech CSE/AI, B.Sc Data Science, BCA
➜
3Internships and projects
➜
4Junior data analyst / ML engineer
➜
5Senior engineer / scientist
➜
6Lead / manager / researcher

2.3 Skills needed for AI

AI skill set
AI professional
Mathematics - statistics, probability, linear algebra
Programming - Python, SQL
Machine learning concepts
Data handling and visualisation
Domain knowledge
Soft skills - communication, teamwork, ethics
Skill areaExamples
TechnicalPython, libraries (NumPy, Pandas, scikit-learn), SQL, cloud basics
Mathematicalmean, standard deviation, probability, matrices, graphs
Analyticalbreaking problems into parts, logical thinking
Soft skillscommunication, collaboration, curiosity, adaptability
Ethicalfairness, privacy, transparency

2.4 Tools and platforms

CategoryTools
ProgrammingPython, R, Jupyter Notebook, Google Colab
ML librariesscikit-learn, TensorFlow, PyTorch, Keras
Data handlingNumPy, Pandas, SQL, Excel
VisualisationMatplotlib, Seaborn, Tableau, Power BI
No-code AITeachable Machine, Orange, Lobe
Cloud AIGoogle Cloud AI, AWS, Microsoft Azure
Generative AIChatGPT, Gemini, Copilot

2.5 AI across industries

IndustryAI useJob example
Healthcarereading X-rays, predicting diseasemedical AI analyst
Financefraud detection, robo-advisorsrisk-model developer
Agricultureyield prediction, pest detectionagri-data scientist
Manufacturingpredictive maintenance, quality checkindustrial AI engineer
Retail and e-commercerecommendations, inventoryrecommendation-system engineer
Educationpersonalised learninged-tech data scientist
Mediacontent recommendation, content generationcontent-AI specialist
Case: AI in agriculture

A startup uses drone images and AI to detect crop disease early. It needs CV engineers (image models), data scientists (yield prediction), app developers (farmer app in local languages) and agronomists (domain knowledge). One AI product creates many different jobs.

2.6 Preparing for an AI career

Your roadmap
1Strengthen maths and logic
➜
2Learn Python
➜
3Do small projects (Kaggle, school capstone)
➜
4Learn ML basics and tools
➜
5Build a portfolio (GitHub)
➜
6Internships, competitions, hackathons
  • Free learning: SWAYAM, NPTEL, Google AI courses, IBM SkillsBuild, CBSE AI resources.
  • Participate in competitions and AI clubs; read about AI news and ethics.
  • Develop lifelong learning - AI tools change quickly.

2.7 Will AI take away jobs?

Impact on jobs
Jobs reduced
  • repetitive data entry
  • basic customer support
  • simple assembly work
VS
Jobs created
  • AI trainers and data labellers
  • ML and data roles
  • AI maintenance, ethics and policy roles

AI changes jobs more than it simply removes them. People who learn to work with AI (upskilling and reskilling) will be in demand.

2.8 Exam-ready answers

Q. Name any four job roles in AI. (2 marks)

Data scientist, machine learning engineer, computer vision engineer, NLP engineer, robotics engineer, AI ethicist, AI product manager. (Any four.)

Q. What skills are needed to build a career in AI? (4 marks)

Mathematical skills (statistics, probability, linear algebra); programming in Python and SQL; knowledge of machine-learning concepts and tools; data handling and visualisation; domain knowledge; and soft skills such as communication, teamwork, problem solving and ethics.

Quick revision: one-look summary

AI is used in almost every industry, so the global demand for AI professionals is rising faster than the supply of skilled people. AI careers are open to students from science, commerce and humanities who build the right skills.

Job roleWhat they doKey skills
Data Scientistcollects, cleans and analyses data; builds predictive modelsPython, statistics, ML, communication
Machine Learning Engineerbuilds, trains and deploys ML models in productsPython, ML frameworks, software engineering, cloud
Data Analystreports and dashboards for business decisionsExcel, SQL, Pandas, Tableau/Power BI
AI Research Scientistinvents new algorithms; publishes researchadvanced maths, deep learning
NLP Engineerchatbots, translation, speech systemslinguistics, NLP libraries
Computer Vision Engineerimage and video AIOpenCV, CNNs
Robotics Engineerrobots that sense and actelectronics, control, AI
AI Ethicistchecks fairness, privacy and accountabilityethics, law, communication
AI Product Managerdecides what the AI product should dobusiness sense, communication
Data Annotatorlabels data for trainingattention to detail
Technical skills
  • Python programming
  • statistics, probability, linear algebra
  • machine learning and deep learning
  • data handling (SQL, Pandas) and visualisation
Soft skills
  • communication and storytelling with data
  • teamwork and collaboration
  • critical thinking and problem solving
  • curiosity and lifelong learning, ethics
Tools
  • Jupyter, Anaconda, Google Colab
  • NumPy, Pandas, scikit-learn, matplotlib
  • TensorFlow, PyTorch
  • Tableau, Power BI, Git
Learning resources
  • IBM SkillsBuild (certification counts in practical)
  • Kaggle datasets and competitions
  • online courses, bootcamps, internships

AI across industries

IndustryUses of AI
HealthcareX-ray and scan reading, disease prediction, drug discovery, symptom chatbots
Financefraud detection, credit scoring, trading, customer chatbots
Agriculturecrop disease detection, yield and weather prediction, smart irrigation, drones
Retail and e-commercerecommendations, demand forecasting, dynamic pricing
Manufacturingpredictive maintenance, quality inspection, robots
Transportself-driving cars, traffic prediction, route optimisation
Educationpersonalised learning, automatic grading, tutoring bots
Practical file

Practical: list ten companies hiring for AI roles (LinkedIn, Naukri, company sites) and compare the technical and soft skills asked by two companies for one role.

6

Unit 3: Python programming

5 marks · tokens, data types, operators, control statements, CSV, NumPy, Pandas, scikit-learn

3.1 Python for AI

Python is a free, open-source, high-level, interpreted language created by Guido van Rossum (1991). It is the most popular language for AI because of its simple syntax and powerful libraries (NumPy, Pandas, scikit-learn, TensorFlow).

Why Python for AI?
📖
Easy to read

English-like syntax

📚
Rich libraries

NumPy, Pandas, Matplotlib, scikit-learn

🌐
Large community

many tutorials and answers

🔁
Interpreted

test line by line

🆓
Free and cross-platform

Windows, Linux, macOS

3.2 Tokens

The smallest units of a Python program are tokens.

TokenMeaningExamples
Keywordsreserved wordsif, else, for, while, def, True, None
Identifiersnames given by the programmertotal, marks_1, Student
Literalsfixed values25, 3.14, "AI", True
Operatorsperform operations+ - * / // % ** == and
Punctuatorssymbols for structure( ) [ ] { } : , #

3.3 Data types

Python data types
Data types
int 25
float 3.14
str "AI"
bool True
list [1, 2, 3]
tuple (1, 2)
dict {"a": 1}
set {1, 2}
x = 25; y = 3.5; name = "Kavya"; ok = True
marks = [78, 85, 90]          # list - mutable
point = (3, 4)                # tuple - immutable
student = {"name": "Kavya", "class": 11}   # dictionary
print(type(x), type(y), type(name), type(ok))
print(marks[0], point[1], student["name"])
Mutable vs immutable
Mutable (can change)
  • list
  • dictionary
  • set
VS
Immutable (cannot change)
  • int, float, str
  • tuple
  • bool

3.4 Operators

TypeOperatorsExample (a = 17, b = 5)
Arithmetic+ - * / // % **a // b = 3, a % b = 2, b ** 2 = 25
Relational== != > < >= <=a > b gives True
Logicaland, or, nota > 10 and b > 10 gives False
Assignment= += -= *=a += 1 makes a 18
Membershipin, not in3 in [1, 2, 3] gives True
Precedence() > ** > * / // % > + - > relational > not > and > or

3.5 Control statements

marks = 72
if marks >= 90:
    grade = "A1"
elif marks >= 75:
    grade = "A2"
elif marks >= 33:
    grade = "Pass"
else:
    grade = "Fail"
print("Grade:", grade)

total = 0
for n in range(1, 11):
    total += n
print("Sum of 1 to 10 =", total)

n = 5; fact = 1
while n > 1:
    fact *= n
    n -= 1
print("5! =", fact)
How a for loop runs
1Take the next item
➜
2Run the indented block
➜
3More items? Repeat
➜
4No items left: exit the loop

break stops the loop; continue skips to the next round.

3.6 Lists, tuples and dictionaries

L = [12, 45, 7, 30]
L.append(50); L.sort()
print(L, len(L), max(L), sum(L) / len(L))
print(L[1:3], L[-1])
d = {"Amit": 82, "Sara": 91}
d["Ravi"] = 76
for k, v in d.items():
    print(k, "->", v)
MethodUse
append(x)add at the end
insert(i, x)add at index i
remove(x) / pop(i)delete by value / by index
sort() / reverse()arrange / reverse
keys(), values(), items()dictionary parts

3.7 Functions

def area_circle(r):
    return 3.14159 * r * r

def grade(m):
    return "Pass" if m >= 33 else "Fail"

print(round(area_circle(7), 2), grade(45))

3.8 Working with CSV files

A CSV (Comma Separated Values) file stores table data as plain text, one row per line. AI datasets are often CSV files.

import csv
with open("marks.csv", "w", newline="") as f:     # write a CSV file
    w = csv.writer(f)
    w.writerow(["name", "marks"])
    w.writerows([["Asha", 88], ["Ben", 67], ["Chitra", 92]])
with open("marks.csv") as f:                      # read it back
    r = csv.reader(f)
    header = next(r)
    for row in r:
        print(row[0], "->", int(row[1]) + 5)      # 5 grace marks

3.9 NumPy and Pandas basics

NumPy gives fast arrays and maths; Pandas gives the DataFrame - a table with rows and columns.

import numpy as np
a = np.array([10, 20, 30, 40])
print(a.mean(), a.max(), a * 2)          # 25.0 40 [20 40 60 80]
m = np.array([[1, 2], [3, 4]])
print(m.shape)
print(m.T)                               # transpose
import pandas as pd
import numpy as np
data = {"name": ["Asha", "Ben", "Chitra", "Dev", "Esha"], "marks": [78, np.nan, 92, 60, 85]}
pd.DataFrame(data).to_csv("students.csv", index=False)    # make the CSV file
df = pd.read_csv("students.csv")
print(df.head())                          # first 5 rows
print(df.describe())                      # count, mean, std, min, max
df["marks"] = df["marks"].fillna(df["marks"].mean())     # fill the missing value
print(df[df["marks"] > 80])               # filter rows

3.10 Exam-ready answers

Q. Differentiate between a list and a tuple. (2 marks)

A list is mutable (its items can be changed) and uses square brackets [ ]. A tuple is immutable and uses round brackets ( ). Tuples are faster and safe for fixed data.

Q. Write a program to find the largest of three numbers. (4 marks)

Read a, b, c. If a >= b and a >= c, print a; elif b >= c, print b; else print c. (Or use max(a, b, c).)

Quick revision: one-look summary

Python (Guido van Rossum, 1991) is a free, interpreted, high-level language - the most used language in AI. Programs below have a Run button: open them in the built-in Python and change them.

Level 1: basics

TopicKey points
Character setletters A-Z a-z, digits 0-9, special symbols, whitespace, Unicode
Tokenskeywords (if, for, True), identifiers (names), literals (25, 3.5, "AI", True, None), operators (+, ==, and), punctuators ( ) [ ] { } , : .
Modesinteractive (>>> shell, one statement) and script (.py file)
Data typesint, float, complex, str, bool, list (mutable), tuple (immutable), dict (key:value), set (unique), None
Operatorsarithmetic + - * / // % **; relational == != > < >= <=; logical and or not; assignment = += -=; membership in, not in; identity is, is not
Control statementsif, if-else, if-elif-else; for, while; break, continue, pass; loop-else
# data types and type()
values = [25, 3.5, 2 + 3j, "AI", True, [1, 2], (1, 2), {"a": 1}, {1, 2}, None]
for v in values:
    print(repr(v), "->", type(v).__name__)

Output:

25 -> int
3.5 -> float
(2+3j) -> complex
'AI' -> str
True -> bool
[1, 2] -> list
(1, 2) -> tuple
{'a': 1} -> dict
{1, 2} -> set
None -> NoneType
# operators and precedence: ** then * / // % then + - then comparisons then not, and, or
print(2 + 3 * 4 ** 2, (2 + 3) * 4, 17 // 5, 17 % 5)
print(5 > 3 and 2 > 4, not 5 > 3 or 2 < 4)
print("a" in "data", [1, 2] == [1, 2])

Output:

50 20 3 2
False True
True True
# selection and iteration
marks = [92, 45, 76, 30, 64]
for m in marks:
    if m >= 90:
        g = "A"
    elif m >= 60:
        g = "B"
    elif m >= 33:
        g = "C"
    else:
        g = "Fail"
    print(m, g)
n = 5
f = 1
while n > 1:
    f *= n
    n -= 1
print("5! =", f)

Output:

92 A
45 C
76 B
30 Fail
64 B
5! = 120

Strings, lists, tuples and dictionaries

s = "Artificial Intelligence"
print(len(s), s[0], s[-1], s[0:10], s.upper(), s.split())
L = [10, 20, 30]
L.append(40); L.insert(0, 5); L.remove(20)
print(L, L[1:3], sum(L), max(L))
t = (3, 1, 2)
print(sorted(t), t.count(1))
d = {"Asha": 90, "Ravi": 75}
d["Meena"] = 88
print(d.keys(), d.get("Ravi"), len(d))

Output:

23 A e Artificial ARTIFICIAL INTELLIGENCE ['Artificial', 'Intelligence']
[5, 10, 30, 40] [10, 30] 85 40
[1, 2, 3] 1
dict_keys(['Asha', 'Ravi', 'Meena']) 75 3

Level 2: CSV files and libraries

import csv
with open("rain.csv", "w", newline="") as f:
    w = csv.writer(f)
    w.writerow(["Month", "Rain"])
    w.writerows([["Jan", 20], ["Feb", 35], ["Mar", 60]])
with open("rain.csv") as f:
    for row in csv.reader(f):
        print(row)

Output:

['Month', 'Rain']
['Jan', '20']
['Feb', '35']
['Mar', '60']
import numpy as np
a = np.array([[1, 2, 3], [4, 5, 6]])
print(a.shape, a.ndim, a.size)
print(a * 10)
print(a.mean(), a.max(), a.sum(axis=0))
print(np.arange(0, 10, 2), np.zeros(3), np.ones((2, 2)))

Output:

(2, 3) 2 6
[[10 20 30]
 [40 50 60]]
3.5 6 [5 7 9]
[0 2 4 6 8] [0. 0. 0.] [[1. 1.]
 [1. 1.]]
import pandas as pd
df = pd.DataFrame({"Month": ["Jan", "Feb", "Mar", "Apr"], "Rain": [20, 35, 60, 120]})
print(df)
print(df.head(2))
print(df["Rain"].mean(), df["Rain"].max())
print(df[df["Rain"] > 30])

Output:

  Month  Rain
0   Jan    20
1   Feb    35
2   Mar    60
3   Apr   120
  Month  Rain
0   Jan    20
1   Feb    35
58.75 120
  Month  Rain
1   Feb    35
2   Mar    60
3   Apr   120

Scikit-learn (sklearn) gives ready ML algorithms. The pattern is always: import - create model - fit - predict - evaluate. (Run this in Anaconda / Jupyter; it is not part of the built-in browser Python.)

from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
import pandas as pd

# a small rainfall dataset (in Jupyter you would use pd.read_csv("rainfall.csv"))
df = pd.DataFrame({"Temperature": [20, 22, 25, 27, 30, 32, 35, 37, 40, 42],
                   "Rainfall": [120, 115, 100, 95, 80, 72, 60, 55, 40, 35]})
X = df[["Temperature"]]                    # feature(s)
y = df["Rainfall"]                         # label
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=1)
model = LinearRegression()
model.fit(X_train, y_train)                # train
print("slope:", model.coef_, "intercept:", round(model.intercept_, 2))
print("predictions:", model.predict(X_test))   # predict
print("R2 score:", round(model.score(X_test, y_test), 3))
Remember
  • Lists are mutable, tuples are immutable.
  • Use int(input()) for whole numbers.
  • NumPy works element-wise: a * 2 doubles every element.
Common mistake
  • = assigns, == compares.
  • range(1, 5) stops at 4.
  • Keywords like class, for cannot be variable names.
7

Unit 4: Introduction to capstone project

5 marks · design thinking, empathy map, 5W1H, SDGs, capstone stages

4.1 What is a capstone project?

A capstone project is a final project in which students apply everything they have learnt to solve a real-world problem. In AI, it means identifying a problem, collecting data, building an AI model or prototype, testing it and presenting the solution. It develops problem solving, teamwork, research and communication.

4.2 Design thinking

Design thinking is a human-centred, creative problem-solving approach. It starts with understanding the people who face the problem.

Five stages of design thinking
1Empathise
➜
2Define
➜
3Ideate
➜
4Prototype
➜
5Test
↻ back to step 1 — it is a cycle
StagePurposeActivityExample: students skipping breakfast
Empathiseunderstand users' feelings and needsinterviews, observation, empathy maptalk to students and parents
Definestate the core problem clearlyproblem statement, 5W1H"Students in the morning shift skip breakfast because they leave early."
Ideategenerate many solutionsbrainstorming, mind mapsreminder app, quick-recipe chatbot, canteen pre-orders
Prototypebuild a simple modelpaper sketch, app mock-up, basic modelchatbot prototype
Testtry with users and improvefeedback, observationstudents try the chatbot; improve it
Design thinking is **iterative**

after testing, teams often go back to define or ideate again.

4.3 Empathy map

An empathy map is a tool to understand the user deeply. It has four quadrants:

Empathy map
💬
Says

what the user says aloud: "I have no time in the morning."

💭
Thinks

what the user thinks: "Breakfast is not important."

🏃
Does

actions: skips breakfast, buys chips at break

❤️
Feels

emotions: tired, hungry, irritated

Some maps also include pains (frustrations) and gains (hopes).

4.4 Problem definition: 5W1H

5W1H
Problem
Who is affected?
What is the problem?
Where does it happen?
When does it happen?
Why does it matter?
How can it be solved?
Writing a problem statement

Who: farmers in a village. What: crops are damaged by pests found too late. Where: cotton fields. When: monsoon season. Why: losses reduce income. How: an app that detects pests from leaf photos. Problem statement: "Cotton farmers lose income during the monsoon because pests are detected late; an AI app can identify pests early from leaf photos."

4.5 Linking projects to the SDGs

The 17 Sustainable Development Goals give meaningful problem areas for AI projects.

SDGProject idea
2 Zero hungercrop-disease detection
3 Good healthearly disease prediction from symptoms
4 Quality educationpersonalised quiz app
6 Clean waterwater-quality prediction
11 Sustainable citiestraffic or waste-bin monitoring
13 Climate actionweather / flood prediction

4.6 Stages of an AI capstone project

Capstone stages
1Problem identification
➜
2Data collection
➜
3Data exploration and preparation
➜
4Model building
➜
5Evaluation
➜
6Deployment and presentation
StageKey questionsOutput
Problem identificationIs it real? Can AI help?problem statement
Data collectionWhat data? From where? Is it ethical?dataset
Exploration and preparationmissing values? patterns?clean data, graphs
Modellingclassification, regression or clustering?trained model
Evaluationhow accurate is it?metrics, confusion matrix
Deploymenthow will users use it?app, website, report

Is the problem right for AI?

  • There is a pattern to learn.
  • Data is available or can be collected.
  • The problem is repetitive or large-scale.
  • Errors can be measured and reduced.

4.7 Teamwork and presentation

  • Divide roles: research, data, coding, design, documentation.
  • Keep a project log with dates and decisions.
  • Final report: title, problem, SDG link, data, method, results, limitations, future scope, references.
  • Present with a demo, slides and a short video.
Sample capstone: "Smart Attendance"

Problem: manual attendance wastes 10 minutes per class. Empathise: teachers and students interviewed. Data: 50 photos of each student (with consent). Model: face recognition using a pre-trained model. Evaluation: 95% accuracy in good light, lower in poor light. Ethics: consent, secure storage, delete data after the project.

4.8 Exam-ready answers

Q. Name the five stages of design thinking. (2 marks)

Empathise, Define, Ideate, Prototype and Test.

Q. What is an empathy map? Explain its four parts. (4 marks)

An empathy map is a tool used in the empathise stage to understand the user. Says - what the user says; Thinks - what the user thinks but may not say; Does - the user's actions and behaviour; Feels - the user's emotions and worries.

Quick revision: one-look summary

Design thinking is a human-centred, iterative way of solving problems creatively. It is used to plan the capstone project.

Picture: design thinking

EmpathizeDefineIdeatePrototypeTestlearn from users and iterate
Human-centred and iterative: after Test we may go back to any earlier stage.
StageWhat we doTools
Empathizeunderstand users: observe, interview, experience their probleminterviews, observation, empathy map
Definewrite a clear, user-centred problem statementpoint-of-view statement, "How might we...?"
Ideategenerate many ideas without judgingbrainstorming, mind maps, SCAMPER, sticky notes
Prototypebuild a quick, cheap model of the best ideasketches, paper models, mock-up screens, no-code AI
Testtry with users, collect feedback, improveuser testing, feedback forms

Picture: empathy map

SAYS"I have no time"THINKSworried about marksDOESstudies late at nightFEELSstressed, tiredUser
Fill each quadrant from interviews and observation of the user.

Problem decomposition with 5W1H

QuestionAsksExample: plastic waste in school
Whowho is affected?students, canteen staff, cleaners
Whatwhat is the problem?plastic wrappers and bottles everywhere
Whenwhen does it happen?after lunch break, events
Wherewhere does it happen?canteen, playground
Whywhy does it matter?pollution, blocked drains (SDG 12, 14)
Howhow can it be solved?AI bin that sorts waste, awareness, refill stations

Sustainable Development Goals (SDGs)

17 goals adopted by the United Nations in 2015, to be achieved by 2030. A capstone project must be aligned to at least one SDG.

SDGGoalAI idea
1No Povertyjob-matching app
2Zero Hungercrop disease detector
3Good Health and Well-beingearly disease detection
4Quality Educationpersonal tutor bot
6Clean Water and Sanitationwater quality prediction
7Affordable and Clean Energysolar output forecast
11Sustainable Citiessmart traffic signals
12Responsible Consumptionfood-waste prediction
13Climate Actionflood and heatwave alerts

Capstone project

Prepare>Form a team>Define the problem (SDG)>Understand users>Brainstorm>Design the solution

Each stage is documented as in the CBSE IBM Projects Cookbook. A project abstract gives the title, problem, users, SDG, solution, data needed and expected impact in simple, non-technical words.

Practical file

Practical: create an empathy map for a given scenario, and a project abstract using the design thinking framework.

8

Unit 5: Data literacy - data collection to data analysis

6 marks · collection, levels of measurement, statistics, charts, matrices, pre-processing

5.1 Data literacy

Data literacy is the ability to read, understand, analyse, create and communicate with data. AI runs on data, so an AI student must know how data is collected, measured, summarised, cleaned and shown.

From data to decision
1Collect
➜
2Organise
➜
3Clean
➜
4Analyse
➜
5Visualise
➜
6Interpret and decide

5.2 Data collection

Sources of data
Primary data
  • collected first-hand for your purpose
  • surveys, interviews, experiments, sensors, observation
  • accurate but costly
VS
Secondary data
  • collected earlier by others
  • census, government portals (data.gov.in), Kaggle, research papers
  • cheap and quick but may not fit exactly
MethodExample
Survey / questionnaireGoogle Form on students' screen time
Interviewtalking to farmers about crop loss
Observationcounting vehicles at a crossing
Experimenttesting plant growth with fertilisers
Sensors / IoTtemperature and humidity logs
Web scraping / APIsprices from websites (with permission)

5.3 Levels of measurement (NOIR)

Levels of measurement (most to least information)
Ratio - true zero, all maths
Interval - equal gaps, no true zero
Ordinal - order but unequal gaps
Nominal - only names or categories
LevelPropertiesExamplesAllowed statistics
Nominalcategories, no orderblood group, gender, colourmode, counts
Ordinalcategories with orderranks, grades A/B/C, rating 1-5median, mode
Intervalordered, equal gaps, no true zerotemperature in degree C, yearmean, difference
Ratioequal gaps and true zeroheight, weight, marks, incomeall: mean, ratio ("twice as heavy")
Common mistake

20 degree C is not "twice as hot" as 10 degree C because 0 degree C is not "no heat" - temperature in Celsius is interval, not ratio.

5.4 Statistical measures

Central tendency

MeasureFormula / rule
Meansum of values / number of values
Medianmiddle value of sorted data (average of two middle values if n is even)
Modemost frequent value

Dispersion (spread)

MeasureMeaning
Rangemaximum - minimum
Varianceaverage of squared deviations from the mean
Standard deviation (SD)square root of variance; typical distance from the mean
FormulasVariance = sum of (x - mean)^2 / n; SD = square root of variance
Solved example: mean, variance, SD

Data: 2, 4, 4, 4, 5, 5, 7, 9 (n = 8). Mean = 40 / 8 = 5. Deviations squared: 9, 1, 1, 1, 0, 0, 4, 16; sum = 32. Variance = 32 / 8 = 4. SD = square root of 4 = 2. Median = (4 + 5) / 2 = 4.5; Mode = 4; Range = 9 - 2 = 7.

data = [2, 4, 4, 4, 5, 5, 7, 9]
n = len(data); mean = sum(data) / n
var = sum((x - mean) ** 2 for x in data) / n
print("mean", mean, "variance", var, "SD", var ** 0.5)

5.5 Data representation

Choosing a graph
📊
Bar chart

compare categories

📈
Line graph

trends over time

🥧
Pie chart

parts of a whole (%)

⚫
Scatter plot

relation between two variables

📶
Histogram

distribution of continuous data in ranges

📦
Box plot

median, quartiles and outliers

5.6 Matrices for AI

A matrix is a rectangular arrangement of numbers in rows and columns. Images, datasets and neural-network weights are stored as matrices.

OperationRuleExample
Orderrows x columns[[1, 2, 3], [4, 5, 6]] is 2 x 3
Additionadd matching elements (same order)[[1, 2]] + [[3, 4]] = [[4, 6]]
Scalar multiplicationmultiply every element2 x [[1, 3]] = [[2, 6]]
Transposerows become columns[[1, 2], [3, 4]] -> [[1, 3], [2, 4]]
Multiplicationrow x column, sum of products(m x n) x (n x p) gives (m x p)
Matrix multiplication

A = [[1, 2], [3, 4]], B = [[5, 6], [7, 8]]. AB = [[1x5 + 2x7, 1x6 + 2x8], [3x5 + 4x7, 3x6 + 4x8]] = [[19, 22], [43, 50]].

5.7 Data preprocessing

Preprocessing steps
1Remove duplicates
➜
2Handle missing values
➜
3Fix errors and outliers
➜
4Encode categories
➜
5Normalise / scale
➜
6Split into train and test
ProblemSolution
Missing valuesremove the row, or fill with mean / median / mode
Duplicatesdelete repeated rows
Outlierscheck; correct errors, cap or remove
Text categoriesencode as numbers (e.g. Male = 0, Female = 1)
Different scalesnormalise: (x - min) / (max - min) gives 0 to 1
Min-max normalisation

Marks 40, 60, 100 (min 40, max 100). Normalised: (40 - 40)/60 = 0, (60 - 40)/60 = 0.33, (100 - 40)/60 = 1.

5.8 Exam-ready answers

Q. Differentiate between interval and ratio data. (2 marks)

Both have order and equal gaps, but ratio data has a true zero (e.g. weight), so ratios are meaningful. Interval data has no true zero (e.g. temperature in degree C).

Q. Find the mean, median, mode and range of 6, 8, 8, 10, 13. (4 marks)

Mean = 45 / 5 = 9; median = 8; mode = 8; range = 13 - 6 = 7.

Quick revision: one-look summary

Data literacy is the ability to read, understand, analyse and communicate with data. AI is only as good as its data.

Data collection

Primary data

Collected first-hand for the purpose: surveys, interviews, observation, experiments, sensors.

Secondary data

Collected earlier by others: census, research papers, data.gov.in, Kaggle, WHO and World Bank data.

Levels of measurement

LevelPropertyExamplesAllowed statistics
Nominalnames / categories onlygender, blood group, citymode, counts
Ordinalorder, unequal gapsranks, grades, ratingsmedian, mode
Intervalequal gaps, no true zerotemperature in deg C, yearsmean, SD, + and -
Ratioequal gaps and a true zeroheight, weight, income, rainfallall, including ratios

Statistical analysis

MeasureFormulaData 2, 4, 4, 4, 5, 5, 7, 9
Meansum / n40 / 8 = 5
Medianmiddle of sorted data(4 + 5) / 2 = 4.5
Modemost frequent4
Rangemax - min9 - 2 = 7
Variancesum of (x - mean)^2 / n(9+1+1+1+0+0+4+16) / 8 = 32 / 8 = 4
Standard deviationsquare root of variancesqrt(4) = 2
import statistics as st
data = [2, 4, 4, 4, 5, 5, 7, 9]
print("Mean    :", st.mean(data))
print("Median  :", st.median(data))
print("Mode    :", st.mode(data))
print("Variance:", st.pvariance(data), " (sample:", round(st.variance(data), 3), ")")
print("SD      :", st.pstdev(data))

Output:

Mean    : 5
Median  : 4.5
Mode    : 4
Variance: 4  (sample: 4.571 )
SD      : 2.0

Try it Statistics calculator with variance and standard deviation

Representation of data

ChartBest formatplotlib
Line graphtrend over time (monthly rainfall)plt.plot(x, y)
Bar graphcompare categoriesplt.bar(x, y)
Histogramdistribution of numeric values in binsplt.hist(data, bins=5)
Scatter plotrelation between two variablesplt.scatter(x, y)
Pie chartparts of a wholeplt.pie(values, labels=...)
import matplotlib.pyplot as plt
months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun"]
rain = [20, 35, 60, 120, 210, 95]
plt.plot(months, rain, marker="o")
plt.title("Monthly rainfall (mm)")
plt.xlabel("Month")
plt.ylabel("Rainfall")
plt.show()

Introduction to matrices

IdeaMeaningExample
Matrix, ordernumbers in rows and columns; order = rows x columns[1 2 3; 4 5 6] is 2 x 3
Typesrow, column, square, zero, diagonal, identity (1s on diagonal)I = [1 0; 0 1]
Additionsame order; add corresponding elements[1 2; 3 4] + [5 6; 7 8] = [6 8; 10 12]
Scalar multiplemultiply every element2[1 2; 3 4] = [2 4; 6 8]
Multiplicationcolumns of A = rows of B; row x column[1 2; 3 4] x [5 6; 7 8] = [19 22; 43 50]
Transposerows become columns[1 2; 3 4]T = [1 3; 2 4]
Uses in AIimages (pixel matrices), datasets (rows = records), neural network weights, recommendations

Try it 2 x 2 matrix calculator

Data pre-processing, modelling and evaluation

StepWhat is done
Cleaninghandle missing values (fill with mean/median or remove), remove duplicates, fix wrong entries and outliers
Transformationnormalisation (x - min)/(max - min), standardisation, encoding categories into numbers
Reductionremove features that do not help; sample large data
Integrationcombine data from many sources
Train-test splite.g. 80% training, 20% testing
Evaluationcheck the model on test data: accuracy, error; improve if needed
Remember
  • Variance uses squares, so it is never negative.
  • Ratio data has a true zero; interval data does not.
Common mistake
  • Python statistics.variance divides by n - 1 (sample). For the population formula use pvariance or numpy.var.
  • AB is usually not equal to BA.
9

Unit 6: Machine learning algorithms

6 marks · types of ML, correlation, linear regression, classification and k-NN, clustering and k-means

6.1 Machine learning

Machine learning (ML) is a subset of AI in which computers learn patterns from data and improve their performance without being explicitly programmed with every rule (Arthur Samuel, 1959).

Traditional programming vs ML
Traditional
  • rules + data -> answers
  • programmer writes all rules
VS
Machine learning
  • data + answers -> rules (model)
  • computer learns the rules

6.2 Types of machine learning

Types of ML
Machine learning
Supervised - labelled data: classification, regression
Unsupervised - unlabelled data: clustering, association
Reinforcement - rewards and penalties
TypeDataGoalExamples
Supervisedlabelled (input + correct output)predict output for new inputspam detection, house prices
Unsupervisedunlabelledfind hidden groups / patternscustomer segmentation
Reinforcementfeedback as rewardslearn the best actionsgame-playing AI, robots

6.3 Correlation

Correlation measures how strongly two variables are related. The Pearson correlation coefficient (r) ranges from -1 to +1.

rMeaningExample
+1 / close to +1strong positive: both rise togetherstudy hours and marks
0no linear relationshoe size and IQ
-1 / close to -1strong negative: one rises, other fallsspeed and travel time
Common mistake

Correlation is not causation: ice-cream sales and drowning cases both rise in summer, but one does not cause the other - heat causes both.

6.4 Linear regression

Linear regression is a supervised algorithm that predicts a continuous number by fitting a straight line y = mx + c (m = slope, c = intercept) through the data, using the least squares method.

Least squaresm = sum((x - xbar)(y - ybar)) / sum((x - xbar)^2); c = ybar - m * xbar
Worked example

Study hours x: 1, 2, 3, 4, 5; marks y: 50, 55, 65, 70, 80. xbar = 3, ybar = 64. Deviations x: -2, -1, 0, 1, 2; y: -14, -9, 1, 6, 16. Sum of products = 28 + 9 + 0 + 6 + 32 = 75; sum of x-deviations squared = 10. m = 75 / 10 = 7.5; c = 64 - 7.5 x 3 = 41.5. Line: y = 7.5x + 41.5. For 6 hours: y = 45 + 41.5 = 86.5 marks.

x = [1, 2, 3, 4, 5]; y = [50, 55, 65, 70, 80]
xb = sum(x) / 5; yb = sum(y) / 5
m = sum((a - xb) * (b - yb) for a, b in zip(x, y)) / sum((a - xb) ** 2 for a in x)
c = yb - m * xb
print("m =", m, "c =", c, "prediction for 6 h =", m * 6 + c)

Errors: MAE (mean absolute error), MSE (mean squared error), RMSE (square root of MSE) measure how far predictions are from actual values.

6.5 Classification: K-Nearest Neighbours

Classification predicts a category (spam / not spam). KNN classifies a new point by looking at its K nearest labelled points and taking the majority vote.

KNN steps
1Choose K
➜
2Find the distance from the new point to all points
➜
3Pick the K nearest
➜
4Majority class wins
Euclidean distanced = square root of ((x2 - x1)^2 + (y2 - y1)^2)
KNN example (K = 3)

Fruit data (weight g, sweetness): A (150, 7) apple, B (160, 8) apple, C (120, 3) lemon, D (110, 2) lemon, E (155, 6) apple. New fruit (140, 6). Distances: A = sqrt(100 + 1) = 10.05; B = sqrt(400 + 4) = 20.1; C = sqrt(400 + 9) = 20.2; D = sqrt(900 + 16) = 30.3; E = sqrt(225 + 0) = 15. Nearest 3: A, E, B - all apples. Prediction: apple.

6.6 Clustering: K-means

Clustering groups similar unlabelled items. K-means forms K clusters:

K-means
1Choose K and initial centroids
➜
2Assign each point to the nearest centroid
➜
3Recalculate centroids as cluster means
➜
4Repeat until centroids stop changing
↻ back to step 1 — it is a cycle

Example: an online shop groups customers into "budget buyers", "regular buyers" and "premium buyers" from spending data, without any labels.

6.7 Comparing algorithms

AlgorithmTypeOutputUse case
Linear regressionsupervisednumberprice, marks, sales prediction
KNNsupervisedclassdisease yes/no, fruit type
Decision treesupervisedclass / numberloan approval
K-meansunsupervisedgroupscustomer segmentation

6.8 Exam-ready answers

Q. Differentiate between regression and classification. (2 marks)

Regression predicts a continuous numeric value (e.g. house price). Classification predicts a category or class (e.g. spam or not spam).

Q. Explain the steps of the K-means algorithm. (4 marks)

Choose K and place K initial centroids; assign each data point to the nearest centroid; recompute each centroid as the mean of its points; repeat assignment and update until the centroids no longer change. The final groups are the clusters.

Quick revision: one-look summary

Machine learning lets computers learn patterns from data and improve with experience instead of following only fixed rules.

TypeDataTasksExample
Supervisedlabelledregression (number), classification (class)house price; spam filter
Unsupervisedunlabelledclustering, associationcustomer groups; items bought together
Reinforcementrewards / penaltiessequential decisionsgame AI, robot walking

Correlation

Correlation measures how strongly two variables move together. Pearson's r lies between -1 and +1: +1 perfect positive, -1 perfect negative, 0 no linear relation. Correlation is not causation.

r = [ n.Sxy - Sx.Sy ] / sqrt( [ n.Sx^2 - (Sx)^2 ] x [ n.Sy^2 - (Sy)^2 ] )

In MS Excel:   =CORREL(A2:A8, B2:B8)   or   =PEARSON(A2:A8, B2:B8)

Regression: finding the line

Linear regression fits the straight line y = mx + c that best describes the data. The best-fit line minimises the sum of squared residuals (actual - predicted): the least squares method.

m (slope)     = [ n.Sxy - Sx.Sy ] / [ n.Sx^2 - (Sx)^2 ]
c (intercept) = mean(y) - m x mean(x)
Prediction    : y = m x (new x) + c

In MS Excel: scatter chart > Add Trendline > Linear > Display equation on chart
             or =SLOPE(y_range, x_range) and =INTERCEPT(y_range, x_range)

Picture: regression line

Hours of study (x)Marks
y = 4.25x + 47.43. The vertical gaps between points and the line are the residuals.

Try it Correlation and regression calculator

Classification and k-NN

Type of classificationExample
Binaryspam / not spam, pass / fail
Multi-classdigit 0-9, type of fruit
Multi-labela movie tagged comedy and romance
Imbalancedfraud detection (very few fraud cases)

Picture: k-NN

?
The new point (?) looks at its 3 nearest neighbours: 2 triangles and 1 circle, so it becomes a triangle.
Stepk-Nearest Neighbours
1choose k (odd for two classes, e.g. 3 or 5)
2find the distance of the new point from every training point: d = sqrt((x1 - x2)^2 + (y1 - y2)^2)
3select the k nearest points
4majority vote of their classes gives the class of the new point

Clustering and k-means

Type of clusteringIdea
Partitioning (k-means)split data into k groups around centroids
Hierarchicalbuild a tree (dendrogram) by merging or splitting clusters
Density-based (DBSCAN)clusters are dense regions; sparse points are noise

Picture: k-means

Cluster 1Cluster 2
Assign each point to the nearest centroid (X), move each centroid to the mean of its points, repeat until nothing changes.
Stepk-means
1choose k and k starting centroids
2assign each point to the nearest centroid
3recompute each centroid as the mean of its points
4repeat 2 and 3 until the centroids do not change

Try it k-means on one-dimensional data (k = 2)

# scikit-learn versions (same code works in Jupyter)
from sklearn.neighbors import KNeighborsClassifier
from sklearn.cluster import KMeans
X_train = [[1, 1], [1, 2], [2, 2], [6, 6], [7, 6], [6, 7]]
y_train = ["A", "A", "A", "B", "B", "B"]
knn = KNeighborsClassifier(n_neighbors=3).fit(X_train, y_train)
print("k-NN prediction for (3, 3):", knn.predict([[3, 3]]))
km = KMeans(n_clusters=2, n_init=10).fit(X_train)
print("cluster labels:", km.labels_)
print("centroids:")
print(km.cluster_centers_)
Remember
  • k-NN: supervised, lazy learner, k = neighbours.
  • k-means: unsupervised, k = clusters, centroid = mean.
Common mistake
  • Write the table of x, y, xy, x^2 (and y^2 for r) before using the formulas.
  • r cannot be more than 1 or less than -1.
10

Unit 7: Leveraging linguistics and computer science

5 marks · language complexity, NLP tasks, phases of NLP, chatbots, applications

7.1 Language and computers

Human language is rich, creative and ambiguous. Linguistics is the scientific study of language - its sounds, words, grammar and meaning. Natural Language Processing (NLP) combines linguistics and computer science so that computers can understand, interpret and generate human language.

Why language is hard for computers
🔀
Ambiguity

"I saw a man with a telescope" - who has it?

🌐
Many languages

22 scheduled languages in India alone

😏
Sarcasm and idioms

"Great, another Monday!"

📍
Context

"bank" of a river vs a money bank

✍️
Informal text

spelling errors, slang, emojis

7.2 Levels of linguistic analysis

LevelStudiesExample
Phonologysounds"cat" = k + a + t
Morphologyword structureun + happy + ness
Syntaxgrammar and sentence structuresubject - verb - object
Semanticsmeaning"bright" = shining or intelligent
Pragmaticsmeaning in context"Can you pass the salt?" is a request
Discoursemeaning across sentences"Ravi came. He sat." (He = Ravi)

7.3 Applications of NLP

NLP tasks
NLP
Machine translation
Sentiment analysis
Chatbots and virtual assistants
Text summarisation
Speech recognition
Spam detection
Named entity recognition
Autocomplete

7.4 Phases of NLP

Phases of NLP
1Lexical analysis - words
➜
2Syntactic analysis - grammar
➜
3Semantic analysis - meaning
➜
4Discourse integration - context of sentences
➜
5Pragmatic analysis - intended meaning
PhaseWhat it doesExample
Lexical (morphological)breaks text into words/tokens and analyses word structure"Students are reading" -> Students / are / reading
Syntactic (parsing)checks grammar and builds a parse tree"Reading students are" is rejected
Semanticfinds literal meaning; rejects meaningless sentences"Hot ice cream" flagged as odd
Discourse integrationmeaning depends on earlier sentences"Asha lost her pen. She found it later."
Pragmaticreal intended meaning in the situation"It's cold here" may mean "close the window"

7.5 Text processing steps

Text pre-processing
1Sentence segmentation
➜
2Tokenisation
➜
3Lower-casing
➜
4Remove stop words and punctuation
➜
5Stemming or lemmatisation
StepExample
Tokenisation"AI is fun!" -> AI / is / fun / !
Stop-word removalremove is, the, a, an, of
Stemmingplaying, played -> play; studies -> studi
Lemmatisationstudies -> study; better -> good
POS taggingAI (noun) is (verb) fun (adjective)
Named Entity Recognition"Sundar Pichai (PERSON) leads Google (ORG) in California (PLACE)"

7.6 Representing text as numbers

Bag of Words

Bag of Words

Doc 1: "I love AI". Doc 2: "I love coding". Vocabulary: I, love, AI, coding. Vectors: Doc 1 = [1, 1, 1, 0]; Doc 2 = [1, 1, 0, 1].

TF-IDF

TF-IDFTF x IDF, where IDF = log(N / number of documents containing the word)

A word present in every document gets IDF = log(1) = 0 - it is not useful for telling documents apart. Rare, focused words get high TF-IDF.

Word embeddings

Modern NLP represents words as vectors so that similar words are close: king - man + woman is close to queen. Large language models use such embeddings and transformers.

7.7 Sentiment analysis example

pos = {"good", "great", "love", "excellent"}
neg = {"bad", "poor", "hate", "boring"}
review = "the movie was great and the songs were excellent but the story was boring"
words = review.split()
score = sum(w in pos for w in words) - sum(w in neg for w in words)
print("score", score, "->", "positive" if score > 0 else "negative" if score < 0 else "neutral")

7.8 NLP in Indian languages

Bhashini (National Language Translation Mission) builds translation and speech tools for Indian languages; IndicTrans and AI4Bharat create open models. Challenges include many scripts, code-mixing (Hinglish) and less digital data.

7.9 Exam-ready answers

Q. What is the difference between stemming and lemmatisation? (2 marks)

Stemming cuts word endings and may give a non-word (studies -> studi). Lemmatisation uses a dictionary to give the proper base word (studies -> study).

Q. Explain the five phases of NLP. (4 marks)

Lexical analysis splits text into words and studies word structure; syntactic analysis checks grammar; semantic analysis finds the literal meaning; discourse integration uses earlier sentences for meaning; pragmatic analysis finds the intended meaning in the real situation.

Quick revision: one-look summary

Natural Language Processing (NLP) combines linguistics and computer science so that computers can understand, interpret and generate human language.

Why human language is complex

ChallengeExample
Lexical ambiguity (word)"bank" of a river vs a money bank
Syntactic ambiguity (structure)"I saw the man with the telescope"
Context and reference"He said it was fine" - who is he, what is it?
Sarcasm and idioms"Great, another Monday!"; "break a leg"
Varietyspelling errors, slang, accents, code-mixing (Hinglish)

Picture: phases of NLP

Lexicaltokens, wordsSyntacticgrammarSemanticmeaningDiscourseprevious sentencesPragmaticintended meaning
From words to the intended meaning.
PhaseWorkExample
Lexical analysissplit text into sentences, words (tokens); identify word forms"AI is fun." -> AI | is | fun | .
Syntactic analysischeck grammar and build a parse tree"Fun is AI the" is rejected
Semantic analysischeck the literal meaning"hot ice-cream" is rejected
Discourse integrationuse previous sentences"Riya bought a phone. It is red." - it = phone
Pragmatic analysisintended meaning from context and world knowledge"Can you pass the salt?" = a request

NLP tasks and applications

TaskMeaningExample
Sentiment analysispositive / negative / neutral opinionproduct reviews, tweets
Emotion detectionjoy, anger, sadness, fearcustomer support priority
Text classificationassign categoriesspam filter, news topics
Chatbotsconversation with usersbank help bot, ChatGPT
Machine translationone language to anotherGoogle Translate
Speech recognition / synthesisspeech to text / text to speechvoice typing, screen readers
Summarisation, autocompleteshort summary, next wordnews apps, Gmail
Rule-based chatbot

Fixed rules and keywords; easy to build; fails on unexpected questions.

Menu bot on a website
AI (smart) chatbot

Uses NLP and ML; understands varied language; improves with data.

ChatGPT, Gemini, Alexa

Building a chatbot in Dialogflow (practical)

TermMeaningIce-cream bot
Agentthe chatbotIceCreamBot
Intentwhat the user wantsOrderIceCream, OrderStatus
Training phrasesexamples of user messages"I want two chocolate cones"
Entitiesdetails to extractflavour, size, quantity
Responsesreplies, using the parameters"2 chocolate cones ordered!"
Fulfilmentconnect to a program or databasesave the order
# a simple rule-based chatbot in Python
rules = {"hello": "Hi! Welcome to Scoops.", "flavour": "We have chocolate, vanilla and mango.", "price": "Each scoop costs Rs 50.", "bye": "Thank you, visit again!"}
for msg in ["Hello", "Which flavour do you have?", "What is the price?", "bye"]:
    reply = "Sorry, please ask about flavour or price."
    for key in rules:
        if key in msg.lower():
            reply = rules[key]
    print("User:", msg, "| Bot:", reply)

Output:

User: Hello | Bot: Hi! Welcome to Scoops.
User: Which flavour do you have? | Bot: We have chocolate, vanilla and mango.
User: What is the price? | Bot: Each scoop costs Rs 50.
User: bye | Bot: Thank you, visit again!

Try it Tokeniser and stop-word remover

Practical file

IBM Project Debater (2019) was the first AI to debate a human champion live; it searched about 400 million articles to build arguments and rebuttals. Practical: write an article on its interesting facts; build an ice-cream ordering chatbot (Dialogflow / Botsify / Botpress).

11

Unit 8: AI ethics and values

4 marks · five pillars, bias and its sources, mitigation, AI policies, Moral Machine

8.1 AI ethics

AI ethics is the set of values, principles and practices that guide the design, development and use of AI so that it benefits people and does not harm them. As AI decides loans, jobs, medical care and news feeds, ethics is essential.

8.2 The five pillars of AI ethics

Five pillars
🔍
Explainability

humans can understand why the AI gave a result

⚖️
Fairness

no unfair discrimination against any group

🛡️
Robustness

works reliably and safely, resists attacks

🪟
Transparency

open about data, purpose and limitations

🔒
Privacy

personal data is protected and used with consent

PillarQuestion to askExample of failure
ExplainabilityWhy was my loan rejected?a "black box" gives no reason
FairnessIs any group treated worse?hiring tool prefers men
RobustnessCan it be fooled or fail?stickers on a stop sign confuse a car
TransparencyDo users know AI is used?hidden AI calls pretending to be human
PrivacyIs data collected with consent?face data scraped without permission

8.3 Bias in AI

AI bias is a systematic error that leads to unfair outcomes for certain people or groups.

How bias enters AI
1Biased society and history
➜
2Biased or unbalanced data
➜
3Biased model
➜
4Unfair decisions
➜
5More biased data (feedback loop)
SourceDescriptionExample
Data biastraining data does not represent everyoneface dataset mostly of light-skinned faces
Historical biasdata reflects past discriminationold hiring data favours men
Algorithmic biasdesign choices or objectives create unfairnessoptimising only for clicks spreads extreme content
Human / labelling biaspeople labelling data bring prejudicelabellers mark certain accents as "unclear"
Sampling biasdata collected only from some placeshealth app data only from cities
Case: a hiring algorithm

A company trained an AI on ten years of resumes, mostly from men. The model learned to lower the score of resumes with words like "women's chess club". The company stopped using it. Lesson: check data and test outcomes for every group.

8.4 Mitigating bias

Reducing bias
1Collect diverse data
➜
2Audit data and labels
➜
3Test results for each group
➜
4Use fairness-aware methods
➜
5Human review of decisions
➜
6Monitor after deployment
  • Diverse teams build better systems.
  • Publish model limitations ("model cards").
  • Allow people to appeal AI decisions.

8.5 Other ethical issues

IssueConcern
Deepfakes and misinformationfake videos and news
Job displacementneed for reskilling
Surveillanceloss of privacy and freedom
Accountabilitywho is responsible when AI causes harm?
Autonomous weaponsdecisions about life and death
Environmental costlarge models use much energy and water

8.6 AI policies and guidelines

Policy / frameworkKey idea
NITI Aayog - National Strategy for AI (#AIforAll), 2018; Responsible AI principles, 2021safety, equality, inclusivity, privacy, transparency, accountability
Digital Personal Data Protection Act, 2023 (India)consent and protection of personal data
OECD AI Principles, 2019human-centred, transparent, robust, accountable AI
UNESCO Recommendation on the Ethics of AI, 2021global ethical standard
EU AI Actrisk-based rules: unacceptable, high, limited, minimal risk
EU AI Act risk levels (top = most restricted)
Unacceptable risk - banned (social scoring)
High risk - strict rules (hiring, medical)
Limited risk - transparency (chatbots must say they are AI)
Minimal risk - free use (spam filters, games)

8.7 Values for AI users and builders

Responsible AI values
Responsible AI
Honesty
Respect for privacy
Fairness
Accountability
Safety
Human oversight
Inclusion
Responsible student use

Using AI to understand a topic and then writing in your own words is responsible. Copying AI output as your own assignment, sharing friends' photos with apps without consent, or making fake images of people is unethical.

8.8 Exam-ready answers

Q. Name the five pillars of AI ethics. (2 marks)

Explainability, fairness, robustness, transparency and privacy.

Q. What is AI bias? Explain any three sources of bias with examples. (4 marks)

AI bias is a systematic error producing unfair results for some groups. Data bias - unrepresentative data (faces mostly of one skin tone); historical bias - past discrimination in data (old hiring records); algorithmic bias - design choices causing unfairness (optimising only clicks); human labelling bias - prejudice of labellers.

Quick revision: one-look summary

Ethics is a set of moral principles about right and wrong. AI ethics makes sure AI is developed and used in ways that are fair, safe and respect human rights.

Picture: five pillars

Trustworthy AIExplainabilityFairnessRobustnessTransparencyPrivacydata, people, policies
Trustworthy AI stands on all five.
PillarMeaningExample
ExplainabilityAI can explain why it made a decisionloan app shows reasons for rejection
Fairnessequal treatment of all individuals and groupshiring AI rates men and women equally
Robustnessreliable and secure even with unexpected or attacking inputsself-driving car safe in fog
Transparencyopenness about data, design and limitscompany publishes how its AI works
Privacyprotects personal data and user controlconsent before using health data

Bias in AI

Source of biasExample
Data (sampling) biasface recognition trained mostly on light skin performs poorly on dark skin
Historical biashiring AI trained on past hiring (mostly men) rejects women
Human / labelling biasannotators' stereotypes enter the labels
Algorithmic biasdesign gives too much weight to a proxy like pin code
Feedback looppredictive policing sends more police to the same areas, creating more records there
Bias awareness

Knowing that bias can exist and checking for it at every stage of the AI project cycle.

Mitigating bias
  • diverse, balanced data
  • fairness audits of results by group
  • diverse teams
  • human-in-the-loop, appeals
  • documentation and transparency

AI policies

Policy / lawKey idea
EU AI Actrisk-based law: unacceptable (banned), high, limited, minimal risk
NITI Aayog: Responsible AI for AllIndia's principles: safety, equality, inclusivity, privacy, transparency, accountability
DPDP Act 2023India's Digital Personal Data Protection Act: consent and protection of personal data
UNESCO Recommendation (2021)global ethical standard on AI adopted by member states
OECD AI Principles (2019)trustworthy AI that respects human rights and democracy

Moral Machine

MIT game: whom should a self-driving car with failed brakes save? It shows moral dilemmas and that people's choices differ.

Survival of the Best Fit

You hire candidates quickly, then an AI is trained on your choices and copies your bias - showing how biased data creates unfair AI.

Practical file

Practical: summarise the video "Humans Need Not Apply" (automation and jobs); role-play on biased AI systems; compare AI policies of organisations and governments.

12

Question bank: every type, with answers

1026 questions in 18 types, including 301 numericals and Python questions with full working

Handbook 33 questions are based on the practical activities and resources named in the CBSE curriculum Practice 993 written on the CBSE pattern

Tap a type to open it. In the one-mark types, tap an option to check yourself. Every answer has an explanation; numericals and Python outputs were worked out by a program. Tap Run on any program to try it in the built-in Python.

Objective type · 1 mark each

A1Employability skills-III MCQ1 mark · 103 questions
A1.1Practice1 mark

Which of these is NOT a method of communication?

Answer

(b) Encryption The three methods are verbal, non-verbal and visual.

A1.2Practice1 mark

A presentation that uses charts and infographics is mainly

Answer

(b) visual communication Visual communication uses images, charts, signs and symbols.

A1.3Practice1 mark

Body posture, gestures and facial expressions form

Answer

(a) non-verbal communication Messages without words are non-verbal.

A1.4Practice1 mark

A person who speaks openly and honestly while respecting others has the

Answer

(d) assertive style Assertive is the healthiest style.

A1.5Practice1 mark

A person who agrees on the face but later complains behind the back shows the

Answer

(b) passive-aggressive style Anger is expressed indirectly.

A1.6Practice1 mark

A person who always gives in to others, avoids conflict and puts others' needs first shows the

Answer

(c) submissive style Submissive communicators fail to express their own needs.

A1.7Practice1 mark

Speaking loudly, interrupting and using blaming words shows the

Answer

(a) aggressive style Aggressive communication ignores others' rights.

A1.8Practice1 mark

"I feel upset when the work is late; can we plan better?" This 'I' statement is typical of

Answer

(a) assertive communication 'I' statements express feelings without blaming.

A1.9Practice1 mark

A group of words that makes complete sense and has a subject and a verb is a

Answer

(a) sentence A phrase does not make complete sense.

A1.10Practice1 mark

'In the morning' is an example of a

Answer

(d) phrase It has no subject-verb pair.

A1.11Practice1 mark

Which kind of sentence is "Could you please send the report?"

Answer

(c) Interrogative It asks a question and ends with '?'.

A1.12Practice1 mark

In "The team won the match", the subject is

Answer

(c) The team The subject is the doer of the action.

A1.13Practice1 mark

Which part of speech joins words or sentences, like 'and', 'but', 'because'?

Answer

(b) Conjunction Conjunctions connect.

A1.14Practice1 mark

Which word is an adverb in "She speaks softly"?

Answer

(c) softly Adverbs describe verbs.

A1.15Practice1 mark

'Wow!', 'Oh!' and 'Hurray!' are

Answer

(d) interjections Interjections express sudden feelings.

A1.16Practice1 mark

Which article is correct: ___ honest man?

Answer

(b) an 'Honest' begins with a vowel sound.

A1.17Practice1 mark

Which article is correct: ___ university?

Answer

(c) a 'University' begins with a 'yu' (consonant) sound.

A1.18Practice1 mark

'The' is called the

Answer

(c) definite article 'A' and 'an' are indefinite articles.

A1.19Practice1 mark

The sentence that states the main idea of a paragraph is the

Answer

(d) topic sentence Supporting sentences explain it; the concluding sentence sums up.

A1.20Practice1 mark

A good paragraph has

Answer

(d) one main idea with supporting sentences in a logical order Unity and coherence make a good paragraph.

A1.21Practice1 mark

Which preposition fits: The book is ___ the table.

Answer

(c) on On shows position on a surface.

A1.22Practice1 mark

Which of these is a visual communication tool in a workplace?

Answer

(c) A fire-exit sign Signs and symbols are visual.

A1.23Practice1 mark

Grooming means

Answer

(c) taking care of one's appearance: clean, neat and suitably dressed Grooming = presentable appearance and hygiene.

A1.24Practice1 mark

For a job interview, the best dress is

Answer

(c) clean, ironed, formal clothes Appropriate dressing creates a good first impression.

A1.25Practice1 mark

A personal grooming checklist helps to

Answer

(d) check daily hygiene and appearance habits It lists items like bath, nails, hair, clean clothes, shoes.

A1.26Practice1 mark

Standing straight, smiling and keeping eye contact is

Answer

(b) positive body language Positive body language shows confidence.

A1.27Practice1 mark

Folding the arms and avoiding eye contact usually shows

Answer

(c) negative or closed body language It may signal defensiveness or nervousness.

A1.28Practice1 mark

Looking within to know our interests, values and abilities is called

Answer

(d) self-exploration Techniques: self-reflection, feedback, personality tests, journaling.

A1.29Practice1 mark

Which is a technique of self-exploration?

Answer

(c) Keeping a journal and reflecting on experiences Reflection helps us know ourselves.

A1.30Practice1 mark

A group of people working together towards a common goal is a

Answer

(b) team Teams share goals and responsibilities.

A1.31Practice1 mark

Which factor helps team building?

Answer

(b) Clear goals and mutual trust Trust, clear roles and communication build teams.

A1.32Practice1 mark

Which is NOT a quality of a good team member?

Answer

(c) Taking all the credit alone Good members share credit.

A1.33Practice1 mark

The factors that influence teamwork include

Answer

(b) communication, trust, leadership and clear roles These decide how well members cooperate.

A1.34Practice1 mark

Time management means

Answer

(d) planning and controlling how we use our time to complete tasks It balances work and leisure.

A1.35Practice1 mark

Breaking a large task into smaller tasks helps to

Answer

(a) make it manageable and track progress Small steps are easier to schedule.

A1.36Practice1 mark

Putting tasks in order of importance and urgency is called

Answer

(b) prioritising Important and urgent tasks come first.

A1.37Practice1 mark

Delaying important tasks again and again is called

Answer

(a) procrastination It is the biggest enemy of time management.

A1.38Practice1 mark

Which tool helps in time management?

Answer

(a) A to-do list and a calendar app Lists, schedules and planners help.

A1.39Practice1 mark

In the Eisenhower (urgent-important) matrix, tasks that are important and urgent should be

Answer

(d) done first Important-urgent tasks are top priority.

A1.40Practice1 mark

Balancing study, play and rest is called

Answer

(c) work-life (study-leisure) balance Balance keeps us healthy and productive.

A1.41Practice1 mark

Which SMART letter means the goal must have a deadline?

Answer

(d) T - Time-bound Specific, Measurable, Achievable, Realistic, Time-bound.

A1.42Practice1 mark

Which is a sign of good personal grooming?

Answer

(b) Trimmed nails and combed hair Neatness shows self-respect.

A1.43Practice1 mark

A team member who listens, resolves conflicts and motivates others shows

Answer

(d) leadership Leaders guide and support the team.

A1.44Practice1 mark

Software used to create, edit, format and print text documents is a

Answer

(a) word processor Examples: LibreOffice Writer, MS Word, Google Docs.

A1.45Practice1 mark

Which is a word processing software?

Answer

(c) LibreOffice Writer Calc is a spreadsheet; Impress makes presentations.

A1.46Practice1 mark

The default file extension of a LibreOffice Writer document is

Answer

(b) .odt .odt = OpenDocument Text; MS Word uses .docx.

A1.47Practice1 mark

The shortcut to save a document is

Answer

(b) Ctrl + S Ctrl + P prints, Ctrl + O opens, Ctrl + N creates new.

A1.48Practice1 mark

The shortcut to make selected text bold is

Answer

(d) Ctrl + B Ctrl + I italic, Ctrl + U underline, Ctrl + E centre.

A1.49Practice1 mark

Which alignment makes text even on both the left and right margins?

Answer

(d) Justify Justified text is used in newspapers and books.

A1.50Practice1 mark

Text that appears at the top of every page is the

Answer

(a) header The footer appears at the bottom.

A1.51Practice1 mark

Page numbers are usually inserted in the

Answer

(a) header or footer They repeat on every page.

A1.52Practice1 mark

The feature that automatically corrects common typing mistakes like 'teh' to 'the' is

Answer

(d) AutoCorrect AutoCorrect fixes errors as you type.

A1.53Practice1 mark

Which feature changes every 'colour' to 'color' in a long document in one step?

Answer

(b) Find and Replace Shortcut Ctrl + H in many word processors.

A1.54Practice1 mark

How text flows around an inserted picture is controlled by

Answer

(d) text wrapping Options: square, tight, in line, behind text.

A1.55Practice1 mark

Lists with 1, 2, 3 or a, b, c are

Answer

(b) numbered lists Bulleted lists use dots or symbols.

A1.56Practice1 mark

Arial, Times New Roman and Calibri are names of

Answer

(b) fonts (typefaces) Font face, size and style change the look of text.

A1.57Practice1 mark

A grid of rows and columns inserted in a document is a

Answer

(b) table Tables organise data neatly.

A1.58Practice1 mark

To save a Writer file so that MS Word users can open it, choose

Answer

(d) Save As with the .docx format Documents can be saved in many formats: .odt, .docx, .pdf.

A1.59Practice1 mark

To create a PDF of a document in LibreOffice Writer, use

Answer

(a) Export as PDF File > Export as PDF.

A1.60Practice1 mark

Print Preview is used to

Answer

(d) see how the document will look when printed It saves paper by checking layout first.

A1.61Practice1 mark

The shortcut to undo the last action is

Answer

(c) Ctrl + Z Ctrl + Y redoes; Ctrl + A selects all.

A1.62Practice1 mark

Portrait and landscape are types of

Answer

(b) page orientation Landscape is wider than it is tall.

A1.63Practice1 mark

Which key combination selects the entire document?

Answer

(c) Ctrl + A A for All.

A1.64Practice1 mark

Values are

Answer

(a) beliefs that guide our behaviour and decisions Values tell us what is important and right.

A1.65Practice1 mark

Which is an entrepreneurial value?

Answer

(c) Innovativeness Entrepreneurial values: innovativeness, independence, outstanding performance, respect for work.

A1.66Practice1 mark

An entrepreneur who likes to make his or her own decisions and does not depend on others shows

Answer

(d) independence Independence is an entrepreneurial value.

A1.67Practice1 mark

Always trying to do the best and set high standards is the value of

Answer

(d) outstanding performance Entrepreneurs aim for excellence.

A1.68Practice1 mark

Believing that no work is small and doing every task with dignity is

Answer

(a) respect for work Respect for all kinds of work.

A1.69Practice1 mark

Creating new products or new ways of doing things is

Answer

(b) innovativeness Innovation drives business growth.

A1.70Practice1 mark

An attitude is

Answer

(c) a way of thinking or feeling about something that shows in behaviour Attitudes can be positive or negative.

A1.71Practice1 mark

Entrepreneurs prefer to take

Answer

(d) moderate (calculated) risks They study the situation and then take sensible risks.

A1.72Practice1 mark

'Believing that you can change the environment' is

Answer

(c) an entrepreneurial attitude Entrepreneurs believe they can shape their surroundings.

A1.73Practice1 mark

Seeing a business chance where others see only a problem is

Answer

(a) seeking economic opportunities Opportunity-seeking is a key attitude.

A1.74Practice1 mark

Using imagination and gut feeling to find new ideas is

Answer

(d) imagination and intuition Entrepreneurs use both imagination and analysis.

A1.75Practice1 mark

Studying a situation and making a plan before acting is the attitude of

Answer

(c) analysing situations and planning action Planning reduces risk.

A1.76Practice1 mark

Which is NOT an entrepreneurial attitude?

Answer

(d) Waiting for others to tell you what to do Entrepreneurs take initiative.

A1.77Practice1 mark

An entrepreneur who enjoys the freedom to express ideas and act on them shows

Answer

(c) enjoying freedom of expression and action Freedom is a strong motivator.

A1.78Practice1 mark

Which of these shows the attitude 'getting involved in activities'?

Answer

(c) Volunteering to organise the school fair stall Entrepreneurs participate actively.

A1.79Practice1 mark

A student who repairs old phones and sells them, instead of waiting for a job, shows

Answer

(b) an entrepreneurial attitude Taking initiative to create value.

A1.80Practice1 mark

Attitudes can be changed by

Answer

(b) learning, experience and practice Entrepreneurial attitudes can be developed.

A1.81Practice1 mark

Which value is shown by an entrepreneur who keeps improving the product after customer feedback?

Answer

(d) Outstanding performance and innovativeness Continuous improvement shows these values.

A1.82Practice1 mark

A positive attitude in business helps to

Answer

(c) face failures and keep trying Positive people bounce back.

A1.83Practice1 mark

Which is an example of a moderate risk?

Answer

(a) Starting a small tiffin service after a market survey Moderate risks are studied and planned.

A1.84Practice1 mark

A green economy is

Answer

(a) low-carbon, resource-efficient and socially inclusive UNEP definition.

A1.85Practice1 mark

Which is a main sector of the green economy?

Answer

(c) Renewable energy Main sectors: e-waste management, green transport, renewable energy, green construction, water management.

A1.86Practice1 mark

Safe collection and recycling of old phones and computers is

Answer

(a) e-waste management E-waste has toxic metals like lead and mercury.

A1.87Practice1 mark

Electric buses, metro rail and cycling are examples of

Answer

(d) green transportation They reduce fuel use and pollution.

A1.88Practice1 mark

Buildings that use less energy and water and use eco-friendly materials are

Answer

(a) green buildings (green construction) They follow rating systems like GRIHA and IGBC.

A1.89Practice1 mark

Solar, wind and small hydro power are

Answer

(d) renewable energy sources They are replenished naturally.

A1.90Practice1 mark

Drip irrigation and rainwater harvesting belong to

Answer

(d) water management They save water.

A1.91Practice1 mark

India's mission to keep cities and villages clean is

Answer

(b) Swachh Bharat Mission A key policy initiative for greening.

A1.92Practice1 mark

The National Action Plan on Climate Change (NAPCC) has missions such as

Answer

(b) the National Solar Mission NAPCC (2008) has eight national missions including solar and energy efficiency.

A1.93Practice1 mark

Which scheme promotes electric vehicles in India?

Answer

(d) FAME (Faster Adoption and Manufacturing of Electric Vehicles) FAME supports EVs.

A1.94Practice1 mark

People or groups who have an interest in the green economy, such as government, industry and citizens, are

Answer

(a) stakeholders Stakeholders: government, private sector, NGOs, communities, consumers.

A1.95Practice1 mark

Who makes laws and policies like pollution standards for the green economy?

Answer

(a) Government Government regulates and gives incentives.

A1.96Practice1 mark

Private companies help greening by

Answer

(d) investing in clean technology and reducing their emissions Corporate social responsibility and green investment.

A1.97Practice1 mark

Tourism that conserves nature and benefits local people is

Answer

(b) eco-tourism Green tourism protects the environment.

A1.98Practice1 mark

Organic farming and reduced use of chemical fertilisers come under greening of

Answer

(b) agriculture Sustainable agriculture protects soil.

A1.99Practice1 mark

Avoiding overfishing and protecting breeding seasons is part of greening

Answer

(b) fisheries Sustainable fisheries keep fish stocks alive.

A1.100Practice1 mark

LED bulbs and 5-star rated appliances help in

Answer

(d) energy efficiency They use less electricity.

A1.101Practice1 mark

Planting trees on barren land is called

Answer

(a) afforestation It increases forest cover.

A1.102Practice1 mark

Which is a role of citizens in the green economy?

Answer

(c) Reducing, reusing and recycling waste Every person is a stakeholder.

A1.103Practice1 mark

Green jobs are jobs that

Answer

(d) help protect or restore the environment E.g. solar technician, recycling worker, organic farmer.

A2Unit 1: AI for everyone1 mark · 37 questions
A2.1Handbook1 mark

In the CBSE practical activity, applications are categorised into

Answer

(b) the three domains of AI Data Science, CV and NLP.

A2.2Practice1 mark

A neural network is inspired by

Answer

(c) the human brain Neurons connected in layers.

A2.3Practice1 mark

AI that would be smarter than humans in every field is

Answer

(d) Super AI It is only a theoretical idea.

A2.4Practice1 mark

Data used to teach a model is

Answer

(b) training data Testing data checks the trained model.

A2.5Practice1 mark

An AI that has been trained only on photos of cats and dogs is shown a horse. It will most likely

Answer

(a) wrongly call it a cat or a dog AI only knows what it was trained on.

A2.6Practice1 mark

IBM Watson became famous in 2011 by

Answer

(d) winning the quiz show Jeopardy! It understood natural-language questions.

A2.7Practice1 mark

Machine learning that uses neural networks with many layers is

Answer

(c) Deep Learning Deep = many hidden layers.

A2.8Practice1 mark

IBM's Deep Blue became famous in 1997 for

Answer

(b) defeating world chess champion Garry Kasparov A landmark of AI in games.

A2.9Practice1 mark

In AI terminology, the input variables used to make a prediction are called

Answer

(d) features The value to be predicted is the label (target).

A2.10Practice1 mark

Finding hidden groups in unlabelled data is

Answer

(b) unsupervised learning Example: customer segmentation.

A2.11Practice1 mark

AI that has its own consciousness and self-awareness is

Answer

(c) self-aware AI It is only hypothetical.

A2.12Practice1 mark

The test proposed in 1950 to check whether a machine can show human-like intelligence is the

Answer

(a) Turing Test Alan Turing, 'Computing Machinery and Intelligence' (1950).

A2.13Practice1 mark

AlphaGo, which defeated Go champion Lee Sedol in 2016, was made by

Answer

(d) Google DeepMind It used deep reinforcement learning.

A2.14Practice1 mark

Predicting house prices from past sales data belongs to

Answer

(d) Data Science It works on numbers in tables.

A2.15Practice1 mark

The value that a supervised model learns to predict is called the

Answer

(a) label (target) Features -> model -> label.

A2.16Practice1 mark

Self-driving cars that use recent observations of other cars to decide are

Answer

(d) limited memory AI They store data for a short time.

A2.17Practice1 mark

Learning from labelled data (input with the correct output) is

Answer

(b) supervised learning Example: emails labelled spam / not spam.

A2.18Practice1 mark

A system that learns from data without being explicitly programmed is

Answer

(b) Machine Learning Arthur Samuel's definition.

A2.19Practice1 mark

AI that could do any intellectual task a human can do is

Answer

(d) General (Strong) AI It does not exist yet.

A2.20Practice1 mark

Reading number plates of vehicles at a toll plaza uses

Answer

(c) Computer Vision It processes images and video.

A2.21Practice1 mark

Sentiment analysis of product reviews belongs to

Answer

(c) Natural Language Processing It works on text.

A2.22Practice1 mark

Who is called the 'father of Artificial Intelligence' and coined the term in 1956?

Answer

(d) John McCarthy At the Dartmouth Conference, 1956.

A2.23Practice1 mark

The 1956 workshop considered the birth of AI as a field was held at

Answer

(b) Dartmouth College Dartmouth Summer Research Project on AI.

A2.24Practice1 mark

An agent that learns by getting rewards and penalties is using

Answer

(c) reinforcement learning Example: game-playing AI, robots.

A2.25Practice1 mark

Based on functionality, AI that only reacts to the present situation and has no memory (like Deep Blue) is a

Answer

(a) reactive machine It cannot use past experiences.

A2.26Practice1 mark

The three domains of AI are

Answer

(b) Data Science, Computer Vision and Natural Language Processing Based on the type of data used.

A2.27Practice1 mark

The three types of layers in a neural network are

Answer

(a) input, hidden and output Hidden layers do the processing.

A2.28Practice1 mark

Artificial Intelligence is best defined as

Answer

(d) the ability of machines to perform tasks that normally need human intelligence Learning, reasoning, perception and decision making.

A2.29Practice1 mark

Which is a benefit of AI?

Answer

(c) It can work 24x7 on repetitive tasks with high accuracy AI reduces human error in repetitive work.

A2.30Practice1 mark

AI that could understand human emotions, beliefs and intentions is called

Answer

(d) theory of mind AI It is still being researched.

A2.31Practice1 mark

Which is a limitation of AI?

Answer

(a) It lacks common sense and true understanding AI cannot think like humans in new situations.

A2.32Practice1 mark

ChatGPT, released in 2022, is an example of

Answer

(a) a Large Language Model (generative AI) It generates human-like text.

A2.33Practice1 mark

Recommendation of videos on YouTube is an application of

Answer

(a) Machine Learning on user data It learns your viewing patterns.

A2.34Practice1 mark

Periods when funding and interest in AI fell sharply are called

Answer

(c) AI winters There were AI winters in the 1970s and late 1980s.

A2.35Practice1 mark

ELIZA (1966) was one of the first

Answer

(d) chatbots Created by Joseph Weizenbaum at MIT.

A2.36Practice1 mark

AI that is designed for one specific task, like face unlock, is

Answer

(d) Narrow (Weak) AI All AI in use today is narrow AI.

A2.37Practice1 mark

Computing that tries to mimic human thinking - perception, learning and reasoning - is called

Answer

(b) cognitive computing IBM Watson is an example.

A3Unit 2: Careers in AI1 mark · 32 questions
A3.1Handbook1 mark

IBM SkillsBuild is

Answer

(a) a free online learning platform with AI courses and badges CBSE uses it for certification in AI 843.

A3.2Handbook1 mark

In the practical activity, students identify

Answer

(b) ten companies hiring for specific AI positions From job portals like LinkedIn and Naukri.

A3.3Practice1 mark

An engineer who builds face recognition and medical image systems specialises in

Answer

(d) Computer Vision CV engineers work with images and video.

A3.4Practice1 mark

Labelling images so that an AI model can learn from them is done by

Answer

(d) data annotators (labellers) An entry-level AI job.

A3.5Practice1 mark

Which is a soft skill needed in AI careers?

Answer

(c) Communication and teamwork AI professionals must explain results and work in teams.

A3.6Practice1 mark

Who develops new AI algorithms and publishes research papers?

Answer

(b) AI Research Scientist Research scientists push the field forward.

A3.7Practice1 mark

AI in healthcare is used for

Answer

(b) reading X-rays and predicting diseases Medical imaging and diagnosis.

A3.8Practice1 mark

AI in banking and finance is used for

Answer

(b) fraud detection and credit scoring It spots unusual transactions.

A3.9Practice1 mark

AI in transportation is used for

Answer

(c) self-driving cars and traffic prediction Route optimisation and autonomous vehicles.

A3.10Practice1 mark

A person who makes sure AI systems are fair, transparent and responsible is an

Answer

(b) AI Ethicist AI ethics is a growing career.

A3.11Practice1 mark

A person who studies data and prepares reports and dashboards for business decisions is a

Answer

(b) Data Analyst Analysts answer business questions with data.

A3.12Practice1 mark

AI in manufacturing is used for

Answer

(a) predictive maintenance and quality inspection It predicts machine failure and finds defects.

A3.13Practice1 mark

TensorFlow and PyTorch are

Answer

(c) deep learning frameworks They build and train neural networks.

A3.14Practice1 mark

Which programming language is most widely used in AI and data science?

Answer

(c) Python Python has rich AI libraries.

A3.15Practice1 mark

Which is a technical skill for an AI career?

Answer

(c) Programming and data handling Also ML, statistics and tools.

A3.16Practice1 mark

Which mathematical areas are essential for AI careers?

Answer

(b) Statistics, probability, linear algebra and calculus They are the base of ML algorithms.

A3.17Practice1 mark

A good first step to choose an AI career path is to

Answer

(b) match your interests and skills with job roles Self-assessment is part of the unit.

A3.18Practice1 mark

Who designs, builds and deploys machine learning models in products?

Answer

(b) Machine Learning Engineer ML engineers focus on building and scaling models.

A3.19Practice1 mark

An engineer who builds chatbots, translators and speech systems specialises in

Answer

(d) Natural Language Processing NLP engineers work with text and speech.

A3.20Practice1 mark

Jupyter Notebook is used for

Answer

(b) writing and running code with notes and charts together Popular among data scientists.

A3.21Practice1 mark

Demand for AI professionals worldwide is

Answer

(b) growing rapidly across many industries AI is used in health, finance, retail, farming and more.

A3.22Practice1 mark

MLOps engineers mainly work on

Answer

(a) deploying, monitoring and maintaining ML models in production Ops = operations.

A3.23Practice1 mark

Which job role needs strong statistics and visualisation skills to turn data into stories for managers?

Answer

(a) Data Analyst Analysts communicate insights.

A3.24Practice1 mark

Which statement about AI careers is TRUE?

Answer

(b) People from many backgrounds (biology, finance, arts) can work in AI with the right skills AI is interdisciplinary.

A3.25Practice1 mark

A professional who decides what an AI product should do and coordinates the team is an

Answer

(a) AI Product Manager Product managers link business needs and technology.

A3.26Practice1 mark

Which online resource gives free datasets and competitions for AI learners?

Answer

(a) Kaggle Kaggle hosts datasets and ML contests.

A3.27Practice1 mark

A professional who collects, cleans and analyses data to find insights and build models is a

Answer

(d) Data Scientist Data scientists combine statistics, programming and domain knowledge.

A3.28Practice1 mark

AI in retail and e-commerce is used for

Answer

(b) product recommendations and demand forecasting Personalised shopping.

A3.29Practice1 mark

Which skill helps an AI professional keep up with fast changes in the field?

Answer

(c) Continuous (lifelong) learning AI tools change very fast.

A3.30Practice1 mark

Scikit-learn is a Python library mainly used for

Answer

(d) machine learning (classification, regression, clustering) It has ready ML algorithms.

A3.31Practice1 mark

AI in agriculture is used for

Answer

(b) crop disease detection and yield prediction Drones, sensors and image analysis help farmers.

A3.32Practice1 mark

A professional who designs robots that sense and act in the real world is a

Answer

(c) Robotics Engineer Robotics combines AI, mechanics and electronics.

A4Unit 3: Python, with output questions1 mark · 117 questions
A4.1Practice1 mark

What is the output of the following code?

s = "deep learning"
print(s.upper(), s.title(), s.count("a"))
Answer

(c) DEEP LEARNING Deep Learning 1 upper(), title() and count() are string methods.

A4.2Practice1 mark

What is the output of the following code?

s = "data science"
print(s.upper(), s.title(), s.count("a"))
Answer

(d) DATA SCIENCE Data Science 2 upper(), title() and count() are string methods.

A4.3Practice1 mark

What is the output of the following code?

for i in range(5, 8, 2):
    print(i, end=' ')
Answer

(d) 5 7 range(5, 8, 2) starts at 5, adds 2 each time and stops before 8.

A4.4Practice1 mark

What is the output of the following code?

t = (10, 20, 30, 20)
print(t.count(20), t.index(30), t[-1])
Answer

(d) 2 2 20 count gives occurrences; index gives the first position.

A4.5Practice1 mark

Which is a valid identifier?

Answer

(a) _rate2 Cannot start with a digit, contain '-', or be a keyword.

A4.6Practice1 mark

What is the output of the following code?

s = 0
for i in range(1, 4):
    s = s + i
print(s)
Answer

(d) 6 It adds 1 to 3: sum = 6.

A4.7Practice1 mark

The data type of 3 + 4j is

Answer

(b) complex j denotes the imaginary part.

A4.8Practice1 mark

What is the output of the following code?

a = "KV"
b = "3"
print(a + b)
Answer

(c) KV3 Both are strings, so + joins them.

A4.9Practice1 mark

What is the output of the following code?

i = 1
while i < 40:
    print(i, end=' ')
    i = i * 2
Answer

(b) 1 2 4 8 16 32 i is multiplied by 2 each round while it is less than 40.

A4.10Practice1 mark

What is the output of the following code?

x = 12
x += 4
x *= 4
print(x)
Answer

(b) 64 x = 12, then x = 12 + 4 = 16, then x = 16 * 4 = 64.

A4.11Practice1 mark

Which library provides ready machine learning algorithms like LinearRegression and KNeighborsClassifier?

Answer

(b) scikit-learn (sklearn) Scikit-learn is the main ML library in Python.

A4.12Practice1 mark

The else block of a for loop runs when

Answer

(a) the loop ends normally without break A loop-else runs if no break occurred.

A4.13Practice1 mark

What is the output of the following code?

marks = 91
if marks >= 75:
    print('Distinction')
elif marks >= 33:
    print('Pass')
else:
    print('Fail')
Answer

(b) Distinction 91 is at least 75, so that branch runs and the rest are skipped.

A4.14Practice1 mark

What is the output of the following code?

for i in range(5, 13, 3):
    print(i, end=' ')
Answer

(c) 5 8 11 range(5, 13, 3) starts at 5, adds 3 each time and stops before 13.

A4.15Practice1 mark

What is the output of the following code?

print(type("25"))
Answer

(b) <class 'str'> The value "25" is of type str.

A4.16Practice1 mark

What is the output of the following code?

a = 22
b = 4
print(a > b and b > 5, a > b or b > 5, not a > b)
Answer

(d) False True False a > b is True, b > 5 is False; and needs both True, or needs one.

A4.17Practice1 mark

Which function creates a NumPy array from a list?

Answer

(a) np.array() import numpy as np.

A4.18Practice1 mark

What is the output of the following code?

L = [50, 35, 95, 30, 40]
print(L[-1], L[-2], len(L))
Answer

(d) 40 30 5 -1 is the last, -2 the second last; len gives 5.

A4.19Practice1 mark

What is the output of the following code?

n = "9"
print(n * 2)
Answer

(b) 99 n is a string, so * 2 repeats it.

A4.20Practice1 mark

Which of these is NOT a token type in Python?

Answer

(b) Comment Comments are ignored by the interpreter.

A4.21Practice1 mark

What is the output of the following code?

L = [1, 2, 3]
M = L
M.append(4)
print(L)
Answer

(b) [1, 2, 3, 4] M and L refer to the same list.

A4.22Practice1 mark

What is the output of the following code?

a = 2
b = 10
print(a > b and b > 5, a > b or b > 5, not a > b)
Answer

(c) False True True a > b is False, b > 5 is True; and needs both True, or needs one.

A4.23Practice1 mark

What is the output of the following code?

L = [85, 50, 55, 30, 15]
L.insert(1, 0)
L.remove(15)
print(L)
Answer

(b) [85, 0, 50, 55, 30] insert(1, 0) puts 0 at index 1; remove(15) deletes that value.

A4.24Practice1 mark

Symbols like ( ) [ ] { } , : are

Answer

(c) punctuators (delimiters) They organise code structure.

A4.25Practice1 mark

Pandas is mainly used for

Answer

(d) data analysis with Series and DataFrames Tabular data handling.

A4.26Practice1 mark

What is the output of the following code?

marks = 53
if marks >= 75:
    print('Distinction')
elif marks >= 33:
    print('Pass')
else:
    print('Fail')
Answer

(b) Pass 53 is at least 33 but less than 75, so that branch runs and the rest are skipped.

A4.27Practice1 mark

Python is case-sensitive. This means

Answer

(c) Marks and marks are different names Case matters in identifiers.

A4.28Practice1 mark

What is the output of the following code?

print(6 // 4, 6 % 4)
Answer

(c) 1 2 6 // 4 is the floor quotient 1; 6 % 4 is the remainder 2.

A4.29Practice1 mark

What is the output of the following code?

import numpy as np
a = np.array([10, 20, 30, 40])
print(a[a > 15].mean())
Answer

(c) 30.0 Values above 15: 20, 30, 40; mean = 30.0.

A4.30Practice1 mark

What is the output of the following code?

i = 1
while i < 40:
    print(i, end=' ')
    i = i * 3
Answer

(d) 1 3 9 27 i is multiplied by 3 each round while it is less than 40.

A4.31Practice1 mark

What is the output of the following code?

L = [25, 20, 75, 90, 60]
L.append(7)
print(L)
Answer

(b) [25, 20, 75, 90, 60, 7] append() adds 7 at the end.

A4.32Practice1 mark

Reserved words with a special meaning in Python, like if, for, while, are

Answer

(d) keywords They cannot be used as names.

A4.33Practice1 mark

Names given to variables, functions and classes are

Answer

(c) identifiers e.g. total_marks.

A4.34Practice1 mark

What is the output of the following code?

x = 14
x += 6
x *= 3
print(x)
Answer

(b) 60 x = 14, then x = 14 + 6 = 20, then x = 20 * 3 = 60.

A4.35Practice1 mark

What is the output of the following code?

x = 5
x = x * 2 ** 2 - 3
print(x)
Answer

(b) 17 first: 2 2 = 4; then 5 * 4 = 20; 20 - 3 = 17.

A4.36Practice1 mark

What is the output of the following code?

print("AI" * 3)
Answer

(a) AIAIAI * repeats the string 3 times.

A4.37Practice1 mark

Which has the highest precedence?

Answer

(b) ** Exponent comes before multiplication and addition.

A4.38Practice1 mark

What is the output of the following code?

s = "Artificial"
print(s[2:5], s[-3:], s[::2])
Answer

(c) tif ial Atfca Slicing: start included, stop excluded; ::2 takes every second character.

A4.39Practice1 mark

What is the output of the following code?

s = {3, 1, 3, 2, 1}
print(len(s), sorted(s))
Answer

(a) 3 [1, 2, 3] Sets keep only unique values.

A4.40Practice1 mark

What is the output of the following code?

s = "Computer"
print(s[2:5], s[-3:], s[::2])
Answer

(c) mpu ter Cmue Slicing: start included, stop excluded; ::2 takes every second character.

A4.41Practice1 mark

The two modes of working in Python IDLE are

Answer

(b) interactive mode and script mode Shell (>>>) vs .py file.

A4.42Practice1 mark

What is the output of the following code?

n = 5
c = 0
while n > 0:
    n = n - 2
    c = c + 1
print(c, n)
Answer

(b) 3 -1 The loop subtracts 2 until n is 0 or less; count the rounds.

A4.43Practice1 mark

What is the output of the following code?

d = {"a": 1, "b": 2}
d["c"] = 3
print(len(d), d.get("b"), d.get("z", 0))
Answer

(b) 3 2 0 Adding a key; get() returns the default if the key is missing.

A4.44Practice1 mark

What is the output of the following code?

import numpy as np
a = np.arange(1, 7).reshape(2, 3)
print(a.shape, a[1][2])
Answer

(d) (2, 3) 6 arange(1, 7) gives 1 to 6; reshaped into 2 rows and 3 columns.

A4.45Practice1 mark

What is the output of the following code?

print(type([2, 5]))
Answer

(d) <class 'list'> The value [2, 5] is of type list.

A4.46Practice1 mark

What is the output of the following code?

L = [5, 3, 8]
print(L * 2, 8 in L)
Answer

(c) [5, 3, 8, 5, 3, 8] True * repeats a list; in checks membership.

A4.47Practice1 mark

What is the output of the following code?

import pandas as pd
df = pd.DataFrame({"x": [1, 2, 3], "y": [4, 5, 6]})
print(df.shape, df["y"].sum())
Answer

(d) (3, 2) 15 3 rows and 2 columns; 4 + 5 + 6.

A4.48Practice1 mark

What is the output of the following code?

print(type(25.0))
Answer

(d) <class 'float'> The value 25.0 is of type float.

A4.49Practice1 mark

Which statement is used to exit a loop early?

Answer

(a) break continue skips to the next iteration.

A4.50Practice1 mark

Which statement does nothing and is used as a placeholder?

Answer

(b) pass Used for empty blocks.

A4.51Practice1 mark

What is the output of the following code?

n = 10
c = 0
while n > 0:
    n = n - 3
    c = c + 1
print(c, n)
Answer

(c) 4 -2 The loop subtracts 3 until n is 0 or less; count the rounds.

A4.52Practice1 mark

What is the output of the following code?

marks = 90
if marks >= 75:
    print('Distinction')
elif marks >= 33:
    print('Pass')
else:
    print('Fail')
Answer

(d) Distinction 90 is at least 75, so that branch runs and the rest are skipped.

A4.53Practice1 mark

The value None in Python represents

Answer

(c) the absence of a value Its type is NoneType.

A4.54Practice1 mark

What is the output of the following code?

n = "38"
print(int(n) + 2)
Answer

(d) 40 int("38") converts the string to the number 38; 38 + 2 = 40.

A4.55Practice1 mark

What is the output of the following code?

L = [x * x for x in range(1, 5) if x % 2 == 0]
print(L)
Answer

(a) [4, 16] Even x: 2 and 4; squares 4 and 16.

A4.56Practice1 mark

What is the output of the following code?

import pandas as pd
s = pd.Series([4, 9, 2], index=["a", "b", "c"])
print(s["b"], s.max(), s.idxmin())
Answer

(a) 9 9 c Label b holds 9; idxmin gives the label of the smallest value.

A4.57Practice1 mark

What is the output of the following code?

marks = 82
if marks >= 75:
    print('Distinction')
elif marks >= 33:
    print('Pass')
else:
    print('Fail')
Answer

(d) Distinction 82 is at least 75, so that branch runs and the rest are skipped.

A4.58Practice1 mark

What is the output of the following code?

print(type(25))
Answer

(c) <class 'int'> The value 25 is of type int.

A4.59Practice1 mark

np.zeros((2, 3)) creates

Answer

(d) a 2 x 3 array filled with 0.0 zeros(shape).

A4.60Practice1 mark

What is the output of the following code?

import numpy as np
a = np.array([2, 4, 6])
print(a * 2, a.sum())
Answer

(c) [ 4 8 12] 12 NumPy multiplies element-wise.

A4.61Practice1 mark

What is the output of the following code?

a = "AI"
b = "4"
print(a + b)
Answer

(b) AI4 Both are strings, so + joins them.

A4.62Practice1 mark

What is the output of the following code?

a = 29
b = 21
print(a > b and b > 5, a > b or b > 5, not a > b)
Answer

(d) True True False a > b is True, b > 5 is True; and needs both True, or needs one.

A4.63Practice1 mark

What is the output of the following code?

for i in range(5):
    if i == 3:
        break
    print(i, end=" ")
Answer

(c) 0 1 2 break stops the loop at i = 3.

A4.64Practice1 mark

Which Python module is used to read and write CSV files?

Answer

(a) csv csv.reader and csv.writer.

A4.65Practice1 mark

What is the output of the following code?

print("AI" * 2)
Answer

(d) AIAI * repeats the string 2 times.

A4.66Practice1 mark

What is the output of the following code?

L = [80, 95, 50, 75, 70]
print(L[1:4])
Answer

(c) [95, 50, 75] Slice 1:4 gives indexes 1, 2 and 3.

A4.67Practice1 mark

What is the output of the following code?

marks = 91
if marks >= 75:
    print('Distinction')
elif marks >= 33:
    print('Pass')
else:
    print('Fail')
Answer

(d) Distinction 91 is at least 75, so that branch runs and the rest are skipped.

A4.68Practice1 mark

Which Pandas function reads a CSV file into a DataFrame?

Answer

(c) pd.read_csv() e.g. pd.read_csv('rainfall.csv').

A4.69Practice1 mark

What is the output of the following code?

L = [55, 40, 90, 70, 45]
print(L[1:4])
Answer

(c) [40, 90, 70] Slice 1:4 gives indexes 1, 2 and 3.

A4.70Practice1 mark

A two-dimensional labelled table in Pandas is a

Answer

(b) DataFrame A Series is one-dimensional.

A4.71Practice1 mark

What is the output of the following code?

s = "Analytics"
print(s[2:5], s[-3:], s[::2])
Answer

(c) aly ics Aayis Slicing: start included, stop excluded; ::2 takes every second character.

A4.72Practice1 mark

What is the output of the following code?

s = "Vision"
print(len(s), s[0], s[-1])
Answer

(d) 6 V n len counts 6 characters; index 0 is the first and -1 the last character.

A4.73Practice1 mark

Which data type is immutable?

Answer

(d) tuple Tuples cannot be changed after creation.

A4.74Practice1 mark

Which data type stores only unique values with no order?

Answer

(a) set Sets remove duplicates.

A4.75Practice1 mark

What is the output of the following code?

L = [40, 95, 75, 85, 20]
L.sort()
print(L)
Answer

(d) [20, 40, 75, 85, 95] sort() arranges in ascending order.

A4.76Practice1 mark

train_test_split() is used to

Answer

(c) divide data into training and testing sets From sklearn.model_selection.

A4.77Practice1 mark

What is the output of the following code?

for i in range(4, 9, 2):
    print(i, end=' ')
Answer

(c) 4 6 8 range(4, 9, 2) starts at 4, adds 2 each time and stops before 9.

A4.78Practice1 mark

What is the output of the following code?

n = "13"
print(int(n) + 2)
Answer

(c) 15 int("13") converts the string to the number 13; 13 + 2 = 15.

A4.79Practice1 mark

What is the output of the following code?

L = [50, 70, 25, 40, 35]
L.sort()
print(L)
Answer

(c) [25, 35, 40, 50, 70] sort() arranges in ascending order.

A4.80Practice1 mark

What is the output of the following code?

print(16 + 2 * 4)
Answer

(b) 24 * is done before +: 2 * 4 = 8; 16 + 8 = 24.

A4.81Practice1 mark

In scikit-learn, the method used to get predictions from a trained model is

Answer

(a) predict() model.predict(X_test).

A4.82Practice1 mark

{'a': 1, 'b': 2} is a

Answer

(c) dictionary Key-value pairs in braces.

A4.83Practice1 mark

What is the output of the following code?

print(9 + 2 * 4)
Answer

(d) 17 * is done before +: 2 * 4 = 8; 9 + 8 = 17.

A4.84Practice1 mark

Python was developed by

Answer

(a) Guido van Rossum First released in 1991.

A4.85Practice1 mark

What is the output of the following code?

i = 1
while i < 20:
    print(i, end=' ')
    i = i * 2
Answer

(d) 1 2 4 8 16 i is multiplied by 2 each round while it is less than 20.

A4.86Practice1 mark

What is the output of the following code?

print(17 % 5 * 2 + 10 // 4)
Answer

(d) 6 17 % 5 = 2; 2 * 2 = 4; 10 // 4 = 2; 4 + 2 = 6.

A4.87Practice1 mark

In scikit-learn, the method used to train a model is

Answer

(d) fit() model.fit(X_train, y_train).

A4.88Practice1 mark

What is the output of the following code?

print(not 5 > 3 or 2 > 1 and 4 < 2)
Answer

(c) False not first, then and, then or: False or (True and False) = False.

A4.89Practice1 mark

What is the output of the following code?

L = [80, 85, 20, 50, 35]
print(L[-1], L[-2], len(L))
Answer

(b) 35 50 5 -1 is the last, -2 the second last; len gives 5.

A4.90Practice1 mark

What is the output of the following code?

s = 0
for i in range(1, 4):
    s = s + i
print(s)
Answer

(a) 6 It adds 1 to 3: sum = 6.

A4.91Practice1 mark

Fixed values such as 25, 3.14 and 'AI' are

Answer

(c) literals Numeric, string and boolean literals.

A4.92Practice1 mark

What is the output of the following code?

for i in range(5):
    if i == 3:
        continue
    print(i, end=" ")
Answer

(b) 0 1 2 4 continue skips only i = 3.

A4.93Practice1 mark

What is the output of the following code?

a = 11
b = 24
print(a > b and b > 5, a > b or b > 5, not a > b)
Answer

(c) False True True a > b is False, b > 5 is True; and needs both True, or needs one.

A4.94Practice1 mark

df.head() shows

Answer

(c) the first 5 rows of the DataFrame head(n) shows the first n rows.

A4.95Practice1 mark

What is the output of the following code?

n = "3"
print(n * 2)
Answer

(d) 33 n is a string, so * 2 repeats it.

A4.96Practice1 mark

Which operator checks whether a value is present in a list?

Answer

(b) in Membership operators: in, not in.

A4.97Practice1 mark

What is the output of the following code?

print(3 ** 2, 65 / 5)
Answer

(b) 9 13.0 3 ** 2 = 9; / always gives a float: 65 / 5 = 13.0.

A4.98Practice1 mark

What is the output of the following code?

L = [55, 70, 45, 65, 15]
L.append(7)
print(L)
Answer

(c) [55, 70, 45, 65, 15, 7] append() adds 7 at the end.

A4.99Practice1 mark

What is the output of the following code?

s = "python ai"
print(s.upper(), s.title(), s.count("a"))
Answer

(d) PYTHON AI Python Ai 1 upper(), title() and count() are string methods.

A4.100Practice1 mark

What is the output of the following code?

print(4 ** 2, 40 / 5)
Answer

(a) 16 8.0 4 ** 2 = 16; / always gives a float: 40 / 5 = 8.0.

A4.101Practice1 mark

Python's character set includes

Answer

(c) letters, digits, special symbols, whitespace and Unicode characters Python 3 supports Unicode.

A4.102Practice1 mark

What is the output of the following code?

s = 0
for i in range(1, 4):
    s = s + i
print(s)
Answer

(a) 6 It adds 1 to 3: sum = 6.

A4.103Practice1 mark

What is the output of the following code?

print(type(3 / 3))
Answer

(b) <class 'float'> The value 3 / 3 is of type float.

A4.104Practice1 mark

Python is

Answer

(a) an interpreted, high-level, general-purpose language Code runs line by line through the interpreter.

A4.105Practice1 mark

The smallest individual unit of a Python program is a

Answer

(c) token Tokens: keywords, identifiers, literals, operators, punctuators.

A4.106Practice1 mark

A CSV file stores data as

Answer

(c) plain text with values separated by commas Comma Separated Values; opens in spreadsheets.

A4.107Practice1 mark

Which operator is used for exponent?

Answer

(b) ** 2 ** 3 = 8.

A4.108Practice1 mark

The 'is' operator checks whether two variables

Answer

(b) refer to the same object Identity operators: is, is not.

A4.109Practice1 mark

What is the output of the following code?

L = [55, 45, 25, 60, 50]
L.insert(1, 0)
L.remove(50)
print(L)
Answer

(a) [55, 0, 45, 25, 60] insert(1, 0) puts 0 at index 1; remove(50) deletes that value.

A4.110Practice1 mark

What is the output of the following code?

s = "Learning"
print(s[2:5], s[-3:], s[::2])
Answer

(d) arn ing Lann Slicing: start included, stop excluded; ::2 takes every second character.

A4.111Practice1 mark

NumPy is mainly used for

Answer

(b) fast numerical arrays and mathematical operations Numerical Python.

A4.112Practice1 mark

What is the output of the following code?

a = 9
b = 19
print(a > b and b > 5, a > b or b > 5, not a > b)
Answer

(c) False True True a > b is False, b > 5 is True; and needs both True, or needs one.

A4.113Practice1 mark

What is the output of the following code?

print(type(True))
Answer

(b) <class 'bool'> The value True is of type bool.

A4.114Practice1 mark

What is the output of the following code?

print(8 // 6, 8 % 6)
Answer

(a) 1 2 8 // 6 is the floor quotient 1; 8 % 6 is the remainder 2.

A4.115Practice1 mark

What is the output of the following code?

s = "Data"
print(len(s), s[0], s[-1])
Answer

(b) 4 D a len counts 4 characters; index 0 is the first and -1 the last character.

A4.116Practice1 mark

Which function gives the shape (rows, columns) of a NumPy array a?

Answer

(d) a.shape shape is an attribute.

A4.117Practice1 mark

What is the output of the following code?

for i in range(3):
    pass
else:
    print("done", i)
Answer

(c) done 2 The loop ended normally, so else runs; i is 2.

A5Unit 4: Design thinking and capstone1 mark · 32 questions
A5.1Handbook1 mark

In the CBSE capstone project, the first stages are

Answer

(d) prepare for the project, form a team and define the problem Then understand users, brainstorm, design the solution.

A5.2Handbook1 mark

A short summary of a project giving the problem, users, solution and impact is the

Answer

(c) project abstract Written using the design thinking framework.

A5.3Handbook1 mark

IBM SkillsBuild's course recommended for this unit is

Answer

(d) What is Design Thinking? Listed as the resource in the curriculum.

A5.4Practice1 mark

How many Sustainable Development Goals (SDGs) did the UN adopt in 2015?

Answer

(b) 17 To be achieved by 2030.

A5.5Practice1 mark

A capstone project is

Answer

(b) a final project that applies all the learning to solve a real-world problem In AI 843 it is done in teams and linked to SDGs.

A5.6Practice1 mark

Trying the prototype with real users and collecting feedback is the

Answer

(a) Test stage Feedback may send us back to earlier stages.

A5.7Practice1 mark

Writing a clear problem statement based on user needs is the

Answer

(c) Define stage Also called the point-of-view statement.

A5.8Practice1 mark

A user persona is

Answer

(c) a fictional profile representing a typical user It helps designers think of users.

A5.9Practice1 mark

Brainstorming many possible solutions without judging them is the

Answer

(c) Ideate stage Quantity of ideas matters here.

A5.10Practice1 mark

In a capstone project, aligning the problem to an SDG ensures that

Answer

(c) the project addresses a real social or environmental need SDG alignment gives purpose.

A5.11Practice1 mark

Which is an example of empathising?

Answer

(a) Interviewing elderly people about difficulties in using smartphones It captures user experience.

A5.12Practice1 mark

An AI app that detects crop diseases to help farmers mainly supports

Answer

(c) SDG 2: Zero Hunger It improves food production.

A5.13Practice1 mark

The five stages of design thinking in order are

Answer

(d) Empathize, Define, Ideate, Prototype, Test Stanford d.school model.

A5.14Practice1 mark

Breaking a big problem into smaller, manageable parts is called

Answer

(c) problem decomposition A key step of computational thinking.

A5.15Practice1 mark

Design thinking is iterative. This means

Answer

(b) stages can be repeated until the solution works well Learn, improve and repeat.

A5.16Practice1 mark

The 5W1H method asks

Answer

(a) Who, What, When, Where, Why and How It breaks a problem into parts.

A5.17Practice1 mark

Why is user feedback important in design thinking?

Answer

(c) It shows whether the solution really solves the user's problem Testing with users drives improvement.

A5.18Practice1 mark

The 'How Might We' question is used in

Answer

(d) the Define and Ideate stages to frame problems as opportunities e.g. How might we help students manage stress?

A5.19Practice1 mark

Asking 'why' repeatedly to find the root cause of a problem is the

Answer

(b) 5 Whys technique It digs to the root cause.

A5.20Practice1 mark

SDG 4 is

Answer

(b) Quality Education SDG 2 Zero Hunger, 6 Clean Water, 13 Climate Action.

A5.21Practice1 mark

Building a simple, low-cost model of the solution is the

Answer

(d) Prototype stage Paper models, mock-ups, simple apps.

A5.22Practice1 mark

Expressing an AI solution in non-technical terms helps to

Answer

(d) explain it to users and stakeholders Good communication is part of the unit.

A5.23Practice1 mark

A prototype should be

Answer

(b) quick, cheap and good enough to test the idea Fail fast, learn fast.

A5.24Practice1 mark

An AI tool that predicts air pollution levels mainly supports

Answer

(a) SDG 13: Climate Action / SDG 11: Sustainable Cities It helps cities act on pollution.

A5.25Practice1 mark

Which stage of design thinking answers 'Who is the user and what do they need?'

Answer

(b) Empathize and Define Understanding before solving.

A5.26Practice1 mark

In an empathy map, "stays up late revising" goes in

Answer

(b) Does Actions and behaviour go in Does.

A5.27Practice1 mark

Which tool is commonly used to organise brainstorming ideas?

Answer

(d) Mind map or sticky notes Visual tools help ideation.

A5.28Practice1 mark

An empathy map has four quadrants:

Answer

(d) Says, Thinks, Does, Feels It captures what users say, think, do and feel.

A5.29Practice1 mark

In an empathy map, "I am worried I will fail the exam" goes in

Answer

(b) Feels (or Thinks) It is an inner emotion.

A5.30Practice1 mark

Understanding users' needs and feelings by observing and interviewing them is the

Answer

(a) Empathize stage The first stage.

A5.31Practice1 mark

SDG 3 is

Answer

(c) Good Health and Well-being SDG 1 No Poverty, 5 Gender Equality, 15 Life on Land.

A5.32Practice1 mark

Design thinking is

Answer

(b) a human-centred approach to solving problems creatively It starts by understanding users.

A6Unit 5: Data literacy, statistics and matrix numericals1 mark · 100 questions
A6.1Handbook1 mark

In the CBSE practical, Python programs for visualisation use the dataset

Answer

(b) rainfall.csv Listed in the curriculum.

A6.2Practice1 mark

A grayscale image is 28 x 28 pixels. How many values does its pixel matrix hold?

Answer

(b) 784 28 x 28 = 784.

A6.3Practice1 mark

The level of measurement of 'Number of children in a family' is

Answer

(a) Ratio Equal gaps and a true zero, so ratios make sense.

A6.4Practice1 mark

A 3 x 3 identity matrix has how many 1s?

Answer

(c) 3 1s only on the main diagonal.

A6.5Practice1 mark

Data literacy is the ability to

Answer

(b) read, understand, analyse and communicate with data It is the base of working with AI.

A6.6Practice1 mark

Find the standard deviation (population) of: 6, 14, 8, 8.

Answer

(d) 3 Mean = 9, variance = 9, SD = sqrt(9) = 3.

A6.7Practice1 mark

Using min-max normalisation with min = 0 and max = 50, the value 45 becomes

Answer

(d) 0.9 (x - min) / (max - min) = (45 - 0) / (50 - 0) = 0.9.

A6.8Practice1 mark

Census reports, published research and online datasets are

Answer

(c) secondary data Already collected by others.

A6.9Practice1 mark

Scaling values to a common range like 0 to 1 is called

Answer

(a) normalisation Min-max normalisation: (x - min) / (max - min).

A6.10Practice1 mark

Customer satisfaction (poor, fair, good, excellent) is

Answer

(d) ordinal data Ordered categories.

A6.11Practice1 mark

A matrix is

Answer

(c) a rectangular arrangement of numbers in rows and columns Written in brackets.

A6.12Practice1 mark

Which Python library function gives the standard deviation of a list x?

Answer

(a) statistics.pstdev(x) (population) or numpy.std(x) statistics.stdev uses n - 1 (sample).

A6.13Practice1 mark

A = [0 -1; 6 6] and B = [1 3; 9 -1]. Find A + B.

Answer

(b) [1 2; 15 5] Add the corresponding elements.

A6.14Practice1 mark

Height, weight and income are on the

Answer

(d) ratio scale They have a true zero, so ratios make sense.

A6.15Practice1 mark

A matrix with the same number of rows and columns is a

Answer

(d) square matrix e.g. 2 x 2, 3 x 3.

A6.16Practice1 mark

Two matrices can be added only if

Answer

(d) they have the same order Add corresponding elements.

A6.17Practice1 mark

The level of measurement of 'Education level: primary, secondary, graduate' is

Answer

(c) Ordinal Categories with an order, but gaps are not equal.

A6.18Practice1 mark

The four levels of measurement are

Answer

(a) nominal, ordinal, interval and ratio Stevens' levels of measurement.

A6.19Practice1 mark

The transpose of a matrix is obtained by

Answer

(a) interchanging its rows and columns A of order m x n becomes n x m.

A6.20Practice1 mark

Find the mean of: 51, 23, 6, 42, 40, 23, 37.

Answer

(c) 31.71 Mean = 222 / 7 = 31.71.

A6.21Practice1 mark

The level of measurement of 'Temperature in degree Fahrenheit' is

Answer

(b) Interval Equal gaps but no true zero.

A6.22Practice1 mark

Which chart shows the frequency of values in ranges (bins)?

Answer

(c) Histogram Bars touch each other for continuous ranges.

A6.23Practice1 mark

The mean of 4, 8, 6, 10, 2 is

Answer

(c) 6 Sum 30 / 5 = 6.

A6.24Practice1 mark

Find the transpose of A = [0 0; 8 -3].

Answer

(a) [0 8; 0 -3] Rows become columns.

A6.25Practice1 mark

Using min-max normalisation with min = 0 and max = 50, the value 15 becomes

Answer

(d) 0.3 (x - min) / (max - min) = (15 - 0) / (50 - 0) = 0.3.

A6.26Practice1 mark

A dataset of 500 rows is split 75 : 25 into training and testing sets. How many rows are in the testing set?

Answer

(b) 125 25% of 500.

A6.27Practice1 mark

Which chart is best for showing parts of a whole?

Answer

(a) Pie chart Slices add up to 100%.

A6.28Practice1 mark

A dataset of 2500 rows is split 70 : 30 into training and testing sets. How many rows are in the testing set?

Answer

(b) 750 30% of 2500.

A6.29Practice1 mark

The level of measurement of 'IQ score' is

Answer

(b) Interval Equal gaps but no true zero.

A6.30Practice1 mark

If all values in a data set are equal, the standard deviation is

Answer

(c) 0 There is no spread.

A6.31Practice1 mark

The level of measurement of 'Grades A, B, C, D' is

Answer

(b) Ordinal Categories with an order, but gaps are not equal.

A6.32Practice1 mark

Which is an online source of secondary data?

Answer

(c) data.gov.in Open Government Data Platform India.

A6.33Practice1 mark

Find the standard deviation (population) of: 19, 13, 19, 13.

Answer

(d) 3 Mean = 16, variance = 9, SD = sqrt(9) = 3.

A6.34Practice1 mark

Find the median of: 28, 6, 28, 55, 38, 59.

Answer

(a) 33 Sorted: 6, 28, 28, 38, 55, 59; median = 33.

A6.35Practice1 mark

Variance measures

Answer

(c) how far the values are spread from the mean Average of squared deviations.

A6.36Practice1 mark

Find the (population) variance of: 8, 2, 10, 19, 16.

Answer

(d) 36 Mean = 11. Variance = [(8 - 11)^2 + (2 - 11)^2 + (10 - 11)^2 + (19 - 11)^2 + (16 - 11)^2] / 5 = 180 / 5 = 36.

A6.37Practice1 mark

A square matrix with 1s on the main diagonal and 0s elsewhere is the

Answer

(b) identity matrix A x I = A.

A6.38Practice1 mark

Find the transpose of A = [-2 -2; 4 8].

Answer

(a) [-2 4; -2 8] Rows become columns.

A6.39Practice1 mark

Using min-max normalisation with min = 20 and max = 120, the value 90 becomes

Answer

(c) 0.7 (x - min) / (max - min) = (90 - 20) / (120 - 20) = 0.7.

A6.40Practice1 mark

A grayscale image is stored in a computer as a

Answer

(c) matrix of pixel values Linear algebra is used in Computer Vision.

A6.41Practice1 mark

Find the mode of: 7, 48, 48, 42, 52, 30, 16.

Answer

(a) 48 48 occurs most often (2 times).

A6.42Practice1 mark

The level of measurement of 'Favourite colour' is

Answer

(d) Nominal Only names/categories; no order.

A6.43Practice1 mark

Which chart is best to show the trend of rainfall over 12 months?

Answer

(a) Line graph Line graphs show change over time.

A6.44Practice1 mark

The level of measurement of 'Calendar year (2010, 2020)' is

Answer

(d) Interval Equal gaps but no true zero.

A6.45Practice1 mark

Blood group (A, B, AB, O) is measured on the

Answer

(c) nominal scale Names only, no order.

A6.46Practice1 mark

The level of measurement of 'Monthly income in rupees' is

Answer

(b) Ratio Equal gaps and a true zero, so ratios make sense.

A6.47Practice1 mark

A is 2 x 3 and B is 2 x 3. Is AB defined?

Answer

(a) No, columns of A (3) are not equal to rows of B (2) Multiplication needs columns of A = rows of B.

A6.48Practice1 mark

In matplotlib, the function to draw a bar chart is

Answer

(c) plt.bar() plt.plot() draws lines.

A6.49Practice1 mark

A matrix has 2 rows and 4 columns. How many elements does it have and what is its order?

Answer

(c) 8 elements, order 2 x 4 Order = rows x columns; elements = 2 x 4.

A6.50Practice1 mark

A common practice is to split data into training and testing sets in the ratio

Answer

(d) 80 : 20 70:30 is also common.

A6.51Practice1 mark

Matrix A (2 x 3) can be multiplied by matrix B only if B has

Answer

(b) 3 rows Columns of A = rows of B; result is 2 x (columns of B).

A6.52Practice1 mark

The level of measurement of 'Gender of students' is

Answer

(c) Nominal Only names/categories; no order.

A6.53Practice1 mark

Find the median of: 11, 26, 26, 35, 36, 7.

Answer

(d) 26 Sorted: 7, 11, 26, 26, 35, 36; median = 26.

A6.54Practice1 mark

The variance of a data set is 25. What is its standard deviation?

Answer

(d) 5 SD = square root of variance = sqrt(25) = 5.

A6.55Practice1 mark

Standard deviation is

Answer

(a) the square root of the variance Same unit as the data.

A6.56Practice1 mark

The level of measurement of 'Distance travelled in km' is

Answer

(d) Ratio Equal gaps and a true zero, so ratios make sense.

A6.57Practice1 mark

Ranks in a race (1st, 2nd, 3rd) are on the

Answer

(a) ordinal scale Order matters, but gaps are not equal.

A6.58Practice1 mark

Find the mean of: 39, 10, 30, 27, 27, 35.

Answer

(a) 28 Mean = 168 / 6 = 28.

A6.59Practice1 mark

Using min-max normalisation with min = 20 and max = 120, the value 60 becomes

Answer

(c) 0.4 (x - min) / (max - min) = (60 - 20) / (120 - 20) = 0.4.

A6.60Practice1 mark

Using min-max normalisation with min = 10 and max = 60, the value 50 becomes

Answer

(c) 0.8 (x - min) / (max - min) = (50 - 10) / (60 - 10) = 0.8.

A6.61Practice1 mark

The variance of a data set is 16. What is its standard deviation?

Answer

(b) 4 SD = square root of variance = sqrt(16) = 4.

A6.62Practice1 mark

The level of measurement of 'Movie rating: 1 star to 5 stars' is

Answer

(b) Ordinal Categories with an order, but gaps are not equal.

A6.63Practice1 mark

The most frequent value is the

Answer

(b) mode A set can have more than one mode.

A6.64Practice1 mark

Find the (population) variance of: 16, 10, 14, 18, 7.

Answer

(b) 16 Mean = 13. Variance = [(16 - 13)^2 + (10 - 13)^2 + (14 - 13)^2 + (18 - 13)^2 + (7 - 13)^2] / 5 = 80 / 5 = 16.

A6.65Practice1 mark

The variance of a data set is 1. What is its standard deviation?

Answer

(d) 1 SD = square root of variance = sqrt(1) = 1.

A6.66Practice1 mark

Using min-max normalisation with min = 0 and max = 50, the value 30 becomes

Answer

(b) 0.6 (x - min) / (max - min) = (30 - 0) / (50 - 0) = 0.6.

A6.67Practice1 mark

A dataset of 800 rows is split 80 : 20 into training and testing sets. How many rows are in the testing set?

Answer

(a) 160 20% of 800.

A6.68Practice1 mark

A is of order 2 x 3 and B is of order 3 x 4. What is the order of AB?

Answer

(a) 2 x 4 Columns of A = rows of B = 3, so AB is (rows of A) x (columns of B).

A6.69Practice1 mark

Find the mode of: 15, 19, 59, 15, 30, 54, 44.

Answer

(a) 15 15 occurs most often (2 times).

A6.70Practice1 mark

If A = [6 -2; 9 2], find 4A.

Answer

(c) [24 -8; 36 8] Multiply every element by 4 (scalar multiplication).

A6.71Practice1 mark

A dataset of 500 rows is split 80 : 20 into training and testing sets. How many rows are in the testing set?

Answer

(b) 100 20% of 500.

A6.72Practice1 mark

Find the (population) variance of: 8, 5, 2, 6, 4.

Answer

(b) 4 Mean = 5. Variance = [(8 - 5)^2 + (5 - 5)^2 + (2 - 5)^2 + (6 - 5)^2 + (4 - 5)^2] / 5 = 20 / 5 = 4.

A6.73Practice1 mark

Which measure is most affected by an extreme value (outlier)?

Answer

(d) Mean Mean uses every value.

A6.74Practice1 mark

Find the mean of: 59, 32, 11, 5, 26, 59, 25.

Answer

(b) 31 Mean = 217 / 7 = 31.

A6.75Practice1 mark

Which level of measurement has a true zero?

Answer

(c) Ratio 0 kg means no weight.

A6.76Practice1 mark

A is of order 3 x 2 and B is of order 2 x 2. What is the order of AB?

Answer

(b) 3 x 2 Columns of A = rows of B = 2, so AB is (rows of A) x (columns of B).

A6.77Practice1 mark

Find the mode of: 13, 5, 13, 46, 26, 42.

Answer

(b) 13 13 occurs most often (2 times).

A6.78Practice1 mark

Find the mean of: 19, 39, 35, 35, 22, 53.

Answer

(b) 33.83 Mean = 203 / 6 = 33.83.

A6.79Practice1 mark

Find the (population) variance of: 16, 10, 18, 16.

Answer

(b) 9 Mean = 15. Variance = [(16 - 15)^2 + (10 - 15)^2 + (18 - 15)^2 + (16 - 15)^2] / 4 = 36 / 4 = 9.

A6.80Practice1 mark

The variance of a data set is 36. What is its standard deviation?

Answer

(d) 6 SD = square root of variance = sqrt(36) = 6.

A6.81Practice1 mark

A matrix has 3 rows and 2 columns. How many elements does it have and what is its order?

Answer

(a) 6 elements, order 3 x 2 Order = rows x columns; elements = 3 x 2.

A6.82Practice1 mark

The level of measurement of 'Age in years' is

Answer

(b) Ratio Equal gaps and a true zero, so ratios make sense.

A6.83Practice1 mark

Data collected first-hand through surveys, interviews or experiments is

Answer

(d) primary data Secondary data is collected by someone else.

A6.84Practice1 mark

If A = [2 0; 6 -1], find 3A.

Answer

(c) [6 0; 18 -3] Multiply every element by 3 (scalar multiplication).

A6.85Practice1 mark

Find the standard deviation (population) of: 18, 18, 16, 16.

Answer

(d) 1 Mean = 17, variance = 1, SD = sqrt(1) = 1.

A6.86Practice1 mark

A = [3 6; 8 5] and B = [6 7; 9 -2]. Find the element in row 1, column 1 of AB.

Answer

(d) 72 Row 1 of A x column 1 of B = (3 x 6) + (6 x 9) = 72.

A6.87Practice1 mark

A value far away from the other values in a data set is an

Answer

(a) outlier It can distort the mean.

A6.88Practice1 mark

A = [3 0; 7 6] and B = [-3 0; 7 -2]. Find A + B.

Answer

(d) [0 0; 14 4] Add the corresponding elements.

A6.89Practice1 mark

A = [7 5; 4 1] and B = [9 5; 5 0]. Find the element in row 1, column 1 of AB.

Answer

(d) 88 Row 1 of A x column 1 of B = (7 x 9) + (5 x 5) = 88.

A6.90Practice1 mark

Converting categories like 'Red', 'Green' into numbers for a model is

Answer

(c) encoding e.g. label encoding or one-hot encoding.

A6.91Practice1 mark

A matrix with 3 rows and 2 columns has order

Answer

(d) 3 x 2 Order = rows x columns.

A6.92Practice1 mark

Find the median of: 9, 25, 46, 19, 39, 9, 58.

Answer

(a) 25 Sorted: 9, 9, 19, 25, 39, 46, 58; median = 25.

A6.93Practice1 mark

The level of measurement of 'PIN codes of cities' is

Answer

(b) Nominal Only names/categories; no order.

A6.94Practice1 mark

Temperature in degree Celsius is on the

Answer

(b) interval scale Equal gaps but no true zero (0 degree C is not 'no temperature').

A6.95Practice1 mark

A is 3 x 2 and B is 3 x 2. Is AB defined?

Answer

(a) No, columns of A (2) are not equal to rows of B (3) Multiplication needs columns of A = rows of B.

A6.96Practice1 mark

Which chart shows the relation between two numeric variables?

Answer

(c) Scatter plot Each point is (x, y).

A6.97Practice1 mark

Find the standard deviation (population) of: 14, 8, 16, 20, 17.

Answer

(d) 4 Mean = 15, variance = 16, SD = sqrt(16) = 4.

A6.98Practice1 mark

Filling missing values, removing duplicates and correcting errors is

Answer

(a) data cleaning (pre-processing) Clean data gives better models.

A6.99Practice1 mark

The level of measurement of 'Roll numbers used only as identity codes' is

Answer

(d) Nominal Only names/categories; no order.

A6.100Practice1 mark

The middle value of sorted data is the

Answer

(b) median For even count, average the two middle values.

A7Unit 6: ML algorithms, with regression, k-NN and k-means numericals1 mark · 92 questions
A7.1Handbook1 mark

Pearson's correlation can be calculated in MS Excel using the function

Answer

(b) =CORREL() (or =PEARSON()) Practical activity of the unit.

A7.2Handbook1 mark

In MS Excel, a linear regression line can be shown on a scatter chart by adding a

Answer

(d) trendline (linear) with its equation Display equation and R-squared on chart.

A7.3Practice1 mark

For x = 3 the line y = 3x + 1 predicts 10, but the actual value is 8. What is the residual (actual - predicted)?

Answer

(c) -2 Residual = 8 - 10 = -2.

A7.4Practice1 mark

For x = 2 the line y = 2x + -3 predicts 1, but the actual value is 3. What is the residual (actual - predicted)?

Answer

(c) 2 Residual = 3 - 1 = 2.

A7.5Practice1 mark

In k-NN with k = 3, the nearest neighbours of a new point have the classes: Dog, Dog, Dog. The new point is classified as

Answer

(c) Dog Majority vote: Dog has 3 of 3 votes.

A7.6Practice1 mark

k-means (k = 2) has centroids C1 = 1 and C2 = 7. The point -2 is assigned to

Answer

(a) Cluster 1 Distance to C1 = 3, to C2 = 9; the nearer centroid wins.

A7.7Practice1 mark

The points (1, 13), (2, 18), (3, 23), (4, 28) lie exactly on a line. What is the equation of the line?

Answer

(a) y = 5x + 8 Slope = 5 (y rises 5 per unit x); at x = 0, y = 8.

A7.8Practice1 mark

A Pearson correlation coefficient of r = -0.4 shows

Answer

(b) moderate negative correlation Sign = direction; closeness to 1 = strength.

A7.9Practice1 mark

The points (1, 7), (2, 13), (3, 19), (4, 25) lie exactly on a line. What is the equation of the line?

Answer

(c) y = 6x + 1 Slope = 6 (y rises 6 per unit x); at x = 0, y = 1.

A7.10Practice1 mark

Classification predicts

Answer

(b) a category (class label) e.g. spam or not spam.

A7.11Practice1 mark

In k-NN with k = 5, the nearest neighbours of a new point have the classes: Dog, Dog, Dog, Dog, Dog. The new point is classified as

Answer

(b) Dog Majority vote: Dog has 5 of 5 votes.

A7.12Practice1 mark

A straight line passes through (5, 20) and (6, 22). What is its slope?

Answer

(d) 2 Slope = (y2 - y1) / (x2 - x1) = 2 / 1 = 2.

A7.13Practice1 mark

Classifying e-mails as spam or not spam is

Answer

(a) binary classification Two classes.

A7.14Practice1 mark

A regression line is y = 4x + 2. Predict y when x = 4.

Answer

(a) 18 y = 4 x 4 + 2 = 18.

A7.15Practice1 mark

k-NN classifies a new point by

Answer

(a) the majority class of its k nearest training points Distance-based voting.

A7.16Practice1 mark

k-means (k = 2) has centroids C1 = 1 and C2 = 7. The point 5 is assigned to

Answer

(d) Cluster 2 Distance to C1 = 4, to C2 = 2; the nearer centroid wins.

A7.17Practice1 mark

k-NN stands for

Answer

(c) k-Nearest Neighbours A simple supervised algorithm.

A7.18Practice1 mark

The value of Pearson's correlation coefficient r lies between

Answer

(c) -1 and +1 -1 perfect negative, +1 perfect positive.

A7.19Practice1 mark

Find the Euclidean distance between the points (4, 2) and (-2, 10).

Answer

(b) 10 sqrt((6)^2 + (8)^2) = sqrt(100) = 10.

A7.20Practice1 mark

k-means (k = 2) has centroids C1 = 10 and C2 = 30. The point 33 is assigned to

Answer

(d) Cluster 2 Distance to C1 = 23, to C2 = 3; the nearer centroid wins.

A7.21Practice1 mark

A straight line passes through (12, 41) and (14, 47). What is its slope?

Answer

(c) 3 Slope = (y2 - y1) / (x2 - x1) = 6 / 2 = 3.

A7.22Practice1 mark

A movie tagged as both 'comedy' and 'romance' is an example of

Answer

(a) multi-label classification One item, many labels.

A7.23Practice1 mark

Find the Euclidean distance between the points (3, 0) and (6, 4).

Answer

(d) 5 sqrt((3)^2 + (4)^2) = sqrt(25) = 5.

A7.24Practice1 mark

As the speed of a car increases, the time taken for a trip decreases. This is

Answer

(c) negative correlation One goes up, the other goes down.

A7.25Practice1 mark

In k-NN with k = 3, the nearest neighbours of a new point have the classes: Cat, Cat, Dog. The new point is classified as

Answer

(d) Cat Majority vote: Cat has 2 of 3 votes.

A7.26Practice1 mark

In the line y = mx + c, m is the

Answer

(b) slope c is the y-intercept.

A7.27Practice1 mark

r close to 0 means

Answer

(c) no linear relation Points are scattered randomly.

A7.28Practice1 mark

The distance commonly used in k-NN is

Answer

(b) Euclidean distance sqrt((x1 - x2)^2 + (y1 - y2)^2).

A7.29Practice1 mark

In k-means clustering, k is

Answer

(c) the number of clusters Chosen before running.

A7.30Practice1 mark

In k-NN with k = 5, the nearest neighbours of a new point have the classes: Cat, Dog, Cat, Cat, Cat. The new point is classified as

Answer

(d) Cat Majority vote: Cat has 4 of 5 votes.

A7.31Practice1 mark

Find the Euclidean distance between the points (1, 2) and (9, 17).

Answer

(d) 17 sqrt((8)^2 + (15)^2) = sqrt(289) = 17.

A7.32Practice1 mark

Machine learning is a branch of AI in which computers

Answer

(a) learn patterns from data and improve with experience Arthur Samuel (1959).

A7.33Practice1 mark

k-means stops when

Answer

(b) the centroids (cluster assignments) no longer change Convergence.

A7.34Practice1 mark

A Pearson correlation coefficient of r = -1.0 shows

Answer

(a) perfect negative correlation Sign = direction; closeness to 1 = strength.

A7.35Practice1 mark

k-means (k = 2) has centroids C1 = 5 and C2 = 15. The point 9 is assigned to

Answer

(d) Cluster 1 Distance to C1 = 4, to C2 = 6; the nearer centroid wins.

A7.36Practice1 mark

Find the Euclidean distance between the points (4, 3) and (3, 3).

Answer

(a) 1 sqrt((1)^2 + (0)^2) = sqrt(1) = 1.

A7.37Practice1 mark

Which type of clustering finds clusters as dense areas and can mark outliers as noise?

Answer

(d) Density-based (e.g. DBSCAN) It handles irregular shapes.

A7.38Practice1 mark

A regression line is y = 4x + 1. Predict y when x = 3.

Answer

(a) 13 y = 4 x 3 + 1 = 13.

A7.39Practice1 mark

r = +0.95 between study hours and marks shows

Answer

(d) a strong positive correlation As hours rise, marks rise.

A7.40Practice1 mark

The points (1, 9), (2, 15), (3, 21), (4, 27) lie exactly on a line. What is the equation of the line?

Answer

(c) y = 6x + 3 Slope = 6 (y rises 6 per unit x); at x = 0, y = 3.

A7.41Practice1 mark

Find the Euclidean distance between the points (6, 1) and (12, 9).

Answer

(b) 10 sqrt((6)^2 + (8)^2) = sqrt(100) = 10.

A7.42Practice1 mark

Find the Euclidean distance between the points (3, 0) and (-6, 12).

Answer

(c) 15 sqrt((9)^2 + (12)^2) = sqrt(225) = 15.

A7.43Practice1 mark

The points (1, 14), (2, 18), (3, 22), (4, 26) lie exactly on a line. What is the equation of the line?

Answer

(d) y = 4x + 10 Slope = 4 (y rises 4 per unit x); at x = 0, y = 10.

A7.44Practice1 mark

A Pearson correlation coefficient of r = 0.05 shows

Answer

(b) almost no correlation Sign = direction; closeness to 1 = strength.

A7.45Practice1 mark

For x = 2 the line y = 2x + 20 predicts 24, but the actual value is 21. What is the residual (actual - predicted)?

Answer

(a) -3 Residual = 21 - 24 = -3.

A7.46Practice1 mark

A straight line passes through (4, -3) and (8, -11). What is its slope?

Answer

(b) -2 Slope = (y2 - y1) / (x2 - x1) = -8 / 4 = -2.

A7.47Practice1 mark

A straight line passes through (8, 21) and (12, 33). What is its slope?

Answer

(c) 3 Slope = (y2 - y1) / (x2 - x1) = 12 / 4 = 3.

A7.48Practice1 mark

Grouping customers by buying behaviour for marketing is an application of

Answer

(c) clustering Customer segmentation.

A7.49Practice1 mark

In k-NN with k = 5, the nearest neighbours of a new point have the classes: Cat, Dog, Cat, Cat, Cat. The new point is classified as

Answer

(b) Cat Majority vote: Cat has 4 of 5 votes.

A7.50Practice1 mark

Classifying fruits into apple, mango and banana is

Answer

(c) multi-class classification More than two classes.

A7.51Practice1 mark

An algorithm that learns to play chess by winning (+1) or losing (-1) games uses

Answer

(c) reinforcement learning Learning from rewards.

A7.52Practice1 mark

Which type of clustering builds a tree of clusters (dendrogram)?

Answer

(a) Hierarchical clustering Agglomerative or divisive.

A7.53Practice1 mark

k-means (k = 2) has centroids C1 = 2 and C2 = 9. The point 7 is assigned to

Answer

(c) Cluster 2 Distance to C1 = 5, to C2 = 2; the nearer centroid wins.

A7.54Practice1 mark

k-means (k = 2) has centroids C1 = 10 and C2 = 30. The point 15 is assigned to

Answer

(c) Cluster 1 Distance to C1 = 5, to C2 = 15; the nearer centroid wins.

A7.55Practice1 mark

The difference between an actual value and the value predicted by the line is the

Answer

(a) residual (error) Residual = actual - predicted.

A7.56Practice1 mark

Overfitting means a model

Answer

(b) performs very well on training data but poorly on new data It memorised instead of learning patterns.

A7.57Practice1 mark

A Pearson correlation coefficient of r = -0.88 shows

Answer

(d) strong negative correlation Sign = direction; closeness to 1 = strength.

A7.58Practice1 mark

In k-means, each point is assigned to

Answer

(d) the nearest centroid Then the centroids are recomputed.

A7.59Practice1 mark

If y = 3x + 2, the predicted y for x = 4 is

Answer

(c) 14 3 x 4 + 2 = 14.

A7.60Practice1 mark

In k-NN with k = 3, the nearest neighbours of a new point have the classes: Dog, Cat, Cat. The new point is classified as

Answer

(c) Cat Majority vote: Cat has 2 of 3 votes.

A7.61Practice1 mark

A Pearson correlation coefficient of r = 0.92 shows

Answer

(c) strong positive correlation Sign = direction; closeness to 1 = strength.

A7.62Practice1 mark

k-means (k = 2) has centroids C1 = 2 and C2 = 9. The point 12 is assigned to

Answer

(d) Cluster 2 Distance to C1 = 10, to C2 = 3; the nearer centroid wins.

A7.63Practice1 mark

The three main types of machine learning are

Answer

(b) supervised, unsupervised and reinforcement Classified by the type of feedback.

A7.64Practice1 mark

In k-NN with k = 5, the nearest neighbours of a new point have the classes: Dog, Cat, Dog, Cat, Dog. The new point is classified as

Answer

(d) Dog Majority vote: Dog has 3 of 5 votes.

A7.65Practice1 mark

k-means (k = 2) has centroids C1 = 10 and C2 = 30. The point 13 is assigned to

Answer

(b) Cluster 1 Distance to C1 = 3, to C2 = 17; the nearer centroid wins.

A7.66Practice1 mark

Correlation measures

Answer

(d) the strength and direction of the linear relation between two variables Pearson's r.

A7.67Practice1 mark

A Pearson correlation coefficient of r = 1.0 shows

Answer

(d) perfect positive correlation Sign = direction; closeness to 1 = strength.

A7.68Practice1 mark

Correlation does not imply

Answer

(a) causation Ice-cream sales and drowning both rise in summer; one does not cause the other.

A7.69Practice1 mark

Data with labels is required for

Answer

(c) classification and regression Supervised algorithms need labels.

A7.70Practice1 mark

In k-NN, k is usually chosen as an odd number to

Answer

(a) avoid ties in voting (for two classes) With odd k, two classes cannot tie.

A7.71Practice1 mark

A regression line is y = 5x + 10. Predict y when x = 7.

Answer

(a) 45 y = 5 x 7 + 10 = 45.

A7.72Practice1 mark

The centre of a cluster in k-means is called the

Answer

(b) centroid It is the mean of the points in the cluster.

A7.73Practice1 mark

In linear regression, the best-fit line is the one that

Answer

(d) minimises the sum of squared errors Least squares method.

A7.74Practice1 mark

Clustering is a type of

Answer

(c) unsupervised learning It groups unlabelled data.

A7.75Practice1 mark

A regression line is y = 3x + 1. Predict y when x = 2.

Answer

(a) 7 y = 3 x 2 + 1 = 7.

A7.76Practice1 mark

In scikit-learn, LinearRegression is imported from

Answer

(a) sklearn.linear_model KNeighborsClassifier is in sklearn.neighbors; KMeans in sklearn.cluster.

A7.77Practice1 mark

Find the Euclidean distance between the points (5, 5) and (2, 9).

Answer

(a) 5 sqrt((3)^2 + (4)^2) = sqrt(25) = 5.

A7.78Practice1 mark

A cluster contains the points 11, 18, 23, 29. What is its new centroid?

Answer

(d) 20.25 Centroid = mean = 81 / 4.

A7.79Practice1 mark

A cluster contains the points 16, 22, 28. What is its new centroid?

Answer

(c) 22 Centroid = mean = 66 / 3.

A7.80Practice1 mark

The points (1, 6), (2, 9), (3, 12), (4, 15) lie exactly on a line. What is the equation of the line?

Answer

(b) y = 3x + 3 Slope = 3 (y rises 3 per unit x); at x = 0, y = 3.

A7.81Practice1 mark

Which is supervised learning?

Answer

(a) Predicting the price of a car from its age and mileage, using past sales with prices Labelled data with target values.

A7.82Practice1 mark

Regression predicts

Answer

(b) a continuous numeric value e.g. house price, temperature.

A7.83Practice1 mark

Find the Euclidean distance between the points (3, 1) and (-2, 13).

Answer

(a) 13 sqrt((5)^2 + (12)^2) = sqrt(169) = 13.

A7.84Practice1 mark

A cluster contains the points 10, 15, 17, 29. What is its new centroid?

Answer

(b) 17.75 Centroid = mean = 71 / 4.

A7.85Practice1 mark

For x = 2 the line y = -2x + 10 predicts 6, but the actual value is 10. What is the residual (actual - predicted)?

Answer

(b) 4 Residual = 10 - 6 = 4.

A7.86Practice1 mark

A model that predicts a student's marks from hours of study is

Answer

(b) a regression model The output is a number.

A7.87Practice1 mark

A Pearson correlation coefficient of r = 0.45 shows

Answer

(c) moderate positive correlation Sign = direction; closeness to 1 = strength.

A7.88Practice1 mark

A cluster contains the points 6, 10, 17, 26. What is its new centroid?

Answer

(c) 14.75 Centroid = mean = 59 / 4.

A7.89Practice1 mark

In k-NN with k = 5, the nearest neighbours of a new point have the classes: Cat, Cat, Cat, Dog, Cat. The new point is classified as

Answer

(b) Cat Majority vote: Cat has 4 of 5 votes.

A7.90Practice1 mark

A cluster contains the points 8, 16, 23. What is its new centroid?

Answer

(d) 15.67 Centroid = mean = 47 / 3.

A7.91Practice1 mark

A cluster contains the points 4, 17, 18, 29. What is its new centroid?

Answer

(b) 17 Centroid = mean = 68 / 4.

A7.92Practice1 mark

k-NN is called a 'lazy learner' because

Answer

(b) it does not build a model during training; it uses the stored data at prediction time All work happens at prediction.

A8Unit 7: NLP and chatbots1 mark · 32 questions
A8.1Handbook1 mark

IBM Project Debater is an AI system that

Answer

(b) can debate with humans on complex topics Practical activity: write an article on its facts.

A8.2Handbook1 mark

Google Dialogflow, Botsify and Botpress are platforms for

Answer

(d) building chatbots Practical: ice-cream ordering chatbot.

A8.3Handbook1 mark

In Dialogflow, what the user wants to do (e.g. order ice cream) is an

Answer

(b) intent Training phrases teach intents.

A8.4Handbook1 mark

In Dialogflow, important details in the user's message like 'flavour = chocolate' are

Answer

(a) entities (parameters) Entities extract data.

A8.5Practice1 mark

Summarising a long article into a few lines automatically is

Answer

(c) text summarisation Extractive or abstractive.

A8.6Practice1 mark

Understanding a sentence using the sentences before it (e.g. who 'he' refers to) is

Answer

(c) discourse integration Context from previous sentences.

A8.7Practice1 mark

Human language is hard for computers mainly because of

Answer

(c) ambiguity, context, idioms and sarcasm The same words can mean different things.

A8.8Practice1 mark

Reducing 'running', 'runs', 'ran' to 'run' with a dictionary is

Answer

(a) lemmatisation Stemming just cuts endings.

A8.9Practice1 mark

The first phase of NLP, which breaks text into words and sentences, is

Answer

(a) lexical analysis Also involves tokenisation and morphology.

A8.10Practice1 mark

Natural Language Processing (NLP) enables computers to

Answer

(b) understand, interpret and generate human language Text and speech.

A8.11Practice1 mark

Which is NOT an application of NLP?

Answer

(b) Detecting a tumour in an X-ray image X-ray analysis is Computer Vision.

A8.12Practice1 mark

Finding whether a review is positive, negative or neutral is

Answer

(c) sentiment analysis Also called opinion mining.

A8.13Practice1 mark

Checking the grammar and structure of a sentence (parsing) is

Answer

(d) syntactic analysis "Agra goes to the Poonam" fails here.

A8.14Practice1 mark

Finding the dictionary meaning of a sentence is

Answer

(c) semantic analysis "Hot ice-cream" fails here.

A8.15Practice1 mark

Spam filtering of e-mails uses

Answer

(a) text classification Spam vs not spam.

A8.16Practice1 mark

A program that talks with users in natural language is a

Answer

(d) chatbot Rule-based or AI-based.

A8.17Practice1 mark

"I saw the man with the telescope" has two meanings. This is

Answer

(d) syntactic (structural) ambiguity Who has the telescope is unclear.

A8.18Practice1 mark

The word 'bat' (animal or cricket bat) shows

Answer

(a) lexical ambiguity One word, many meanings.

A8.19Practice1 mark

"Oh great, my phone died again!" is hard for NLP because of

Answer

(a) sarcasm The real sentiment is negative.

A8.20Practice1 mark

Google Translate is an application of

Answer

(c) machine translation Text from one language to another.

A8.21Practice1 mark

Sorting news articles into sports, politics and business is

Answer

(c) text classification An NLP classification problem.

A8.22Practice1 mark

Gmail suggesting the next word while you type uses

Answer

(c) next-word prediction (language models) Autocomplete is NLP.

A8.23Practice1 mark

Labelling each word as noun, verb, adjective etc. is

Answer

(b) POS (part-of-speech) tagging An advanced practical uses Python to print POS tags.

A8.24Practice1 mark

Converting written text into spoken words is

Answer

(b) text-to-speech (speech synthesis) Used in screen readers.

A8.25Practice1 mark

Breaking 'AI is fun!' into 'AI', 'is', 'fun', '!' is

Answer

(b) tokenisation Each piece is a token.

A8.26Practice1 mark

Converting speech into text, as in voice typing, is

Answer

(d) speech recognition Speech-to-text.

A8.27Practice1 mark

Detecting feelings like joy, anger or sadness in text is

Answer

(b) emotion detection More detailed than sentiment.

A8.28Practice1 mark

Stop words are

Answer

(c) very common words like 'is', 'the', 'and' often removed in text processing They carry little meaning.

A8.29Practice1 mark

A chatbot that replies only from fixed rules and keywords is a

Answer

(b) rule-based chatbot It cannot handle unexpected questions.

A8.30Practice1 mark

An AI chatbot that learns from data and understands varied questions is a

Answer

(a) smart (AI-based) chatbot e.g. ChatGPT, Gemini.

A8.31Practice1 mark

Understanding the intended meaning using real-world knowledge and situation is

Answer

(d) pragmatic analysis "Can you pass the salt?" is a request, not a question about ability.

A8.32Practice1 mark

The correct order of the phases of NLP is

Answer

(a) Lexical, Syntactic, Semantic, Discourse integration, Pragmatic From words to intended meaning.

A9Unit 8: AI ethics and values1 mark · 30 questions
A9.1Handbook1 mark

The MIT game that asks players to decide whom a self-driving car should save is

Answer

(a) Moral Machine It explores ethical dilemmas.

A9.2Handbook1 mark

'Survival of the Best Fit' is a game that teaches about

Answer

(a) bias in AI hiring systems Players see how biased data creates unfair hiring.

A9.3Handbook1 mark

The video 'Humans Need Not Apply' is about

Answer

(a) automation and AI replacing human jobs Practical: summarise its insights.

A9.4Handbook1 mark

A role-play on biased AI systems helps students to

Answer

(a) understand the effect of bias on different stakeholders Practical activity of the unit.

A9.5Practice1 mark

Being able to explain how an AI system reached its decision is

Answer

(d) explainability Important for loans, health, justice.

A9.6Practice1 mark

The five pillars of AI ethics (IBM) are

Answer

(a) explainability, fairness, robustness, transparency and privacy IBM's pillars of trustworthy AI.

A9.7Practice1 mark

Openly sharing how an AI system is built, what data it uses and its limits is

Answer

(c) transparency Users can trust it.

A9.8Practice1 mark

Keeping a human to review important AI decisions is called

Answer

(a) human-in-the-loop oversight It catches unfair or wrong decisions.

A9.9Practice1 mark

An AI hiring tool rejected women because past hiring data was mostly men. This shows

Answer

(d) historical bias in training data AI repeats past discrimination.

A9.10Practice1 mark

Bias that comes from the design or rules of the algorithm itself is

Answer

(d) algorithmic bias e.g. a scoring rule that unfairly weights a feature.

A9.11Practice1 mark

When an AI system makes a harmful mistake, the principle that someone must be answerable is

Answer

(b) accountability Clear responsibility for AI outcomes.

A9.12Practice1 mark

A document of rules and principles that guides how an organisation develops and uses AI is an

Answer

(c) AI policy Policies define responsible use.

A9.13Practice1 mark

Ethics is

Answer

(d) a set of moral principles about what is right and wrong AI ethics applies these to AI.

A9.14Practice1 mark

India's law that protects personal digital data (2023) is the

Answer

(d) Digital Personal Data Protection Act DPDP Act, 2023.

A9.15Practice1 mark

The European Union's law that classifies AI systems by risk level is the

Answer

(d) EU AI Act Unacceptable, high, limited and minimal risk.

A9.16Practice1 mark

Bias that comes from the beliefs and assumptions of the people who build or label the data is

Answer

(a) human (cognitive) bias e.g. stereotypes in labelling.

A9.17Practice1 mark

Deepfake videos raise ethical concerns about

Answer

(d) misinformation and consent They can deceive and harm people.

A9.18Practice1 mark

UNESCO's Recommendation on the Ethics of AI (2021) is

Answer

(c) a global standard for ethical AI adopted by member countries Adopted by 193 member states.

A9.19Practice1 mark

Bias in AI means

Answer

(d) systematic unfairness in the outputs of an AI system It can harm certain groups.

A9.20Practice1 mark

Treating all individuals and groups equally, without discrimination, is

Answer

(c) fairness Fair AI avoids biased outcomes.

A9.21Practice1 mark

NITI Aayog's approach paper for India's AI is titled

Answer

(c) Responsible AI for All India's principles for responsible AI.

A9.22Practice1 mark

Being aware that bias can exist and actively checking for it is

Answer

(a) bias awareness The first step to fairness.

A9.23Practice1 mark

Collecting only the data needed for the stated purpose follows the principle of

Answer

(d) data minimisation A privacy principle.

A9.24Practice1 mark

Which is a way to mitigate bias in AI?

Answer

(c) Using diverse, balanced data and auditing model outputs for different groups Fairness checks and human oversight.

A9.25Practice1 mark

An AI system that works reliably even with unexpected inputs or attacks is

Answer

(a) robust Robustness = reliability and security.

A9.26Practice1 mark

Protecting users' personal data and their control over it is

Answer

(a) privacy Data protection and consent.

A9.27Practice1 mark

A face-recognition system trained mostly on light-skinned faces performs poorly on dark-skinned faces. The source of bias is

Answer

(c) unrepresentative training data Data bias / sampling bias.

A9.28Practice1 mark

Bias that makes an existing unfair pattern even stronger through repeated AI decisions is

Answer

(b) bias amplification (feedback loop) e.g. predictive policing sending more police to the same areas.

A9.29Practice1 mark

The OECD AI Principles promote AI that is

Answer

(a) innovative, trustworthy and respects human rights and democratic values Adopted in 2019.

A9.30Practice1 mark

Which is an ethical concern of AI in the workplace?

Answer

(d) Job displacement and the need to reskill workers Automation can replace routine jobs.

ATTrue or False: two statements1 mark · 57 questions
AT.1Practice1 mark

Statement 1: The term AI was coined at the Dartmouth Conference in 1956.

Statement 2: Alan Turing proposed the Turing Test in 1950.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.2Practice1 mark

Statement 1: All AI in use today is General AI.

Statement 2: Narrow AI is designed for a specific task.

Answer

(d) Statement 1 is false and Statement 2 is true. Statement 1 is false; Statement 2 is true.

AT.3Practice1 mark

Statement 1: Deep Blue defeated Garry Kasparov in 1997.

Statement 2: AlphaGo was developed by IBM.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.4Practice1 mark

Statement 1: Reactive machines store past experiences.

Statement 2: Self-driving cars use limited memory AI.

Answer

(d) Statement 1 is false and Statement 2 is true. Statement 1 is false; Statement 2 is true.

AT.5Practice1 mark

Statement 1: Supervised learning uses labelled data.

Statement 2: Reinforcement learning learns from rewards and penalties.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.6Practice1 mark

Statement 1: Computer Vision works with text.

Statement 2: NLP works with images.

Answer

(b) Both the statements are false. Statement 1 is false; Statement 2 is false.

AT.7Practice1 mark

Statement 1: Deep learning uses neural networks with many layers.

Statement 2: Machine learning is a part of deep learning.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.8Practice1 mark

Statement 1: AI can work without any data.

Statement 2: AI can make mistakes when it sees situations unlike its training data.

Answer

(d) Statement 1 is false and Statement 2 is true. Statement 1 is false; Statement 2 is true.

AT.9Practice1 mark

Statement 1: Python is widely used in AI.

Statement 2: TensorFlow is a deep learning framework.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.10Practice1 mark

Statement 1: Only computer engineers can have a career in AI.

Statement 2: Communication is an important skill for AI professionals.

Answer

(d) Statement 1 is false and Statement 2 is true. Statement 1 is false; Statement 2 is true.

AT.11Practice1 mark

Statement 1: A data analyst prepares reports and dashboards from data.

Statement 2: A robotics engineer designs robots.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.12Practice1 mark

Statement 1: AI is used in agriculture for crop disease detection.

Statement 2: AI is not used in banking.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.13Practice1 mark

Statement 1: Kaggle provides datasets and competitions.

Statement 2: Scikit-learn is a word processor.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.14Practice1 mark

Statement 1: AI ethicists check that AI is fair and responsible.

Statement 2: Continuous learning is not needed in AI careers.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.15Practice1 mark

Statement 1: A token is the smallest unit of a Python program.

Statement 2: Comments are tokens.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.16Practice1 mark

Statement 1: Tuples are immutable.

Statement 2: Lists are immutable.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.17Practice1 mark

Statement 1: Python is case-sensitive.

Statement 2: 'class' can be used as a variable name.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.18Practice1 mark

Statement 1: break ends a loop immediately.

Statement 2: continue skips the rest of the current iteration.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.19Practice1 mark

Statement 1: pd.read_csv() reads a CSV file into a DataFrame.

Statement 2: A Series is two-dimensional.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.20Practice1 mark

Statement 1: fit() trains a scikit-learn model.

Statement 2: predict() gives predictions from a trained model.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.21Practice1 mark

Statement 1: The ** operator has higher precedence than *.

Statement 2: 7 // 2 gives 3.5.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.22Practice1 mark

Statement 1: NumPy arrays support fast numerical operations.

Statement 2: np.zeros((2, 2)) creates a 2 x 2 array of ones.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.23Practice1 mark

Statement 1: Design thinking has five stages.

Statement 2: Test is the first stage of design thinking.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.24Practice1 mark

Statement 1: An empathy map has the quadrants Says, Thinks, Does and Feels.

Statement 2: Empathy maps are made after the product is sold.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.25Practice1 mark

Statement 1: There are 17 Sustainable Development Goals.

Statement 2: SDG 4 is Quality Education.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.26Practice1 mark

Statement 1: A prototype should be cheap and quick to make.

Statement 2: A prototype must be the final product.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.27Practice1 mark

Statement 1: Design thinking is iterative.

Statement 2: User feedback is not needed in design thinking.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.28Practice1 mark

Statement 1: The 5W1H method helps decompose a problem.

Statement 2: 5W1H stands for Who, What, When, Where, Why and How.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.29Practice1 mark

Statement 1: Blood group is nominal data.

Statement 2: Ranks in a race are ratio data.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.30Practice1 mark

Statement 1: Temperature in Celsius is interval data.

Statement 2: Weight is ratio data.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.31Practice1 mark

Statement 1: Standard deviation is the square root of variance.

Statement 2: Variance can be negative.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.32Practice1 mark

Statement 1: The median is affected more by outliers than the mean.

Statement 2: The mode is the most frequent value.

Answer

(d) Statement 1 is false and Statement 2 is true. Statement 1 is false; Statement 2 is true.

AT.33Practice1 mark

Statement 1: Two matrices of different orders can be added.

Statement 2: The transpose of a 2 x 3 matrix is 3 x 2.

Answer

(d) Statement 1 is false and Statement 2 is true. Statement 1 is false; Statement 2 is true.

AT.34Practice1 mark

Statement 1: A pie chart shows parts of a whole.

Statement 2: A line graph is best for showing trends over time.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.35Practice1 mark

Statement 1: Normalisation scales values to a common range.

Statement 2: Data cleaning removes duplicates and fixes missing values.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.36Practice1 mark

Statement 1: Primary data is collected first-hand.

Statement 2: Census data used from a website is primary data for you.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.37Practice1 mark

Statement 1: Regression predicts continuous values.

Statement 2: Classification predicts categories.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.38Practice1 mark

Statement 1: Pearson's r can be 1.5.

Statement 2: r = -1 shows a perfect negative correlation.

Answer

(d) Statement 1 is false and Statement 2 is true. Statement 1 is false; Statement 2 is true.

AT.39Practice1 mark

Statement 1: Correlation always means causation.

Statement 2: Two variables can be correlated by chance or a third factor.

Answer

(d) Statement 1 is false and Statement 2 is true. Statement 1 is false; Statement 2 is true.

AT.40Practice1 mark

Statement 1: k-NN is a supervised learning algorithm.

Statement 2: k-means is a supervised learning algorithm.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.41Practice1 mark

Statement 1: In k-means, k is the number of clusters.

Statement 2: In k-NN, k is the number of neighbours.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.42Practice1 mark

Statement 1: The best-fit line minimises the sum of squared errors.

Statement 2: In y = mx + c, c is the slope.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.43Practice1 mark

Statement 1: Clustering needs labelled data.

Statement 2: Customer segmentation is an application of clustering.

Answer

(d) Statement 1 is false and Statement 2 is true. Statement 1 is false; Statement 2 is true.

AT.44Practice1 mark

Statement 1: Overfitting means the model does well on new data but badly on training data.

Statement 2: A centroid is the mean of the points in a cluster.

Answer

(d) Statement 1 is false and Statement 2 is true. Statement 1 is false; Statement 2 is true.

AT.45Practice1 mark

Statement 1: NLP helps computers understand human language.

Statement 2: Sarcasm is easy for computers to detect.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.46Practice1 mark

Statement 1: Lexical analysis is the first phase of NLP.

Statement 2: Pragmatic analysis comes before syntactic analysis.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.47Practice1 mark

Statement 1: Sentiment analysis finds whether text is positive, negative or neutral.

Statement 2: Machine translation converts text from one language to another.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.48Practice1 mark

Statement 1: A rule-based chatbot can answer any question.

Statement 2: Dialogflow can be used to build chatbots.

Answer

(d) Statement 1 is false and Statement 2 is true. Statement 1 is false; Statement 2 is true.

AT.49Practice1 mark

Statement 1: In Dialogflow, an intent is what the user wants to do.

Statement 2: Entities are the important details in a user message.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.50Practice1 mark

Statement 1: Detecting a tumour in an X-ray is an NLP task.

Statement 2: Speech recognition converts speech to text.

Answer

(d) Statement 1 is false and Statement 2 is true. Statement 1 is false; Statement 2 is true.

AT.51Practice1 mark

Statement 1: Stop words are very common words with little meaning.

Statement 2: Tokenisation joins words into a paragraph.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.52Practice1 mark

Statement 1: Fairness is one of the pillars of AI ethics.

Statement 2: Transparency means hiding how AI works.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.53Practice1 mark

Statement 1: Biased training data can lead to biased AI.

Statement 2: Diverse data helps reduce bias.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.54Practice1 mark

Statement 1: The EU AI Act classifies AI systems by risk.

Statement 2: India has no data protection law.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.55Practice1 mark

Statement 1: Moral Machine explores dilemmas of self-driving cars.

Statement 2: Survival of the Best Fit is about bias in hiring.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

AT.56Practice1 mark

Statement 1: Explainability means users can understand how AI made a decision.

Statement 2: Robust AI fails easily with unexpected input.

Answer

(c) Statement 1 is true and Statement 2 is false. Statement 1 is true; Statement 2 is false.

AT.57Practice1 mark

Statement 1: Human oversight can help catch unfair AI decisions.

Statement 2: Bias awareness is the first step to reduce bias.

Answer

(a) Both the statements are true. Statement 1 is true; Statement 2 is true.

ARAssertion and Reason1 mark · 52 questions
AR.1Practice1 mark

Assertion (A): All AI systems in use today are Narrow AI.

Reason (R): They are designed and trained for specific tasks.

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.

AR.2Practice1 mark

Assertion (A): Deep Blue is a reactive machine.

Reason (R): It decides only on the present state of the chessboard without using past experiences.

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.

AR.3Practice1 mark

Assertion (A): Supervised learning needs labelled data.

Reason (R): The model learns the mapping from inputs to known outputs.

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.

AR.4Practice1 mark

Assertion (A): Reinforcement learning is used in game-playing AI.

Reason (R): The agent learns from rewards and penalties.

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.

AR.5Practice1 mark

Assertion (A): Machine learning is a part of deep learning.

Reason (R): Deep learning uses neural networks with many layers.

Answer

(d) A is false but R is true. DL is a part of ML; R is true.

AR.6Practice1 mark

Assertion (A): AI lacks common sense.

Reason (R): AI learns only from the data it is trained on.

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.

AR.7Practice1 mark

Assertion (A): Super AI exists today.

Reason (R): Super AI would be smarter than humans in all fields.

Answer

(d) A is false but R is true. Super AI is only theoretical; R is true.

AR.8Practice1 mark

Assertion (A): Python is popular for AI careers.

Reason (R): Python has libraries such as NumPy, Pandas and scikit-learn.

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.

AR.9Practice1 mark

Assertion (A): Soft skills are needed in AI jobs.

Reason (R): AI professionals must explain results and work in teams.

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.

AR.10Practice1 mark

Assertion (A): AI is used only in the IT industry.

Reason (R): AI is used in healthcare, finance and agriculture.

Answer

(d) A is false but R is true. AI is used across industries; R is true.

AR.11Practice1 mark

Assertion (A): Continuous learning is important for AI professionals.

Reason (R): AI tools and methods change very fast.

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.

AR.12Practice1 mark

Assertion (A): Data scientists need statistics.

Reason (R): Machine learning models are built on statistical ideas.

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.

AR.13Practice1 mark

Assertion (A): There is a global demand for AI professionals.

Reason (R): Many industries are adopting AI.

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.

AR.14Practice1 mark

Assertion (A): 'for' cannot be used as a variable name.

Reason (R): Keywords are reserved words in Python.

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.

AR.15Practice1 mark

Assertion (A): A tuple's elements cannot be changed.

Reason (R): Tuples are immutable.

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.

AR.16Practice1 mark

Assertion (A): print(7 // 2) gives 3.5.

Reason (R): // performs floor division.

Answer

(d) A is false but R is true. 7 // 2 = 3; R is true.

AR.17Practice1 mark

Assertion (A): Pandas is used for data analysis.

Reason (R): Pandas provides Series and DataFrame structures.

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.

AR.18Practice1 mark

Assertion (A): fit() must be called before predict().

Reason (R): A model must be trained before it can make predictions.

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.

AR.19Practice1 mark

Assertion (A): Python is a compiled-only language.

Reason (R): Python code is executed by an interpreter.

Answer

(d) A is false but R is true. Python is interpreted; R is true.

AR.20Practice1 mark

Assertion (A): A CSV file can be opened in a spreadsheet.

Reason (R): CSV stores tabular data as plain text separated by commas.

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.

AR.21Practice1 mark

Assertion (A): Empathize is the first stage of design thinking.

Reason (R): Solutions should be based on a deep understanding of users.

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.

AR.22Practice1 mark

Assertion (A): A prototype is tested with users.

Reason (R): Feedback helps improve the solution.

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.

AR.23Practice1 mark

Assertion (A): Capstone projects are linked to SDGs.

Reason (R): SDGs address real social and environmental problems.

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.

AR.24Practice1 mark

Assertion (A): Design thinking is a linear one-time process.

Reason (R): Design thinking allows going back to earlier stages.

Answer

(d) A is false but R is true. It is iterative; R is true.

AR.25Practice1 mark

Assertion (A): An empathy map helps understand users.

Reason (R): It records what users say, think, do and feel.

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.

AR.26Practice1 mark

Assertion (A): 5W1H helps decompose a problem.

Reason (R): It asks who, what, when, where, why and how.

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.

AR.27Practice1 mark

Assertion (A): Temperature in Celsius is interval data.

Reason (R): It has equal intervals but no true zero.

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.

AR.28Practice1 mark

Assertion (A): The mean is affected by outliers.

Reason (R): The mean uses every value in the data.

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.

AR.29Practice1 mark

Assertion (A): A 2 x 3 matrix and a 3 x 2 matrix can be added.

Reason (R): Matrices of the same order can be added.

Answer

(d) A is false but R is true. Orders differ, so they cannot be added; R is true.

AR.30Practice1 mark

Assertion (A): Standard deviation is never negative.

Reason (R): It is the square root of variance, which is an average of squares.

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.

AR.31Practice1 mark

Assertion (A): Images can be stored as matrices.

Reason (R): Each pixel value is placed in a row and column.

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.

AR.32Practice1 mark

Assertion (A): Data should be cleaned before modelling.

Reason (R): Missing and wrong values reduce model accuracy.

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.

AR.33Practice1 mark

Assertion (A): A histogram is used for categorical data like favourite colour.

Reason (R): A histogram shows the frequency of numeric ranges.

Answer

(d) A is false but R is true. A bar chart suits categories; R is true.

AR.34Practice1 mark

Assertion (A): Linear regression predicts continuous values.

Reason (R): It fits a straight line between input and output.

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.

AR.35Practice1 mark

Assertion (A): k-means is unsupervised.

Reason (R): It groups data without using labels.

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.

AR.36Practice1 mark

Assertion (A): k-NN uses distance to classify a point.

Reason (R): The nearest k points vote for the class.

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.

AR.37Practice1 mark

Assertion (A): Correlation proves that one variable causes another.

Reason (R): Correlation measures the linear relation between two variables.

Answer

(d) A is false but R is true. Correlation is not causation; R is true.

AR.38Practice1 mark

Assertion (A): An odd k is preferred in k-NN for two classes.

Reason (R): An odd number of votes cannot end in a tie between two classes.

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.

AR.39Practice1 mark

Assertion (A): r = 0.9 shows a strong positive correlation.

Reason (R): r close to +1 means both variables increase together.

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.

AR.40Practice1 mark

Assertion (A): Clustering is supervised learning.

Reason (R): Clustering finds groups in unlabelled data.

Answer

(d) A is false but R is true. Clustering is unsupervised; R is true.

AR.41Practice1 mark

Assertion (A): Sarcasm is difficult for NLP.

Reason (R): The literal words and the intended meaning are different.

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.

AR.42Practice1 mark

Assertion (A): Pragmatic analysis is the last phase of NLP.

Reason (R): It finds the intended meaning using context and world knowledge.

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.

AR.43Practice1 mark

Assertion (A): "Hot ice-cream" fails semantic analysis.

Reason (R): Semantic analysis checks the meaning of words and sentences.

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.

AR.44Practice1 mark

Assertion (A): A rule-based chatbot handles every user question.

Reason (R): Rule-based chatbots reply from fixed rules.

Answer

(d) A is false but R is true. They cannot handle unexpected questions; R is true.

AR.45Practice1 mark

Assertion (A): Spam filtering is a text classification task.

Reason (R): E-mails are classified as spam or not spam.

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.

AR.46Practice1 mark

Assertion (A): Entities in Dialogflow store details like flavour and quantity.

Reason (R): Entities extract useful parameters from user messages.

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.

AR.47Practice1 mark

Assertion (A): Biased data can create a biased AI system.

Reason (R): AI learns patterns, including unfair ones, from its training data.

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.

AR.48Practice1 mark

Assertion (A): Explainability builds trust in AI.

Reason (R): Users can see why a decision was made.

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.

AR.49Practice1 mark

Assertion (A): AI policies are not needed.

Reason (R): AI can affect privacy, jobs and fairness.

Answer

(d) A is false but R is true. Policies are needed because of these effects; R is true.

AR.50Practice1 mark

Assertion (A): Privacy is a pillar of AI ethics.

Reason (R): Users should control how their personal data is used.

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.

AR.51Practice1 mark

Assertion (A): Human oversight reduces harm from AI errors.

Reason (R): A human can review and correct important decisions.

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.

AR.52Practice1 mark

Assertion (A): Diverse training data helps reduce bias.

Reason (R): It represents different groups fairly.

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.

AEEmployability skills: Assertion and Reason (5 per unit)1 mark · 25 questions
AE.1Practice1 mark

Assertion (A): Assertive communication is the most effective style at the workplace.

Reason (R): It is clear and honest while respecting others.

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): "an hour" uses the article an.

Reason (R): The choice of a or an depends on the first sound of the word.

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): "a university" is wrong; it should be "an university".

Reason (R): University begins with a 'yoo' consonant sound.

Answer

(d) A is false but R is true. "a university" is correct, so A is false; R is true.

AE.4Practice1 mark

Assertion (A): Sarcasm and sulking are signs of passive-aggressive communication.

Reason (R): Passive-aggressive people express anger indirectly.

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.5Practice1 mark

Assertion (A): A paragraph should begin with a topic sentence.

Reason (R): The topic sentence states the main idea of the paragraph.

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): Grooming creates a good first impression.

Reason (R): Clean, neat and suitable appearance shows discipline and respect.

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): Clear goals and defined roles help in team building.

Reason (R): Every member knows what to achieve and what his or her job is.

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): Endless scrolling on social media falls in the 'important and urgent' box.

Reason (R): Time wasters should be eliminated.

Answer

(d) A is false but R is true. Scrolling is neither urgent nor important; A is false.

AE.9Practice1 mark

Assertion (A): Journaling helps in self-exploration.

Reason (R): Writing daily thoughts shows patterns in our behaviour.

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): Storming is the first stage of team development.

Reason (R): In the storming stage members have conflicts.

Answer

(d) A is false but R is true. Forming is the first stage; A is false; R is true.

AE.11Practice1 mark

Assertion (A): Ctrl + J justifies text in a word processor.

Reason (R): Justified text is aligned evenly with both margins.

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.12Practice1 mark

Assertion (A): A header appears on every page of the document.

Reason (R): Header text is repeated at the top of each page.

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.13Practice1 mark

Assertion (A): Find and Replace can change all occurrences of a word at once.

Reason (R): Its shortcut is Ctrl + H.

Answer

(b) Both A and R are true but R is not the correct explanation of A. Both true; R gives the shortcut, not the reason.

AE.14Practice1 mark

Assertion (A): A PDF file is easily edited like a .docx file.

Reason (R): PDF keeps the same look on every device.

Answer

(d) A is false but R is true. PDF is not easily edited, so A is false; R is true.

AE.15Practice1 mark

Assertion (A): Mail merge is used to send the same letter to many people.

Reason (R): It takes names and addresses from a list.

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): Innovativeness is an entrepreneurial value.

Reason (R): Entrepreneurs bring new products and 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.17Practice1 mark

Assertion (A): Entrepreneurs take reckless risks.

Reason (R): Entrepreneurs prefer moderate, calculated risks.

Answer

(d) A is false but R is true. A is false; R is true.

AE.18Practice1 mark

Assertion (A): A drone entrepreneur readily adopts new technology.

Reason (R): Drone entrepreneurs resist change even when they suffer losses.

Answer

(d) A is false but R is true. A is false; R is true.

AE.19Practice1 mark

Assertion (A): Problems around us can be sources of business ideas.

Reason (R): Solving a real problem creates value for customers.

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.20Practice1 mark

Assertion (A): Respect for work is an entrepreneurial value.

Reason (R): An entrepreneur believes no work is too small.

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): A green economy is low-carbon and resource-efficient.

Reason (R): It aims to reduce pollution while creating jobs.

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.22Practice1 mark

Assertion (A): NAPCC was launched in 2008.

Reason (R): It has eight national missions.

Answer

(b) Both A and R are true but R is not the correct explanation of A. Both true; R does not explain A.

AE.23Practice1 mark

Assertion (A): E-waste should be thrown with household garbage.

Reason (R): E-waste contains harmful metals that need safe recycling.

Answer

(d) A is false but R is true. A is false; R is true.

AE.24Practice1 mark

Assertion (A): Consumers are stakeholders in the green economy.

Reason (R): Their choice of eco-friendly products drives green markets.

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): Eco-tourism damages local ecology.

Reason (R): Eco-tourism is tourism that protects nature and local culture.

Answer

(d) A is false but R is true. A is false; R is true.

Short answers · 2 marks each

B1Employability skills2 marks · 60 questions
B1.1Practice2 marks

Name the three methods of communication with one example each.

Answer

Verbal: spoken or written words - a phone call, an e-mail. Non-verbal: body language - a handshake, a smile. Visual: images and signs - a traffic sign, a chart.

B1.2Practice2 marks

Differentiate between assertive and aggressive communication styles.

Answer

Assertive: expresses needs clearly and calmly, listens and respects others ("I think we should..."). Aggressive: dominates, shouts, blames and ignores others' feelings ("You always spoil everything!").

B1.3Practice2 marks

What is passive-aggressive communication? Give an example.

Answer

It is expressing anger or disagreement indirectly instead of openly. Example: agreeing to do a task but deliberately doing it late, or making sarcastic comments.

B1.4Practice2 marks

Differentiate between a phrase and a sentence with examples.

Answer

A phrase is a group of words without a subject and verb that does not give complete sense: 'under the tree'. A sentence has a subject and a verb and gives complete sense: 'The children are playing under the tree.'

B1.5Practice2 marks

Name the four kinds of sentences with an example each.

Answer

Declarative: AI is useful. Interrogative: What is AI? Imperative: Open the file. Exclamatory: What a smart robot!

B1.6Practice2 marks

What are articles? When do we use 'a' and 'an'?

Answer

A, an and the are articles. 'A' is used before a consonant sound (a book, a university); 'an' before a vowel sound (an apple, an hour). 'The' is used for a particular thing.

B1.7Practice2 marks

Name the parts of a sentence. Identify them in: "Riya wrote a poem."

Answer

Subject and predicate (verb + object). Subject: Riya; verb: wrote; object: a poem.

B1.8Practice2 marks

Write any four parts of speech with one example each.

Answer

Noun (computer), pronoun (she), verb (run), adjective (smart), adverb (quickly), preposition (on), conjunction (and), interjection (wow). (Any four.)

B1.9Practice2 marks

What is a paragraph? Write its three parts.

Answer

A paragraph is a group of sentences about one main idea. Parts: topic sentence (main idea), supporting sentences (details, examples) and concluding sentence (sums up).

B1.10Practice2 marks

What is submissive communication? Why is it not effective?

Answer

In submissive communication a person avoids conflict, gives in to others and does not express own needs. It is not effective because the person's views are ignored, they feel stressed and problems are not solved.

B1.11Practice2 marks

Write two advantages of visual communication.

Answer

Visuals are understood quickly, overcome language barriers, are remembered longer and make data easy to compare (charts, graphs, signs).

B1.12Practice2 marks

Give two examples each of positive and negative body language.

Answer

Positive: smiling, eye contact, upright posture, nodding. Negative: crossed arms, looking away, slouching, fidgeting.

B1.13Practice2 marks

What is grooming? Why is it important?

Answer

Grooming is keeping ourselves clean, neat and suitably dressed. It creates a good first impression, builds confidence and shows respect for others and for the occasion.

B1.14Practice2 marks

Write any four points of a personal grooming checklist.

Answer

Bath daily; clean and ironed clothes; trimmed nails; combed hair; polished shoes; brushed teeth and fresh breath; minimal jewellery and perfume. (Any four.)

B1.15Practice2 marks

What is self-exploration? Name two techniques.

Answer

Self-exploration is understanding our own interests, values, strengths and weaknesses. Techniques: self-reflection/journal writing, taking feedback from others, personality and interest tests, trying new activities.

B1.16Practice2 marks

Differentiate between a team and a group.

Answer

A group is people who are together but may work separately. A team works together for a common goal, with shared responsibility, coordination and mutual trust.

B1.17Practice2 marks

Write any four factors that influence team building.

Answer

Clear goals, defined roles, trust, open communication, good leadership, mutual respect, recognition of effort. (Any four.)

B1.18Practice2 marks

Write two qualities of a good team member.

Answer

Listens actively, shares work and credit, respects others' views, is reliable and meets deadlines, helps resolve conflicts. (Any two.)

B1.19Practice2 marks

What is time management? Write two benefits.

Answer

Time management is planning and controlling the time spent on tasks. Benefits: less stress, more work done, better results, time for leisure.

B1.20Practice2 marks

Write any four steps of effective time management.

Answer

Set and prioritise goals; make a to-do list; create a schedule; break big tasks into smaller ones; avoid distractions; review and adjust the plan.

B1.21Practice2 marks

What is procrastination? Write two ways to overcome it.

Answer

Procrastination is putting off important tasks. Ways: break the task into small parts, set deadlines, remove distractions, start with a 5-minute rule, reward yourself after finishing.

B1.22Practice2 marks

How can a student balance study and leisure?

Answer

Make a timetable with fixed study hours and breaks, finish important tasks first, include play and hobbies, sleep well and avoid wasting time on the phone.

B1.23Practice2 marks

Explain the urgent-important (Eisenhower) matrix briefly.

Answer

Tasks are put in four boxes: important and urgent - do first; important not urgent - schedule; urgent not important - delegate; neither - delete. It helps prioritise.

B1.24Practice2 marks

Why is positive body language important in an interview?

Answer

It shows confidence, honesty and interest. A smile, firm handshake, upright posture and eye contact create a good impression.

B1.25Practice2 marks

What is a word processor? Name two examples.

Answer

A word processor is software to create, edit, format, save and print text documents. Examples: LibreOffice Writer, MS Word, Google Docs, WordPad.

B1.26Practice2 marks

Write the steps to create and save a new document in LibreOffice Writer.

Answer

Open Writer -> File > New > Text Document -> type the text -> File > Save (Ctrl + S) -> choose the folder, type the file name -> Save (.odt).

B1.27Practice2 marks

Differentiate between header and footer.

Answer

A header is text at the top margin of every page (e.g. chapter title). A footer is at the bottom margin (e.g. page numbers, date).

B1.28Practice2 marks

What is Find and Replace? Give a use.

Answer

It searches for a word or phrase and replaces it with another throughout the document. Use: changing every 'Delhi' to 'New Delhi' in a long report at once.

B1.29Practice2 marks

Name the four text alignments.

Answer

Left, centre, right and justify. Justify makes both margins straight.

B1.30Practice2 marks

What is AutoCorrect? Give an example.

Answer

AutoCorrect automatically corrects common spelling and typing mistakes as we type, e.g. 'teh' becomes 'the', '(c)' becomes the copyright symbol.

B1.31Practice2 marks

Differentiate between bulleted and numbered lists.

Answer

Bulleted lists use symbols (dots, squares) when order does not matter. Numbered lists use 1, 2, 3 or a, b, c when order matters, like steps.

B1.32Practice2 marks

Write the steps to insert a table in a Writer document.

Answer

Place the cursor -> Table > Insert Table (Ctrl + F12) -> enter the number of rows and columns -> Insert. Then type data in the cells.

B1.33Practice2 marks

What is text wrapping? Name two options.

Answer

Text wrapping decides how text flows around a picture or object. Options: wrap off, page wrap, optimal, before, after, through (in Word: square, tight, in line with text, behind text).

B1.34Practice2 marks

Name any four file formats in which a document can be saved.

Answer

.odt (Writer), .docx/.doc (Word), .pdf, .txt, .rtf, .html. (Any four.)

B1.35Practice2 marks

Write the use of:

  1. Ctrl + I
  2. Ctrl + P
Answer

(i) Ctrl + I makes selected text italic. (ii) Ctrl + P opens the print dialog to print the document.

B1.36Practice2 marks

Why should we use Print Preview before printing?

Answer

To check page layout, margins, page breaks and orientation, so that mistakes are corrected before printing and paper is not wasted.

B1.37Practice2 marks

What are values? Name the four entrepreneurial values.

Answer

Values are beliefs that guide behaviour and decisions. Entrepreneurial values: innovativeness, independence, outstanding performance and respect for work.

B1.38Practice2 marks

Explain innovativeness and independence as entrepreneurial values.

Answer

Innovativeness: creating new products, services or methods. Independence: preferring to make one's own decisions and be one's own boss.

B1.39Practice2 marks

What is an attitude? Give two examples of entrepreneurial attitudes.

Answer

An attitude is a way of thinking or feeling that shows in behaviour. Examples: taking moderate risks, seeking economic opportunities, using imagination and intuition, believing one can change the environment.

B1.40Practice2 marks

Why do entrepreneurs take moderate risks and not very high risks?

Answer

Very high risks may cause heavy loss, and no risk means no growth. Moderate (calculated) risks are studied and planned, so there is a good chance of success with limited loss.

B1.41Practice2 marks

Explain 'analysing situations and planning action' with an example.

Answer

Before acting, the entrepreneur studies facts and makes a plan. Example: before opening a juice stall, Ravi surveys footfall, prices of fruits and competitors, then decides the location and menu.

B1.42Practice2 marks

Explain 'respect for work' with an example.

Answer

Respect for work means valuing every type of work and doing it sincerely. Example: an owner of a restaurant who also cleans tables when needed and treats helpers with dignity.

B1.43Practice2 marks

How can a student develop entrepreneurial attitudes?

Answer

Take part in school fairs and clubs, try small projects, learn from failures, read about entrepreneurs, think of solutions to local problems, and take initiative.

B1.44Practice2 marks

Differentiate between values and attitudes.

Answer

Values are deep beliefs about what is important (honesty, respect for work). Attitudes are the ways we think and react to situations, shaped by values (positive attitude to risk).

B1.45Practice2 marks

Explain 'seeking economic opportunities' with an example.

Answer

Looking for unmet needs that can become a business. Example: noticing that people in a new housing society need laundry service and starting one.

B1.46Practice2 marks

Explain 'outstanding performance' as a value.

Answer

It means always aiming to do one's best and set high standards of quality. Entrepreneurs with this value improve products continuously and satisfy customers.

B1.47Practice2 marks

Write two differences between an entrepreneurial attitude and a non-entrepreneurial attitude.

Answer

Entrepreneurial: takes initiative, sees opportunity in problems, accepts moderate risk. Non-entrepreneurial: waits for instructions, sees only problems, avoids all risk.

B1.48Practice2 marks

Why is 'belief that you can change the environment' important for an entrepreneur?

Answer

It gives confidence to change the market, create new products and influence customers instead of accepting things as they are; it keeps the entrepreneur motivated.

B1.49Practice2 marks

What is a green economy? Name any four of its main sectors.

Answer

An economy that is low-carbon, resource-efficient and socially inclusive. Sectors: e-waste management, green transportation, renewable energy, green construction, water management. (Any four.)

B1.50Practice2 marks

What is e-waste? Why should it be managed properly?

Answer

E-waste is discarded electronic items like phones, computers and batteries. They contain toxic metals (lead, mercury, cadmium) that pollute soil and water, and valuable metals that can be recycled.

B1.51Practice2 marks

Write two features of green buildings.

Answer

Use of solar energy and natural light, rainwater harvesting, energy-efficient appliances, local and recycled materials, waste recycling. (Any two.)

B1.52Practice2 marks

What is green transportation? Give two examples.

Answer

Transport that uses less fuel and causes less pollution. Examples: electric vehicles, metro rail, CNG buses, cycling, walking, car-pooling.

B1.53Practice2 marks

Name any two policy initiatives of India for greening the economy.

Answer

National Action Plan on Climate Change (National Solar Mission etc.), Swachh Bharat Mission, FAME scheme for EVs, Ujala LED scheme, Jal Jeevan Mission, Perform Achieve and Trade scheme. (Any two.)

B1.54Practice2 marks

Who are the stakeholders in a green economy? Name any four.

Answer

Government, private companies, NGOs, local communities, consumers/citizens, financial institutions, research institutions. (Any four.)

B1.55Practice2 marks

What is the role of government in the green economy?

Answer

Makes laws and pollution standards, gives subsidies and incentives (for solar, EVs), invests in green infrastructure, spreads awareness and monitors compliance.

B1.56Practice2 marks

What is the role of private agencies in greening the economy?

Answer

Invest in renewable energy and clean technology, reduce their own emissions and waste, make eco-friendly products, follow CSR, create green jobs.

B1.57Practice2 marks

How can tourism be made green? Give two ways.

Answer

Eco-tourism that protects nature, limits on visitors in fragile areas, eco-friendly hotels using solar power and water saving, no plastic, benefits shared with local people.

B1.58Practice2 marks

How can agriculture be made green?

Answer

Organic farming, drip irrigation, crop rotation, using bio-fertilisers, not burning crop residue, solar pumps.

B1.59Practice2 marks

Write two ways of greening water management.

Answer

Rainwater harvesting, drip and sprinkler irrigation, recycling wastewater, fixing leaks, protecting lakes and rivers from pollution.

B1.60Practice2 marks

What is renewable energy? Why is it important for a green economy?

Answer

Energy from sources that are naturally replaced: sun, wind, water, biomass. It reduces pollution and greenhouse gases, does not run out and lowers dependence on fossil fuels.

B2AI units: explain and differentiate2 marks · 86 questions
B2.1Practice2 marks

Define Artificial Intelligence. Give two examples from daily life.

Answer

AI is the branch of computer science that makes machines perform tasks needing human intelligence - learning, reasoning, perception and decision making. Examples: face unlock, Google Maps traffic prediction, voice assistants, YouTube recommendations.

B2.2Practice2 marks

Write any four milestones in the evolution of AI.

Answer

1950 Turing Test (Alan Turing); 1956 term 'AI' at Dartmouth (John McCarthy); 1966 ELIZA chatbot; 1997 Deep Blue beats Kasparov; 2011 IBM Watson wins Jeopardy!; 2016 AlphaGo beats Lee Sedol; 2022 ChatGPT. (Any four.)

B2.3Practice2 marks

Differentiate between Narrow AI and General AI.

Answer

Narrow (weak) AI does one specific task well, e.g. face recognition, chess; all present AI is narrow. General (strong) AI would perform any intellectual task like a human, with understanding and reasoning across fields; it does not exist yet.

B2.4Practice2 marks

Name the four types of AI based on functionality.

Answer

Reactive machines (Deep Blue), limited memory (self-driving cars), theory of mind (understand emotions - research stage), self-aware AI (hypothetical).

B2.5Practice2 marks

Name the three domains of AI and the type of data each uses.

Answer

Data Science: numbers and tables; Computer Vision: images and videos; Natural Language Processing: text and speech.

B2.6Handbook2 marks

Categorise into AI domains:

  1. A chatbot
  2. A self-driving car's lane detection
  3. Stock price prediction
  4. Google Lens.
Answer

(i) NLP (ii) Computer Vision (iii) Data Science (iv) Computer Vision.

B2.7Practice2 marks

Differentiate between Machine Learning and Deep Learning.

Answer

ML learns patterns from data, often with hand-chosen features, and works with smaller data. DL is a part of ML using neural networks with many layers, learns features itself and needs large data and computing power.

B2.8Practice2 marks

Differentiate between supervised and unsupervised learning.

Answer

Supervised: trained on labelled data (input + correct output), e.g. spam detection, price prediction. Unsupervised: finds patterns in unlabelled data, e.g. customer grouping.

B2.9Practice2 marks

What is reinforcement learning? Give an example.

Answer

Learning by trial and error: an agent acts in an environment and gets rewards for good actions and penalties for bad ones, improving over time. Example: AlphaGo, a robot learning to walk.

B2.10Practice2 marks

Write two benefits and two limitations of AI.

Answer

Benefits: works 24x7, high speed and accuracy in repetitive tasks, handles big data, works in dangerous places. Limitations: lacks common sense and emotions, can be biased, costly, needs lots of data, may replace jobs.

B2.11Practice2 marks

What is cognitive computing?

Answer

Computing that simulates human thought processes - perception, learning and reasoning - to help humans make decisions, often with natural language. Example: IBM Watson.

B2.12Practice2 marks

Differentiate between features and labels with an example.

Answer

Features are the input variables; the label is the output to be predicted. House price model: area, rooms, location are features; price is the label.

B2.13Practice2 marks

Why is there a global demand for AI professionals?

Answer

Almost every industry - healthcare, finance, retail, agriculture, manufacturing - is adopting AI to save cost and improve decisions, but skilled people are few, so demand is high and growing.

B2.14Practice2 marks

Name any four job roles in AI.

Answer

Data scientist, machine learning engineer, data analyst, AI research scientist, NLP engineer, computer vision engineer, robotics engineer, AI ethicist, AI product manager. (Any four.)

B2.15Practice2 marks

Differentiate between a data analyst and a data scientist.

Answer

A data analyst studies existing data to answer business questions and makes reports and dashboards. A data scientist also builds predictive and machine learning models, needing deeper statistics and programming.

B2.16Practice2 marks

What does a machine learning engineer do?

Answer

Designs, trains, tests and deploys ML models into real products, makes them efficient and scalable, and monitors them after deployment.

B2.17Practice2 marks

Name four technical skills needed for an AI career.

Answer

Programming (Python), mathematics and statistics, machine learning, data handling (SQL, Pandas), data visualisation, deep learning frameworks, cloud tools. (Any four.)

B2.18Practice2 marks

Name four soft skills needed for an AI career.

Answer

Communication, teamwork, critical thinking, problem solving, creativity, curiosity and continuous learning, ethics. (Any four.)

B2.19Practice2 marks

Name any four tools used by AI professionals.

Answer

Python, Jupyter Notebook, NumPy, Pandas, scikit-learn, TensorFlow, PyTorch, Tableau/Power BI, Git. (Any four.)

B2.20Practice2 marks

Give two uses of AI in healthcare.

Answer

Reading X-rays, CT scans and eye scans; predicting disease risk; drug discovery; chatbots for symptoms; robotic surgery support. (Any two.)

B2.21Practice2 marks

Give two uses of AI in finance.

Answer

Fraud detection, credit scoring, algorithmic trading, chatbots for customer service, risk analysis. (Any two.)

B2.22Practice2 marks

Give two uses of AI in agriculture.

Answer

Crop disease detection from leaf images, yield and weather prediction, smart irrigation using soil sensors, drone monitoring, price forecasting. (Any two.)

B2.23Handbook2 marks

How will you find ten companies hiring for AI roles? What details will you note?

Answer

Search job portals (LinkedIn, Naukri, Indeed) and company career pages for roles like 'data scientist' or 'ML engineer'. Note company name, job title, location, required qualifications, technical skills, soft skills and experience.

B2.24Practice2 marks

What is an AI ethicist? Why is this role needed?

Answer

An AI ethicist checks that AI systems are fair, transparent, private and accountable. The role is needed because AI decisions affect people's lives and can be biased or harmful.

B2.25Practice2 marks

What are tokens? Name the types of tokens in Python.

Answer

Tokens are the smallest individual units of a program. Types: keywords, identifiers, literals, operators and punctuators (delimiters).

B2.26Practice2 marks

Write any four rules for naming identifiers.

Answer

Start with a letter or underscore; can contain letters, digits and _; no spaces or special symbols; cannot be a keyword; case-sensitive.

B2.27Practice2 marks

Differentiate between interactive mode and script mode.

Answer

Interactive mode runs one statement at a time at >>> and shows the result immediately; not saved. Script mode saves the whole program as a .py file and runs it together; good for long programs.

B2.28Practice2 marks

Differentiate between a list and a tuple.

Answer

A list is mutable (can be changed) and written in [ ]. A tuple is immutable (cannot be changed) and written in ( ). Tuples are faster and safe for fixed data.

B2.29Practice2 marks

Differentiate between break and continue.

Answer

break ends the loop completely. continue skips the rest of the current iteration and goes to the next one.

B2.30Practice2 marks

Explain membership and identity operators with an example.

Answer

Membership: in, not in check presence - 3 in [1, 2, 3] is True. Identity: is, is not check whether two names refer to the same object - x is None.

B2.31Practice2 marks

What is a CSV file? Why is it used in AI?

Answer

CSV (Comma Separated Values) is a plain-text file storing tabular data with values separated by commas. It is small, simple and opened by spreadsheets and Pandas, so datasets for AI are often shared as CSV.

B2.32Practice2 marks

What is NumPy? Write two of its features.

Answer

NumPy (Numerical Python) is a library for fast arrays and mathematics. Features: n-dimensional arrays (ndarray), element-wise operations, functions like mean, sum, reshape, and much faster than lists.

B2.33Practice2 marks

Differentiate between a Pandas Series and a DataFrame.

Answer

A Series is one-dimensional labelled data (a single column). A DataFrame is two-dimensional, with rows and columns, like a table.

B2.34Practice2 marks

What is scikit-learn? Name two algorithms it provides.

Answer

Scikit-learn is a Python library for machine learning. Algorithms: LinearRegression, KNeighborsClassifier, KMeans, DecisionTreeClassifier. It also has train_test_split and accuracy_score.

B2.35Practice2 marks

Write the output: L = [10, 20, 30, 40]; print(L[1:3], L[-1], len(L))

Answer

[20, 30] 40 4

B2.36Practice2 marks

Write the output: for i in range(1, 10, 3): print(i, end=' ')

Answer

1 4 7

B2.37Practice2 marks

What is design thinking? Name its five stages.

Answer

A human-centred, iterative approach to creative problem solving. Stages: Empathize, Define, Ideate, Prototype, Test.

B2.38Practice2 marks

What is an empathy map? Name its four quadrants.

Answer

A visual tool to understand a user's experience. Quadrants: Says, Thinks, Does, Feels (with the user in the centre).

B2.39Practice2 marks

What is the 5W1H method?

Answer

A problem-decomposition method that asks Who is affected, What is the problem, When and Where does it happen, Why is it important, and How can it be solved.

B2.40Practice2 marks

Differentiate between the Ideate and Prototype stages.

Answer

Ideate: brainstorm many possible solutions without judging. Prototype: build a simple, low-cost model of the chosen idea to test it.

B2.41Practice2 marks

Why is design thinking called human-centred and iterative?

Answer

Human-centred because it starts with understanding users' needs and feelings. Iterative because after testing we go back to earlier stages to improve the solution.

B2.42Practice2 marks

What are SDGs? Name any four.

Answer

The 17 Sustainable Development Goals adopted by the UN in 2015 for 2030. E.g. No Poverty, Zero Hunger, Good Health, Quality Education, Clean Water, Climate Action. (Any four.)

B2.43Practice2 marks

What is a capstone project?

Answer

A final, team-based project that applies all the learning of the course to solve a real-world problem, usually linked to an SDG, with research, design, building and presentation.

B2.44Handbook2 marks

Write the stages of the CBSE capstone project.

Answer

Prepare for the project, form a team, define the problem (aligned to an SDG), understand the users, brainstorm solutions, design the solution - and document each step.

B2.45Practice2 marks

What is a prototype? Why should it be simple?

Answer

A prototype is an early, simple model of a solution. It should be quick and cheap so that it can be tested and changed easily based on feedback.

B2.46Practice2 marks

What is problem decomposition? Give an example.

Answer

Breaking a big problem into smaller parts. Example: 'improve school canteen' -> menu planning, waiting time, waste, payments, hygiene.

B2.47Practice2 marks

Write a 'How Might We' question for students who skip breakfast.

Answer

How might we help students eat a healthy breakfast before school even when they are short of time?

B2.48Handbook2 marks

What should a project abstract contain?

Answer

Title, problem statement, target users, the SDG addressed, proposed AI solution, data needed, expected impact - in a short, non-technical paragraph.

B2.49Practice2 marks

What is data literacy? Why is it important in AI?

Answer

The ability to read, understand, analyse and communicate with data. AI learns from data, so we must collect, clean, analyse and interpret it correctly to build fair and useful models.

B2.50Practice2 marks

Differentiate between primary and secondary data.

Answer

Primary data is collected first-hand for the purpose (surveys, interviews, experiments, sensors). Secondary data was collected earlier by others (census, research papers, data.gov.in, Kaggle).

B2.51Practice2 marks

Name the four levels of measurement with an example each.

Answer

Nominal: gender, blood group. Ordinal: ranks, ratings. Interval: temperature in Celsius, calendar years. Ratio: height, weight, income.

B2.52Practice2 marks

Differentiate between interval and ratio scales.

Answer

Both have equal intervals. Ratio has a true zero (0 kg = no weight), so 'twice as much' makes sense; interval has no true zero (0 degree C is not 'no temperature').

B2.53Practice2 marks

Define variance and standard deviation.

Answer

Variance = average of the squared differences from the mean: sum of (x - mean)^2 / n. Standard deviation = square root of variance; it shows the typical spread in the same unit as the data.

B2.54Practice2 marks

What is a matrix? Write two of its uses in AI.

Answer

A rectangular arrangement of numbers in rows and columns. Uses: storing images as pixel matrices, storing datasets (rows = records, columns = features), neural network weights, recommendation systems.

B2.55Practice2 marks

Write the condition for adding and for multiplying two matrices.

Answer

Addition: both matrices must have the same order. Multiplication A x B: the number of columns of A must equal the number of rows of B.

B2.56Practice2 marks

What is data pre-processing? Name two steps.

Answer

Preparing raw data for modelling. Steps: cleaning (missing values, duplicates, outliers), transformation (normalisation, encoding), reduction (removing unneeded features), integration (combining sources).

B2.57Practice2 marks

Which graph will you use:

  1. Rainfall over 12 months
  2. Share of expenses
  3. Height vs weight
  4. Distribution of marks?
Answer

(i) Line graph (ii) Pie chart (iii) Scatter plot (iv) Histogram.

B2.58Practice2 marks

Why do we split data into training and testing sets?

Answer

The model learns from the training set; the testing set checks how it performs on unseen data, so we know whether it will work in the real world and is not just memorising.

B2.59Practice2 marks

Differentiate between regression and classification.

Answer

Regression predicts a continuous number (price, temperature). Classification predicts a category (spam / not spam, apple / mango).

B2.60Practice2 marks

What is correlation? Name its three types.

Answer

Correlation measures the strength and direction of the linear relation between two variables. Types: positive (both increase), negative (one increases, the other decreases), zero (no relation).

B2.61Practice2 marks

What does the value of Pearson's r tell us?

Answer

Its sign gives the direction (+ positive, - negative); its size gives the strength: near 1 strong, near 0 weak or none. r lies between -1 and +1.

B2.62Practice2 marks

Write the steps of the k-NN algorithm.

Answer

Choose k; find the distance of the new point from every training point; pick the k nearest; assign the class that is most common among them (majority vote).

B2.63Practice2 marks

Write the steps of the k-means algorithm.

Answer

Choose k; pick k initial centroids; assign each point to the nearest centroid; recompute each centroid as the mean of its points; repeat until the centroids do not change.

B2.64Practice2 marks

Differentiate between k-NN and k-means.

Answer

k-NN is supervised classification; k = number of neighbours; needs labelled data. k-means is unsupervised clustering; k = number of clusters; uses unlabelled data.

B2.65Practice2 marks

Name the types of classification with an example each.

Answer

Binary: spam/not spam. Multi-class: digit 0-9. Multi-label: a movie tagged comedy and romance. (Imbalanced classification: fraud detection.)

B2.66Practice2 marks

Name the types of clustering.

Answer

Partitioning (k-means), hierarchical (agglomerative/divisive, dendrogram), density-based (DBSCAN), and grid/model-based.

B2.67Practice2 marks

What is NLP? Give two applications.

Answer

Natural Language Processing is the AI domain that lets computers understand, interpret and generate human language. Applications: chatbots, machine translation, sentiment analysis, spam filtering, voice assistants.

B2.68Practice2 marks

Why is human language complex for computers?

Answer

Words have many meanings (lexical ambiguity), sentences can be read in many ways (syntactic ambiguity), meaning depends on context, and there are idioms, sarcasm, slang and spelling mistakes.

B2.69Practice2 marks

Name the five phases of NLP in order.

Answer

Lexical analysis, syntactic analysis (parsing), semantic analysis, discourse integration, pragmatic analysis.

B2.70Practice2 marks

Differentiate between syntactic and semantic analysis with examples.

Answer

Syntactic checks grammar and structure: "School go I to" fails. Semantic checks meaning: "Colourless green ideas sleep furiously" is grammatical but meaningless.

B2.71Practice2 marks

What is sentiment analysis? Give a use.

Answer

Finding whether a text expresses a positive, negative or neutral opinion. Use: companies analyse product reviews and tweets to know customer satisfaction.

B2.72Practice2 marks

Differentiate between a rule-based chatbot and an AI chatbot.

Answer

Rule-based: replies from fixed rules and keywords; simple; fails on unexpected questions. AI chatbot: uses NLP and ML; understands varied language; learns and improves.

B2.73Handbook2 marks

What are intents and entities in Dialogflow?

Answer

An intent is the purpose of the user's message (e.g. OrderIceCream). Entities are the details to extract (flavour = chocolate, size = large, quantity = 2).

B2.74Handbook2 marks

What is IBM Project Debater?

Answer

An AI system by IBM that can debate complex topics with human experts: it reads millions of articles, builds arguments, listens to the opponent and gives rebuttals in natural language (first shown in 2019).

B2.75Practice2 marks

What is pragmatic analysis? Give an example.

Answer

The last phase of NLP that finds the intended meaning using context and world knowledge. "Can you open the window?" is a request, not a question about ability.

B2.76Practice2 marks

What is discourse integration?

Answer

Understanding a sentence using the sentences before it. In "Riya bought a phone. It is red.", 'it' refers to the phone.

B2.77Practice2 marks

Name the five pillars of AI ethics.

Answer

Explainability, fairness, robustness, transparency and privacy.

B2.78Practice2 marks

Differentiate between explainability and transparency.

Answer

Explainability: the AI can explain why it made a particular decision. Transparency: openness about how the system is built, what data it uses and its limits.

B2.79Practice2 marks

What is AI bias? Give an example.

Answer

Systematic unfairness in AI outputs against some group. Example: a loan AI rejecting applicants from certain areas because historical data was biased.

B2.80Practice2 marks

Name any three sources of bias in AI.

Answer

Biased or unrepresentative training data, historical bias, human (labelling) bias, algorithmic design bias, feedback loops. (Any three.)

B2.81Practice2 marks

Write two ways to mitigate bias in AI.

Answer

Use diverse and balanced data; audit outputs for different groups; involve diverse teams; keep human oversight; be transparent and allow appeals.

B2.82Practice2 marks

What is an AI policy? Why is it needed?

Answer

A set of rules and principles that guide the responsible development and use of AI. Needed to protect privacy, ensure fairness and safety, and fix accountability.

B2.83Handbook2 marks

What do the games Moral Machine and Survival of the Best Fit teach?

Answer

Moral Machine: ethical dilemmas of self-driving cars and that moral choices differ among people. Survival of the Best Fit: how biased hiring data makes an AI unfair to some candidates.

B2.84Practice2 marks

Name two AI policies or laws from India or the world.

Answer

NITI Aayog's 'Responsible AI for All' (India), DPDP Act 2023 (India), EU AI Act, UNESCO Recommendation on the Ethics of AI, OECD AI Principles. (Any two.)

B2.85Practice2 marks

What is robustness in AI? Why is it important?

Answer

Robustness means an AI system works reliably and safely even with noisy, unexpected or deliberately misleading inputs. It matters in self-driving cars, medical AI and security, where a small error can cause harm.

B2.86Practice2 marks

Why is privacy an ethical issue in AI? Give two safeguards.

Answer

AI collects and analyses large amounts of personal data, which can be misused, leaked or used without consent. Safeguards: take informed consent, collect only needed data, anonymise and encrypt it, follow laws like the DPDP Act 2023.

B3Numericals, Python output and error finding2 marks · 45 questions
B3.1Practice2 marks

Find the mean, variance and standard deviation of: 9, 5, 13, 17, 11.

Answer
(i)

Mean = 55 / 5 = 11

(ii)
xx - mean(x - mean)^2
9-24
5-636
1324
17636
1100
Sum80

Variance = 80 / 5 = 16; SD = sqrt(16) = 4

B3.2Practice2 marks

Find the mean, variance and standard deviation of: 9, 16, 20, 18, 12.

Answer
(i)

Mean = 75 / 5 = 15

(ii)
xx - mean(x - mean)^2
9-636
1611
20525
1839
12-39
Sum80

Variance = 80 / 5 = 16; SD = sqrt(16) = 4

B3.3Practice2 marks

Find the mean, variance and standard deviation of: 12, 12, 7, 2, 12.

Answer
(i)

Mean = 45 / 5 = 9

(ii)
xx - mean(x - mean)^2
1239
1239
7-24
2-749
1239
Sum80

Variance = 80 / 5 = 16; SD = sqrt(16) = 4

B3.4Practice2 marks

Find the mean, variance and standard deviation of: 5, 7, 6, 9, 3.

Answer
(i)

Mean = 30 / 5 = 6

(ii)
xx - mean(x - mean)^2
5-11
711
600
939
3-39
Sum20

Variance = 20 / 5 = 4; SD = sqrt(4) = 2

B3.5Practice2 marks

Find the mean, variance and standard deviation of: 9, 6, 15, 7, 3.

Answer
(i)

Mean = 40 / 5 = 8

(ii)
xx - mean(x - mean)^2
911
6-24
15749
7-11
3-525
Sum80

Variance = 80 / 5 = 16; SD = sqrt(16) = 4

B3.6Practice2 marks

Find the mean, variance and standard deviation of: 13, 15, 7, 11, 4.

Answer
(i)

Mean = 50 / 5 = 10

(ii)
xx - mean(x - mean)^2
1339
15525
7-39
1111
4-636
Sum80

Variance = 80 / 5 = 16; SD = sqrt(16) = 4

B3.7Practice2 marks

Find the mean, variance and standard deviation of: 7, 19, 10, 11, 13.

Answer
(i)

Mean = 60 / 5 = 12

(ii)
xx - mean(x - mean)^2
7-525
19749
10-24
11-11
1311
Sum80

Variance = 80 / 5 = 16; SD = sqrt(16) = 4

B3.8Practice2 marks

Find the mean, variance and standard deviation of: 9, 5, 7, 8, 11.

Answer
(i)

Mean = 40 / 5 = 8

(ii)
xx - mean(x - mean)^2
911
5-39
7-11
800
1139
Sum20

Variance = 20 / 5 = 4; SD = sqrt(4) = 2

B3.9Practice2 marks

Find the mean, variance and standard deviation of: 4, 12, 13, 10, 16.

Answer
(i)

Mean = 55 / 5 = 11

(ii)
xx - mean(x - mean)^2
4-749
1211
1324
10-11
16525
Sum80

Variance = 80 / 5 = 16; SD = sqrt(16) = 4

B3.10Practice2 marks

Find the mean, variance and standard deviation of: 8, 8, 18, 8, 13.

Answer
(i)

Mean = 55 / 5 = 11

(ii)
xx - mean(x - mean)^2
8-39
8-39
18749
8-39
1324
Sum80

Variance = 80 / 5 = 16; SD = sqrt(16) = 4

B3.11Practice2 marks

If A = [0 0; 6 2] and B = [3 2; 5 -1], find AB.

Answer

row 1: (0)(3) + (0)(5) = 0, (0)(2) + (0)(-1) = 0 ; row 2: (6)(3) + (2)(5) = 28, (6)(2) + (2)(-1) = 10

002810

B3.12Practice2 marks

If A = [-2 1; -2 3] and B = [3 -1; 1 4], find A + B and the transpose of A.

Answer
(i)

10-17

(ii)

-2-213

B3.13Practice2 marks

If A = [-2 1; 0 6] and B = [6 1; 1 6], find AB.

Answer

row 1: (-2)(6) + (1)(1) = -11, (-2)(1) + (1)(6) = 4 ; row 2: (0)(6) + (6)(1) = 6, (0)(1) + (6)(6) = 36

-114636

B3.14Practice2 marks

If A = [-2 4; 1 5] and B = [6 -1; -2 6], find A + B and the transpose of A.

Answer
(i)

43-111

(ii)

-2145

B3.15Practice2 marks

If A = [0 4; 4 5] and B = [2 3; 2 3], find AB.

Answer

row 1: (0)(2) + (4)(2) = 8, (0)(3) + (4)(3) = 12 ; row 2: (4)(2) + (5)(2) = 18, (4)(3) + (5)(3) = 27

8121827

B3.16Practice2 marks

If A = [-2 6; -2 1] and B = [3 -2; -2 0], find A + B and the transpose of A.

Answer
(i)

14-41

(ii)

-2-261

B3.17Practice2 marks

If A = [4 2; 3 5] and B = [-2 4; -1 1], find AB.

Answer

row 1: (4)(-2) + (2)(-1) = -10, (4)(4) + (2)(1) = 18 ; row 2: (3)(-2) + (5)(-1) = -11, (3)(4) + (5)(1) = 17

-1018-1117

B3.18Practice2 marks

If A = [6 4; 5 -1] and B = [3 5; 4 -2], find A + B and the transpose of A.

Answer
(i)

999-3

(ii)

654-1

B3.19Practice2 marks

The line y = 4x + 8 fits some data.

  1. Predict y for x = 7.
  2. If the actual value at x = 7 is 38, find the residual.
Answer
(i)

y = 4 x 7 + 8 = 36

(ii)

Residual = actual - predicted = 38 - 36 = 2

B3.20Practice2 marks

Find the Euclidean distance between P(3, 4) and Q(6, 8), and say which is nearer to P: Q or R(4, 5).

Answer
(i)

d(P, Q) = sqrt(3^2 + 4^2) = sqrt(25) = 5

(ii)

d(P, R) = sqrt(1 + 1) = 1.41, so R is nearer.

B3.21Practice2 marks

k-means with k = 2, centroids C1 = 3 and C2 = 12, points 1, 4, 6, 9, 13, 15. Assign the points and find the new centroids.

Answer
(i)

Cluster 1: [1, 4, 6]; Cluster 2: [9, 13, 15]

(ii)

New C1 = 3.67, new C2 = 12.33

B3.22Practice2 marks

The line y = 3x + 5 fits some data.

  1. Predict y for x = 7.
  2. If the actual value at x = 7 is 28, find the residual.
Answer
(i)

y = 3 x 7 + 5 = 26

(ii)

Residual = actual - predicted = 28 - 26 = 2

B3.23Practice2 marks

Find the Euclidean distance between P(5, 4) and Q(11, 12), and say which is nearer to P: Q or R(6, 5).

Answer
(i)

d(P, Q) = sqrt(6^2 + 8^2) = sqrt(100) = 10

(ii)

d(P, R) = sqrt(1 + 1) = 1.41, so R is nearer.

B3.24Practice2 marks

k-means with k = 2, centroids C1 = 3 and C2 = 12, points 1, 4, 6, 9, 13, 15. Assign the points and find the new centroids.

Answer
(i)

Cluster 1: [1, 4, 6]; Cluster 2: [9, 13, 15]

(ii)

New C1 = 3.67, new C2 = 12.33

B3.25Practice2 marks

Write the output of the following code.

a = 10
b = 3
print(a / b, a // b, a % b, a ** 2)
Answer
3.3333333333333335 3 1 100

Each operator: / float division, // floor division, % remainder, ** power.

Working (step by step)

LineStatementValues after this stepPrinted
1a = 10a = 10
2b = 3b = 3
3print(a / b, a // b, a % b, a ** 2)3.3333333333333335 3 1 100⏎
B3.26Practice2 marks

Write the output of the following code.

L = [3, 8, 1, 6]
L.append(9)
L.sort()
print(L)
print(L[0] + L[-1])
Answer
[1, 3, 6, 8, 9]
10

After append and sort the list is in ascending order; first + last.

Working (step by step)

LineStatementValues after this stepPrinted
1L = [3, 8, 1, 6]L = [3, 8, 1, 6]
2L.append(9)L = [3, 8, 1, 6, 9]
3L.sort()L = [1, 3, 6, 8, 9]
4print(L)[1, 3, 6, 8, 9]⏎
5print(L[0] + L[-1])10⏎
B3.27Practice2 marks

Write the output of the following code.

for i in range(1, 6):
    if i % 2 == 0:
        print(i, 'even')
    else:
        print(i, 'odd')
Answer
1 odd
2 even
3 odd
4 even
5 odd

The loop checks each number from 1 to 5.

Working (step by step)

LineStatementValues after this stepPrinted
1for i in range(1, 6):i = 1
2if i % 2 == 0:condition is False
5print(i, 'odd')1 odd⏎
1for i in range(1, 6):i = 2
2if i % 2 == 0:condition is True
3print(i, 'even')2 even⏎
1for i in range(1, 6):i = 3
2if i % 2 == 0:condition is False
5print(i, 'odd')3 odd⏎
1for i in range(1, 6):i = 4
2if i % 2 == 0:condition is True
3print(i, 'even')4 even⏎
1for i in range(1, 6):i = 5
2if i % 2 == 0:condition is False
5print(i, 'odd')5 odd⏎
1for i in range(1, 6):loop ends (no more values)
B3.28Practice2 marks

Write the output of the following code.

n = 1234
s = 0
while n > 0:
    s = s + n % 10
    n = n // 10
print(s)
Answer
10

Each round adds the last digit and removes it.

Working (step by step)

LineStatementValues after this stepPrinted
1n = 1234n = 1234
2s = 0s = 0
3while n > 0:condition is True
4s = s + n % 10s = 4
5n = n // 10n = 123
3while n > 0:condition is True
4s = s + n % 10s = 7
5n = n // 10n = 12
3while n > 0:condition is True
4s = s + n % 10s = 9
5n = n // 10n = 1
3while n > 0:condition is True
4s = s + n % 10s = 10
5n = n // 10n = 0
3while n > 0:condition is False
6print(s)10⏎
B3.29Practice2 marks

Write the output of the following code.

x = 5
y = 2
x = x + y
y = x - y
x = x - y
print(x, y)
Answer
2 5

Three steps swap the values without a third variable.

Working (step by step)

LineStatementValues after this stepPrinted
1x = 5x = 5
2y = 2y = 2
3x = x + yx = 7
4y = x - yy = 5
5x = x - yx = 2
6print(x, y)2 5⏎
B3.30Practice2 marks

Write the output of the following code.

name = 'Python'
print(name[0], name[-1], len(name))
print(name * 2)
Answer
P n 6
PythonPython

Indexing and repetition of a string.

Working (step by step)

LineStatementValues after this stepPrinted
1name = 'Python'name = 'Python'
2print(name[0], name[-1], len(name))P n 6⏎
3print(name * 2)PythonPython⏎
B3.31Practice2 marks

Write the output of the following code.

L = [10, 20, 30, 40, 50]
print(L[1:4])
print(L[::-1])
Answer
[20, 30, 40]
[50, 40, 30, 20, 10]

Slicing: 1:4 gives indexes 1 to 3; ::-1 reverses.

Working (step by step)

LineStatementValues after this stepPrinted
1L = [10, 20, 30, 40, 50]L = [10, 20, 30, 40, 50]
2print(L[1:4])[20, 30, 40]⏎
3print(L[::-1])[50, 40, 30, 20, 10]⏎
B3.32Practice2 marks

Write the output of the following code.

total = 0
for x in [4, 7, 2, 9]:
    total += x
print('Total:', total, 'Average:', total / 4)
Answer
Total: 22 Average: 5.5

Running total, then average.

Working (step by step)

LineStatementValues after this stepPrinted
1total = 0total = 0
2for x in [4, 7, 2, 9]:x = 4
3total += xtotal = 4
2for x in [4, 7, 2, 9]:x = 7
3total += xtotal = 11
2for x in [4, 7, 2, 9]:x = 2
3total += xtotal = 13
2for x in [4, 7, 2, 9]:x = 9
3total += xtotal = 22
2for x in [4, 7, 2, 9]:loop ends (no more values)
4print('Total:', total, 'Average:', total / 4)Total: 22 Average: 5.5⏎
B3.33Practice2 marks

Write the output of the following code.

a = int('12')
b = float('2.5')
print(a + b, type(a + b))
Answer
14.5 <class 'float'>

int + float gives a float.

Working (step by step)

LineStatementValues after this stepPrinted
1a = int('12')a = 12
2b = float('2.5')b = 2.5
3print(a + b, type(a + b))14.5 <class 'float'>⏎
B3.34Practice2 marks

Write the output of the following code.

L = [5, 10]
L.extend([15, 20])
L.insert(0, 0)
print(L, len(L))
Answer
[0, 5, 10, 15, 20] 5

extend adds each item, insert adds at index 0.

Working (step by step)

LineStatementValues after this stepPrinted
1L = [5, 10]L = [5, 10]
2L.extend([15, 20])L = [5, 10, 15, 20]
3L.insert(0, 0)L = [0, 5, 10, 15, 20]
4print(L, len(L))[0, 5, 10, 15, 20] 5⏎
B3.35Practice2 marks

Write the output of the following code.

i = 10
while i > 0:
    print(i, end=' ')
    i = i - 3
Answer
10 7 4 1 

i goes 10, 7, 4, 1 and stops when it is not more than 0.

Working (step by step)

LineStatementValues after this stepPrinted
1i = 10i = 10
2while i > 0:condition is True
3print(i, end=' ')10
4i = i - 3i = 7
2while i > 0:condition is True
3print(i, end=' ')7
4i = i - 3i = 4
2while i > 0:condition is True
3print(i, end=' ')4
4i = i - 3i = 1
2while i > 0:condition is True
3print(i, end=' ')1
4i = i - 3i = -2
2while i > 0:condition is False
B3.36Practice2 marks

Write the output of the following code.

marks = [45, 82, 30, 67]
for m in marks:
    if m >= 33:
        print(m, 'Pass')
    else:
        print(m, 'Fail')
Answer
45 Pass
82 Pass
30 Fail
67 Pass

Each mark is checked with if-else.

Working (step by step)

LineStatementValues after this stepPrinted
1marks = [45, 82, 30, 67]marks = [45, 82, 30, 67]
2for m in marks:m = 45
3if m >= 33:condition is True
4print(m, 'Pass')45 Pass⏎
2for m in marks:m = 82
3if m >= 33:condition is True
4print(m, 'Pass')82 Pass⏎
2for m in marks:m = 30
3if m >= 33:condition is False
6print(m, 'Fail')30 Fail⏎
2for m in marks:m = 67
3if m >= 33:condition is True
4print(m, 'Pass')67 Pass⏎
2for m in marks:loop ends (no more values)
B3.37Practice2 marks

Find the error(s) and rewrite the corrected code:

num = input('Enter a number')
if num % 2 = 0
print('Even')
Answer
num = int(input('Enter a number'))
if num % 2 == 0:
    print('Even')

input() gives a string, so convert with int(); use == for comparison; add the colon; indent the print.

B3.38Practice2 marks

Find the error(s) and rewrite the corrected code:

for i in range(5)
print(I)
Answer
for i in range(5):
    print(i)

Colon missing after range(5); the body must be indented; Python is case-sensitive, so I must be i.

B3.39Practice2 marks

Find the error(s) and rewrite the corrected code:

L = [1, 2, 3]
L.add(4)
print(l)
Answer
L = [1, 2, 3]
L.append(4)
print(L)

Lists use append(), not add(); the name is L, not l.

B3.40Practice2 marks

Find the error(s) and rewrite the corrected code:

Age = 15
if Age >= 18:
 print('Adult')
  else:
print('Minor')
Answer
Age = 15
if Age >= 18:
    print('Adult')
else:
    print('Minor')

else must line up with if, and each block must be indented the same way.

B3.41Practice2 marks

Write the output of the following code.

t = (1, 2, 3)
L = list(t)
L.append(4)
print(t, L, len(L))
Answer
(1, 2, 3) [1, 2, 3, 4] 4

A tuple cannot change, but a list made from it can.

Working (step by step)

LineStatementValues after this stepPrinted
1t = (1, 2, 3)t = (1, 2, 3)
2L = list(t)L = [1, 2, 3]
3L.append(4)L = [1, 2, 3, 4]
4print(t, L, len(L))(1, 2, 3) [1, 2, 3, 4] 4⏎
B3.42Practice2 marks

Write the output of the following code.

d = {'Asha': 85, 'Ravi': 72}
d['Meena'] = 91
for k in d:
    print(k, d[k])
Answer
Asha 85
Ravi 72
Meena 91

Adding a key, then looping over keys.

Working (step by step)

LineStatementValues after this stepPrinted
1d = {'Asha': 85, 'Ravi': 72}d = {'Asha': 85, 'Ravi': 72}
2d['Meena'] = 91d = {'Asha': 85, 'Ravi': 72, 'Meena': 91}
3for k in d:k = 'Asha'
4print(k, d[k])Asha 85⏎
3for k in d:k = 'Ravi'
4print(k, d[k])Ravi 72⏎
3for k in d:k = 'Meena'
4print(k, d[k])Meena 91⏎
3for k in d:loop ends (no more values)
B3.43Practice2 marks

Write the output of the following code.

import numpy as np
a = np.array([[1, 2], [3, 4]])
print(a.T)
print(a.sum(), a.mean())
Answer
[[1 3]
 [2 4]]
10 2.5

Transpose and summary of a NumPy array.

B3.44Practice2 marks

Write the output of the following code.

s = 'Machine Learning'
print(s.split())
print(s.lower().count('n'))
Answer
['Machine', 'Learning']
3

split() breaks on spaces; count after lower().

Working (step by step)

LineStatementValues after this stepPrinted
1s = 'Machine Learning's = 'Machine Learning'
2print(s.split())['Machine', 'Learning']⏎
3print(s.lower().count('n'))3⏎
B3.45Practice2 marks

Write the output of the following code.

n = 5
for i in range(1, n + 1):
    print(' ' * (n - i) + '*' * i)
Answer
    *
   **
  ***
 ****
*****

Spaces then stars on each row: a right-aligned triangle.

Working (step by step)

LineStatementValues after this stepPrinted
1n = 5n = 5
2for i in range(1, n + 1):i = 1
3print(' ' * (n - i) + '*' * i) *⏎
2for i in range(1, n + 1):i = 2
3print(' ' * (n - i) + '*' * i) **⏎
2for i in range(1, n + 1):i = 3
3print(' ' * (n - i) + '*' * i) ***⏎
2for i in range(1, n + 1):i = 4
3print(' ' * (n - i) + '*' * i) ****⏎
2for i in range(1, n + 1):i = 5
3print(' ' * (n - i) + '*' * i)*****⏎
2for i in range(1, n + 1):loop ends (no more values)

Long answers · 4 marks each

C1Long answers and case studies4 marks · 40 questions
C1.1Practice4 marks

Explain the evolution of AI with a timeline of important events.

Answer

1950: Alan Turing proposes the Turing Test. 1956: John McCarthy coins 'AI' at Dartmouth. 1966: ELIZA, the first chatbot. 1970s and late 1980s: AI winters (less funding). 1997: IBM Deep Blue beats Kasparov in chess. 2011: IBM Watson wins Jeopardy!. 2012: deep learning breakthrough in image recognition. 2016: AlphaGo beats Lee Sedol. 2022 onwards: generative AI such as ChatGPT.

C1.2Practice4 marks

Explain the types of AI based on capability and functionality.

Answer

Capability: Narrow AI - one task (all current AI); General AI - any human-level task (future); Super AI - beyond human intelligence (theoretical). Functionality: Reactive machines - no memory (Deep Blue); Limited memory - use recent data (self-driving cars); Theory of mind - understand emotions (research); Self-aware - consciousness (hypothetical).

C1.3Practice4 marks

Explain the three domains of AI with two applications each.

Answer

Data Science: works on numerical/tabular data - price prediction, fraud detection. Computer Vision: works on images and videos - face recognition, self-driving cars, medical imaging. NLP: works on text and speech - chatbots, translation, sentiment analysis.

C1.4Practice4 marks

Explain supervised, unsupervised and reinforcement learning with examples.

Answer

Supervised: learns from labelled examples to predict outputs - spam filter, house-price prediction (classification and regression). Unsupervised: finds patterns in unlabelled data - customer segmentation (clustering), market basket analysis. Reinforcement: learns by rewards and penalties through trial and error - game AI, robots.

C1.5Practice4 marks

Discuss four benefits and four limitations of AI.

Answer

Benefits: automation of repetitive tasks; 24x7 work; fast analysis of big data; fewer human errors; work in dangerous places; better medical diagnosis. Limitations: no common sense or emotions; needs lots of good data; can be biased; high cost; job displacement; privacy risks; cannot handle situations unlike its training.

C1.6Practice4 marks

Explain these AI terms: machine learning, deep learning, neural network, training data, features, label.

Answer

ML: computers learn patterns from data. DL: ML with many-layer neural networks. Neural network: layers of connected nodes inspired by the brain (input, hidden, output). Training data: examples used to teach the model. Features: input variables. Label: the output to be predicted.

C1.7Practice4 marks

Describe any four AI job roles with their responsibilities.

Answer

Data Scientist: collects and analyses data, builds predictive models. ML Engineer: builds, deploys and maintains ML models in products. Data Analyst: cleans data and makes reports and dashboards. AI Research Scientist: develops new algorithms. (Also NLP/CV engineer, robotics engineer, AI ethicist, AI product manager.)

C1.8Practice4 marks

Explain the essential technical and soft skills and tools for an AI career.

Answer

Technical: Python programming, statistics and linear algebra, machine learning, data handling (SQL, Pandas), visualisation, deep learning. Soft: communication, teamwork, critical thinking, problem solving, creativity, ethics, continuous learning. Tools: Jupyter, NumPy, Pandas, scikit-learn, TensorFlow/PyTorch, Tableau, Git, cloud platforms.

C1.9Practice4 marks

Explain the opportunities of AI in any four industries.

Answer

Healthcare: medical image analysis, disease prediction, drug discovery. Finance: fraud detection, credit scoring, chatbots. Agriculture: crop disease detection, yield and weather prediction, smart irrigation. Retail: recommendations, demand forecasting, inventory. (Also manufacturing, transport, education, entertainment.)

C1.10Handbook4 marks

Compare the technical and soft skills asked by two companies for the post of 'Data Scientist'. Present it as a table description.

Answer

Company A: Python, SQL, statistics, ML (scikit-learn), Tableau; soft skills - communication, teamwork. Company B: Python, deep learning (TensorFlow), cloud (AWS), big data; soft skills - problem solving, stakeholder management. Common: Python, ML, statistics, communication. Conclusion: Python + ML + communication are core; learn cloud and DL for advanced roles.

C1.11Practice4 marks

A Class XI student likes biology and computers. Suggest an AI career path with skills to learn.

Answer

Path: AI in healthcare / bioinformatics - roles like medical data scientist or computational biologist. Skills: Python, statistics, ML, biology knowledge, medical image analysis (CV), ethics and privacy of health data. Steps: online courses (IBM SkillsBuild), Kaggle health datasets, projects, B.Tech/B.Sc. in CS or bioinformatics, internships.

C1.12Practice4 marks

Explain the five stages of design thinking with an example of improving the school library.

Answer

Empathize: interview students - books hard to find, long issue queues. Define: 'Students need a quick way to find and issue books.' Ideate: barcode scanner, app with search, self-issue kiosk, AI book recommender. Prototype: a simple app mock-up and a paper catalogue by subject. Test: students try it; feedback is used to improve.

C1.13Handbook4 marks

Create an empathy map for a Class XII student preparing for board exams.

Answer

Says: "I have too much syllabus left." "I need more practice papers." Thinks: worries about results and the future; compares with friends. Does: studies late at night, uses phone for videos, skips meals. Feels: stressed, anxious, sometimes motivated. Insight: needs a study planner and stress-management support.

C1.14Practice4 marks

Apply the 5W1H method to the problem of road accidents near a school.

Answer

Who: students, parents, drivers, traffic police. What: accidents and near-misses at the school gate. When: at opening and closing times (7:30, 1:30). Where: the main road crossing in front of the school. Why: speeding vehicles, no zebra crossing, crowding. How: speed breakers, a traffic warden, AI camera to detect speeding, staggered dismissal.

C1.15Handbook4 marks

Write a project abstract using the design thinking framework for an AI-based crop disease detector.

Answer

Title: Smart Leaf Doctor. Problem: small farmers lose crops because diseases are found late (SDG 2 Zero Hunger). Users: farmers with smartphones. Solution: an app that takes a photo of a leaf, uses a CV model trained on labelled leaf images to identify the disease and suggests treatment in the local language. Data: open leaf-disease image datasets and local photos. Impact: early treatment, higher yield, lower pesticide use.

C1.16Practice4 marks

What are SDGs? Explain how AI can help achieve any four SDGs.

Answer

The 17 UN goals for 2030. SDG 2 Zero Hunger: crop disease and yield prediction. SDG 3 Good Health: early disease detection from scans. SDG 4 Quality Education: personalised tutoring. SDG 13 Climate Action: predicting floods and optimising energy. (Also SDG 6 water leak detection, SDG 11 smart traffic.)

C1.17Practice4 marks

Explain the stages of a capstone project and the role of teamwork.

Answer

Stages: prepare (learn the tools), form a team with defined roles, define the problem linked to an SDG, understand users (empathy map, interviews), brainstorm solutions, design and build the solution, test it and present. Teamwork divides work by skills (research, data, coding, design, presentation), brings diverse ideas and improves quality.

C1.18Practice4 marks

Differentiate between the traditional problem-solving approach and design thinking.

Answer

Traditional: starts with the problem as given and the technology; linear; little user involvement; one solution. Design thinking: starts with users' needs (empathy); iterative; many ideas; quick prototypes tested with users; solution fits real needs.

C1.19Practice4 marks

Your school canteen wastes a lot of food. Use design thinking to propose an AI-based solution.

Answer

Empathize: talk to students and staff - portions too large, menu not liked. Define: reduce daily food waste by knowing demand. Ideate: pre-ordering app, menu voting, AI demand prediction. Prototype: a Google Form for pre-orders plus a spreadsheet model predicting demand from past days and weather. Test: run for two weeks, measure waste and improve. (SDG 12 Responsible Consumption.)

C1.20Practice4 marks

Explain the importance of empathy in solving problems with AI.

Answer

Empathy means understanding users' feelings and needs from their point of view. It ensures we solve the real problem, design solutions people will actually use, avoid bias against some users, and build trust. Without empathy, an AI may be technically good but useless or harmful.

C1.21Practice4 marks

Design thinking: explain the Ideate and Prototype stages in detail with tools used.

Answer

Ideate: generate many ideas without judging - brainstorming, mind maps, 'How Might We' questions, SCAMPER, sticky notes; then vote for the best ideas. Prototype: build a quick, cheap version - paper sketches, storyboards, mock-up screens (Canva, Figma), simple no-code AI (Teachable Machine) - to test the idea with users.

C1.22Practice4 marks

Explain problem decomposition with an example of building a chatbot for school admissions.

Answer

Break it into parts: (1) list questions parents ask (fees, documents, dates); (2) collect answers from the office; (3) design conversation flows and intents; (4) build the bot (Dialogflow); (5) test with parents; (6) deploy on the website; (7) collect feedback and update. Each part is small, clear and can be given to a team member.

C1.23Practice4 marks

Explain the five phases of NLP with an example for each.

Answer

Lexical: breaks text into tokens/words - 'AI is fun' -> AI | is | fun. Syntactic: checks grammar - 'Fun AI is' is rejected. Semantic: checks meaning - 'hot ice-cream' rejected. Discourse integration: uses previous sentences - 'Ravi came. He sat.' (He = Ravi). Pragmatic: intended meaning - 'Can you pass the salt?' is a request.

C1.24Practice4 marks

Why is human language difficult for computers? Explain with four examples.

Answer

Lexical ambiguity: 'bank' (river/money). Syntactic ambiguity: 'I saw the man with a telescope'. Context: 'It's cold' may be a request to close the window. Sarcasm/idioms: 'Great, another Monday!' or 'break a leg'. Also spelling errors, slang, multiple languages (Hinglish).

C1.25Handbook4 marks

Explain how you will create an ice-cream ordering chatbot using Dialogflow.

Answer

Create an agent 'IceCreamBot'. Create intents: Welcome, OrderIceCream, OrderStatus, Goodbye. Add training phrases ('I want two chocolate cones'). Create entities: flavour (chocolate, vanilla, mango), size (small, large), quantity. Mark required parameters with prompts ('Which flavour?'). Write responses using parameters ('$quantity $flavour ice cream ordered'). Test in the simulator and integrate with a website.

C1.26Practice4 marks

Explain any four applications of NLP.

Answer

Machine translation (Google Translate). Sentiment analysis of reviews. Chatbots and voice assistants (Alexa). Spam filtering and text classification. (Also summarisation, autocomplete, speech recognition, grammar checkers.)

C1.27Practice4 marks

Explain sentiment analysis and emotion detection with examples and uses.

Answer

Sentiment analysis labels text as positive, negative or neutral: 'Battery life is amazing' -> positive. Emotion detection finds specific feelings: joy, anger, fear, sadness: 'I am furious about the delay' -> anger. Uses: brand monitoring, customer support priority, mental-health signals, election and product feedback.

C1.28Handbook4 marks

Write an article on 'IBM Project Debater - interesting facts'.

Answer

IBM Project Debater is the first AI system designed to debate humans on complex topics. In 2019 it debated champion Harish Natarajan on preschool subsidies before a live audience. It searched about 400 million articles, built an opening speech in minutes, listened to the opponent and gave rebuttals. It shows advances in argument mining, NLP and speech, though the human was judged more persuasive. It is used to analyse public opinion and summarise arguments.

C1.29Practice4 marks

Differentiate between rule-based and AI-based chatbots on four points.

Answer

Working: fixed rules/keywords vs NLP + ML. Flexibility: fails on new phrasing vs understands varied questions. Learning: does not learn vs improves with data. Building: easy, cheap vs needs data and training. Examples: a menu bot on a bank site vs ChatGPT/Gemini.

C1.30Practice4 marks

Explain tokenisation, stop-word removal, stemming and lemmatisation with examples.

Answer

Tokenisation: 'I love AI!' -> I | love | AI | !. Stop-word removal: remove 'is', 'the', 'and'. Stemming: cut endings - 'studies' -> 'studi'. Lemmatisation: dictionary base word - 'studies' -> 'study', 'better' -> 'good'. These prepare text for NLP models.

C1.31Practice4 marks

Explain the challenges a chatbot faces in understanding Hinglish messages like 'Mujhe 2 chocolate ice cream chahiye'.

Answer

Mixed languages and scripts (code-mixing), Roman spelling variations (chahiye/chaiye), grammar from two languages, numbers written as digits, slang and abbreviations. Solutions: train on code-mixed data, use transliteration, add many training phrases and entity synonyms, and fall back politely when unsure.

C1.32Practice4 marks

How does a machine translation system work? Mention two difficulties.

Answer

Modern systems use neural networks trained on millions of sentence pairs in two languages; they encode the source sentence and decode it into the target language word by word using context. Difficulties: idioms ('kick the bucket'), different word order (English SVO vs Hindi SOV), ambiguous words, gender and politeness forms, rare languages with little data.

C1.33Practice4 marks

Explain the five pillars of AI ethics with an example each.

Answer

Explainability: a loan AI explains why the loan was refused. Fairness: a hiring AI treats men and women equally. Robustness: a self-driving car works safely in rain and fog. Transparency: a company discloses what data its AI uses. Privacy: a health app protects patients' records and asks consent.

C1.34Practice4 marks

What is AI bias? Explain its sources with examples.

Answer

AI bias is systematic unfairness in AI results. Sources: data bias - unrepresentative training data (face recognition weaker for dark skin); historical bias - past discrimination in data (hiring tool preferring men); human/labelling bias - stereotypes of annotators; algorithmic bias - design choices; feedback loops - predictive policing sending police to the same areas.

C1.35Practice4 marks

Suggest four strategies to mitigate bias in AI systems.

Answer

1. Collect diverse, representative data and balance classes. 2. Test and audit model results for different groups (fairness metrics). 3. Keep a human in the loop for important decisions and allow appeals. 4. Build diverse teams, document data and models (transparency), and follow ethical guidelines and policies.

C1.36Practice4 marks

Explain the need for AI policies and name four policies or guidelines.

Answer

AI affects jobs, privacy, safety and fairness, so rules are needed for responsible use, accountability and public trust. Examples: EU AI Act (risk-based), India's NITI Aayog 'Responsible AI for All', DPDP Act 2023, UNESCO Recommendation on the Ethics of AI (2021), OECD AI Principles (2019), company policies like IBM's and Google's AI principles.

C1.37Handbook4 marks

Describe the Moral Machine and Survival of the Best Fit games and what they teach.

Answer

Moral Machine (MIT): the user decides whom a self-driving car with failed brakes should save - passengers or pedestrians, young or old; it shows moral dilemmas and cultural differences. Survival of the Best Fit: the user hires people quickly, then trains an AI on those choices; the AI copies the bias and rejects good candidates. Lesson: AI reflects the data and choices we give it.

C1.38Handbook4 marks

Summarise the key ideas of the video 'Humans Need Not Apply'.

Answer

It argues that automation and AI can replace not only physical labour but also many white-collar jobs - drivers (self-driving cars), lawyers' paralegals, doctors' diagnosis, writers, even creative work - just as horses were replaced by engines. It warns of large-scale unemployment and says society must prepare through reskilling, new jobs and policies.

C1.39Practice4 marks

An AI used for college admissions gives lower scores to students from rural schools. Discuss the ethical issues and suggest solutions.

Answer

Issues: unfair (bias against rural students), lack of transparency and explainability, no accountability, may violate equal opportunity and increase inequality. Solutions: check the training data for representation, remove proxy features like school location, audit results by group, explain scores to applicants, keep human review and an appeal process, follow fairness policies.

C1.40Practice4 marks

Compare the AI approach of the EU AI Act and India's Responsible AI principles.

Answer

EU AI Act: a binding law; classifies AI by risk - unacceptable (banned, e.g. social scoring), high (strict rules, e.g. hiring, health), limited (transparency), minimal. India (NITI Aayog): principles of safety, equality, inclusivity, privacy, transparency, accountability and protection of human values, with the DPDP Act 2023 for data. EU is regulation-heavy; India focuses on principles and innovation.

C2Statistics, matrices and levels of measurement4 marks · 18 questions
C2.1Practice4 marks

The marks of 6 students are: 8, 35, 20, 31, 31, 19. Find:

  1. Mean
  2. Median and mode
  3. Variance
  4. Standard deviation.
Answer
(i)

Mean = 144 / 6 = 24

(ii)

Sorted: 8, 19, 20, 31, 31, 35. Median = 25.5; Mode = 31 (2 times)

(iii)
xx - mean(x - mean)^2
8-16256
3511121
20-416
31749
31749
19-525
Sum516

Variance = 516 / 6 = 86

(iv)

Standard deviation = sqrt(86) = 9.27

C2.2Practice4 marks

The daily rainfall (mm) on 8 days are: 25, 28, 19, 31, 26, 38, 19, 38. Find:

  1. Mean
  2. Median and mode
  3. Variance
  4. Standard deviation.
Answer
(i)

Mean = 224 / 8 = 28

(ii)

Sorted: 19, 19, 25, 26, 28, 31, 38, 38. Median = 27; Mode = 19, 38 (2 times)

(iii)
xx - mean(x - mean)^2
25-39
2800
19-981
3139
26-24
3810100
19-981
3810100
Sum384

Variance = 384 / 8 = 48

(iv)

Standard deviation = sqrt(48) = 6.93

C2.3Practice4 marks

The runs scored in 7 matches are: 15, 29, 15, 26, 10, 8, 37. Find:

  1. Mean
  2. Median and mode
  3. Variance
  4. Standard deviation.
Answer
(i)

Mean = 140 / 7 = 20

(ii)

Sorted: 8, 10, 15, 15, 26, 29, 37. Median = 15; Mode = 15 (2 times)

(iii)
xx - mean(x - mean)^2
15-525
29981
15-525
26636
10-10100
8-12144
3717289
Sum700

Variance = 700 / 7 = 100

(iv)

Standard deviation = sqrt(100) = 10.00

C2.4Practice4 marks

The ages of 6 employees are: 6, 10, 27, 9, 10, 40. Find:

  1. Mean
  2. Median and mode
  3. Variance
  4. Standard deviation.
Answer
(i)

Mean = 102 / 6 = 17

(ii)

Sorted: 6, 9, 10, 10, 27, 40. Median = 10; Mode = 10 (2 times)

(iii)
xx - mean(x - mean)^2
6-11121
10-749
2710100
9-864
10-749
4023529
Sum912

Variance = 912 / 6 = 152

(iv)

Standard deviation = sqrt(152) = 12.33

C2.5Practice4 marks

The marks of 8 students are: 5, 16, 6, 28, 5, 5, 24, 23. Find:

  1. Mean
  2. Median and mode
  3. Variance
  4. Standard deviation.
Answer
(i)

Mean = 112 / 8 = 14

(ii)

Sorted: 5, 5, 5, 6, 16, 23, 24, 28. Median = 11; Mode = 5 (3 times)

(iii)
xx - mean(x - mean)^2
5-981
1624
6-864
2814196
5-981
5-981
2410100
23981
Sum688

Variance = 688 / 8 = 86

(iv)

Standard deviation = sqrt(86) = 9.27

C2.6Practice4 marks

The daily rainfall (mm) on 6 days are: 18, 9, 29, 29, 36, 17. Find:

  1. Mean
  2. Median and mode
  3. Variance
  4. Standard deviation.
Answer
(i)

Mean = 138 / 6 = 23

(ii)

Sorted: 9, 17, 18, 29, 29, 36. Median = 23.5; Mode = 29 (2 times)

(iii)
xx - mean(x - mean)^2
18-525
9-14196
29636
29636
3613169
17-636
Sum498

Variance = 498 / 6 = 83

(iv)

Standard deviation = sqrt(83) = 9.11

C2.7Practice4 marks

The runs scored in 8 matches are: 27, 23, 19, 14, 12, 10, 29, 10. Find:

  1. Mean
  2. Median and mode
  3. Variance
  4. Standard deviation.
Answer
(i)

Mean = 144 / 8 = 18

(ii)

Sorted: 10, 10, 12, 14, 19, 23, 27, 29. Median = 16.5; Mode = 10 (2 times)

(iii)
xx - mean(x - mean)^2
27981
23525
1911
14-416
12-636
10-864
2911121
10-864
Sum408

Variance = 408 / 8 = 51

(iv)

Standard deviation = sqrt(51) = 7.14

C2.8Practice4 marks

The ages of 7 employees are: 27, 35, 38, 8, 27, 34, 13. Find:

  1. Mean
  2. Median and mode
  3. Variance
  4. Standard deviation.
Answer
(i)

Mean = 182 / 7 = 26

(ii)

Sorted: 8, 13, 27, 27, 34, 35, 38. Median = 27; Mode = 27 (2 times)

(iii)
xx - mean(x - mean)^2
2711
35981
3812144
8-18324
2711
34864
13-13169
Sum784

Variance = 784 / 7 = 112

(iv)

Standard deviation = sqrt(112) = 10.58

C2.9Practice4 marks

The marks of 7 students are: 39, 13, 25, 13, 21, 35, 29. Find:

  1. Mean
  2. Median and mode
  3. Variance
  4. Standard deviation.
Answer
(i)

Mean = 175 / 7 = 25

(ii)

Sorted: 13, 13, 21, 25, 29, 35, 39. Median = 25; Mode = 13 (2 times)

(iii)
xx - mean(x - mean)^2
3914196
13-12144
2500
13-12144
21-416
3510100
29416
Sum616

Variance = 616 / 7 = 88

(iv)

Standard deviation = sqrt(88) = 9.38

C2.10Practice4 marks

The daily rainfall (mm) on 6 days are: 15, 17, 24, 23, 17, 24. Find:

  1. Mean
  2. Median and mode
  3. Variance
  4. Standard deviation.
Answer
(i)

Mean = 120 / 6 = 20

(ii)

Sorted: 15, 17, 17, 23, 24, 24. Median = 20; Mode = 17, 24 (2 times)

(iii)
xx - mean(x - mean)^2
15-525
17-39
24416
2339
17-39
24416
Sum84

Variance = 84 / 6 = 14

(iv)

Standard deviation = sqrt(14) = 3.74

C2.11Practice4 marks

A = [2 -1; -2 3], B = [-2 -1; 2 1]. Find:

  1. A + B
  2. 2A - B
  3. AB and BA
  4. Is AB = BA? What does it show?
Answer
(i)

0-204

(ii)

6-1-65

(iii)

AB =

-6-3105

BA =

-2-121

(iv)

AB is not equal to BA, so matrix multiplication is not commutative in general.

C2.12Practice4 marks

A = [1 -1; 5 4], B = [-1 1; 0 4]. Find:

  1. A + B
  2. 2A - B
  3. AB and BA
  4. Is AB = BA? What does it show?
Answer
(i)

0058

(ii)

3-3104

(iii)

AB =

-1-3-521

BA =

452016

(iv)

AB is not equal to BA, so matrix multiplication is not commutative in general.

C2.13Practice4 marks

A = [5 0; 1 -1], B = [3 1; -1 3]. Find:

  1. A + B
  2. 2A - B
  3. AB and BA
  4. Is AB = BA? What does it show?
Answer
(i)

8102

(ii)

7-13-5

(iii)

AB =

1554-2

BA =

16-1-2-3

(iv)

AB is not equal to BA, so matrix multiplication is not commutative in general.

C2.14Practice4 marks

A = [5 4; 3 5], B = [0 5; 4 2]. Find:

  1. A + B
  2. 2A - B
  3. AB and BA
  4. Is AB = BA? What does it show?
Answer
(i)

5977

(ii)

10328

(iii)

AB =

16332025

BA =

15252626

(iv)

AB is not equal to BA, so matrix multiplication is not commutative in general.

C2.15Practice4 marks

A = [5 0; 2 0], B = [4 2; 1 -1]. Find:

  1. A + B
  2. 3A - B
  3. AB and BA
  4. Is AB = BA? What does it show?
Answer
(i)

923-1

(ii)

11-251

(iii)

AB =

201084

BA =

24030

(iv)

AB is not equal to BA, so matrix multiplication is not commutative in general.

C2.16Practice4 marks

A = [-1 5; 2 -1], B = [-2 5; 1 0]. Find:

  1. A + B
  2. 3A - B
  3. AB and BA
  4. Is AB = BA? What does it show?
Answer
(i)

-3103-1

(ii)

-1105-3

(iii)

AB =

7-5-510

BA =

12-15-15

(iv)

AB is not equal to BA, so matrix multiplication is not commutative in general.

C2.17Handbook4 marks

Identify the level of measurement of each variable with reason: name of city, rank in class, temperature in degree C, rainfall in mm.

Answer
VariableLevelReason
Name of cityNominalonly labels
Rank in classOrdinalorder, unequal gaps
Temperature (deg C)Intervalequal gaps, no true zero
Rainfall (mm)Ratiotrue zero; 20 mm is twice 10 mm
C2.18Handbook4 marks

Identify the level of measurement of each variable with reason: mobile brand, T-shirt size, year of birth, pocket money.

Answer
VariableLevelReason
Mobile brandNominalonly names
T-shirt size S/M/LOrdinalordered
Year of birthIntervalno true zero
Pocket moneyRatiotrue zero
C3Correlation, regression, k-NN and k-means4 marks · 20 questions
C3.1Practice4 marks

Hours of study (x) and marks (y) of 5 students: x = [1, 2, 3, 4, 5], y = [48, 74, 74, 71, 84].

  1. Make the table of xy, x^2, y^2.
  2. Calculate Pearson's correlation coefficient r.
  3. Interpret it.
Answer
(i)
xyxyx^2y^2
1484812304
27414845476
37422295476
471284165041
584420257056
Sum 1535111225525353
(ii)

r = [nSxy - SxSy] / sqrt([nSx^2 - (Sx)^2][nSy^2 - (Sy)^2]) = [5 x 1122 - 15 x 351] / sqrt([5 x 55 - 15^2][5 x 25353 - 351^2]) = 345 / sqrt(50 x 3564) = 0.82

(iii)

The correlation is strong positive: marks tend to increase with study hours.

C3.2Practice4 marks

Hours of study (x) and marks (y) of 5 students: x = [1, 2, 3, 4, 5], y = [67, 66, 57, 69, 87].

  1. Make the table of xy, x^2, y^2.
  2. Calculate Pearson's correlation coefficient r.
  3. Interpret it.
Answer
(i)
xyxyx^2y^2
1676714489
26613244356
35717193249
469276164761
587435257569
Sum 1534610815524424
(ii)

r = [nSxy - SxSy] / sqrt([nSx^2 - (Sx)^2][nSy^2 - (Sy)^2]) = [5 x 1081 - 15 x 346] / sqrt([5 x 55 - 15^2][5 x 24424 - 346^2]) = 215 / sqrt(50 x 2404) = 0.62

(iii)

The correlation is moderate positive: marks tend to increase with study hours.

C3.3Practice4 marks

Hours of study (x) and marks (y) of 5 students: x = [1, 2, 3, 4, 5], y = [50, 65, 74, 87, 71].

  1. Make the table of xy, x^2, y^2.
  2. Calculate Pearson's correlation coefficient r.
  3. Interpret it.
Answer
(i)
xyxyx^2y^2
1505012500
26513044225
37422295476
487348167569
571355255041
Sum 1534711055524811
(ii)

r = [nSxy - SxSy] / sqrt([nSx^2 - (Sx)^2][nSy^2 - (Sy)^2]) = [5 x 1105 - 15 x 347] / sqrt([5 x 55 - 15^2][5 x 24811 - 347^2]) = 320 / sqrt(50 x 3646) = 0.75

(iii)

The correlation is strong positive: marks tend to increase with study hours.

C3.4Practice4 marks

Hours of study (x) and marks (y) of 5 students: x = [1, 2, 3, 4, 5], y = [50, 68, 70, 74, 82].

  1. Make the table of xy, x^2, y^2.
  2. Calculate Pearson's correlation coefficient r.
  3. Interpret it.
Answer
(i)
xyxyx^2y^2
1505012500
26813644624
37021094900
474296165476
582410256724
Sum 1534411025524224
(ii)

r = [nSxy - SxSy] / sqrt([nSx^2 - (Sx)^2][nSy^2 - (Sy)^2]) = [5 x 1102 - 15 x 344] / sqrt([5 x 55 - 15^2][5 x 24224 - 344^2]) = 350 / sqrt(50 x 2784) = 0.94

(iii)

The correlation is strong positive: marks tend to increase with study hours.

C3.5Practice4 marks

Hours of study (x) and marks (y) of 5 students: x = [1, 2, 3, 4, 5], y = [45, 66, 63, 83, 91].

  1. Make the table of xy, x^2, y^2.
  2. Calculate Pearson's correlation coefficient r.
  3. Interpret it.
Answer
(i)
xyxyx^2y^2
1454512025
26613244356
36318993969
483332166889
591455258281
Sum 1534811535525520
(ii)

r = [nSxy - SxSy] / sqrt([nSx^2 - (Sx)^2][nSy^2 - (Sy)^2]) = [5 x 1153 - 15 x 348] / sqrt([5 x 55 - 15^2][5 x 25520 - 348^2]) = 545 / sqrt(50 x 6496) = 0.96

(iii)

The correlation is strong positive: marks tend to increase with study hours.

C3.6Practice4 marks

Fit a linear regression line y = mx + c by the least squares method to x = [1, 4, 5, 6, 9], y = [5.5, 9, 11.5, 13, 18.5], and predict y for x = 10.

Answer
(i)
xyxyx^2
15.55.51
493616
511.557.525
6137836
918.5166.581
Sum 2557.5343.5159
(ii)

m = (nSxy - SxSy) / (nSx^2 - (Sx)^2) = (5 x 343.5 - 25 x 57.5) / (5 x 159 - 25^2) = 1.65

(iii)

c = mean(y) - m x mean(x) = 11.50 - 1.65 x 5.00 = 3.26. Line: y = 1.65x + 3.26

(iv)

For x = 10: y = 1.65 x 10 + 3.26 = 19.74

C3.7Practice4 marks

Fit a linear regression line y = mx + c by the least squares method to x = [3, 4, 5, 6, 7], y = [12, 15, 18, 20, 22], and predict y for x = 10.

Answer
(i)
xyxyx^2
312369
4156016
5189025
62012036
72215449
Sum 2587460135
(ii)

m = (nSxy - SxSy) / (nSx^2 - (Sx)^2) = (5 x 460 - 25 x 87) / (5 x 135 - 25^2) = 2.50

(iii)

c = mean(y) - m x mean(x) = 17.40 - 2.50 x 5.00 = 4.90. Line: y = 2.50x + 4.90

(iv)

For x = 10: y = 2.50 x 10 + 4.90 = 29.90

C3.8Practice4 marks

Fit a linear regression line y = mx + c by the least squares method to x = [5, 6, 7, 8, 9], y = [15, 20, 21, 25, 27], and predict y for x = 10.

Answer
(i)
xyxyx^2
5157525
62012036
72114749
82520064
92724381
Sum 35108785255
(ii)

m = (nSxy - SxSy) / (nSx^2 - (Sx)^2) = (5 x 785 - 35 x 108) / (5 x 255 - 35^2) = 2.90

(iii)

c = mean(y) - m x mean(x) = 21.60 - 2.90 x 7.00 = 1.30. Line: y = 2.90x + 1.30

(iv)

For x = 10: y = 2.90 x 10 + 1.30 = 30.30

C3.9Practice4 marks

Fit a linear regression line y = mx + c by the least squares method to x = [3, 4, 5, 6, 7], y = [7, 11, 13, 14, 15], and predict y for x = 10.

Answer
(i)
xyxyx^2
37219
4114416
5136525
6148436
71510549
Sum 2560319135
(ii)

m = (nSxy - SxSy) / (nSx^2 - (Sx)^2) = (5 x 319 - 25 x 60) / (5 x 135 - 25^2) = 1.90

(iii)

c = mean(y) - m x mean(x) = 12.00 - 1.90 x 5.00 = 2.50. Line: y = 1.90x + 2.50

(iv)

For x = 10: y = 1.90 x 10 + 2.50 = 21.50

C3.10Practice4 marks

Fit a linear regression line y = mx + c by the least squares method to x = [1, 2, 7, 8, 9], y = [6.5, 7, 16.5, 17, 17.5], and predict y for x = 10.

Answer
(i)
xyxyx^2
16.56.51
27144
716.5115.549
81713664
917.5157.581
Sum 2764.5429.5199
(ii)

m = (nSxy - SxSy) / (nSx^2 - (Sx)^2) = (5 x 429.5 - 27 x 64.5) / (5 x 199 - 27^2) = 1.53

(iii)

c = mean(y) - m x mean(x) = 12.90 - 1.53 x 5.40 = 4.66. Line: y = 1.53x + 4.66

(iv)

For x = 10: y = 1.53 x 10 + 4.66 = 19.92

C3.11Practice4 marks

Training points: (3, 1) class A; (3, 1) class A; (3, 3) class A; (6, 8) class B; (6, 6) class B; (8, 5) class B. Classify the new point (6, 3) using k-NN with k = 3 and Euclidean distance.

Answer
(i)
PointClassDistance from (6, 3)
(3, 1)Asqrt(9 + 4) = 3.61
(3, 1)Asqrt(9 + 4) = 3.61
(3, 3)Asqrt(9 + 0) = 3.00
(6, 8)Bsqrt(0 + 25) = 5.00
(6, 6)Bsqrt(0 + 9) = 3.00
(8, 5)Bsqrt(4 + 4) = 2.83
(ii)

3 nearest: (8, 5) B, (3, 3) A, (6, 6) B

(iii)

Votes: A = 1, B = 2. The new point belongs to class B.

C3.12Practice4 marks

Training points: (2, 2) class A; (3, 2) class A; (1, 1) class A; (6, 9) class B; (8, 7) class B; (7, 7) class B. Classify the new point (3, 4) using k-NN with k = 3 and Euclidean distance.

Answer
(i)
PointClassDistance from (3, 4)
(2, 2)Asqrt(1 + 4) = 2.24
(3, 2)Asqrt(0 + 4) = 2.00
(1, 1)Asqrt(4 + 9) = 3.61
(6, 9)Bsqrt(9 + 25) = 5.83
(8, 7)Bsqrt(25 + 9) = 5.83
(7, 7)Bsqrt(16 + 9) = 5.00
(ii)

3 nearest: (3, 2) A, (2, 2) A, (1, 1) A

(iii)

Votes: A = 3, B = 0. The new point belongs to class A.

C3.13Practice4 marks

Training points: (3, 2) class A; (1, 2) class A; (2, 1) class A; (7, 7) class B; (8, 8) class B; (7, 7) class B. Classify the new point (6, 3) using k-NN with k = 3 and Euclidean distance.

Answer
(i)
PointClassDistance from (6, 3)
(3, 2)Asqrt(9 + 1) = 3.16
(1, 2)Asqrt(25 + 1) = 5.10
(2, 1)Asqrt(16 + 4) = 4.47
(7, 7)Bsqrt(1 + 16) = 4.12
(7, 7)Bsqrt(1 + 16) = 4.12
(8, 8)Bsqrt(4 + 25) = 5.39
(ii)

3 nearest: (3, 2) A, (7, 7) B, (7, 7) B

(iii)

Votes: A = 1, B = 2. The new point belongs to class B.

C3.14Practice4 marks

Training points: (2, 1) class A; (3, 3) class A; (2, 1) class A; (6, 5) class B; (6, 8) class B; (9, 6) class B. Classify the new point (3, 6) using k-NN with k = 3 and Euclidean distance.

Answer
(i)
PointClassDistance from (3, 6)
(2, 1)Asqrt(1 + 25) = 5.10
(2, 1)Asqrt(1 + 25) = 5.10
(3, 3)Asqrt(0 + 9) = 3.00
(6, 5)Bsqrt(9 + 1) = 3.16
(6, 8)Bsqrt(9 + 4) = 3.61
(9, 6)Bsqrt(36 + 0) = 6.00
(ii)

3 nearest: (3, 3) A, (6, 5) B, (6, 8) B

(iii)

Votes: A = 1, B = 2. The new point belongs to class B.

C3.15Practice4 marks

Training points: (4, 4) class A; (4, 1) class A; (1, 4) class A; (9, 7) class B; (7, 9) class B; (6, 5) class B. Classify the new point (6, 5) using k-NN with k = 3 and Euclidean distance.

Answer
(i)
PointClassDistance from (6, 5)
(4, 4)Asqrt(4 + 1) = 2.24
(4, 1)Asqrt(4 + 16) = 4.47
(1, 4)Asqrt(25 + 1) = 5.10
(9, 7)Bsqrt(9 + 4) = 3.61
(7, 9)Bsqrt(1 + 16) = 4.12
(6, 5)Bsqrt(0 + 0) = 0.00
(ii)

3 nearest: (6, 5) B, (4, 4) A, (9, 7) B

(iii)

Votes: A = 1, B = 2. The new point belongs to class B.

C3.16Practice4 marks

Apply k-means clustering (k = 2) to the points 1, 10, 19, 22, 23, 26, 27, taking the first and last points (1 and 27) as the initial centroids. Show each iteration until the clusters stop changing.

Answer
(i)

Centroids 1.00 and 27.00. Cluster 1: [1, 10]; Cluster 2: [19, 22, 23, 26, 27]. New centroids: 5.50 and 23.40

(ii)

Centroids 5.50 and 23.40. Cluster 1: [1, 10]; Cluster 2: [19, 22, 23, 26, 27]. New centroids: 5.50 and 23.40

The centroids did not change, so k-means stops. Final clusters: [1, 10] and [19, 22, 23, 26, 27].

C3.17Practice4 marks

Apply k-means clustering (k = 2) to the points 4, 7, 10, 11, 21, 25, 27, taking the first and last points (4 and 27) as the initial centroids. Show each iteration until the clusters stop changing.

Answer
(i)

Centroids 4.00 and 27.00. Cluster 1: [4, 7, 10, 11]; Cluster 2: [21, 25, 27]. New centroids: 8.00 and 24.33

(ii)

Centroids 8.00 and 24.33. Cluster 1: [4, 7, 10, 11]; Cluster 2: [21, 25, 27]. New centroids: 8.00 and 24.33

The centroids did not change, so k-means stops. Final clusters: [4, 7, 10, 11] and [21, 25, 27].

C3.18Practice4 marks

Apply k-means clustering (k = 2) to the points 5, 8, 10, 13, 18, 20, 29, taking the first and last points (5 and 29) as the initial centroids. Show each iteration until the clusters stop changing.

Answer
(i)

Centroids 5.00 and 29.00. Cluster 1: [5, 8, 10, 13]; Cluster 2: [18, 20, 29]. New centroids: 9.00 and 22.33

(ii)

Centroids 9.00 and 22.33. Cluster 1: [5, 8, 10, 13]; Cluster 2: [18, 20, 29]. New centroids: 9.00 and 22.33

The centroids did not change, so k-means stops. Final clusters: [5, 8, 10, 13] and [18, 20, 29].

C3.19Practice4 marks

Apply k-means clustering (k = 2) to the points 4, 7, 17, 19, 23, 24, 29, taking the first and last points (4 and 29) as the initial centroids. Show each iteration until the clusters stop changing.

Answer
(i)

Centroids 4.00 and 29.00. Cluster 1: [4, 7]; Cluster 2: [17, 19, 23, 24, 29]. New centroids: 5.50 and 22.40

(ii)

Centroids 5.50 and 22.40. Cluster 1: [4, 7]; Cluster 2: [17, 19, 23, 24, 29]. New centroids: 5.50 and 22.40

The centroids did not change, so k-means stops. Final clusters: [4, 7] and [17, 19, 23, 24, 29].

C3.20Practice4 marks

Apply k-means clustering (k = 2) to the points 3, 5, 12, 16, 17, 25, 26, taking the first and last points (3 and 26) as the initial centroids. Show each iteration until the clusters stop changing.

Answer
(i)

Centroids 3.00 and 26.00. Cluster 1: [3, 5, 12]; Cluster 2: [16, 17, 25, 26]. New centroids: 6.67 and 21.00

(ii)

Centroids 6.67 and 21.00. Cluster 1: [3, 5, 12]; Cluster 2: [16, 17, 25, 26]. New centroids: 6.67 and 21.00

The centroids did not change, so k-means stops. Final clusters: [3, 5, 12] and [16, 17, 25, 26].

C4Python programs with sample run4 marks · 23 questions
C4.1Practice4 marks

Write a program to input three numbers and print the largest using if-elif-else.

Answer
a = int(input("First: "))
b = int(input("Second: "))
c = int(input("Third: "))
if a >= b and a >= c:
    big = a
elif b >= c:
    big = b
else:
    big = c
print("Largest =", big)

Sample run (input typed: 45, 78, 12):

First: 45
Second: 78
Third: 12
Largest = 78
C4.2Practice4 marks

Write a program to check whether a number is prime.

Answer
n = int(input("Enter a number: "))
if n < 2:
    print(n, "is not prime")
else:
    for i in range(2, int(n ** 0.5) + 1):
        if n % i == 0:
            print(n, "is not prime")
            break
    else:
        print(n, "is prime")

Sample run (input typed: 29):

Enter a number: 29
29 is prime
C4.3Practice4 marks

Write a program to find the factorial of a number using a while loop.

Answer
n = int(input("Enter n: "))
f = 1
i = 1
while i <= n:
    f = f * i
    i = i + 1
print("Factorial of", n, "=", f)

Sample run (input typed: 6):

Enter n: 6
Factorial of 6 = 720
C4.4Practice4 marks

Write a program to print the first n terms of the Fibonacci series.

Answer
n = int(input("How many terms? "))
a, b = 0, 1
for i in range(n):
    print(a, end=" ")
    a, b = b, a + b
print()

Sample run (input typed: 10):

How many terms? 10
0 1 1 2 3 5 8 13 21 34 
C4.5Practice4 marks

Write a program to check whether a string is a palindrome.

Answer
s = input("Enter a word: ")
if s.lower() == s.lower()[::-1]:
    print(s, "is a palindrome")
else:
    print(s, "is not a palindrome")

Sample run (input typed: Madam):

Enter a word: Madam
Madam is a palindrome
C4.6Practice4 marks

Write a program to count vowels, consonants, digits and spaces in a string.

Answer
s = input("Enter a sentence: ")
v = c = d = sp = 0
for ch in s:
    if ch.lower() in "aeiou":
        v += 1
    elif ch.isalpha():
        c += 1
    elif ch.isdigit():
        d += 1
    elif ch == " ":
        sp += 1
print("Vowels:", v, "Consonants:", c, "Digits:", d, "Spaces:", sp)

Sample run (input typed: AI 843 is fun):

Enter a sentence: AI 843 is fun
Vowels: 4 Consonants: 3 Digits: 3 Spaces: 3
C4.7Practice4 marks

Write a program to find the sum of digits and the reverse of a number.

Answer
n = int(input("Enter a number: "))
s = 0
rev = 0
while n > 0:
    d = n % 10
    s += d
    rev = rev * 10 + d
    n //= 10
print("Sum of digits =", s)
print("Reverse =", rev)

Sample run (input typed: 4527):

Enter a number: 4527
Sum of digits = 18
Reverse = 7254
C4.8Practice4 marks

Write a program to store marks of 5 students in a list and print the highest, lowest, average and the marks above average.

Answer
marks = [78, 92, 65, 88, 71]
avg = sum(marks) / len(marks)
print("Highest:", max(marks), " Lowest:", min(marks))
print("Average:", avg)
print("Above average:", [m for m in marks if m > avg])

Sample run:

Highest: 92  Lowest: 65
Average: 78.8
Above average: [92, 88]
C4.9Practice4 marks

Write a program to create a dictionary of 4 students and their marks, and print the names of students scoring more than 75.

Answer
d = {"Asha": 82, "Ravi": 67, "Meena": 91, "John": 74}
for name in d:
    if d[name] > 75:
        print(name, d[name])

Sample run:

Asha 82
Meena 91
C4.10Practice4 marks

Write a program to compute the mean, median, mode, variance and standard deviation of a list using the statistics module.

Answer
import statistics as st
data = [12, 15, 15, 18, 20, 22, 25]
print("Mean    :", round(st.mean(data), 2))
print("Median  :", st.median(data))
print("Mode    :", st.mode(data))
print("Variance:", round(st.pvariance(data), 2))
print("Std dev :", round(st.pstdev(data), 2))

Sample run:

Mean    : 18.14
Median  : 18
Mode    : 15
Variance: 17.55
Std dev : 4.19
C4.11Practice4 marks

Write a program using NumPy to create an array of marks and print its shape, mean, maximum, and the marks above 60.

Answer
import numpy as np
marks = np.array([45, 78, 62, 90, 55, 81])
print("Shape:", marks.shape)
print("Mean :", marks.mean())
print("Max  :", marks.max())
print("Above 60:", marks[marks > 60])

Sample run:

Shape: (6,)
Mean : 68.5
Max  : 90
Above 60: [78 62 90 81]
C4.12Practice4 marks

Write a program using NumPy to add and multiply two 2 x 2 matrices and find the transpose.

Answer
import numpy as np
A = np.array([[1, 2], [3, 4]])
B = np.array([[5, 6], [7, 8]])
print("A + B =\n", A + B)
print("A x B =\n", np.dot(A, B))
print("Transpose of A =\n", A.T)

Sample run:

A + B =
 [[ 6  8]
 [10 12]]
A x B =
 [[19 22]
 [43 50]]
Transpose of A =
 [[1 3]
 [2 4]]
C4.13Practice4 marks

Write a program using Pandas to create a DataFrame of 4 students with Name and Marks, add a Result column (Pass if marks >= 33) and print it.

Answer
import pandas as pd
df = pd.DataFrame({"Name": ["Asha", "Ravi", "Meena", "John"], "Marks": [82, 29, 91, 45]})
df["Result"] = ["Pass" if m >= 33 else "Fail" for m in df["Marks"]]
print(df)
print("Average marks:", df["Marks"].mean())

Sample run:

    Name  Marks Result
0   Asha     82   Pass
1   Ravi     29   Fail
2  Meena     91   Pass
3   John     45   Pass
Average marks: 61.75
C4.14Practice4 marks

Write a program using Pandas to create a Series of monthly rainfall and print the months with rainfall above 100 mm and the total.

Answer
import pandas as pd
rain = pd.Series([20, 35, 60, 120, 210, 95], index=["Jan", "Feb", "Mar", "Apr", "May", "Jun"])
print(rain[rain > 100])
print("Total rainfall:", rain.sum())

Sample run:

Apr    120
May    210
dtype: int64
Total rainfall: 540
C4.15Practice4 marks

Write a program to calculate Pearson's correlation coefficient between hours studied and marks (without libraries).

Answer
x = [1, 2, 3, 4, 5]
y = [52, 58, 65, 70, 80]
n = len(x)
sx, sy = sum(x), sum(y)
sxy = sum(a * b for a, b in zip(x, y))
sx2 = sum(a * a for a in x)
sy2 = sum(b * b for b in y)
r = (n * sxy - sx * sy) / ((n * sx2 - sx ** 2) * (n * sy2 - sy ** 2)) ** 0.5
print("r =", round(r, 3))

Sample run:

r = 0.994
C4.16Practice4 marks

Write a program to find the slope and intercept of the best-fit line y = mx + c by the least squares method and predict y for x = 6.

Answer
x = [1, 2, 3, 4, 5]
y = [3, 5, 7, 9, 11]
n = len(x)
m = (n * sum(a * b for a, b in zip(x, y)) - sum(x) * sum(y)) / (n * sum(a * a for a in x) - sum(x) ** 2)
c = sum(y) / n - m * sum(x) / n
print("Slope m =", m, " Intercept c =", c)
print("Predicted y for x = 6:", m * 6 + c)

Sample run:

Slope m = 2.0  Intercept c = 1.0
Predicted y for x = 6: 13.0
C4.17Practice4 marks

Write a program to classify a new point using k-NN (k = 3) with Euclidean distance (without libraries).

Answer
train = [((1, 2), "A"), ((2, 3), "A"), ((3, 1), "A"), ((6, 5), "B"), ((7, 7), "B"), ((8, 6), "B")]
new = (3, 3)
d = []
for (x, y), lab in train:
    dist = ((x - new[0]) ** 2 + (y - new[1]) ** 2) ** 0.5
    d.append((round(dist, 2), lab))
d.sort()
print("Nearest 3:", d[:3])
votes = [lab for _, lab in d[:3]]
print("Class:", max(set(votes), key=votes.count))

Sample run:

Nearest 3: [(1.0, 'A'), (2.0, 'A'), (2.24, 'A')]
Class: A
C4.18Practice4 marks

Write a program to perform one iteration of k-means (k = 2) on 1-D data with initial centroids 2 and 10.

Answer
data = [1, 2, 3, 8, 9, 10, 11]
c1, c2 = 2, 10
g1 = [x for x in data if abs(x - c1) <= abs(x - c2)]
g2 = [x for x in data if abs(x - c1) > abs(x - c2)]
print("Cluster 1:", g1, " Cluster 2:", g2)
print("New centroids:", sum(g1) / len(g1), sum(g2) / len(g2))

Sample run:

Cluster 1: [1, 2, 3]  Cluster 2: [8, 9, 10, 11]
New centroids: 2.0 9.5
C4.19Practice4 marks

Write a program to read a CSV file of students and print the names and marks of those who scored above 80.

Answer
import csv
with open("marks.csv", "w", newline="") as f:
    w = csv.writer(f)
    w.writerows([["Name", "Marks"], ["Asha", 85], ["Ravi", 72], ["Meena", 91]])
with open("marks.csv") as f:
    r = csv.reader(f)
    next(r)
    for row in r:
        if int(row[1]) > 80:
            print(row[0], row[1])

Sample run:

Asha 85
Meena 91
C4.20Practice4 marks

Write a simple rule-based chatbot in Python that answers greetings, timings and fees, and stops on 'bye'.

Answer
replies = {"hi": "Hello! How can I help you?", "timing": "School timing is 7:30 am to 1:30 pm.", "fees": "Please visit the office for the fee details.", "bye": "Goodbye!"}
for msg in ["hi", "what is the timing", "fees please", "bye"]:
    print("You:", msg)
    ans = "Sorry, I did not understand."
    for key in replies:
        if key in msg.lower():
            ans = replies[key]
    print("Bot:", ans)

Sample run:

You: hi
Bot: Hello! How can I help you?
You: what is the timing
Bot: School timing is 7:30 am to 1:30 pm.
You: fees please
Bot: Please visit the office for the fee details.
You: bye
Bot: Goodbye!
C4.21Practice4 marks

Write a program to normalise a list of values to the range 0 to 1 using min-max normalisation.

Answer
data = [20, 35, 50, 65, 80]
lo, hi = min(data), max(data)
norm = [round((x - lo) / (hi - lo), 2) for x in data]
print("Normalised:", norm)

Sample run:

Normalised: [0.0, 0.25, 0.5, 0.75, 1.0]
C4.22Practice4 marks

Write a program to draw a bar chart of the number of students in each house using matplotlib.

Answer
import matplotlib.pyplot as plt
houses = ["Raman", "Shivaji", "Tagore", "Ashoka"]
count = [42, 38, 45, 40]
plt.bar(houses, count, color="teal")
plt.title("Students in each house")
plt.xlabel("House")
plt.ylabel("Students")
plt.show()

Sample run:

The chart this code draws

Students in each house010203040RamanShivajiTagoreAshokaHouseStudents
C4.23Practice4 marks

Write a program to draw a line graph of monthly rainfall using matplotlib.

Answer
import matplotlib.pyplot as plt
months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun"]
rain = [20, 35, 60, 120, 210, 95]
plt.plot(months, rain, marker="o", color="blue")
plt.title("Monthly rainfall")
plt.ylabel("Rainfall (mm)")
plt.show()

Sample run:

The chart this code draws

Monthly rainfall50100150200JanFebMarAprMayJunRainfall (mm)
CEEmployability skills: 4-mark practice answers (5 per unit)4 marks · 25 questions
CE.1Practice4 marks

Explain the elements of non-verbal communication with examples.

Answer

Facial expressions - a smile shows happiness; gestures - thumbs-up; posture - upright shows confidence; eye contact - shows honesty and interest; touch - a handshake; space - personal distance in conversation; paralanguage - tone, pitch, speed of voice; appearance - dress and grooming.

CE.2Practice4 marks

Explain the four communication styles with examples.

Answer

Assertive - clear and respectful ('Please mention my part in the report'); Aggressive - loud and blaming ('You are a cheat!'); Passive-aggressive - indirect anger, sarcasm ('Congratulations on your great idea'); Submissive - gives in and stays silent. Assertive is the best.

CE.3Practice4 marks

Write the rules for using the articles a, an and the with examples.

Answer

'a' is used before a consonant sound - a book, a university, a one-rupee coin. 'an' is used before a vowel sound - an apple, an hour, an MBA. 'the' is used for a particular or unique thing - the Sun, the Ganga, the report you sent. The choice depends on sound, not spelling.

CE.4Practice4 marks

Explain the structure of a paragraph with an example.

Answer

A paragraph has a topic sentence (main idea), supporting sentences (facts, examples, reasons) and a concluding sentence. Example: 'Regular exercise improves performance (topic). It increases blood flow to the brain and reduces stress (support). Therefore schools should include daily activity (conclusion).'

CE.5Practice4 marks

Identify the parts of speech in: "Oh! She quickly solved the hard puzzle and smiled."

Answer

Oh - interjection; She - pronoun; quickly - adverb; solved - verb; the - article (determiner); hard - adjective; puzzle - noun; and - conjunction; smiled - verb.

CE.6Practice4 marks

Prepare a personal grooming checklist for an interview.

Answer

Daily bath and clean teeth; neat, trimmed hair; short clean nails; clean, ironed formal clothes; polished formal shoes and matching socks; minimal accessories; documents in a file; upright posture, smile and eye contact.

CE.7Practice4 marks

Explain any four methods of self-exploration.

Answer

Reflection and journaling - shows patterns in behaviour; feedback from teachers, parents and friends; interest, aptitude and personality tests; trying new activities such as clubs and volunteering; SWOT analysis of strengths, weaknesses, opportunities and threats.

CE.8Practice4 marks

Explain the factors of team building and teamwork.

Answer

Team building factors: clear goal, defined roles, trust, open communication, good leadership and recognition. Teamwork factors: cooperation, respect for others, sharing credit, accountability and peaceful conflict resolution.

CE.9Practice4 marks

Explain the five stages of team development.

Answer

Forming - members meet and get to know each other; Storming - conflicts and competition arise; Norming - rules, roles and trust develop; Performing - the team works efficiently towards the goal; Adjourning - the task ends and the team separates.

CE.10Practice4 marks

Explain the Eisenhower (urgent-important) matrix and any two time-management tips.

Answer

Important and urgent - do first; important but not urgent - schedule; urgent but not important - delegate or minimise; neither - eliminate. Tips: make a to-do list and schedule; break big tasks; use the Pomodoro method; avoid procrastination.

CE.11Practice4 marks

Explain any four text-formatting options in a word processor with shortcuts.

Answer

Bold - Ctrl + B; Italic - Ctrl + I; Underline - Ctrl + U; font face, size and colour from the formatting toolbar; superscript (Ctrl + Shift + P) and subscript (Ctrl + Shift + B) in Writer; highlight for marking text.

CE.12Practice4 marks

Write the steps to insert a table and a picture in LibreOffice Writer.

Answer

Table: Table > Insert Table (Ctrl + F12), choose rows and columns, click Insert; type data; merge cells or add borders as needed. Picture: Insert > Image, choose the file, click Open; right-click > Wrap to set text wrapping; resize using the handles.

CE.13Practice4 marks

What is a header and footer? How are page numbers inserted?

Answer

A header is text repeated at the top of every page and a footer at the bottom - e.g. school name, title, page number. Insert > Header and Footer > Header/Footer > Default. Page number: click in the footer, then Insert > Field > Page Number.

CE.14Practice4 marks

Explain spelling and grammar check, AutoCorrect, thesaurus and word count.

Answer

Spelling and grammar (F7) finds and suggests corrections; AutoCorrect fixes common typing errors automatically (teh -> the); Thesaurus (Ctrl + F7) gives synonyms; Word Count (Tools > Word Count) shows the number of words and characters.

CE.15Practice4 marks

Differentiate between Save and Save As. Name four file formats a document can be saved in.

Answer

Save (Ctrl + S) stores changes in the same file; Save As (Ctrl + Shift + S) saves a copy with a new name, place or format. Formats: .odt, .docx, .pdf (export), .txt, .rtf.

CE.16Practice4 marks

Explain any four entrepreneurial values with examples.

Answer

Innovativeness - eco-friendly packaging; Independence - takes own decisions; Outstanding performance - high quality standards; Respect for work - no work is small; Honesty - fair dealing with customers; Social responsibility - caring for society and environment. (Any four.)

CE.17Practice4 marks

Explain the types of entrepreneurs: innovative, imitative, Fabian, drone and social.

Answer

Innovative - introduces new ideas and technology; Imitative - copies successful ideas and adapts them; Fabian - cautious, changes only when necessary; Drone - resists change even with losses; Social - solves a social problem while earning.

CE.18Practice4 marks

Explain the steps of generating a business idea.

Answer

Observe problems around you; brainstorm many ideas; screen ideas for practicality; talk to possible customers; choose the best idea and test it on a small scale. Sources: hobbies and skills, problems of people, trends, government schemes and customer feedback.

CE.19Practice4 marks

Explain any four barriers to entrepreneurship and their solutions.

Answer

Lack of money - savings, bank and Mudra loans; fear of failure - start small and learn; lack of knowledge - training and mentors; competition - better quality and service; legal formalities - expert help and Udyam registration.

CE.20Practice4 marks

Write any four entrepreneurial competencies and explain them.

Answer

Decisiveness - takes quick, clear decisions; Initiative - starts things without waiting; Interpersonal skills - good relations with customers and staff; Perseverance - continues despite failure; Organisational skills - plans and uses resources well; Problem solving; Financial literacy.

CE.21Practice4 marks

What is a green economy? Differentiate it from a brown economy.

Answer

A green economy is low-carbon, resource-efficient and socially inclusive. A brown economy depends on coal and oil, causes high pollution and waste and uses resources faster than nature can renew them; a green economy uses renewable energy, low emissions, recycling and fair use of resources.

CE.22Practice4 marks

Explain any four sectors of the green economy with green practices.

Answer

Renewable energy - rooftop solar, wind farms; green transport - metro, EVs, cycling; green construction - GRIHA buildings with natural light; water management - rainwater harvesting, drip irrigation; e-waste management - safe recycling; sustainable agriculture - organic farming.

CE.23Practice4 marks

Name the eight missions of the National Action Plan on Climate Change.

Answer

National Solar Mission; Enhanced Energy Efficiency; Sustainable Habitat; Water; Sustaining the Himalayan Ecosystem; Green India; Sustainable Agriculture; Strategic Knowledge for Climate Change.

CE.24Practice4 marks

Explain the role of stakeholders in the green economy.

Answer

Government - policies, laws and subsidies; private companies - clean technology and less waste; NGOs - awareness and community projects; communities - protecting local resources; consumers - eco-friendly choices; banks - green finance; research bodies - new clean technology.

CE.25Practice4 marks

Explain greening of any four sectors.

Answer

Cities - green spaces, public transport, waste plants; tourism - eco-tourism and no plastic; industry - cleaner production and effluent treatment; forests - afforestation; fisheries - no overfishing; agriculture - natural farming and solar pumps.

13

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.

14

Practice question papers

Ten ready papers with blueprints and a random paper maker, on the CBSE pattern for Class XI (843)

10 Sample Question Papers (CBSE pattern, 50 marks, 2 hours)

Each paper has 21 questions for 50 marks and 2 hours, on the design of the CBSE Sample Question Paper (Class XII 843 pattern, used by schools for Class XI): 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 Python output, statistics, matrix and ML numericals in Section A, and a Python program, a design thinking case, a statistics or matrix numerical, an ML numerical and an NLP case 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.

15

Last-day checklist

Read this the evening before and again at the exam centre gate

Before the paper

  • AI timeline (1950 to 2022) and the types of AI by capability and functionality.
  • Python: tokens, data types, one program each with if-elif, for, while, list and dictionary.
  • Design thinking stages, empathy map, 5W1H.
  • One full variance and SD table; matrix product AB.
  • Pearson r table, regression line, one k-NN and one k-means example.
  • Phases of NLP, five pillars of AI ethics, sources of bias.

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 numericals and the program give full marks with clear working.

While writing

  • Write formulas before putting values.
  • Draw tables neatly for statistics and correlation.
  • Show indentation in Python clearly.
Marks katne wali galti
  • Forgetting to square deviations in variance
  • Adding matrices of different orders
  • Mixing k-NN and k-means
  • Writing the NLP phases in the wrong order
  • Answering more parts than asked