The Artificial Intelligence (AI) series for grades 9 and 10 by Uolo aims to expose learners to essential elements in AI and introduce common domains and applications of AI to them. It also introduces the fundamentals of AI to the learners through engaging activities that can be done in a computer lab or on a computer at home. This series paves the way for students to become informed participants in the exciting future shaped by artificial intelligence.
Artificial Intelligence
About the Book
10
Key Features • Engaging In-chapter Activities: Engaging activities within each chapter that offer students practical experience of various AI concepts and domains, thereby facilitating a deeper understanding.
• Let’s Revise: To reinforce takeaways of each chapter, these chapter-end summaries include key points that recaps everything that has been covered in the chapter.
• Activity Section: To further enhance student proficiency, all the chapters end with an unsolved activity which provides additional practice of the AI concepts.
10
• Chapter Checkup: Comprehensive exercises at the end of each chapter that have various question types, like fill in the blanks, true or false, multiple-choice, short answer, long answer, and application-based questions to provide students a thorough revision of the text.
Subject Code 417
About Uolo Uolo partners with K-12 schools to provide technology-enabled learning programs. We believe that pedagogy and technology must come together to deliver scalable learning experiences that generate measurable outcomes. Uolo is trusted by over 15,000+ schools across India, Southeast Asia, and the Middle East.
hello@uolo.com �649
ISBN 978-93-49697-88-1
Singapore
AI_G10_CS_MB_Cover_2025.indd All Pages
|
Gurugram
|
Bengaluru
|
© 2025 Uolo EdTech Pvt. Ltd. All rights reserved.
NEP 2020 based
|
Latest CBSE curriculum aligned
11/04/25 5:17 PM
Artificial Intelligence Subject Code 417
10
Part A_AI Grade 10.indb 1
4/12/2025 3:55:44 PM
Acknowledgements Academic Authors: Jatinder Kaur, Neha Verma, Chandani Goyal, Kashika Parnami, Anuj Gupta, Simran Singh Creative Directors: Bhavna Tripathi, Mangal Singh Rana, Satish Book Production: Rakesh Kumar Singh Project Lead: Jatinder Kaur VP, Learning: Abhishek Bhatnagar
All products and brand names used in this book are trademarks, registered trademarks or trade names of their respective owners. © Uolo EdTech Private Limited First impression 2025 This book is sold subject to the condition that it shall not by way of trade or otherwise, be lent, resold, hired out, or otherwise circulated without the publisher’s prior written consent in any form of binding or cover other than that in which it is published and without a similar condition including this condition being imposed on the subsequent purchaser and without limiting the rights under copyright reserved above, no part of this publication may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, without the prior written permission of both the copyright owner and the above-mentioned publisher of this book. Book Title: Artificial Intelligence 10 ISBN: 978-93-49697-88-1
Published by Uolo EdTech Private Limited Corporate Office Address: 85, Sector 44, Gurugram, Haryana 122003 CIN: U74999DL2017PTC322986 Illustrations and images: www.shutterstock.com, www.stock.adobe.com and www.freepik.com All suggested use of the internet should be under adult supervision.
PartTekie_CS_AI_G10.indd A_AI Grade 10.indb 2 2
4/12/2025 3:55:444:55 PMPM 04/09/24
Preface In today’s rapidly advancing technological landscape that is dominated by robots and computers, understanding their language is more crucial than ever. From doctors harnessing AI to diagnose diseases to scientists deploying robots to explore space—computers are at the heart of it all. Simply knowing how to use a computer is no longer enough. The dynamic world of technology thrives on innovation, and this is where artificial intelligence (AI) plays a pivotal role. To meet the demands of this exciting age, Uolo proudly presents a two-book series on Artificial Intelligence (Subject Code 417), meticulously crafted for students in grades 9 and 10. This series not only provides theoretical knowledge but also fosters hands-on experience in AI and coding skills, preparing students for real-world applications. These books are thoughtfully aligned with the latest CBSE curriculum, ensuring that the material is presented in a clear and engaging manner. Within these pages, students will find all the resources they need to excel in both theoretical and practical AI examinations. Our books cover all the prescribed CBSE learning objectives, introducing students to essential AI concepts, domains, and applications. Additionally, these volumes include units that develop vital employability skills and vocational proficiencies, equipping students for the future. Each chapter is designed with detailed theoretical explanations that are contextual, relatable, and engaging for learners. The in-chapter activities provide practical experience with various AI concepts and domains, promoting a deeper understanding. We hope this series sparks curiosity in learners and empowers them to become informed participants in the ever-evolving world of AI.
iii
Part A_AI Grade 10.indb 3
4/12/2025 3:55:44 PM
Chapter at a Glance: Walkthrough of Key Elements
Think Thinkand andTell Tell
1. 1.Can oforal, oral,spoken, spoken,and andwritten written communication? Canyou youlist listout outthe thedifferent different types types of communication? 2.2.Give ofverbal verbalcommunication. communication. Givetwo twoadvantages advantages and and disadvantages disadvantages of
Non-verbal Communication Non-verbal Communication
Non-verbal communicationisisaaway wayof ofsending sending messages messages without This implies thethe ability to interact Non-verbal communication withoutusing usingwords. words. This implies ability to interact with others without the useofofspoken spokenor orwritten written language. language. Instead, using facial expressions, hand with others without the use Instead,ititinvolves involves using facial expressions, hand signals, body postures, stances,and andvarious various gestures. gestures. signals, body postures, stances, Differences Between Verbal, Non-verbal, and Visual Communication
1
Hence, can define non-verbalcommunication communication as as the Hence, wewe can define non-verbal the type of that does not involve words. and communication Tell type Think of communication that does not involve words. It involves sharing signals and messages with others It involves sharing signals and messages with others through expressions, gestures, and body language. through expressions, gestures, and body language. Non-verbal Communication
Did DidYou YouKnow? Know?
1. Can you list out the different types of oral, spoken, and written communication? 2. Give two advantages and disadvantages of verbal communication.
Non-verbal communication involves expressions,
Non-verbal communication is a way of sending messages without using words. This implies the ability to interact with others without the use of spoken or written language. Instead, it involves using facial expressions, hand signals, body postures, stances, and various gestures.
Non-verbal communication involves expressions, posture, gestures, touch, space, eye contact, and posture, gestures, touch, space,the eye contact, and paralanguage. Understanding aspects of non-verbal Did You Know? paralanguage. Understanding aspects of non-verbal communication can help us bethe better communicators. Non-verbal communication involves expressions, communication can help us be better communicators. Using the right gestures and expressions while speaking posture, gestures, touch, space, eye contact, and paralanguage. Understanding the aspects of non-verbal Using the gestures and expressions while speaking communication can help us be better communicators. helps usright get our point across. Such understanding also Using the right gestures and expressions while speaking helps us gethelps our point across. Such understanding also usus get our point across. understanding also aids in understanding ourSuch audience’s reaction and aids us in understanding our audience’s reaction and Think and Tell altering our behaviour or communication accordingly. aids us in understanding our audience’s reaction and altering our behaviour or communication accordingly. Being professional at work requires that we be aware of appropriate gestures our and postures. If noise, altering behaviour or communication accordingly. distance, etc. interfere with spoken communication, Being professional at work requires that we be Hence, we can define non-verbal communication as the type of communication that does not involve words. It involves sharing signals and messages with others through expressions, gestures, and body language.
It has been observed that in our daily communication, information is constantly being shared and perceived through body movements (face, arm movements) and voice control (volume, tone, pauses), which are non-verbal in nature.
1. Have you ever played a game of dumb charades? What are the various ways in which you communicate in the game? Discuss with your teacher. 2. Have you ever felt confused when someone’s expression did not match their spoken words?
we can communicate using hand gestures to get our message across. For example, putting a finger on the lips signals that silence is required.
Basis Communication Visual Communication Did You Know?: FunVerbal facts related to theCommunication topic, Relies on visual elements, Involves using spoken or written Conveys meaning through facial included to captivate students’ interest. such as symbols, images, and words to convey messages and expressions, gestures, body language, Non-verbal
It has been observed that in our daily communication, It has been observed that in our daily communication, information is constantly being shared and perceived information is constantly being shared and perceived through body movements (face, arm movements) Meaning through movements (face, arm movements) and voice body control (volume, tone, pauses), which are and voice control (volume, tone, pauses), which are non-verbal in nature.
language Basis
How to Use Non-verbal Communication Effectively?
Types of Non-verbal Communication
Gestures
Facial expressions convey the emotional state of a person to others.
Maintain a calm expression. Be subtle and neutral.
For example, people smile when they are happy or frown when they are upset.
Maintain eye contact.
Gestures are a form of non-verbal communication used to express an idea or meaning through the movement of parts of the body, especially the hands or the head.
Forms 1. Have you ever played a game of dumb charades? the various ways in which you communicate 1. What Haveare you ever played a game of dumb charades? Meaning in the game? Discuss with your What are the various ways inteacher. which you communicate Medium 2. Have you ever felt confused when someone’s
Think and Tell
Align expression to words being spoken.
It is important to keep in mind that it is considered impolite to use your finger to point at someone.
Types of Non-verbal Communication
Example: I saw a dog in the park. (referring to one dog in general) For example, nodding of the head indicates agreement and understanding.
Show that you are paying attention by nodding your head slightly when conversing or listening.
Verbal Communication Face-to-face conversations, phone calls, speeches, and written documents. Involves using spoken or written words to convey messages and Utilises spoken words, written information. documents, phones, and computers.
2
Differences Between Verbal, Non-verbal, and Visual Communication
but uses visual cues and elements to convey messages. Visual Communication Logos, posters, comics, product packaging, andelements, illustrations. Relies on visual such as symbols, images, and design, to communicate ideas Utilises images, graphics, and concepts. videos, and animations. May or may not use language, Logo of visual a brand. but uses cues and elements to convey messages.
Non-verbal Face-to-face conversations,Basis phoneVerbal Communication Visual Communication Communication Facial expressions, gestures, posture, Logos, posters, comics, product Relies on visual elements, eyeorcontact, and touch. packaging, and illustrations. Involves using spoken written Conveys meaning through facial such as symbols, images, and Meaning words to convey messages and expressions, gestures, body language, documents. design, to communicate ideas information.
and other non-verbal cues.
Writing an email or giving a speech.
Nodding head or shaking hands.
How to Use Non-verbal Activity 1: Pros and Cons of Verbal and Non-verbal Communication (Group Work) Does not use language directly but May or may not use language, Types of Non-verbal Communication Use of Requires the use of language, body language, facial Utilises spoken words, written Utilises involves elements like tone, volume, but uses visual cues and (continued...) Facial expressions language including grammar and vocabulary. Communication Effectively? Utilises images, graphics, and pace. elements to convey messages. Singular Nouns: Use ‘a’ before singular nouns that begin with a consonant Medium documents, phones, and expressions, gestures, and physical Facial expressions convey the emotional state of sound. a Maintain a calm expression. Be subtle and neutral. In a small group of 4–5 students, choose and discuss anyphone oneFacial type of communication. Converse on the Face-to-face conversations, videos, andadvantages animations.and expressions, gestures, posture, Logos, posters, comics, product Forms calls, speeches,presence. and written computers. person to others. eye contact, and touch. packaging, and illustrations. documents. Facial expressions Chapter 1 • Methods of Communication 7 disadvantages of the chosen form of communication. Align expression to words being spoken. Example: He is a teacher. (Teacher starts with a consonant sound: Utilises spoken words, written Utilises body language, facial Facial expressions convey emotional Utilises images, graphics, For example, people smilethe when they/t/.) are state happyof a Maintain a calm expression. Be subtle and neutral. documents, phones, and expressions, and physical Example Writing an email or givingMedium a speech. Nodding head orgestures, shaking hands. videos, and animations. Logo of a brand. presence. Maintain eye contact. person to others. or frown when they are upset. On an A3 size sheet, list the advantages andcomputers. disadvantages discussed. You may make it creative and display it in the class. Waving at others indicates a greeting.
2.
involves elements like tone, volume, and pace. Non-verbal Communication Facial expressions, gestures, posture, eye contact, and touch. Conveys meaning through facial expressions, gestures, body language, Utilises body language, facial and other non-verbal cues. expressions, gestures, and physical presence. Does not use language directly but Requires the use of language, Writing an email or giving a speech. involves Noddingelements head or like shaking tone,hands. volume, including grammar and vocabulary. and pace. including grammar and vocabulary.
Activitycalls, Time speeches, and written Activity Time
Forms
How to Use Non-verbal Communication Effectively?
Try placing your hands by your sides instead of in your pockets when you’re having a conversation.
design, to communicate ideas and concepts.
and other non-verbal cues.
Think and Tell: Analysis, reflection and text-to-self connection-based prompts for discussion in class
Think and Tell
aware of appropriate gestures and that postures. If noise, Being professional at work requires we be distance, etc. interfere with spoken communication, aware of appropriate gestures and postures. If noise, in the game? Discuss with your teacher. expression did not match their spoken words? we canetc. communicate usingspoken hand gestures to get our 2. Have you ever felt confused when someone’s distance, interfere with communication, Use of across. Forusing example, putting a finger onour the expression did not match their spoken words? Example we message can communicate hand gestures to get language Rules for Using the Indefinite Article (a/an) lips signals that silence is required. message across. For example, putting a finger on the lips‘a’ signals that silence is required. 1. Countable Nouns: Use or ‘an’ with countable nouns when you are referring to one nonspecific item or thing. Facial expressions
information.
Differences Between Verbal, Non-verbal, and Does not use Visual language Communication directly but May or may not use language, Use of Requires the use of language,
non-verbal in nature.
Use ‘an’ before singular nouns that begin with a vowel sound. For example, people smile when they are happy IT Grade_9_Book.indb 7
02-09-2024 15:30:51
Align expression to words being spoken.
Example
and concepts.
Logo of a brand.
Activity 2: Common Body Language Mistakes
(Group Work)
Activity Time Activity Time Activity Time: Classroomand laboratory-based group It is important to keep in mindand that it is consideredForm groups of 4–5 students and engage in discussion on the dos and don’ts of body language that should be followed in used to express an idea or meaning through the Gestures impolite to use your finger to point at someone. a formal and informal setting. movement of parts of thesingular body, especially the that begin with a silent ‘h.’ 3. Singular Nouns Starting with a Silent Gestures ‘H’: Useare ‘an’ before nouns Activity 1: Pros and Cons of Verbal and Non-verbal Communication (Group Work) form of non-verbal communication individual activitiesused for enhanced learning experience hands or an theahead. Try placing your hands byin your sides instead of in It is important to keep mind that it is considered to express an idea or meaning through the To make the presentation interesting, you can create a small skit displaying the good and bad body language in different or frown when they are upset.
Example: She has an umbrella. (Umbrella startsarewith a of vowel sound: /ʌ/.) Gestures a form non-verbal communication
Maintain eye contact.
ActivityTime Time Activity
Activity 1: Pros and Cons of Verbal and Non-verbal Communication
(Group Work)
In a small group of 4–5 students, choose and discuss any one type of communication. Converse on the advantages and disadvantages of the chosen form of communication.
On an A3 size sheet, list the advantages and disadvantages discussed. You may make it creative and display it in the class.
Gestures
4.
your pockets when you’re having a conversation. impolite to use your finger to point at someone. Form groups 4–5 students andany engage one in discussion on theof dos and don’ts of body language that should be followed in In a small group of 4–5 students, choose andofdiscuss type communication. Converse on the advantages and Example: He’s an honest person. (Honest aofsilent ‘h’ and begins Forstarts example, nodding of the head indicates movement ofwith parts the body, especially the with the vowel sound of ‘o’) a formal and informal setting. scenarios. agreement understanding. Show that youyour are paying attention by nodding of the chosen form of communication. To make the presentation interesting, you can create a small skit displaying the good and bad body language in different hands or the and head. Try placing hands by your sides instead disadvantages of in scenarios. your heador slightly when conversing or listening. Professions and Nationalities: Use ‘a’ orWaving ‘an’ when referring someone’s profession nationality without your pockets when you’re having a conversation. at others indicates ato greeting. For example, nodding of the head indicates On an A3 size sheet, list the advantages and disadvantages discussed. You may make it creative and display it in the class.
specifying a particular person.
Activity 2: Common Body Language Mistakes
agreement and understanding.
(Group Work)
Show that you are paying attention by nodding
Activity 2: Common Body Language Mistakes (Group Work) your head slightly when conversing (continued...) or listening. Chapter Checkup: Chapter-end exercises containing Form groups of 4–5 students and engage in discussion on the dos and don’ts of body language that should be followed in Chapter Checkup a formal and informal setting. She is an Indian chef. subjective and objective questions to enable comprehensive (continued...) make the interesting, you can create a small skit displaying the good and bad body language in different Chapter 1 • Methods of Communication 7 Select ATo thepresentation correct option. 5. General Statements: Use ‘a’ or ‘an’ to make general statements about a group. practice of concepts. scenarios. 1 What is the medium of verbal communication? Chapter Checkup
Waving at others indicates a greeting. Example: She is a lawyer. (referring to any lawyer in general)
A Select the correct option.
1 What is the medium of verbal communication? a To use pictures and symbols
b To exchange information through spoken or written words c To communicate using only gestures
d To convey emotions through facial expressions
Let us consider predicting student performance on an upcoming exam. We can build a model using a student
Example: ‘I need a book for my research’. (referring to any book that fits the research). database. This database would have various features suitable for training and testing. Here is how we can split
7 a To use pictures and symbols10
Chapter 1 • Methods of Communication
b To exchange information through spoken or written words
the data: IT Grade_9_Book.indb 7 6. First Mention: When you introduce a new, singular, and Training Data: Training or data is a collection examples nonspecific noun in a conversation text, use ‘a’ orof‘an’.
3
Let us consider predicting student performance on an upcoming exam. We can build a model using a student that the model uses to learn how to do a specific task. database. This database would have various features suitable for training and testing. Here is how we can split the IT data: Grade_9_Book.indb Example: ‘I sawThis a car on include the 7street’. (The car hasn’t beenscores in would data features like past exam Training Data: Training data is a collection of examples that the model uses to learn how to do a specific task. mentioned before in the conversation.) relevant subjects, attendance records, and time spent on Remember This would include data features like past exam scores in relevant subjects, attendance records, and time spent on online learning platforms online learning platforms (numerical data). It might also (numerical data). It might also include categorical data like learning style (visual, auditory), Specific vs. nonspecific: ‘a’categorical and (active, ‘an’reserved), indicate a nonspecific or preferred class participation etc. Forlike learning style (visual, auditory), include data better efficiency of an AI project, the training data needs to be relevant and authentic. generic item, whereas ‘the’ indicates a specific or reserved), previously preferred class participation (active, etc. For Testing Data: Testing data is used to evaluate the performanceefficiency of a trained model. This wouldAI be unseen ofdataan project, the training data needs to mentioned item. better by the model during training. It would include similar Error Alert! features from a separate group of students taking the same be relevant and authentic. exam. By comparing the model’s predictions on the testing Machine Learning (ML) is a branch of AI where the machine makes
predictions and decisions based on the data that we provide it.
‘I need a pen’. (Any pen will do.)
data with the actual exam results, we can evaluate its effectiveness in predicting performance.
If an AI application is trained with an inaccurate or inappropriate data it may leads to incorrect result.
Testing Data: Testing data is used to evaluate the
Activity of a trained model. This data be unseen ‘I need the pen youperformance borrowed yesterday’. (referring to a would specific pen) Imagine you are tasked with creating an AI system to predict whether a customer is likely to purchase a high-end by the model during training. It would include similar smartphone based on their online behaviour. The AI system will be trained using historical data from previous
Cases with zero article usage, referred ‘zero article’, occur features fromoften a separate groupto of as students taking the same By comparing the‘the’, model’s on the a testing when we don’t use exam. any article (neither ‘a’, predictions nor ‘an’) before noun. customers. Identify the data features you would collect to ensure the AI system can accurately predict the likelihood of a customer purchasing the smartphone. Possible Data Features: •
Browsing Behaviour: Customers who have bought high-end smartphones before are likely to buy again.
• Search Queries:the Specific actual searches for features or brands related to high-end indicate intent. data with exam results, wesmartphones can evaluate its • Demographic Information: Age and income can influence purchasing decisions for high-end smartphones. Use effectiveness in predicting performance. • Reviews and Ratings: High ratings on products may sway customer decisions. Now, think of three additional data features beyond those previously discussed to predict customer behaviour in the context of purchasing high-end smartphones. Also, explain why each feature is important.
I don’t like pets.
Activity Data Feature
Importance
What time do you have breakfast? 1.
02-09-2024 15:30:51
c To communicate using only gestures IT Grade_9_Book.indb 10
Remember
Remember Machine Learning (ML) is a branch Remember: Important A Select the correct option.points to aid memory and 02-09-2024 15:30:51
Uncountable plural nouns: of AI whereand the machine makes In the case of and uncountable nouns predictions decisions based on the data that wewe provide it. use ‘a’ or plural nouns, do not or ‘an’.
recall.
1 What is the medium of verbal communication? a To use pictures and symbols
10
Incorrect: ‘I need a information.’
b To exchange information through spoken or written words c To communicate using only gestures
d To convey emotions through facial expressions
Correct: ‘I need information.’
Error Alert!: Common misconceptions with clear If an AI application is trained with an inaccurate solutions. or inappropriate data it may leads to incorrect Error Alert!
result.
IT Grade_9_Book.indb 10
10
Reason
Meals- lunch, breakfast, dinner.
IT Grade_9_Book.indb 10
2.
Chapter 5 • Data Acquisition
IT Grade_9_Book.indb 153
•
Next, last.
Key Terms
4
Unit Reflection
Unit Reflection
02-09-2024 15:30:52
Key Terms Self-awareness: It is to know oneself as an individual—be it one’s likes, dislikes, strengths, or weaknesses, and reflect on one’s experiences to gain valuable insights into their personality.
Self-awareness: It is to know oneself as an individual—be it one’s likes, dislikes, strengths, or weaknesses, and Self-confidence: Self-confidence involves believing in one’s own judgement, abilities, and capabilities. It is reflected in one’s thoughts, ideas, and behaviour. reflect on one’s experiences to gain valuable insights into their personality. Self-management: Self-management is the capability of an individual to exercise control over one’s feelings, ideas, thoughts, emotions, and behaviour to achieve the desired goals in both personal and professional settings.
02-09-2024 15:32:17
Browsing Behaviour: Customers who have bought high-end smartphones before are likely to buy again.
Key• Terms: Important terms to ensure a firm grasp of Connecting Ideas: Paragraphs Demographic Information: Age and income can influence purchasing decisions for high-end smartphones. Now that we have read about sentences, let us learn how to put them together to make paragraphs. Think of a • Reviews and Ratings: High ratings on products may sway customer decisions. important concepts. •
02-09-2024 15:30:52
Unit Reflection
Pets in general—general meaning.
Imagine you are tasked with creating an AI system to predict whether a customer is likely to purchase a high-end 2021 was a great year. Years, months, days. smartphone based on their online behaviour. The AI system will be trained using historical data from previous He does not speak Telugu. Languages. customers. Identify the data features you would collect to ensure the AI system can accurately predict the likelihood of a customer purchasing the smartphone. I love studying Biology. School subjects. 153 Possible Data Features: We went to the shopping mall last week.
02-09-2024 15:30:52
d To convey emotions through facial expressions
Chapter Checkup
Search Queries: Specific searches for features or brands related to high-end smartphones indicate intent.
It anbelieving intrinsic feeling that in encourages one toown completejudgement, tasks and achieve goals independently. It is and capabilities. It is reflected Self-confidence: Self-confidenceSelf-motivation: involves one’s abilities, an internal drive or enthusiasm that prompts one to take initiative. in one’s thoughts, ideas, and behaviour. Stress management: It is the coping mechanism that enables an individual to handle work efficiently, even under
Self-management: Key TermsSelf-management is the capability of an individual to exercise control over one’s feelings, ideas, pressure or difficulties.
Time management: It is the ability to successfully complete tasks within specified deadlines and the ability of an individual to minimise distractions and unproductive activities.
thoughts, emotions, and behaviour to achieve the desired goals in both personal and professional settings. Things to Remember
Self-motivation: It an intrinsic feeling thatoneself encourages complete tasks and achieve goals independently. is It is to know asone antoindividual—be it one’s likes, dislikes,It streng paragraph as a group of friends who share something in common. Just like how friends stay close, sentences within Self-awareness: Now, think of three additional data features beyond those previously discussed to predict customer behaviour in an internal drive or enthusiasm that prompts one to take initiative. a paragraph remain interconnected as they discuss a common topic. reflect on one’s experiences to gain valuable insights into their personality. the context of purchasing high-end smartphones. Also, explain why each feature is important. Data Feature
30
Importance
1.
IT Grade_9_Book.indb 30
Things to Remember: Unit-end point-wise summary to consolidate 2. concepts.
• Various self-management skills that an individual should possess are self-awareness, self-confidence, self-motivation, problem solving, teamwork, time management, goal setting, decision-making, and stress management.
• Effective self-management helps in achieving goals, managing one’s time, reducing stress, making a person more organised, improving relationships, enhancing problem solving abilities, career advancement and instilling
discipline. Stress management: It is the coping mechanism that enables an individual to handle work efficiently, even under • A self-confident person is ready to accept new challenges, willing to take risks, and has trust in their own capabilities. pressure or difficulties. Self-confidence Self-confidence: involves believing in one’s own judgement, abilities, a • A few qualities that are commonly associated with self-confident people are self-belief, hard work, commitment, and a positive attitude.
Time management: It is the abilityand to successfully complete tasks within specified deadlines and the ability of an in one’s thoughts, ideas, behaviour. • The three main factors that influence self-confidence are social, cultural, and physical.
• There are some factors that work against us and do not help us boost our confidence, like negative self-belief, individual to minimise distractions and unproductive dwelling on past mistakes, fear of failure, andactivities. negative surroundings.
Self-management: Self-management is the capability of an individual to exercise cont thoughts, and behaviour to achieve the desired goals in both personal and Things to emotions, Remember • To build self-confidence, one should think positively, stay clean, hygienic and smart, find happiness in small things, chat with positive people, and get rid of negative thoughts.
02-09-2024 15:31:04
• Various self-management skills that an individual should are self-awareness, Self-motivation: It an intrinsic feeling thatpossess encourages one toself-confidence, complete tasks and achi self-motivation, problem solving, teamwork, time management, goal setting, decision-making, and stress anmanagement. internal drive or enthusiasm that prompts one to take initiative. 52
• Effectivemanagement: self-management helps achieving goals,mechanism managing one’s that time, reducing stress, a person Stress It isinthe coping enables an making individual to handle more organised, improving relationships, enhancing problem solving abilities, career advancement and instilling pressure or difficulties. discipline. IT Grade_9_Book.indb 52
iv
Chapter 5 • Data Acquisition
02-09-2024 15:31:11
153 • A self-confident person is ready to accept new challenges, willing to take risks, and has trust in their own Time management: It is the ability to successfully complete tasks within specified dea capabilities.
individual to minimise distractions and unproductive activities.
IT Grade_9_Book.indb 153
• A few qualities that are commonly associated with self-confident people are self-belief, hard work, commitment, and a positive attitude. 02-09-2024 15:32:17 • The three main factors that influence self-confidence are social, cultural, and physical. Things to Remember
• There are some factors that work against us and do not help us boost our confidence, like negative self-belief,
Part A_AI Grade 10.indb 4
on past mistakes, fear of failure, and negative surroundings. • dwelling Various self-management skills that an individual should possess are self-awareness 4/12/2025 3:55:48inPM • To build self-confidence, one should think positively, stay clean, hygienic and smart, find happiness small self-motivation, problem solving, teamwork, time management, goal setting, decisio
Q2. What is communication networking?
A2. Communication networking in computer systems refers to the exchange of data and information between computers or devices. Communication networking allows computers and devices to share resources, comm with each other, and work together regardless of their physical location.
Q3. Riya wants to backup her files to protect her data from potential loss. Name one device that she can use fo purpose. A3. External hard drive.
5
Chapter Checkup A Select the correct option.
Answer Key: Solutions to unsolved questions to support independent practice and learning.
1 Which of the following is NOT a primary operation of a computer? a Input
b Processing
c Storage
Answer Key
d Printing
2 Which of the following is an example of an input device? a Monitor
b Printer
c Keyboard
d Speaker
3 Which of the following refers to the saving and retrieval of data on a computer? a Input
d Control
1 The primary operations of a computer include input, processing, storage, and 2 A joystick is an example of an 3
A 1. d
b Output
c Storage
B Fill in the blanks with the most suitable words.
.
B 1. Output
device.
is a type of storage device that uses flash memory to store data.
4 A
is a network that connects computers and devices around the globe.
C State whether the following is True or False. Correct the statements that are false.
2. c
3. c
2. Input
3. SSD
C 1. True.
1 Processing refers to the manipulation of data by a computer.
2 A computer network does not allow computers and devices to share resources. 3 Input is the process of entering data and commands into a computer. 4 A webcam is an example of an input device.
4. WAN
6
List of Practicals
2. False. A computer network allows computers and devices to share resources.
D Answer the following questions. (Solved)
Write a Python program to solve the following problems. PRINT
Q1. What are storage operations in a computer system?
A1. Storage operations are crucial for saving and retrieving data. It involves reading and writing data to and from these storage devices.
1. To print personal information like Name, Father’s Name, Class and School Name.
3. True.
Q2. What is communication networking?
A2. Communication networking in computer systems refers to the exchange of data and information between two or more computers or devices. Communication networking allows computers and devices to share resources, communicate with each other, and work together regardless of their physical location.
Q3. Riya wants to backup her files to protect her data from potential loss. Name one device that she can use for this purpose.
2. To print the following patterns using multiple print commands:
4. True.
A3. External hard drive.
Answer Key 3. To find the square of number 7.
A 1. d
2. c
3. c
B 1. Output
2. Input
3. SSD
4. To find the sum of the numbers 15 and 20.
4. WAN
C 1. True.
5. To convert length given in kilometres into metres.
2. False. A computer network allows computers and devices to share resources.
6. To print the table of 5 up to five terms.
3. True.
83
Chapter 10 • Basic Computer Skills
7. To calculate Simple Interest if the principle_amount = 2000, rate_of_interest = 4.5 and time = 10.
Chapter 10 • Basic Computer Skills
4. True.
8. To print “Good” 10 times 9. To print concatenated strings given str1 = “Welcome to” str2 = “the World of Python” 10. To convert the time given in hours into minutes and seconds.
IT Grade_9_Book.indb 83
02-09-2024 15:31:42
INPUT
List of Practicals: Recommended list of practical questions for active learning. IT Grade_9_Book.indb 83
11. To calculate area and perimeter of a rectangle 12. To calculate area of a triangle with base and height
List of Practicals
13. To calculate average marks of 3 subjects 14. To calculate discounted amount with discount % 15. To calculate surface area and volume of a cuboid 16. To calculate speed given, distance traveled and time taken 17. To calculate circumference and area of a circle given its radius
Write a Python program to solve the following problems.
7
18. To calculate volume of a cube given the length of its side 19. To calculate sum of the first N natural numbers
20. To calculate profit given cost price and selling price
1. To print personal information like Name, Father’s Name, Class and School Name.
379
List of Practicals
2. To print the following patterns using multiple print commands:
Viva-Voce Questions
IT Grade_9_Book.indb 379
1. Give any one disadvantage of AI.
02-09-2024 15:35:45
Ans. Overdependence on AI makes humans trust AI recommendations more than their own cognitive skills. 2. What is NLP?
Ans. NLP stands for Natural Language Processing (NLP). It is a domain of AI that helps computers understand and respond to us when we talk to them. 3. What is testing data?
Ans. Once a model is trained, it needs to be checked to see how well it works with new information. This is done with a different set of data that was not used during training, known as testing data or validation data. 4. What fundamental questions does the 4 Ws canvas answer?
Viva-Voce Questions: Reference list of viva questions Viva-Voce 3.Questions To find the square of number 7.
Ans. The 4 Ws canvas focuses on answering 4 fundamental questions: Who, What, Where and Why. 5. What is the full form of APIs?
Ans. The full form of APIs is Application Programming Interfaces. 6. What is a box plot graph?
Ans. A box plot graph is a graph that summarises the distribution of a dataset by showing the median, quartiles, and potential outliers.
to better prepare for oral examinations.
4. To find the sum of the numbers 15 and 20.
7. What is AI modelling?
5. To convert length given in kilometres into metres.
Ans. AI modelling refers to the process of creating algorithms, known as models, that can1. learnGive from data anyand one disadvantage of AI. make predictions or decisions based on new data.
Ans. Overdependence on AI makes humans trust AI recommendations more than their skills. 6. To print the table ofown 5 upcognitive to five terms.
8. How is prediction different from reality?
Ans. Prediction is the output given by the machine whereas reality is the actual situation in field at the time the 2.theWhat is NLP? prediction was made.
7. To calculate Simple Interest if the principle_amount = 2000, rate_of_interest = 4.5 and time = 10.
Ans. NLP stands for Natural Language Processing (NLP). It is a domain of AI that helps computers understand and respond to us when we talk to them. 8. To print “Good” 10 times
9. Give an example of False Positive.
Ans. The machine predicts it is raining, but it is not actually raining. 10. Define deployment.
3. What is testing data?
9. To print concatenated strings given
Ans. Deployment is the last stage in the AI project cycle where you implement your solution, in a real-world scenario, based on the model you have selected. Ans. Once a model is trained, it needs to be checked to see how well it works with new information. This is done
= “Welcome to” or validation data. with a different set of data that was not used during training,str1 known as testing data
11. State any one ethical principle for AI.
Ans. AI should support and enhance human autonomy and decision-making. 12. State any one way to reduce AI bias.
4. What fundamental questions does the 4 Ws canvas answer? str2 = “the World of Python”
13. How can multi-factor authentication (MFA) ensure cyber security?
5. What is the full form of APIs?
14. Define data literacy.
6. What is a box plot graph?
Ans. One way to reduce AI bias is to collect diverse data by ensuring that training data represents the variety of the Ans. The 4 Ws canvas focuses on answering 4 fundamental questions: Who, What, Where and Why. population without supporting existing biases.
10. To convert the time given in hours into minutes and seconds.
Ans. Applying multi-factor authentication (MFA) adds an extra layer of security by requiring users to provide Ans. The full form of APIs is Application Programming Interfaces. additional credentials, such as a onetime password (OTP) sent to their mobile device.
INPUT
Ans. The ability to understand, interpret and communicate with data is known as data literacy.
11. To calculate area and perimeter of a rectangle
Ans. The three domains of AI are Computer Vision (CV), Natural Language Processing (NLP), and Statistical Data. and potential outliers.
12. To calculate area of a triangle with base and height
8
Projects Project 1: Create an AI model using Teachable Machine
Ans. A box plot graph is a graph that summarises the distribution of a dataset by showing the median, quartiles,
15. Name the three domains of AI.
7. What is AI modelling?
13. To calculate average marks of 3 subjects
8. How is prediction different from reality?
15. To calculate surface area and volume of a cuboid
Teachable Machine is a web-based tool that makes the creation of machine learning models fast, easy, and accessible to everyone. It helps train a computer to recognise images, sounds, and poses. Follow the steps below to get started working on this application: 1. Visit this link: https://teachablemachine.withgoogle.com/
Ans. AI modelling refers to the process of creating algorithms, known as models, that can learn from data and 381 14. To calculate discounted amount with discount % make predictions or decisions based on new data.
Viva-Voce Questions
This will direct you to a web page as shown.
15:35:45 Ans. Prediction02-09-2024 is the output given by the machine whereas reality is the actual situation in thedistance field at the time theand time taken 16. To calculate speed given, traveled prediction was made.
IT Grade_9_Book.indb 381
Projects: Detailed projects that promote the application of knowledge.
17. To calculate circumference and area of a circle given its radius
9. Give an example of False Positive.
Projects
Ans. The machine predicts it is raining, but it is not actually raining. 18. To calculate volume of a cube given the length of its side 10. Define deployment.
19. To calculate sum of the first N natural numbers
Ans. Deployment is the last stage in the AI project cycle where you implement your solution, in a real-world 20. To calculate profit given cost price and selling price scenario, based on the model you have selected.
Project 1: Create an AI model using Teachable Machine
11. State any one ethical principle for AI.
Teachable Machine is a web-based tool that makes the creation of machine learning models fast, easy, and Ans. AI should support and enhance human autonomy and decision-making. accessible to everyone. It helps train a computer to recognise images, sounds, and poses. 12. State any one way to reduce AI bias. List of Practicals Ans. One way to reduce AI bias is to collect diverse data by ensuring that training data represents the variety of the Follow the steps below to get started working on this application: population without supporting existing biases.
379
13. How can multi-factor authentication (MFA) ensure cyber security? 1. Visit this link: https://teachablemachine.withgoogle.com/
9
Ans. Applying multi-factor authentication (MFA) adds an extra layer of security by requiring users to provide IT Grade_9_Book.indb 379 This will direct you to a web page as shown. additional credentials, such as a onetime password (OTP) sent to their mobile device.
Sample Paper – 1
2. Click on the Get Started button.
02-09-2024 15:35:45
3. From the window that appears, you can use any of the following options to teach your machines:
14. Define data literacy.
• Images: To teach a model to classify images using files on your system or your webcam. • Sounds: To teach a model to classify audio by recording short sound samples.
Ans. The ability to understand, interpret and communicate with data is known as data literacy.
• Poses: To teach a model to classify body positions or poses using image files on your system or striking poses in your webcam.
15. Name the three domains of AI.
Artificial Intelligence (SUBJECT CODE - 417)
Try to create the image project, sound project and pose project by uploading pictures or using a webcam or using a microphone.
Ans. The three domains of AI are Computer Vision (CV), Natural Language Processing (NLP), and Statistical Data.
Class IX (Session 2024-2025) Max. Time: 2 Hours
Max. Marks: 50
General Instructions: 1.
384
Please read the instructions carefully.
2.
This Question Paper consists of 21 questions in two sections: Section A & Section B.
3.
Section A has Objective type questions, whereas Section B contains Subjective type questions.
381
Viva-Voce Questions
4.
Out of the given (5 + 16 =) 21 questions, a candidate has to answer (5 + 10 =) 15 questions in the allotted (maximum) time of 2 hours.
5.
IT Grade_9_Book.indb 384
02-09-2024 15:35:46
All questions of a particular section must be attempted in the correct order.
6.
SECTION A - OBJECTIVE-TYPE QUESTIONS (24 MARKS): i.
ii.
This section has 05 questions.
Marks allotted are mentioned against each question/part.
Sample Papers: Sample papers, adhering to CBSE Sample Paper – 1guidelines, to ensure preparedness for written exams.
IT Grade_9_Book.indb 381
02-09-2024 15:35:45
iii. There is no negative marking.
iv. Do as per the instructions given.
7.
SECTION B – SUBJECTIVE-TYPE QUESTIONS (26 MARKS):
i.
ii.
This section has 16 questions.
A candidate has to do 10 questions.
iii. Do as per the instructions given.
iv. Marks allotted are mentioned against each question/part.
SECTION A: OBJECTIVE-TYPE QUESTIONS Q1. Answer any 4 out of the given 6 questions on Employability Skills
(1 x 4 = 4 marks)
Artificial Intelligence (SUBJECT CODE - 417) Class IX (Session 2024-2025)
1. Tarun moved to Japan for a tech job but struggles with Japanese, the primary office language. This makes it hard for him to participate in meetings and follow instructions, affecting his performance. This is an example of: a. Interpersonal barrier
c. Organisational barrier
b. Physical barrier
d. Linguistic barrier
Max. Time: 2 Hours
Max. Marks: 50
General Instructions:
2. A non-profit organisation works to preserve forests and restore degraded land, promoting biodiversity and supporting local wildlife. This can be related to: a. Life on land
c. Affordable and clean energy
1.
b. Clean water and sanitation
2.
d. Reduced inequalities
3.
Please read the instructions carefully.
This Question Paper consists of 21 questions in two sections: Section A & Section B.
Section A has Objective type questions, whereas Section B contains Subjective type questions. 2. Click on the Get Started button.
3. “Can you help me with my homework after school?” What type of sentence is this? a. Interrogative c. Assertive
388
b. Exclamatory d. Imperative
4. 5. 6.
IT Grade_9_Book.indb 388
Out of the given (5 + 16 =) 21 questions, a candidate has to answer (5 + 10 =) 15 questions in the allotted 3. From the window that appears, you can use any of the following options to teach your machines: (maximum) time of 2 hours. • Images: All questions of a particular section must be attempted in the correct order. To teach a model to classify images using files on your system or your webcam. SECTION A - OBJECTIVE-TYPE QUESTIONS (24 MARKS): ii.
7.
• Sounds: To teach a model to classify audio by recording short sound samples.
• Poses: To teach a model to classify body positions or poses using image files on your system or striking poses in your webcam. Marks allotted are mentioned against each question/part. Try to create the image project, sound project and pose project by uploading pictures or using a webcam or using a iii. There is no negative marking. microphone. iv. Do as per the instructions given.
i.
This section has 05 questions. 02-09-2024 15:35:47
SECTION B – SUBJECTIVE-TYPE QUESTIONS (26 MARKS): i.
ii.
This section has 16 questions.
A candidate has to do 10 questions.
384
v
iii. Do as per the instructions given.
iv. Marks allotted are mentioned against each question/part. IT Grade_9_Book.indb 384
02-09-2024 15:35:46
SECTION A: OBJECTIVE-TYPE QUESTIONS Q1. Answer any 4 out of the given 6 questions on Employability Skills
Part A_AI Grade 10.indb 5
(1 x 4 = 4 marks)
1. Tarun moved to Japan for a tech job but struggles with Japanese, the primary office language. This makes it hard for him to participate in meetings and follow instructions, affecting his performance. This is an
4/12/2025 3:55:52 PM
Artificial Intelligence (Subject Code 417) Class – X (Session 2025–2026) Total Marks: 100 (Theory – 50 + Practical – 50) No. of Hours for Theory and Practicals
Max. Marks for Theory and Practicals
Unit 1: Communication Skills-II
10
2
Unit 2: Self-management Skills-II
10
2
Unit 3: Information and Communication Technology Skills-II
10
2
Unit 4: Entrepreneurial Skills-II
10
2
Unit 5: Green Skills-II
10
2
50
10
Units
PART A
Employability Skills
Total Subject Specific Skills Theory (hours)
Practicals (hours)
Marks
11
4
7
Unit 2: Advanced Concepts of AI Modelling
18
7
11
Unit 3: Evaluating Models
21
4
10
Unit 4: Statistical Data
–
28
–
Unit 5: Computer Vision
10
20
4
Unit 6: Natural Language Processing
20
07
8
10
–
PART B
Unit 1: AI Project Cycle and Ethical Frameworks
Unit 7: Advance Python Total
160
40
PART D
PART C
Practical & Project Work Practical File (minimum 15 programs)
15
Practical Examination Unit 4: Statistical Data Unit 5: Computer Vision Unit 6: Natural Language Processing Unit 7: Advance Python
15
Viva Voice
5
Project Work / Field Visit / Student Portfolio (Anyone to be done)
10
Viva Voice (related to project work)
5 Total
GRAND TOTAL
50 210
100
vi
Part A_AI Grade 10.indb 6
4/12/2025 3:55:52 PM
Contents Part A • Employability Skills UNIT 1
Communication Skills-II
UNIT 2
Self-management Skills-II
UNIT 3
Information and Communication Technology Skills–II
UNIT 4
Entrepreneurial Skills–II
1 Methods of Communication ������������������������������������������������������������������������������������������������������������������������� 3 2 Understanding Feedback ����������������������������������������������������������������������������������������������������������������������������14 3 Barriers to Effective Communication ��������������������������������������������������������������������������������������������������������25 4 Principles of Effective Communication ������������������������������������������������������������������������������������������������������32 5 Basics of Writing Skills ���������������������������������������������������������������������������������������������������������������������������������39 Unit Reflection �������������������������������������������������������������������������������������������������������������������������������������� 50 6 Stress Management �������������������������������������������������������������������������������������������������������������������������������������56 7 Ability to Work Independently ��������������������������������������������������������������������������������������������������������������������64 Unit Reflection �������������������������������������������������������������������������������������������������������������������������������������� 72 8 Operating Systems and File Organisation ������������������������������������������������������������������������������������������������76 9 Care and Maintenance of Computer ���������������������������������������������������������������������������������������������������������87 Unit Reflection �������������������������������������������������������������������������������������������������������������������������������������� 97
10 Exploring Enterpreneurship ���������������������������������������������������������������������������������������������������������������������101 Unit Reflection ������������������������������������������������������������������������������������������������������������������������������������ 112
UNIT 5
Green Skills–II
11 Sustainable Development ������������������������������������������������������������������������������������������������������������������������115 Unit Reflection ������������������������������������������������������������������������������������������������������������������������������������ 123
Part B • Artificial Intelligence UNIT 1
AI Project Cycle and Ethical Frameworks
UNIT 2
Advance Concepts of AI Modelling
1 AI Project Cycle �������������������������������������������������������������������������������������������������������������������������������������������129 2 AI and Its Domains �������������������������������������������������������������������������������������������������������������������������������������135 3 Ethical Frameworks for AI �������������������������������������������������������������������������������������������������������������������������146 4 Bioethics ������������������������������������������������������������������������������������������������������������������������������������������������������158 Unit Reflection ������������������������������������������������������������������������������������������������������������������������������������ 164
5 AI, ML, and DL ���������������������������������������������������������������������������������������������������������������������������������������������168 6 Data Terminologies ������������������������������������������������������������������������������������������������������������������������������������174 7 Introduction to Modelling �������������������������������������������������������������������������������������������������������������������������180 8 Types of Learning-Based AI Models ���������������������������������������������������������������������������������������������������������186 9 Artificial Neural Networks �������������������������������������������������������������������������������������������������������������������������199 10 How AI Makes Decisions ����������������������������������������������������������������������������������������������������������������������������204 Unit Reflection ������������������������������������������������������������������������������������������������������������������������������������� 216 vii
Part A_AI Grade 10.indb 7
4/12/2025 3:55:52 PM
UNIT 3
Evaluating Models
UNIT 4
Statistical Data (To be assessed through practicals)
UNIT 5
Computer Vision
UNIT 6
Natural Language Processing
UNIT 7
Advance Python (To be assessed through practicals)
11 Model Evaluation ����������������������������������������������������������������������������������������������������������������������������������������222 12 Accuracy and Error �������������������������������������������������������������������������������������������������������������������������������������228 13 Evaluation Metrics for Classification ��������������������������������������������������������������������������������������������������������233 Unit Reflection ������������������������������������������������������������������������������������������������������������������������������������� 249 14 Data Science and Its Applications ������������������������������������������������������������������������������������������������������������253 15 No-Code AI for Statistical Data �����������������������������������������������������������������������������������������������������������������262 16 Important Concepts in Statistics ��������������������������������������������������������������������������������������������������������������270 Unit Reflection ������������������������������������������������������������������������������������������������������������������������������������� 290 17 Computer Vision and Its Applications �����������������������������������������������������������������������������������������������������294 18 Understanding CV Concepts ���������������������������������������������������������������������������������������������������������������������302 19 No Code AI Tools** ������������������������������������������������������������������������������������������������������������������������������������312 20 Image Features** ���������������������������������������������������������������������������������������������������������������������������������������331 21 Understanding Convolution Operator** ������������������������������������������������������������������������������������������������335 22 Introduction to CNN** ������������������������������������������������������������������������������������������������������������������������������341 Unit Reflection ������������������������������������������������������������������������������������������������������������������������������������� 349 23 Features of Natural Languages ����������������������������������������������������������������������������������������������������������������353 24 Stages of NLP ����������������������������������������������������������������������������������������������������������������������������������������������362 25 Chatbots ������������������������������������������������������������������������������������������������������������������������������������������������������367 26 Text Processing �������������������������������������������������������������������������������������������������������������������������������������������375 27 Code and No-Code NLP Tools** ���������������������������������������������������������������������������������������������������������������387 28 Sentiment Analysis** ���������������������������������������������������������������������������������������������������������������������������������392 Unit Reflection ������������������������������������������������������������������������������������������������������������������������������������� 405 29 Jupyter Notebook ���������������������������������������������������������������������������������������������������������������������������������������410 30 Introduction to Python ������������������������������������������������������������������������������������������������������������������������������425 31 Python Basics ����������������������������������������������������������������������������������������������������������������������������������������������463 Unit Reflection ������������������������������������������������������������������������������������������������������������������������������������� 477 Assertion Reasoning Questions ���������������������������������������������������������������������������������������������������������������� 482 Competency-Based Questions ������������������������������������������������������������������������������������������������������������������ 489
List of Practicals Viva-Voce Questions
Part C • Practical Work
499 503
Part D • Project Work
Projects 508 Sample Paper 1 512 Sample Paper 2 518 Answer Key to Assessment 525 ** Note: These chapters are to be assessed through practicals.
viii
Part A_AI Grade 10.indb 8
4/12/2025 3:55:52 PM
Part A
Employability Skills
Part A_AI Grade 10.indb 1
4/12/2025 3:55:52 PM
Part A_AI Grade 10.indb 2
4/12/2025 3:55:52 PM
Unit 1 • Communication Skills-II
1 Methods of Communication
C
ommunication is the process of transmitting information from one individual or group to another, using various methods and media. People talk, write, or show visuals to communicate information about their ideas, thoughts, feelings, or send other messages to each other. Communication is a fundamental aspect of human interaction and is essential for acquiring knowledge and developing relationships. Communication can be interpersonal, i.e., between two people: communal (within a group) or broadcast (one person to multiple people or groups). Good communication does not only mean sending a message, but also making sure others understand what is being said or shown. In this chapter, we will learn about the various types of communication, their functions, and their use in our daily lives. Three Forms of Communication Forms of Communication
Verbal
Non-verbal
Visual
Did You Know? Pigeons were used as messengers in ancient times. Messages were written on paper and attached around the necks of pigeons who were trained to send and receive messages. Even in the inaugural Olympics in ancient Greece, pigeons were used to send information about the results to an athlete’s home town.
3
Part A_AI Grade 10.indb 3
4/12/2025 3:55:53 PM
Verbal Communication
Verbal communication is the process of transmitting ideas and information about thoughts, feelings, ideas, and messages to another person. Ideas and information can be expressed through the use of words. Verbal communication is a vital aspect of human interaction, enabling individuals to convey ideas, build relationships, and function effectively in both personal and professional settings. We use verbal communication to tell stories, ask questions, and share thoughts. We also write down to explain or pass any information. For example, when you talk to your friends, family, or teachers, you are using verbal communication to share what is on your mind. Verbal communication can be further divided into four major categories: 1. Oral communication 2. Written communication
Remember
Improving oral communication takes time. Be patient with yourself and keep practicing. The more you practice, the more comfortable and skilled you will become at talking and sharing your thoughts with others.
3. Intrapersonal communication 4. Interpersonal communication
Type of Verbal Communication
Oral communication
Explanation
Examples
It is a form of verbal communication that involves transmitting information through spoken words and sentences. It is the most common medium of communication. Effective oral communication is a two-way process, which includes speaking and listening. Mechanical devices such as a telephone, loud speakers, or tape recorders can be used to communicate messages orally. It also includes attending lectures, classroom teaching and learning, and giving presentations in a meeting. When communicating orally, the speaker needs to give clear, concise, and complete information.
A conversation with a friend, family, or a colleague while giving a presentation or speech are examples of oral communication.
(continued...)
4
Part A_AI Grade 10.indb 4
4/12/2025 3:55:55 PM
Type of Verbal Communication
Explanation
Examples
Written communication
It is a form of communication using written words. It is a formal and structured mode of communication that uses a written language to record and transmit information. It involves using symbols such as alphabets and numbers to create messages that others can read. It is a more reliable source of communication than speech. Written communication is used extensively for official work. It creates a permanent record that can be referred to and reviewed over time. Such communication is valuable for documentation, legal, and maintaining historical records purposes.
Writing an email, letter, or writing on the social media, writing reports, articles, etc.
Intrapersonal communication
Intrapersonal communication is an essentially private communication that happens entirely within our own minds. It is defined as a dialogue with oneself. It occurs when one reflects on situations, makes choices, or analyses one’s emotions and thoughts. This type of communication also involves rehearsing a dialogue or speech within their mind or writing a personal diary.
Writing about one’s innermost thoughts, feelings, and emotions in a diary; debating with oneself about a choice or a situation.
Interpersonal communication
Interpersonal communication takes place when individuals effectively interact, exchange information, and connect with others in various personal, social, and professional settings. It involves two or more people. It is a one-on-one conversation in which the individuals are constantly changing their roles as the sender and the receiver.
Board meetings, discussion between friends, team meetings, group discussions, etc.
Interpersonal Communication Is Further Divided Into: Type of Interpersonal Communication
Explanation
Examples
This type of communication occurs when two people interact with each other.
A special talk between two friends or two people working together. They take turns between talking and listening, and it is a bit more personal and private than talking in a big group.
It is the process of exchanging ideas, information, and opinions among a small number of people who are working together or discussing a specific topic. Each participant takes part in the discussion.
Study groups, board meetings, press conferences, and team meetings.
It is a form of communication where an individual addresses a larger audience. This communication involves delivery of information, ideas, opinions, or messages to a group of people, usually in a structured and organised manner.
A speech delivered by a politician or a leader in a meeting.
Face-to-face communication
Small group communication
Public communication
Chapter 1 • Methods of Communication
Part A_AI Grade 10.indb 5
5
4/12/2025 3:55:55 PM
Advantages of Verbal Communication
1. Helps in Understanding: When we talk to each other, we can quickly explain things and understand each other better. If we are confused, we can ask questions right away to clear things up. 2. Effective Sharing: Verbal communication helps us share how we feel. Our tone of voice can show if we are happy, sad, excited, or angry. This communication helps others know how we are doing. 3. Reduce the Likelihood of Misunderstandings: When we express our thoughts and receive feedback quickly, there are very less chances of misunderstanding. 4. Reach a Larger Audience: Through verbal communication, we can reach a large number of people and convey our message. 5. Building Rapport: Verbal communication fosters connections and builds rapport among individuals. Engaging in meaningful conversations helps establish and strengthen personal and professional relationships. 6. Negotiating and Convincing: It is useful when you are trying to agree on something or get others to see things your way. 7. Social Interaction: In social settings, conversations and verbal exchanges are fundamental for networking, socialising, and building social connections.
Tips to Improve Verbal Communication
1. Practice speaking every day with as many people as you can. 2. Practice good listening skills when the other person is speaking to you. 3. Speak slowly and use clear words so that your ideas are conveyed easily. 4. Use gestures while talking, and maintain eye contact, tone, volume, and pace. 5. Plan what you want to write and speak ahead of time. 6. Proofread your writing, before you deliver it. 7. Record your speech so that you can later analyse how you are speaking. 8. Stay confident while speaking. 9. Be clear and simple so that your idea reaches everyone.
10. Use appropriate vocabulary and sentence structure in your writing.
Non-verbal Communication
Non-verbal communication refers to the messages and information that are conveyed without using words or spoken languages; it includes expressing thoughts, ideas, and feelings through gestures, facial expressions, and body language. Non-verbal communication can effectively convey thoughts, emotions, and feelings even though no words are used. Non-verbal communication is important in the classroom and at professional places because it helps understand the mood and thoughts of another person.
6
Part A_AI Grade 10.indb 6
4/12/2025 3:55:55 PM
Types of Non-verbal Communication Type
Explanation
Examples
Gestures are intentional and often include symbolic physical movements, postures, or actions made by individuals, using their hands, arms, or other parts of the body.
Showing your palm when you want to stop something.
Gestures
We use our body parts to express our thoughts. Various cultures may have unique interpretations for some gestures.
Facial expression
Facial expressions are perhaps the most noticeable form of non-verbal communication.
Raising an eyebrow when you are not sure about something.
They include smiles, frowns, raised eyebrows, and other movements of the face.
Opening your mouth wide to show how surprised you are.
Eye contact refers to the act of individuals making direct visual connection by looking into each other’s eyes during a conversation or interaction. It involves using eyes to express, thoughts, or indicate attentiveness, interest, or disinterest.
Touch
Nodding your head when you want to confirm something.
It is when we use our faces to show our emotions and feelings such as sadness, happiness, confusion, or anger.
These expressions play an important role in expressing your thoughts. Eye contact
Showing numbers through your fingers.
Touch, as a form of non-verbal communication, involves physical contact among individuals, using various parts of the body, typically the hands or other body parts like the shoulders or back. Touch is a powerful means of conveying emotions, feelings, and intentions. It can have both positive and negative connotations, depending on the context and cultural norms.
Smiling to show you are happy.
Opening eyes wide indicates surprise. Looking into the speaker’s eyes indicates attentive listening.
A pat on the back or a reassuring hand on the shoulder can communicate empathy and support. A friendly handshake or a high-five can signify camaraderie and positive social interactions.
Space Space refers to the physical distance between two people. It plays a significant role in conveying messages and establishing relationships.
Space can include standing close to someone to indicate intimacy or maintaining distance to signal respect for personal boundaries.
(continued...)
Chapter 1 • Methods of Communication
Part A_AI Grade 10.indb 7
7
4/12/2025 3:56:00 PM
Type
Explanation
Examples
Paralanguage is a term used to describe the non-verbal elements of spoken communication that accompany speech.
For instance, a high-pitched, fastpaced voice may indicate excitement or nervousness, while a slow, lowpitched voice can convey seriousness or sadness.
Paralanguage
This includes the tone, pitch, volume, and speed of your voice.
Posture
Posture refers to the position and alignment of an individual’s body, including how they hold their head, torso, arms, and legs. It is a fundamental element of nonverbal communication and can convey a lot of information about a person’s emotions, attitudes, and intentions.
Leaning forward or tilting the head slightly can indicate interest and engagement in a conversation or an activity. A slouched or hunched posture can convey timidity, insecurity, or submission.
Tips to Practice Non-verbal Communication During an Interview 1. Facial Expression: Make sure that you look confident. Smile when needed and avoid showing too many expressions, such as confusion or fear on face. 2. Body Language: Always sit and stand straight. Do not bend because that can show tiredness or boredom. 3. Gestures: Gestures can be used to show affirmation while expressing yourself, but make sure that you do not move your hands. Always keep your hands straight on your lap or in a cross position. Never talk to anyone with your hands in the pockets. 4. Eye Contact: Always make eye contact with the other person. Never talk with your eyes down or never roll your eyes.
Advantages of Non-verbal Communication
1. Making Messages Clearer: It adds extra information to what you are saying with words. For example, you can nod your head while saying “yes” to make it clearer that you agree. 2. Quick Communication: It can be faster than talking. For example, you can signal “stop” with your hand without saying a word and people will understand. 3. Building Trust: It helps build trust and connection with others. When you look at them in the eyes or shake hands, it shows you are friendly and trustworthy. 4. Conveys Emotions and Feelings: Non-verbal communication is a powerful tool for expressing emotions and feelings. Facial expressions, body language, and the tone of voice can convey happiness, sadness, anger, fear, and other emotions, often more vividly than words alone.
8
Part A_AI Grade 10.indb 8
4/12/2025 3:56:04 PM
5. Support Verbal Communication: Non-verbal cues can complement, enhance, and reinforce verbal messages. These cues can help make the overall communication more effective and easier to understand. 6. Helpful for People with Disabilities: They can use gestures to convey their ideas and thoughts. Let us see how we can use verbal and non-verbal communication in our daily life. Salesperson: (with his hands folded, smiling and in a very soft tone) Good morning, madam! How can I help you? Customer: Good morning! I want to buy a washing machine for my home. Salesperson: (smiling widely) Oh! That is great, madam. We have many options available for washing machines. Which machine are you looking for, semiautomatic or automatic? Customer: (looking confused) Umm! What is the difference between the two? Salesperson: (pointing towards a machine) Madam, a semiautomatic machine washes clothes on its own, but you need to take out clothes and dry them separately in the dryer, so it requires a little more effort. Whereas, an automatic machine does not require your efforts, you just need to put clothes in it and start it. It will wash and dry them on its own. Customer: (opening her mouth wide) Wow! That is a major difference. Then, I would like to buy an automatic washing machine. Salesperson: (shaking his hands with the customer) Great choice, madam! Let us go to the billing department.
Visual Communication
Visual communication is the process of providing information, data, ideas, and thoughts through visuals and graphics. This type of communication uses only images, graphs, charts, videos, presentations, and other graphics to convey the message to other people or organisations. Visual communication remains the oldest form of communication as even before speaking, people used to provide information through symbols and pictures. All the ancient scripts are written in symbols and provide us with information about those times. It is the most effective way of passing information, as the human mind processes images quickly. Verbal communication can be made more effective and meaningful with the use of visual aids like posters, signs, diagrams, and images. Example: A speaker is conducting a seminar on ‘Following Road Safety’. His ideas and messages would be clearly communicated and perceived if he used standard signs related to traffic rules while communicating.
Chapter 1 • Methods of Communication
Part A_AI Grade 10.indb 9
9
4/12/2025 3:56:04 PM
Examples of Visual Communication
Under Construction
No Pets Allowed
No Parking
No Spitting
Food Not Allowed
No Camera or Mobile phones
Advantages of Visual Communication
1. Easy to Understand: Pictures make things simpler to understand, especially if the topic is complicated. They allow for the presentation of data and concepts in a clear and concise manner. 2. No Language Barrier: You don’t need to know a specific language to understand a picture. It’s like a universal language. 3. Easier to Remember: Visuals are often more memorable than text alone. People tend to retain and recall visual information better. 4. Keeps You Interested: Pictures and videos can keep your attention better than long paragraphs of text. 5. Quick Information: Visuals can convey information quickly. A well-designed infographic, for example, can convey a complex message in much less time than it would take to read a lengthy document. 6. Helps in Making Choices: Visuals can help you make decisions, especially when comparing different options. 7. Accessible to Everyone: Visuals can be adapted for people with disabilities, like those who can’t see well.
10
Part A_AI Grade 10.indb 10
4/12/2025 3:56:07 PM
Difference Between Verbal, Non-verbal, and Visual Communication Aspects
Verbal
Non-verbal
Visual
Definition
Information is shared in the oral or written form, using words.
Information and ideas are shared without words, using body gestures, space, or eye contact.
Information is shared through visuals, images, and graphics.
Usage
The best way to express thoughts in small and large groups, interpersonally.
It is used to express emotions and feelings. It is mostly used to supplement verbal communication.
It is suited for sharing information with versatile groups at a mass level.
Types
Written or oral.
Body language, facial expressions, gestures, and eye contact.
Graphics, visuals, images, videos, and symbols
Advantages
It is helpful for long discussions and for expressing thoughts in detail.
It saves time and expresses emotions directly.
It is a universal language and can be understood by everyone.
Disadvantages
It is time-consuming, and the wrong selection of words may lead to confusion.
It becomes difficult to get detailed information through non-verbal communication.
Some information cannot be explained through visuals and requires detailed explanation.
Examples
Letter, e-mail, speech, group discussions, etc.
Eye contact, posture, hand movements, etc.
Road signs, emoticons, etc.
ActivityTime Time Activity Activity 1: Pros and Cons of the Methods of Communication
(Group Work)
In a group of four to five students, discuss the three methods of communication. Highlight the advantages and disadvantages of all the three methods.
On an A3 size sheet, list down the pros and cons of the three methods of communication. When participating in a discussion, be an attentive listener and respect others’ opinion. Activity 2: Role Play—Common Body Language Mistakes
(Group Work)
Get into a small group of four-five students. Choose any one of the scenes of communication from daily life. Prepare a role play using verbal and non-verbal communication. Show a character using the wrong body language and the impact of the same on the other characters and the overall communication.
At the end of your performance, specify the common body language mistakes and the dos and don’ts of avoiding miscommunication because of the body language.
Encourage the other students in the class to list down the dos and don’ts of miscommunication because of body language. Scenes
1. Conversation at restaurant between a waiter and customer 2. Conversation between a salesperson and customer 3. Conversation between a teacher and student 4. Conversation between a parent and child 5. Conversation between friends at park
Chapter 1 • Methods of Communication
Part A_AI Grade 10.indb 11
11
4/12/2025 3:56:07 PM
Chapter Checkup A Select the correct option.
1 Which of the following is an example of visuals?
a E-mail b Speech c Eye contact
d Graphics
2 If we are using hand gestures to deny something, then which of the following are we using? a Verbal communication c Visual communication
b Non-verbal communication d All of these
3 Which of the following is not an advantage of verbal communication? a It helps in understanding. c It reaches a larger audience.
b It helps in effective sharing. d It does not use words.
4 Which of the following can be used to communicate with one or many individuals living at various locations? a Face-to-face conversation
b An email
c Posters d Diary entry
B Fill in the blanks with the most suitable words. 1 2
,
, and visual are the three methods of communication.
is used to describe the non-verbal elements (tone, pitch, and volume) in a spoken communication that accompanies speech.
3 Eye contact is an example of
.
4 While talking to someone, we should always use
to explain it better.
C State whether the following statements are True or False. Correct the statements that are false.
1 Use of non-verbal and visual communication for a verbal message makes the communication more complex. 2 Graphics are examples of non-verbal communication.
3 Communication is the process of exchanging information, ideas, thoughts, and feelings. 4 Symbols are the oldest form of communication. D Answer the following questions. (Solved) Q1. What is communication?
A1. Communication is the process of transmitting information from one individual or group to another, using various methods and mediums. People talk, write, or show visuals to communicate information about their ideas, thoughts, feelings, or send other messages to each other. Communication is a fundamental aspect of human interaction and is essential for acquiring knowledge and developing relationships.
Communication can be interpersonal, i.e., between two people; communal (within a group); or broadcast (one person to multiple people or groups). Good communication does not only mean sending a message but also making sure others understand what’s being said or shown.
Q2. What are the three methods of communication? A2. There are three methods of communication:
Verbal communication: Verbal communication is the process of transmitting ideas using information about thoughts, feelings, ideas, and messages with another person. Thoughts can be expressed through the use of words. We speak to each other to tell stories, ask questions, and share thoughts. We also write down to explain or convey any information. Examples: Writing an email, group discussions, public speaking, etc. Non-verbal communication: It is the process of expressing thoughts and messages without using words. Non-verbal communication includes gestures, body language, eye contact, and postures to convey feelings.
Examples: Using eye contact to accept or deny something, using hands to show numbers, etc.
12
Part A_AI Grade 10.indb 12
4/12/2025 3:56:08 PM
Visual communication: Visual communication is the oldest form of communication; it includes symbols and graphics to communicate. It is less time-consuming and helps people understand things even if they are not familiar with the language. Any person can understand the symbols and pictures, and can easily find out the meaning.
These three are the methods of communication, which helps us in our day-to-day life and make communication easier. Q3. Mridul is a student of class 10. He needs to take a workshop on ‘Say No to Bullying’. He has prepared his speech for the workshop. His friends have been advising him to use visual aids to make his presentation more impactful, but Mridul is not convinced. If you were Mridul’s friend, what would you say to convince him into using visual aids to communicate his message? A3. If I were Mridul’s friend, I would state the advantages of using visual communication as a support to the verbal message that he would be using during his workshop. I would try to make him understand that his speech can be made more effective and meaningful with the use of visual aids like posters, signs, diagrams, images, and so on.
• Easy to understand: Pictures make things simpler to understand, especially if the topic is complicated. They allow for the presentation to be clear and concise. • Easier to remember: Visuals are often more memorable than the text alone. People tend to retain and recall visual information better. • Keeps you interested: Pictures and videos can keep your attention better than long speeches.
• Quick information: Visuals can convey information quickly. A well-designed infographic, for example, can convey a complex message in lesser time. • Helps in making choices: Visuals can help you make decisions, especially when comparing multiple options.
Answer Key A 1. d
2. b
3. d
B 1. Verbal, non-verbal
4. b 2. Para-language
3. Non-verbal communication
4. gestures
C 1. False. Use of non-verbal and visual communication for a verbal message makes the communication more effective. 2. False. Graphics are examples of visual communication. 3. True 4. True
Chapter 1 • Methods of Communication
Part A_AI Grade 10.indb 13
13
4/12/2025 3:56:08 PM
Unit 1 • Communication Skills-II
2 Understanding Feedback T
he art of communication involves more than selecting the right words or mediums. Communication is a dynamic process that encompasses not only the transmission of information but also the reception, interpretation, and response to that information. Thus, it is important for us to delve into an understanding of the elements within the communication cycle, as well as acknowledge the crucial role that feedback plays within it.
Communication Cycle
Communication is the process of transmitting information from one source to another through messages using the mediums of speech, writing, gestures, visuals, or symbols. We have an English test tomorrow. I thought I would inform you as you were not in class today.
Tests are a useful tool for understanding what you have already learnt. Do not worry about it, please. You will do well, I am confident.
Thank you for informing me about this.
Thank you for believing in me. Your confidence in me helped me overcome my stress and do well in the test.
Okay, I will try not to worry.
You’re always welcome.
14
Part A_AI Grade 10.indb 14
4/12/2025 3:56:09 PM
These examples serve as an illustration of the communication process, in which one person, known as the sender, sends a message to another person (or group of people), known as the receiver. When the receiver receives the message, they usually acknowledge it in two ways, either verbally, as illustrated in the above examples, with a sound like “hmm”, or non-verbally, for example, with a nod. This acknowledgement can be termed as feedback. Feedback assures the sender that the message has been received as intended and completes the cycle of communication.
Elements of a Communication Cycle Sender
A sender is a person who initiates a communication by creating and sharing a message with the intention of conveying information, ideas, or thoughts to another person or a group.
Message
A message refers to information, ideas, or thoughts that a sender wants to communicate to a receiver. The message can be in the form of spoken or written words, images, gestures, or any other means of expression.
Encoding
Encoding is a process of converting a sender’s thoughts and ideas into a form that can be understood by others. This process involves choosing relevant words, arranging sentences, and using symbols to create a message that can be effectively transmitted.
Channel
A channel is a means or method through which a message is transmitted from a sender to a receiver. The channel can include verbal communication, written communication, visual presentations or electronic mediums, like email or video calls.
Receiver
A receiver is an individual or a group who receives and interprets a message sent by a sender. The receiver is responsible for understanding and making sense of the information conveyed.
Decoding
Decoding is a process by which a receiver interprets and understands a message sent by a sender. This process involves analysing the words, symbols, and context to derive the intended meaning.
Feedback
Feedback is the response or reaction provided by a receiver to a sender’s message. This response helps the sender understand the effectiveness of their communication and whether the intended message was understood accurately. Communication Cycle
It is important for effective communication that the sender encodes the message and the receiver decodes the message in the manner it is intended. Encoding means that the sender shares information in a way that is understandable to the receiver, such as using a shared language understood by both the sender and the receiver. Decoding means that the receiver accurately understands the meaning of the information sent by the sender. Chapter 2 • Understanding Feedback
Part A_AI Grade 10.indb 15
15
4/12/2025 3:56:10 PM
Look at the illustration of communication cycle. It shows a communication cycle which involves a sender and a receiver of information. The sender encodes the message and sends it to the receiver who decodes the message and responds to it appropriately. The effectiveness of a communication cycle depends on how long it takes for the feedback to be received by the initial sender. In general, the faster the response, the more effective the communication cycle is.
Hello, I am Amit.
Hi Amit, nice to meet you.
The sender or receiver of the information needs to take the necessary time to analyse the information being transmitted to them in order to respond faster. The following examples illustrate this: Example 1 Imagine that your teacher assigns you a challenging math problem-solving exercise. The instructions are to carefully read the problem and then solve it step by step. The correct approach will be to follow your teacher’s instructions, read the problem carefully, analyse the given data, and solve the problem step by step. However, if you are impatient or overconfident, you may skip the reading part and immediately start attempting the problem. Because of this, you may find yourself struggling to grasp the problem’s requirements and end up making mistakes in your calculations. This will eventually take you more time to rectify the errors.
Example 2 Your manager Rakesh has assigned you a complex report to analyse and provide insights on. He has instructed you to thoroughly review the report, extract relevant data, and then offer your analysis. The correct approach will be to follow your manager’s guidance and manage your time well to finish the task appropriately. However, if you are not provided sufficient time and are assigned a tight deadline, you can end up skimming through the report quickly and immediately starting with your analysis. Unfortunately, without a clear understanding of the report’s content, your insights may lack depth and you may even misinterpret some data. These issues will force you to revise your work multiple times and spend more time than expected. Both the examples showcase the importance of taking time to understand and process the information properly before responding. Therefore, for a communication to be effective, the feedback should be timely and appropriate.
Feedback
Error Alert! It is a misconception that immediate feedback is always better. Effective feedback requires thoughtful interpretation and understanding.
Feedback is a crucial element of a communication cycle. It is the response or reaction of the receiver upon perceiving or understanding the message. By receiving the receiver’s response, the sender gains understanding which leads to further actions, thereby completing the communication cycle. Feedback allows the roles of sender and receiver to be interchanged.
16
Part A_AI Grade 10.indb 16
4/12/2025 3:56:10 PM
Let us understand this with the help of the following examples: Example 1 Raj has written a creative story and has shared it with his classmates. They offer their thoughts and opinions on his story’s characters, plot, and overall theme. Their responses and suggestions help him in understanding how his writing is being perceived and guide him in making improvements.
Example 2 Tina presents a new idea during a brainstorming session at her workplace. Her colleagues listen attentively and then provide their insights and suggestions on how the idea can be implemented. Their feedback helps her refine her idea and consider various angles for its execution. In each of these examples, feedback is the response or input received from others after conveying something, whether it is a piece of writing, an idea, a performance, or a project. This feedback is essential for understanding the effectiveness and impact of your communication and making necessary adjustments to improve its quality. Let us break down these examples into the elements of the communication cycle—the sender, receiver, feedback, and future action: Example
Sender
Receiver
Feedback
Future Action
1
Raj
Classmates
Opinions and suggestions on creative writing
Makes improvements to the story based can be rephrased.
2
Tina
Colleagues
Insights and suggestions on the implementation of her idea
Refines the idea and explores various aspects.
Feedback can be negative or positive. Understanding various types of feedback allows us to refine our communication and life skills.
Positive Feedback
• Positive feedback is an indicator to the sender of the message to continue following the mode of the communication. • It helps increase the confidence of the sender and motivates the person to excel. • For example: “The speech was outstanding. Keep it up!”
Negative Feedback
• Negative feedback is an indicator to the sender of the message that there is a need to modify or change the mode of communication as their ideas are not being communicated effectively. • This may lower the sense of self-esteem and morale of the sender.
• For example: “The pace was too fast to understand. I wish you went a little slow and understood the needs of your audience”.
Both positive and negative feedbacks provide valuable insights for enhancing communication. Positive feedback encourages you to continue with the effective methods, whereas negative feedback requires adjustments for better clarity and comprehension.
Think and Tell Think of the last time you received feedback, and it helped you to improve the quality of your work.
Importance of Feedback
Feedback is an important component of effective two-way communication. Feedback needs to be heard, interpreted, and accepted for ensuring that the process of communication is smooth and clear. The sender gets an opportunity
Chapter 2 • Understanding Feedback
Part A_AI Grade 10.indb 17
17
4/12/2025 3:56:11 PM
to assure that his message was received as intended. Feedback is also essential to fill any gaps between what is understood and what the actual aim was. Example 1 Imagine that your friend Rashmi is explaining a complex science concept to the entire class. As she proceeds, she senses some confusion among her classmates and asks if they need further clarification. Their questions and responses provide her with feedback that the concept needs more explanation, prompting her to simplify her explanation and provide additional examples. These are various ways in which feedback is important: Ways in Which Feedback Is Important
Why and How?
Example
I magine that a sales team is presenting the Annual Sales Report to all their colleagues. There were a lot of numbers When feedback highlights these gaps, it helps and percentages involved which resulted individuals recognise where their message may not in a lot of confusion and ambiguity. have been clear or well-received. Seeing such confused responses of This insight becomes a starting point for problemtheir colleagues, the sales team took solving as the receiver of the feedback can address corrective measures and addressed their these issues and find ways to convey information more colleagues’ all queries. effectively. eedback acts as a valuable tool for identifying areas F of confusion or misunderstanding in communication.
Basis of problem-solving
eedback encourages effective listening as it provides F an immediate indication of whether the message was accurately received and comprehended by the audience. Effective listening
hen someone receives feedback that aligns W with their intended message, it signifies that their communication was successful.
n the other hand, if the feedback indicates confusion, O it prompts them to reevaluate their message and make necessary adjustments.
Motivation
Performance improvement
I magine a student explaining a historical event to their classmates. If their classmates respond with relevant questions and thoughtful comments, it shows that the message was well understood. On the other hand, if the classmates are puzzled, the student knows they need to provide more context or clarification.
ositive feedback can be a powerful motivator. When P someone receives praise for their communication skills, it boosts their confidence and encourages them to continue using effective methods of communication.
hen a student confidently presents W their research in the classroom and receives applause from their peers and teachers, they feel motivated to keep creating such presentations and enhancing their skills.
eedback can be valuable for improving the F performance and communication skills of an individual. Feedback includes inputs, suggestions, and areas of improvements which are helpful to achieve better results.
I f a student delivers a speech and receives feedback that their voice projection needs improvement, they can work on their voice modulation techniques to engage the audience more effectively.
hink of a student who participates in an T elocution competition for the first time. After their speech, they receive feedback When people receive feedback, they learn about their areas of improvement. This process helps them stick to from the teacher about the structure and their goals and continue learning, and gives them new delivery of their content. This feedback will help them improve for future events opportunities. and competitions. eedback fosters a culture of learning by enabling F individuals to adapt and grow based on external input.
Tool for continued learning
18
Part A_AI Grade 10.indb 18
4/12/2025 3:56:11 PM
Therefore, feedback plays a vital role in shaping effective communication. Feedback helps identify communication gaps, promotes active listening, boosts motivation, drives performance improvement, and supports continuous learning. Through feedback, individuals can refine their communication skills and enhance their ability to convey ideas clearly and convincingly.
Think and Tell 1. How does effective feedback contribute to improving communication? 2. Can you provide examples of situations where effective feedback can make a significant impact on the outcome?
Descriptive Feedback
Descriptive feedback is detailed and specific input provided to an individual, focusing on their strengths and areas for improvement in their communication or work. Such feedback goes beyond generic statements, offering actionable insights that facilitate growth and enhancement. Descriptive feedback includes specific information in the form of written comments or verbal conversations that help the receiver of the feedback understand what all improvements can be made in their work. Letter grades, number grades, or coded symbols do not fall under the purview of descriptive feedback. Example 1 Imagine you have given a presentation in a class about one of the chapters of this book. Instead of merely saying, “Good job on the presentation”, your teacher provides descriptive feedback by telling you the ways in which you can enhance the engagement by incorporating more visuals and pictures to support your points. Feedback is highly important for students’ learning. It helps the students understand their current strengths and weaknesses and offers suggestions to enhance their performance. Moreover, feedback provides guidance and assists students in recognising the necessary steps to reach their goals and objectives.
Benefits of Descriptive Feedback Benefit
Provides useful information
Fills gaps between the present level of performance and the learning outcome
Meaning
Example
If you have written an essay for your English class, descriptive feedback highlights the strengths of your essay, such as strong arguments and clear Descriptive feedback goes beyond just indicating organisation. It also points out areas whether something is right or wrong. Such feedback offers specific details about what is done well and what that need improvement, like using more varied vocabulary or adding more can be improved. examples. This information helps you understand exactly what you are doing right and what needs further attention.
Descriptive feedback acts as a bridge between where you currently stand in terms of your performance and where you aim to be.
Imagine you are learning to play a guitar. Your goal is to play a specific song flawlessly. When you perform the song in front of your music teacher, they provide you with descriptive feedback. They may mention that your chord transitions are mostly correct, but there is a specific section where your timing is slightly off. This feedback highlights the gap between your current performance level and your goal of playing the song perfectly. (continued...)
Chapter 2 • Understanding Feedback
Part A_AI Grade 10.indb 19
19
4/12/2025 3:56:11 PM
Benefit
Self-assessment
Meaning
Example
Detailed feedback encourages you to take ownership of your learning journey. When you receive descriptive feedback, you can reflect on it and assess your own work. This self-assessment process empowers you to recognise your strengths and areas for improvement.
If you have participated in a group project and your teacher provides descriptive feedback on your contribution, you can use that feedback to evaluate your role in the project objectively. This self-awareness allows you to take steps to enhance your performance in future projects.
In essence, descriptive feedback not only tells you what is working and what is not, but also guides you on how to bridge the gaps and refine your skills. It is like having a personalised roadmap for improvement that empowers you to take charge of your own learning and growth.
Essential Factors of Descriptive Feedback
The following factors should be considered to make descriptive feedback effective: Goal-oriented
Feedback should align with the intended learning objectives or communication goals.
Actionable
It should provide actionable steps for improvement, suggesting specific strategies or changes.
User-friendly
Feedback should be easy to understand and easily comprehensible. Avoid use of complex language.
Timely
Giving feedback on time ensures its relevance and impact on the receiver’s work or communication.
Continuous
Regular feedback fosters a culture of ongoing improvement and learning.
Consistent
Consistency in providing feedback ensures fairness and enables tracking of progress over time.
The effectiveness of feedback is based on its quality. Feedback must be task-oriented so that students can hone their abilities, re-engage in their studies, and focus on their objectives.
Specific and Nonspecific Feedback
Error Alert! It is a misconception that feedback is only about pointing out mistakes. Feedback also highlights strengths and provides suggestions for improvement.
Feedback
Specific Feedback Focuses on exact aspects of the performance or work and offers concrete suggestions for enhancement.
Nonspecific Feedback Nonspecific feedback lacks detail and fails to pinpoint areas for improvement, making it less actionable.
20
Part A_AI Grade 10.indb 20
4/12/2025 3:56:11 PM
Specific Feedback
1. It gives elaborate information on exact aspects of communication or performance and offers substantial suggestions to the receiver. 2. It is advantageous because it provides the receiver directly with valuable points to consider and enables them to focus on the areas that need improvement. 3. But most individuals hold back their feedback to prevent a defensive response. 4. Feedback can significantly alter a person’s attitude or performance if it is offered with appropriate intentions. 5. To ensure that others accept and value your feedback, it is important to be courteous and clear with it. 6. In other words, the power of specific feedback is like having a treasure map for improvement! If you have just shown your awesome project to a friend. They tell you, “Wow, it’s great!” That is nice, but it would be even better if they said, “Your project’s visuals were super engaging, especially the colourful charts. To make it even cooler, you can add captions for all the pictures you included in it”. See the difference? When feedback is given with care and good intentions, it can work wonders. The following are the appropriate examples of specific feedback. Example 1 After Ali finished his presentation, his teacher praised him by saying, “The introduction of your presentation effectively captured the audience’s attention with a thought-provoking question”. Example 2 During a science fair, Asma’s classmate, Mohit, looked at her work and remarked, “Your analysis of the data was thorough, but it can be supported by relevant examples”.
Nonspecific Feedback
1. It lacks the necessary details to guide someone on how to enhance their performance or work. 2. It is less helpful because it does not highlight specific strengths or areas that need improvement. 3. It is vague and does not guide the receiver directly about the aspects which require his immediate attention. The following examples illustrate the concept: Example 1 After Shruti finished her speech, her friend Aarushi commented, “Good job on the presentation”. While Aarushi meant well, her feedback did not provide specific insights into what parts of the presentation were effective or how Shruti can further enhance the less effective parts.
Example 2 When Maya shared her essay with her teacher, Mr. Rajesh, she received the remark, “Your writing needs improvement”. Although Mr. Rajesh’s intention was to help, his feedback did not specify which aspects of Maya’s writing needed enhancement. As a result, Maya found it challenging to know where to focus her efforts to make her writing better.
Chapter 2 • Understanding Feedback
Part A_AI Grade 10.indb 21
21
4/12/2025 3:56:11 PM
Need for Specific Feedback
The importance of specific feedback in various contexts, including education, workplace, and personal development, cannot be overstated. 1. Clarity and Precision: Specific feedback provides clear and precise information about what was done well and what requires improvement. 2. Give Guidance to Act: Specific feedback not only points out areas for improvement but also provides details on how to make those improvements. This guidance encourages individuals to take concrete steps towards better performance. 3. Enhanced Learning: In educational settings, specific feedback aids learning by highlighting strengths and weaknesses. Learners can focus their efforts on specific skills or concepts that require improvement, leading to more effective learning and skill development. 4. Motivation: When individuals receive recognition for their specific achievements, it boosts their self-esteem and confidence, encouraging them to continue working on their goals. 5. Goal Setting: Specific feedback plays a key role in motivating an individual in setting and achieving goals. Such feedback helps individuals set realistic goals by identifying areas in which they need to grow or improve. 6. Performance Improvement: In the workplace, it is essential for employee development and performance improvement. 7. Makes one Responsible and Accountable: Motivated and encouraged individuals take full ownership of working towards their goals and improving performance. 8. Effective Communication: Specific feedback contributes to effective communication. It minimises misunderstandings and misinterpretations by providing precise information, ensuring that messages are conveyed accurately. 9. Self-Reflection: Specific feedback encourages self-reflection. Recipients can assess their performance in a more objective manner and gain insights into their strengths and areas for growth. 10. Continuous Improvement: Specific feedback aligns with the principle of continuous improvement. Such feedback fosters a mindset of always seeking ways to get better and achieve higher standards.
Activity Time Activity 1: Enhancing Feedback Skills
(Pair Work & Class Discussion)
In a pair, reflect and write on what you have learnt from this chapter. Write down your understanding of the key concepts and note something new that you have discovered. Then, swap your written reflections with your partner.
Next, read through your partner’s reflection and consider their insights. Craft a paragraph of specific and descriptive feedback for them based on their write-up. Focus on highlighting their strengths and providing suggestions for improvement.
Now, share the feedback that you have received from your respective partner to the whole class. Listen to the other feedbacks shared in the class and take notes. Activity 2: Feedback Sandwich
(Pair Work)
In pairs, students will prepare and present a one-minute speech on a topic of their choice. The partners will provide feedback sandwich after the presentation. Each feedback session should include three components: • Positive Comment (Compliment): Start with a positive comment or praise related to the topic.
22
Part A_AI Grade 10.indb 22
4/12/2025 3:56:11 PM
• Constructive Feedback (Critique): Offer specific, constructive feedback on what can be improved or what needs attention. • Positive Comment (Encouragement): End with another positive comment or words of encouragement. Topics for speech: Rising Global Warming, Climate Change, Sustainable City, or Electric Vehicle. Remember to focus on using the 7 Cs (Clear, Concise, Concrete, Correct, Coherent, Complete, and Courteous) when delivering the speech and while providing feedback. Switch the role and repeat the process.
Chapter Checkup A Select the correct option. 1 Feedback is important in communication because it: a delays the communication process.
b adds complexity to the message.
c encourages active listening and clarifies understanding.
d disrupts the communication cycle. 2 Descriptive feedback provides:
a general observations without details.
c letter grades and number grades.
b specific information on strengths and areas for improvement. d sudden and unexplained reactions.
3 Which of the following is an example of specific feedback? a “Your presentation was nice”.
b “Your essay needs improvement”.
c “Your use of visuals enhanced the impact of your presentation”.
d “You did well overall”.
B Fill in the blanks with the most suitable words. 1 In the communication cycle, the sender 2 3
the message, whereas the receiver
the message.
allows the roles of the sender and the receiver to interchange. encourages you to maintain effective methods, whereas clarity and comprehension.
4 Descriptive feedback helps learners understand their
prompts adjustments for better
and areas that need
.
C State whether the following statements are True or False. Correct the statements that are false. 1 Specific feedback offers concrete suggestions for enhancement. 2 Nonspecific feedback provides clear insights into strengths and weaknesses. 3 Feedback is not essential for improving communication skills. 4 Descriptive feedback focuses on general observations. D Answer the following questions. (Solved) Q1. Define specific feedback and explain why it is considered valuable in a learning process. A1. Specific feedback focuses on the exact aspects of performance or work and offers concrete suggestions for enhancement.
Chapter 2 • Understanding Feedback
Part A_AI Grade 10.indb 23
23
4/12/2025 3:56:12 PM
Such feedback is considered valuable as: • It provides clear insights into what worked well and what needs improvement. • It guides the receiver to make precise adjustments to enhance their communication or work, ultimately leading to more effective outcomes. Q2. Elaborate on the five factors that are essential when providing descriptive feedback. How do these factors contribute to the effectiveness of the feedback process? A2. The five essential factors to be kept in mind when providing descriptive feedback are: • Feedback should align with the intended learning objectives or communication goals. • Feedback should provide actionable steps for improvement, suggesting specific strategies or changes. • Feedback should be easy to understand and easily comprehensible. Avoid the use of complex language. • Providing feedback on time ensures its relevance and impact on the receiver’s work or communication. • Regular feedback fosters a culture of ongoing improvement and learning. Q3. Rishika received her term end report card. She had been eagerly waiting for the day as she would get to read the feedback from her subject teachers. She performed exceptionally well in her term, and the teachers gave her feedback like ‘Good Job, Rishika!’, ‘Congratulations, Rishika’, and ‘Keep it up, Rishika!’. Though Rishika was happy, she was looking for something else in her feedback. What do you think was missing in Rishika’s feedback? Why is that missing element so important for students like Rishika?
A3. R ishika was disappointed as the feedback from her teachers lacked descriptive details. The feedback responses did not mention her strengths or the areas to work on. They did not provide her any way forward, which would help her improve herself and her performance in the future. Having descriptive feedback is significant for learners like Rishika because: • It acts as a bridge between where you currently stand in terms of your performance and where you aim to be. • Detailed feedback encourages you to take ownership of your learning journey. When you receive descriptive feedback, you can reflect on it and assess your own work. • It goes beyond just indicating whether something is right or wrong. It offers specific details about what was done well and what can be improved.
Answer Key A 1. c 2. b 3. c B 1. encodes, decodes
2. Feedback
3. Positive Feedback, negative feedback
4. strengths, improvement
C 1. True
2. False. Nonspecific feedback does not provide clear insights into strengths and weaknesses. 3. False. Feedback is essential for improving communication skills. 4. False. Descriptive feedback focuses on specific observations.
24
Part A_AI Grade 10.indb 24
4/12/2025 3:56:12 PM
Unit 1 • Communication Skills-II
3 Barriers to Effective Communication E
ffective communication is the process of exchanging ideas, thoughts, opinions, knowledge, and data so that the related messages are received and understood with clarity and purpose. When we communicate effectively, both the receiver and the sender feel content and satisfied. There are various methods of communication and all these methods of communication can only be effective if we follow the 7 Cs of communication, i.e., clear, concise, concrete, correct, coherent, complete, and courteous. Absence of any C can lead to miscommunication. Concise
Clear Be clear in what you want to say
Coherent Words should make sense and relate to the main topic
Correct
Concrete
Use simple words (say only what is needed)
Use exact words and facts
Use correct spelling and grammar
Complete
Courteous
Include all the needed information
Be respectful, friendly, and honest
The process of communication has multiple barriers. A communication barrier is an obstacle that prevents the receiver from receiving and understanding the message that has been sent by a sender. If the message has not been understood well, it can lead to gaps, causing confusion, misinterpretation, and misunderstanding. Thus, it is important for the communicator to ask for feedback or ask questions to check that the message has been understood clearly.
Think and Tell Think of a situation where you had to face a challenge in expressing your thoughts and feelings to your closed ones.
The barriers to effective communication can be of many types, like linguistic, physical, interpersonal, cultural, or organisational.
25
Part A_AI Grade 10.indb 25
4/12/2025 3:56:13 PM
Types of Communication Barriers Linguistic Barriers 1. The language barriers are considered as one of the main and the most common barriers that limit the effective communication. 2. The inability to communicate using a language is known as the language barrier to communication. 3. All regions have their own language and not knowing them can lead to misunderstandings, misinterpretation, and miscommunication.
Did You Know? The concept of “Chinese Whispers” or “Telephone” is often used to illustrate how communication barriers can lead to misunderstandings. This game is known by various names around the world and has been played for centuries. It is a playful reminder of how easily miscommunication can occur even when sending a simple and short message, highlighting the importance of clear and effective communication in our daily lives.
4. Such barriers can occur because of limited vocabulary, problems related to accents and pronunciations, speech disorder, multiple meanings, and cultural references of symbols, and so on. 5. As per some estimates, the dialects of every two regions changes within a few kilometres. 6. For example: Even in the same workplace, each employee will have a unique linguistic skill. As a result, the communication channels within the organisation can be affected by this. Thus, keeping this barrier in mind, considerations must be made for various employees, as some of them can be fluent in a certain language, whereas others can be basic users of these languages. 7. Imagine a situation where two people, one who primarily speaks English and the other who primarily speaks Spanish, are trying to communicate without a common language: Rishi (English speaker): I need directions to the nearest hospital. Joseph (Spanish speaker): Hospital? Rishi: Yes, hospital.
In this scenario, Rishi is seeking directions to a hospital, but Joseph, who primarily speaks Spanish, has limited knowledge of English. The language barrier becomes evident when Joseph repeats the word “hospital” in English because he is unsure about how to provide directions or how to ask for more information in English. Physical Barriers 1. Physical obstacles such as distance, noisy environments, or poor audio quality can make it difficult to hear or understand each other. 2. These are obstacles or conditions in the environment that can hinder effective communication between individuals or groups. 3. Physical barriers can exist in the form of noise, distance, infrastructural barriers (wall, closed doors), visual distractions (flashing lights, overcrowded places), insufficient or poor lighting, technical issues (poor network connections, defective speaker, or microphones), and so on. 4. Natural conditions like physical disabilities (hearing impairment or poor eyesight) may also cause obstacle while communicating. 5. Example: Imagine a factory floor where workers operate with heavy machinery. The noise generated by the machines is extremely loud, making it difficult for the workers to hear each other or hear any verbal instructions
26
Part A_AI Grade 10.indb 26
4/12/2025 3:56:13 PM
from their supervisors. As a result, crucial information regarding safety protocols, task assignments, or emergency procedures may not be effectively communicated due to the overwhelming noise. 6. Imagine a classroom where there is poor lighting. The students may have difficulty reading teachers’ written notes on the board or understanding their facial expressions. The lack of proper lighting becomes a physical barrier to effective teaching and learning. Interpersonal Barriers 1. An interpersonal barrier in communication refers to obstacles that arise because of the equation in the relationship between people, affecting the exchange of information and understanding. 2. It becomes difficult and challenging to communicate with a person who is not willing to listen, talk, and express their feelings and views. 3. Interpersonal barriers often arise from differences in personalities, perspective, communication styles, or behaviours. 4. Major interpersonal obstacles include ego, pride, stereotypes, lack of empathy, inactive listening, making assumptions, having preconceived notions, and emotional barriers (anger, fear, stress). 5. Example: Imagine two colleagues in a workplace who have a history of personal conflicts. Due to these conflicts, they have developed negative perceptions of each other. When they need to work on a project, their history and personal differences may hinder open and effective communication. They may misinterpret each other’s messages or be reluctant to share information, leading to incomplete and inaccurate communication. 6. Imagine a situation of a team working on a project. One member of the team insists on a particular way of achieving the goal and rejects other ideas. This closed-mindedness can create a barrier to communication and collaboration. Organisational Barriers 1. An organisational barrier refers to any obstacle or challenge within a company or institution that affects the effective flow of communication among individuals, teams, or departments. 2. These barriers can arise from factors such as hierarchical structures, inadequate communication channels, lack of transparency, conflicting goals, and differing priorities. 3. Organisational barriers can obstruct the timely and accurate exchange of information, leading to misunderstandings, decreased efficiency, and overall communication breakdowns within an organisation. 4. Example: If we see two colleagues working on a project and they face any challenges, it is important for them to communicate to their respective departments or supervisor, to ensure effective flow of communication. 5. Imagine a scenario where a subordinate feels shaky and nervous, fidgets when standing, and fails in communicating the message correctly. On the other hand, the boss is impatient and starts advising even before the subordinate has fully explained the case. Cultural Barriers 1. Our country is diverse and has rich culture. However, because of this richness, people find it difficult to understand each other’s culture and traditions which can result in inconveniences and difficulties. 2. Cultural barriers to communication arise from differences in cultural backgrounds, customs, norms, and values between individuals or groups.
Chapter 3 • Barriers to Effective Communication
Part A_AI Grade 10.indb 27
Error Alert! Removing all barriers is possible! While it is essential to minimise communication barriers, it is unrealistic to expect that all barriers can be eliminated. Communication barriers can arise from various sources, including individual differences and external factors. The goal is to reduce obstacles and improve communication and not to eliminate all barriers entirely.
27
4/12/2025 3:56:13 PM
3. Not only this, there can also be stereotypical assumptions on the cultural differences that may lead to differences in opinion and can be a major barrier to effective communication. 4. Imagine an organisation that has offices in both the United States and Japan. The employees from the US are used to expressing their opinions, agreements, and disagreements openly during meetings. On the other hand, the employees from Japan are more reserved and tend to avoid contradicting their superiors in public. During a joint video conference, the American team proposes an idea, and some Japanese team members have concerns. However, due to their cultural norms, the Japanese team members hesitate to voice their reservations, leading the American team to believe that everyone is on board with the idea. In this scenario, the cultural difference in communication styles creates a barrier.
Factors Contributing to Communication Barriers
Lack of Clarity Unclear or incomplete messages can lead to confusion, misunderstanding, and misinterpretation. Thus, it is extremely important for a sender to send clear and concise messages. Lack of Feedback Without feedback or confirmation, a sender will not know if the message was understood correctly or not. Effective communication includes continuous feedback. In the absence of any feedback, the sender may never feel the need to make necessary adjustments. Too much information Providing excess or too much information can overwhelm the receiver and make it challenging to process the main points. This factor can cause the receiver to either miss or forget the main points. Distractions Any type of noise or interruptions can divert the attention of the receiver which can lead to incomplete communication, where the receiver may not have perceived it correctly. Cultural Differences Different customs or value systems can cause misunderstanding among cultures. What may be considered appropriate and respectful communication behaviour in one culture can be considered disrespectful or confusing in another culture. Power Dynamics Unequal power relationships can hamper communication within any organisation. Subordinates may hesitate to express their opinions to their seniors. Perceptual Differences People interpret messages based on their individual perspectives or experiences. However, this can lead to interpreting the same message in different ways. Technological Issues In the present world, where technology is the king of effective communication, there are challenges and glitches that can cause obstructions. Poor internet connectivity, software errors, or not understanding the communication tools can disrupt the flow of information.
Measures to Overcome Barriers to Communication
The following are some of the measures that can be used to overcome various barriers to effective communication. 1. Communication should take place as per the understanding and capabilities of the receiver. It is always best to use a language that can be understood by the receiver. 2. The language, tone, and content of the information should be carefully chosen. It should be understandable and not harm any human sentiments. 3. There should be no room for incomplete information and ambiguity. Information shared should be complete in every way. 4. The idea of a communication is to be clear between the sender and the receiver. The communication must be conveyed effectively and in simple language.
28
Part A_AI Grade 10.indb 28
4/12/2025 3:56:13 PM
5. Proper and effective feedbacks must be taken from the receiver. The receiver should always be encouraged to respond during a conversation. 6. There should be mutual trust and respect between the sender and the receiver, this helps in reducing perception errors. 7. It is a good idea to communicate in person as much as possible. This enables the sender to receive immediate feedback by looking at the nonverbal cues of the receiver. 8. When it comes to culture or traditions, forming assumptions and stereotyping one should not be encouraged. 9. Using visuals while communicating an idea or information, will ensure that the message or information is communicated completely and effectively. 10. The sender of the information should also be a patient listener and be open to all sorts of communication. 11. Physical disabilities or any other physical barriers should be taken into consideration during the communication. Appropriate means of communication, such as sign language, visual aids, or written communication should be used in such situations.
Think and Tell How can you remove barriers to effective communication?
ActivityTime Time Activity Activity 1: Listen and Draw
(Individual Work)
This game is easy to play but not so easy to “win”. It requires participants’ full attention and active listening. Take a piece of paper and pen or pencil. Listen attentively to the step-by-step instructions on drawing an object. The instructions may include: 1. Draw a square, measuring 5 inches on each side. 2. Draw a circle within the square, such that it fits exactly in the middle of the square. 3. Intersect 2 lines passing through the circle and dividing the circle into 4 equal parts. As the exercise continues, it will get progressively harder. One misstep can mean that every following instruction is
misinterpreted or misapplied. Listen carefully to ensure that their drawing comes out accurately. Once the instructions is complete, compare the drawings and decide who won.
Activity 2: Role Play on Barriers to Effective Communication
(Group Work)
In a group of five students, plan and present a role play. You may pick one barrier of communication and plan a scene from daily life around it. Also, present the measure you would take to overcome the barrier chosen by your group. Activity 3: Overcoming Barriers
(Group Work)
In a group of five students, choose a barrier of communication for your group discussion. Discuss the factors of the chosen barrier and the measures needed to overcome them.
After the discussion, create a poster highlighting the factors and measures discussed in the group.
Chapter 3 • Barriers to Effective Communication
Part A_AI Grade 10.indb 29
29
4/12/2025 3:56:13 PM
Chapter Checkup A Select the correct option.
1 Which of the following is a common barrier, and causes misunderstanding and misinterpretations between people? a Physical barriers c Interpersonal barriers
b Linguistic barriers
d Organisational barriers
2 Which of the following can be considered as an interpersonal barrier? a Being shy c Natural condition
b Slang language
d Religion colloquialism
3 Which of these is not a common communication barrier? a Linguistic barrier c Financial barrier
b Interpersonal barrier
d Organisational barrier
B Fill in the blanks with the most suitable words.
1 When a sender sends a message which is received differently from how it was intended will be considered a barrier. 2 The
3 Using 4
barrier leads to stereotypical assumptions about others, based on their cultural background. is one of the ways of overcoming communication barriers.
communications are less effective than face-to-face communication.
C State whether the following statements are True or False. Correct the statements that are false. 1 Inability to communicate using a language is known as an interpersonal barrier. 2 Text messages are more effective than face-to-face communication.
3 The superior-subordinate relationship is a type of an organisational barrier. 4 To overcome linguistic barriers, take the help of a stenographer. D Answer the following questions. (Solved)
Q1. Explain the physical and linguistic barriers with appropriate examples.
A1. Barriers of communication cause hindrances and obstacles in communicating a message or an idea effectively, correctly, and clearly. Physical Barrier
• The environmental and natural condition that act as a barrier is known as a physical barrier.
• A gesture, posture, or body language that cannot reach the receiver makes communication less effective. • Text messages are less effective compared to face-to-face communication. Linguistic Barrier
• This is the most common barrier.
• It can cause misunderstandings and misinterpretations between people. • Slang language, professional jargon, religious colloquialisms
Q2. Explain how can you overcome barriers to communication?
A2. The following are some of the measures that can be used to overcome various barriers to effective communication.
• The communication should take place as per the understanding and capabilities of the receiver. It is always best to use a language that can be understood by the receiver.
• The language, tone, and content of the information should be carefully chosen. It should be understandable and not harm any human sentiments. • Proper and effective feedbacks must be taken from the receiver. The receiver should always be encouraged to respond during the conversation.
• There should be no room for incomplete information and ambiguity. Information shared should be complete in every way.
30
Part A_AI Grade 10.indb 30
4/12/2025 3:56:14 PM
• The idea of communication should be clear between the sender and the receiver. The idea must be conveyed effectively. • The sender of the information should also be a patient listener and be open to all sorts of communication.
Q3. Nikita has recently joined Tiara Cosmetic Company as an Associate Manager in Marketing. She must collaborate with the product and sales department to understand about the latest product. In spite many efforts, she is not able to overcome the communication barrier she is experiencing because of the structure of the company. What kind of barrier is it? Explain this barrier in about 75 to 100 words. A3. This kind of barrier is an organisational barrier. An organisational barrier refers to any obstacle or challenge within a company or an institution that affects effective flow of communication among individuals, teams, or departments. These barriers can arise from factors such as hierarchical structures, inadequate communication channels, lack of transparency, conflicting goals, and different priorities. Organisational barriers can impede timely and accurate exchange of information, leading to misunderstandings, decreased efficiency, and overall communication breakdowns within an organisation.
Answer Key A 1. b
2. a
B 1. Interpersonal
3. c 2. Cultural
3. visuals
4. Nonverbal communications
C 1. False. Inability to communicate using a language is known as a language barrier. 2. False. Face-to-face communication is more effective than text messages. 3. True
4. False. To overcome linguistic barriers, take the help of a translator.
Chapter 3 • Barriers to Effective Communication
Part A_AI Grade 10.indb 31
31
4/12/2025 3:56:14 PM
Unit 1 • Communication Skills-II
4 Principles of Effective Communication I
magine a world where our ideas, thoughts, and dreams remain locked in our mind, unable to reach others. Such a world would lack progress and understanding. Communication is the key that unlocks this world, allowing us to share our ideas, connect with others, and bring our aspirations to life. In a world driven by connections and collaborations, effective communication is the key to success. It is the invisible thread that weaves through every aspect of our lives, from the classroom to the workplace and beyond. Effective communication is more than just exchanging words; it is about conveying our thoughts in a way that others can understand and appreciate. It involves not only the words we choose, but also our tone of voice, our body language, and our ability to actively listen. Imagine communication as a bridge that brings people, ideas, and opportunities together, helping them travel the wide world of human interaction. Effective communication means expressing our thoughts, ideas, or information clearly and in a way that others can easily understand, leading to successful understanding and meaningful interactions. Rohan and Ashima work as the Associate Marketing Manager at Idea Advertising Firm. They need to pitch a new advertising idea to a beverage brand. Both Rohan and Ashima are excited and buzzing with ideas. They brainstorm ideas with their respective teams and are ready for the final day’s presentation. In order to impress, Rohan begins his presentation with heavy data, technical terms, and complex ideas. The brand team feels disengaged and unclear. On the other hand, Ashima expresses her ideas with relatable and realistic examples. She uses easy-to-understand language, which leaves a lasting impact.
Did You Know? Humans process visual information much faster than text. Studies have shown that the brain can process images in as little time as 13 milliseconds. This is why using visual aids, such as diagrams, charts, and infographics, can be a powerful way to enhance communication and quickly convey complex ideas to our audience.
Who do you think communicated more effectively?
32
Part A_AI Grade 10.indb 32
4/12/2025 3:56:16 PM
Principles of Effective Communication
To engage in effective communication, one should take care of the following principles:
Simple Language +
Definite purpose +
+ Appropriate Medium
Completeness and Concision +
+
Authenticity
+
Courtesy
Error Alert! It is commonly misunderstood that clear speech is the only important factor of effective communication. But effective communication involves much more than just speaking clearly. While clear speech is important, to be able to communicate effectively, one needs to listen actively, understand nonverbal cues, adapt to various contexts, and empathise with others.
Simple Language Using language that is easy to understand helps ensure that both the sender and the receiver grasp the message without confusion. For example, explaining the objective of a project using simple words makes it easier to understand the need and purpose of the project, thereby improving efficiency. Definite Purpose Having a clear purpose in mind when communicating prevents misunderstandings and ensures that the message’s intent is well-understood. For example, a leader should clearly communicate the goal of a group project before assigning it to a team. Completeness and Concision Providing all necessary information in a concise manner ensures that the recipient gets the full picture without being overwhelmed. For example, a senior is providing the steps for data study to his subordinate. The senior breaks down the instructions into clear, crisp, and concise statements and provides complete information to avoid confusion. Appropriate Medium Choosing the right communication medium and considering factors, such as timing, distance, and the nature of interaction ensure effective communication. For example, sending a text message to a team member to confirm the meeting time may work, but using a message to discuss the future course of action can cause ambiguity. Authenticity Sharing accurate and honest information builds trust and credibility in communication. For example, it is important to provide reliable sources when presenting information to others. Courtesy Politeness and respect in communication contribute to a positive atmosphere and healthy relationships. For example, thanking a team member for clarifying doubts creates a positive atmosphere for further communication. Active Listening Effective communication involves not only speaking or writing but also actively listening to others. Active listening involves giving full attention to the speaker or the message, asking clarifying questions if needed, and avoiding interruptions. Adaptability Tailoring communication to fit the needs and preferences of the audience or receiver. Consider the level of knowledge, communication style, and the context of the interaction. For example, when communicating ideas to young students, the language and content should be chosen according to their age group and understanding. The content should be supported with visual aids to make it interesting.
Chapter 4 • Principles of Effective Communication
Part A_AI Grade 10.indb 33
33
4/12/2025 3:56:17 PM
The 7 Cs of Effective Communication 7 Cs OF EFFECTIVE COMMUNICATION
Conciseness: Convey information concisely, without sacrificing essential details.
Correctness:
Maintain accuracy in grammar, spelling, and factual information.
Completeness:
Clarity: Ensure that your message is easily understood and is free from ambiguity.
Courtesy: Use a respectful and considerate tone that promotes positive relationships.
Concreteness:
Coherence:
Use specific and tangible examples to make your message more relevant.
Organise your message logically for smooth comprehension.
Provide the necessary information to prevent misunderstandings or doubts.
The 7 Cs of effective communication are a set of principles that helps ensure that messages are conveyed clearly and comprehensively. These principles aid in avoiding misunderstandings, misinterpretations, and confusion, thus enhancing the overall quality of communication. Clarity 1. Clarity is the most important factor, impacting effective communication. Messages should be clear, straightforward, and easy to understand. 2. We should avoid technical words, complex vocabulary, or difficult sentence structures that can confuse the receiver of the information. 3. The sender should have clarity of thoughts so that the message is conveyed clearly. 4. The sender should not mix many ideas together when sending a message or information, as it may lead to confusion. 5. Example: Imagine you are a customer service representative addressing a customer’s complaint about a defective product. Here, using clear language and providing step-by-step instructions on how to return the item ensures better understanding of the process for the customer and builds trust. Conciseness 1. Being concise means conveying the message using the fewest possible words to make it brief and comprehensive. 2. Adding unnecessary details while communicating can lead to disinterest or loss of focus. Only state what is necessary to know. Avoid over explaining to avoid confusion. 3. The message should be to the point and precise with essential details. 4. The words used should be meaningful and of interest to the receiver.
34
Part A_AI Grade 10.indb 34
4/12/2025 3:56:17 PM
5. Example: Consider the difference between these two messages: “I just wanted to let you know that the upcoming meeting scheduled for next Monday at 9 AM may be postponed to the following Wednesday at 2 PM due to unforeseen circumstances that have arisen.” In contrast, “The meeting on Monday at 9 AM may be postponed to Wednesday at 2 PM due to unforeseen circumstances.” By being concise, the revised message conveys the same information in a more brief and engaging manner. Concreteness 1. Concreteness in communication means being clear and specific in what you are saying. 2. It is like using detailed examples and facts to make your message easy to understand and convincing. 3. Providing concrete examples, facts, and figures can help clarify your points and make the message more convincing. 4. Example: When making a presentation about the change in choices of the consumers, directly saying that consumers show desires to own luxury products may not have as much impact as when confirming the same through statistical data. Correctness 1. Correctness pertains to the accuracy of your message in terms of grammar, spelling, punctuation, and information. Errors can undermine your credibility and cause confusion. 2. Always proofread your communication to ensure accuracy and professionalism. 3. Example: Imagine receiving a message with errors like “The employees meeting their managers to discuss performance or goals.” Revise it to “The employees are meeting with their managers to discuss performance and goals”. Here, grammar is corrected, leading to a more accurate message and better impact. Coherence 1. Coherence involves organising your message logically and ensuring that the ideas flow smoothly from one point to another. 2. Each part of the message should connect naturally, allowing the receiver to follow the thought process effortlessly. 3. Logical coherence enhances understanding and prevents confusion. 4. In simpler terms, when your communication is coherent, it is like telling a story that has a clear beginning, middle, and end, and all the parts fit together logically. 5. Example: Consider the original message “The project deadline is approaching. Will you attend the launch party tonight? Will you be able to meet your deadline?” The topics are disjointed. However, if revised to “As the project deadline is approaching, I wanted to know if you will be able to meet the deadline? By the way, would you be attending the dinner party tonight?” the connection between the project and the party inquiry makes the message more coherent. Completeness 1. A complete message provides all the essential information a recipient needs to take the necessary action or make informed decisions. 2. Incomplete messages can lead to misunderstandings or lead to follow-up questions, time wastage, and effort. 3. It is important to ensure that your communication includes all relevant details and addresses potential questions or concerns.
Chapter 4 • Principles of Effective Communication
Part A_AI Grade 10.indb 35
35
4/12/2025 3:56:17 PM
4. Example: Think about the message “Please send me the report.” It lacks details. In contrast, “Could you please send me the quarterly sales report by Friday at 3 PM?” provides essential information about the specific report and the deadline, making it a complete and more actionable question. Courtesy 1. Courtesy refers to the tone and manner in which a message is conveyed. Respect and consideration for the recipient’s feelings, opinions, and perspectives are vital. 2. A courteous tone fosters positive relationships and encourages open communication. 3. Avoid aggressive language or insensitive remarks that may hinder understanding or cooperation. 4. Example: Imagine receiving a message that demands “I need this report now!” This tone may come across as rude or threatening. However, when revised to “Could you please send me the report at your earliest convenience? Your assistance would be greatly appreciated,” the message becomes more courteous and acknowledges the recipient’s effort.
Think and Tell
Imagine you are a manager in an Indian company. You need to deliver feedback to an employee about their performance. How would you apply the principle of “concreteness” to ensure that your message is clear and well-received? Share a real or fictional example of how you would do this effectively.
By adhering to the 7 Cs of effective communication, you can create messages that are clear, concise, meaningful, and respectful. These principles are applicable across various communication channels, from face-to-face conversations to written documents and digital communication. Embracing the 7 Cs can significantly enhance your ability to communicate effectively in both personal and professional contexts.
Benefits of Effective Communication
Clear Understanding Good communication helps people understand each other better, reducing confusion and mistakes. Stronger Relationships When we communicate well, we build better relationships with friends, family, and colleagues. Solving Problems Effective communication is crucial for solving arguments and disagreements. It helps find solutions everyone can agree on. Persuading Others If we talk well, we can convince others more easily. This is useful in getting what we want or need. Career Success Having good communication skills provides ample of opportunities for professional growth and development. Less Stress Misunderstandings and miscommunication can lead to reasons of stress. Effective communication helps us feel better by solving problems and worries. Personal Growth Learning to communicate better makes us more confident and helps us express ourselves. Changing the World On a larger scale, good communication can help with important issues like raising awareness or making positive changes in society. I n short, effective communication is a valuable skill that can make life easier and more successful by promoting clear understanding and positive connections with others.
36
Part A_AI Grade 10.indb 36
4/12/2025 3:56:17 PM
Activity Time (Group Work)
Activity 1: C for Communication
Form a group of four to five students. The teacher can help each group pick one C of communication and ensure that the topic is not repeated.
Each group is to discuss about the chosen C of communication. Finally, create a poster highlighting all the important details and examples related to the topic.
Present your poster and learning to the whole class.
(Pair Work)
Activity 2: Phone Conversation Challenge
In pairs, engage in a phone conversation where one student plays the role of a customer with a complaint or inquiry and the other student plays the role of a customer service representative.
The customer’s issue should be related to a simple product or service concern, and the customer service representative must address the issue effectively and respectfully, using the principles of clear communication, active listening, and empathy.
After each role play, the students can switch roles and discuss their experiences.
(Whole-Class Work)
Activity 3: Note Your Thoughts
Arrange the class in a big circle. Teacher will set the timer to 30 seconds. Start the activity by passing a chart paper to the student on the right-hand side of the teacher. Encourage learners to write their thoughts on the 7 Cs of Communication.
They can either express in words, phrases, or complete sentences. After every 30 seconds, the student will pass the chart to the one on their right. This process continues till the sheet completes the circle and returns to the teacher. This chart can then be displayed on the board as the class summary.
Chapter Checkup A Select the correct option. 1 Which of the following is NOT one of the 7 Cs of effective communication? a Clarity b Completeness c Coordination d Courtesy
2 Which of the following best represents the “Completeness” principle of effective communication? a A message that is vague and unclear
c A message that uses complex vocabulary
b A message that includes the necessary information d A message that is overly lengthy
3 Which of the following is an attribute of the “Conciseness” principle of effective communication? a Providing clear and specific details
b Using polite language
c Including unnecessary information
d Active listening during a conversation
B Fill in the blanks with the most suitable words. 1 Concreteness involves using
examples to make a message more relevant and relatable.
2 Effective communication goes beyond just speaking clearly; it also encompasses active 3
.
involves adjusting your communication style to fit the context and audience.
4 Correctness in communication refers to maintaining accuracy in
and information.
C State whether the following statements are True or False. Correct the statements that are false. 1 Effective communication only involves conveying information clearly through spoken words.
Chapter 4 • Principles of Effective Communication
Part A_AI Grade 10.indb 37
37
4/12/2025 3:56:18 PM
2 Empathy is the ability to understand and acknowledge the emotions and viewpoints of others. 3 Feedback in communication is discouraged as it can lead to conflicts and misunderstandings. 4 Adaptability in communication means using complex vocabulary to impress the audience. D Answer the following questions. (Solved)
Q1. Why is clarity an important aspect of effective communication in the workplace? A1. Clarity is a fundamental element of effective communication because it ensures that your message is crystal clear and easily understood by your audience. In the Indian employability sector where diverse backgrounds and languages are prevalent, being clear in your communication is essential. When you use plain and precise language, along with wellstructured information, you reduce the chances of creating misunderstandings and causing confusion. This fosters trust and enhances your professional image. Clear communication also promotes efficient decision-making and problemsolving within teams and organisations, which are critical skills in the Indian job market.
Q2. How can practising the 7 Cs of communication, especially being considerate, improve your workplace relationships and career prospects? A2. Practising the 7 Cs of communication, especially being considerate, can significantly improve your workplace relationships and career prospects. When you show consideration for your colleagues’ needs and emotions, you create a positive and respectful work environment. Such environment can lead to better teamwork, stronger collaboration, and increased support from your peers. In the Indian employability sector, where interpersonal relationships are highly valued, being considerate in your communication can set you apart as a trusted and valued team member. Over time, your communication skills can open opportunities for career growth and advancement as your colleagues and superiors recognise your professionalism and empathy.
Q3. Imagine you are a project manager in an Indian IT company. You have a diverse team working on a critical project, and miscommunication has led to confusion and delays. Apply the principles of the 7 Cs of effective communication to explain how you would address this issue and restore clarity and efficiency in your team’s communication. A3. In this scenario, I would address the miscommunication issue by applying the 7 Cs of effective communication:
Clarity: I would ensure that all team members clearly understand their roles and responsibilities in the project.
Conciseness: I would encourage my team members to provide concise updates and reports to avoid overwhelming others with unnecessary details. Coherence: I would establish a standardised reporting structure to ensure that all project updates and communications follow a logical flow. Consistency: I would implement regular communication checkpoints to ensure that everyone is on the same page and consistency is maintained. Correctness: I would emphasise the importance of accurate data and information in all communications. Consideration: I would encourage team members to be considerate of each other’s perspectives and provide feedback respectfully. Completeness: I would ensure that all necessary information is included in project documentation and communications to prevent gaps in understanding. By applying these principles, I would foster better communication within the team, reducing confusion and delays, and ultimately ensuring successful completion of the project.
Answer Key A 1. c B 1. specific
2. b
3. a
2. listening
3. Adaptability
4. language
C 1. False. Effective communication involves various forms of communication, not just spoken words. 2. True
3. False. Feedback is encouraged as it helps in improving communication.
4. False. Adaptability in communication means adjusting your communication style to suit the audience, not using complex vocabulary to impress.
38
Part A_AI Grade 10.indb 38
4/12/2025 3:56:18 PM
Unit 1 • Communication Skills-II
5
Basics of Writing Skills W
riting helps us share ideas, feelings, and information in a way that lasts. In today’s world, with the expanding presence of information communication and technology, writing is even more important. It is not just about sending an email or typing an essay; it is a skill that helps us express ourselves clearly and connect with others.
Understanding Sentences
Sentences are the building blocks of writing. A sentence is a group of words that make complete sense on their own. It is like a thought captured in words. When you speak or write, you are creating sentences to communicate your ideas. Example: The sun is shining. This is a sentence because it is a complete thought. The sentence tells us something about the sun. Bright and early every morning. This is not a sentence because it is not a complete thought. It is just a group of words.
Parts of a Sentence
Every sentence can be broken down into two essential parts, a subject and a predicate.
A subject in a sentence is a word or a group of word that tells the name of a person or thing that the sentence is about. A predicate in a sentence is the part of a sentence that tells what the subject is doing or what the subject is. For example: The man drove the car swiftly.
In this sentence, “The man” is the subject. It is who the sentence is talking about. “Drove the car swiftly” is the predicate, as it tells us what the man is doing. Remember, a sentence cannot exist without a subject and a predicate. They work together to create a complete thought. If you have only one or the other, it is not a sentence; it is just a group of words. For example: • Subject without a predicate: “The book.”
• Predicate without a subject: “jumped over the fence.”
In both cases, we do not have a complete idea. We are left wondering, “What about the book?” and “Who or what jumped over the fence?” By understanding the subject and predicate of a sentence, you will be able to recognise and create clear, meaningful sentences. This knowledge forms the foundation for constructing sentences that effectively convey your thoughts and ideas in writing.
39
Part A_AI Grade 10.indb 39
4/12/2025 3:56:19 PM
Types of Sentences
There are four basic types of sentences: 1. Declarative Sentence (statement) 2. Interrogative Sentence (question) 3. Imperative Sentence (command) 4. Exclamatory Sentence (exclamation) Declarative Sentence A sentence that states a fact or an argument and ends with a full stop (.). This is the most frequently used sentence type. For example: Mount Everest is the highest mountain in the world. Mamta is playing badminton in the garden. Interrogative Sentence A sentence that asks a direct question. Interrogative sentences always end with a question mark (?). For example: Why are you late for the meeting? Where did you keep the packet? Consider the following sentence: “She asked what had happened to the containers with melted ice cream in them.” Is this an interrogative sentence? No, it is not an interrogative sentence, as no one is doing the asking. The event is just recorded as a statement, making it a declarative sentence. Imperative Sentence Like declarative sentences, imperative sentences usually end with a full stop (.). Unlike declarations though, the subject (you) is understood and an imperative sentence makes a command or a request. For example: Read chapter 4 for tomorrow’s class. (command) Please leave this file on my desk. (request) Exclamatory Sentence A sentence that expresses a strong feeling like surprise, wonder, sorrow, or happiness. This sentence is a complete statement that ends with an exclamation mark (!). For example: Tanmay scored five goals in the game! Wow, that is a beautiful painting! Knowing the various types of sentences and how they function helps you decide what kind of sentence to write for a situation. The table below outlines the differences between the four types of sentences. Sentence Type
Feature
Example
Punctuation
Declarative
States a fact or an argument
We are going to the library today.
Ends with a full stop (.)
Interrogative
Asks a question
Are you presenting your topic tomorrow?
Ends with a question mark (?)
Imperative
Gives a command
Stop! Do not enter that room.
Ends with a full stop or an exclamation mark (.) (!)
Wow! We won.
The exclamation word ends with an exclamation mark (!) The sentence may or may not end with an exclamation mark.
Exclamatory
Shows an emotion
40
Part A_AI Grade 10.indb 40
4/12/2025 3:56:19 PM
Phrases
A phrase is a group of words that work together to convey a specific meaning. Unlike sentences, phrases do not have both a subject and a predicate, so they do not express a complete thought on their own. Instead, they are essential components within sentences, adding depth, detail, and nuances. Understanding the phrases is essential for improving writing. They add richness and detail to sentences, making communication more vivid and engaging.
Types of Phrases Types of Phrases
Definition
Think and Tell Identify and state the types of the sentences given below. 1. Roshan was worried about his exam preparation. 2. Do you know the directions to the Qutub Minar? 3. Stop talking! 4. They were driving to Agra. 5. Please help me in organising the shelf. 6. Hurray! We won the match.
Example The big red apple fell from the tree.
Noun phrase
A group of words centred around a noun, which can include articles, adjectives, and other modifiers.
Verb phrase
A group of words centred around a verb, often containing auxiliary verbs and other elements.
Adjective phrase
A group of words centred around an adjective, providing additional information about a noun.
Adverb phrase
She danced gracefully. A group of words centred around an adverb, providing The athletes ran incredibly fast during more details about a verb, adjective, or adverb. the race.
Prepositional phrase
A group of words that starts with a preposition and includes an object. A prepositional phrase shows the The book is on the table. relationship between the object and other parts of They went on a vacation to the beach. the sentence.
Role of Phrases
The old oak tree swayed in the wind. She is studying for her exams.
They have been practicing for the upcoming concert. The house, with a stunning view of the mountains, is for sale.
He bought a car with sleek, modern design.
Think and Tell
Helps to provide descriptive detail Use adjective phrases to paint Underline the phrases in the given a clearer picture for your readers. Instead of saying “the car”, you sentences and state their types. can say “the sleek, red sports car”. 1. She walked to the park. Adds variety to sentence structure Use various types of phrases 2. The old book on the shelf is a family to add variety to your writing. Mix up noun phrases, verb phrases, heirloom. and adverb phrases to keep your readers engaged. 3. Running in the morning, he felt refreshed. For example: 4. He plays the guitar skilfully. 1. Noun phrase: “The big, old tree shaded the playground, 5. The concert will be held in the providing a cool spot-on hot day.” auditorium. In this sentence, a noun phrase “big, old tree” is used to describe the subject of the sentence. 2. Verb phrase: “She laughs happily whenever she plays with her friends.” Here, a verb phrase “laughs happily” describes how she laughs, adding detail to the action. 3. Adverb phrase: “He spoke very slowly to make sure everyone could understand him.” In this case, the adverb phrase “very slowly” tells us how he spoke, giving us more information about the action. Clarify relationships Prepositional phrases can help clarify the relationship between various elements in a sentence. For example, “The book on the table is mine” makes it clear which book is being referred to. Chapter 5 • Basics of Writing Skills
Part A_AI Grade 10.indb 41
41
4/12/2025 3:56:19 PM
Parts of Speech
Imagine language as a toolbox, and each word as a unique tool. These tools are called “parts of speech,” and they serve specific functions in constructing sentences. Understanding parts of speech is like knowing how to use various tools for multiple tasks; it allows you to craft sentences that convey your thoughts precisely. There are eight parts of speech in the English language.
Parts of Speech
Definition
Examples
Usage
Noun
names of people, animals, places, manager, presentation, love things, or ideas
The manager scheduled a presentation to assess our skills.
Pronoun
used in place of a noun to avoid repetition
he, she, it, they
He went to the store and bought the groceries.
Verb
action words; tells what the person/thing is doing
type, collaborate, achieve
We collaborate effectively to achieve our project goals.
Adverb
words that modify and describe verbs, adjectives, or other adverbs
effectively, very, carefully
She communicates effectively and manages her time carefully.
Adjective
words that describe or modify nouns
efficient, experienced, essential
An efficient and experienced team is essential for success.
Preposition
words that show relationships between words
in, on, at, with
The meeting is scheduled in the conference room at 10 AM.
Interjection
words or phrases expressing strong emotions or exclamations
wow! oh! alas!
Wow, your presentation was outstanding!
Conjunction
words that connect words, phrases, or clauses
and, but, or, because
We need to review our project and make necessary revisions.
42
Part A_AI Grade 10.indb 42
4/12/2025 3:56:20 PM
Articles
Articles are special words (a, an, the) that are used before nouns to specify whether we are talking about something specific or in general. There are two main types of articles: 1. Definite Article (the) 2. Indefinite Articles (a, an)
Definite Article (the)
We use “the” when we are talking about a specific thing that the listener or reader already knows about or can easily identify. Examples: • The manager called a staff to carry the files. • Please pass the documents. Rules for Using the Definite Article (the) 1. Specificity: Use “the” when referring to a specific item or group of items that the listener or reader can identify or is already familiar with. Example: I saw the cat in the playground. (You are referring to a particular cat and a specific playground.) 2. Unique Objects: Use “the” when referring to a unique object or something that is one of a kind. Example: The Eiffel Tower is in Paris. (There is only one Eiffel Tower.) 3. Superlative Forms: Use “the” before superlative adjectives (e.g., the best, the tallest) to indicate that something has the highest degree of quality. Example: She is the best employee we have. (Indicating that she is the employee with the highest level of performance) 4. Ordinals: Use “the” with ordinal numbers (e.g., the first, the second) when referring to specific items in a sequence. Example: He won the first prize in the contest. (Referring to a specific prize—the first one) 5. Geographical Features: Use “the” before the names of oceans, seas, rivers, mountain ranges, and other geographical features. Example: The Ganga River flows through eleven Indian states. 6. Countries with Plural Names: Use “the” when referring to countries with plural names, such as “the United States” or “the Netherlands.” Example: I have never been to the United States. 7. Musical Instruments: Use “the” before the names of musical instruments. Example: She plays the sitar beautifully. 8. Newspapers: Use “the” before the names of newspapers. Example: I read the Indian Express every morning. 9. Religious Books: Use ‘the’ with religious books to indicate a specific, well-known, and revered text within a particular religious tradition. Example: I find comfort in reading the Bible every morning.
Indefinite Articles (a/an)
We use “a” or “an” when we are talking about something in a general or nonspecific way. Examples: • I have a meeting at 2 p.m. • She is an excellent candidate for the job. Chapter 5 • Basics of Writing Skills
Part A_AI Grade 10.indb 43
43
4/12/2025 3:56:20 PM
Rules for Using the Indefinite Article (a/an) 1. Countable Nouns: Use “a” or “an” with countable nouns when you are referring to one nonspecific item or thing. Example: I saw a dog in the park. (Referring to one dog in general.) 2. Singular Nouns: Use “a” before singular nouns that begin with a consonant sound. Example: He is a teacher. (Teacher starts with a consonant sound: /t/.) 3. Singular Nouns Starting with a Vowel Sound: Use “an” before singular nouns that begin with a vowel sound. Example: She has an umbrella. (Umbrella starts with a vowel sound.) 4. Singular Nouns Starting with a Silent “H”: Use “an” before singular nouns that begin with a silent “h”. Example: He’s an honest person. (Honest starts with a silent “h” and begins with vowel sound of “o”.) 5. Professions and Nationalities: Use “a” or “an” when referring to someone’s profession or nationality without specifying a particular person. Example: She is a lawyer. (Referring to any lawyer in general.) 6. General Statements: Use “a” or “an” to make general statements about a group. Example: I need a book for my research. (Referring to any book that fits the research.) 7. First Mention: When you introduce a new, singular, and nonspecific noun in a conversation or text, use “a” or “an.” Example: I saw a car on the street. (The car has not been mentioned before in the conversation.)
Constructing and Writing Paragraphs When you write, you use paragraphs to make your ideas easy to understand. A paragraph is like a group of sentences that stick together because they talk about the same thing. They are the building blocks that structure your ideas and thoughts. They provide organisation and coherence to your text, making it easier for readers to follow along and grasp your message. When writing a paragraph, the idea should be clear to you and there should be a definite topic. Without the two, your paragraph will lack focus, clarity, and uniformity.
Understanding Grammar- a, an or the 1st time There is a fly in my soup. 1 or any I need a pencil. Some quantities a couple, a few, a handful, etc ... Jobs I’m a teacher. Exclamations singular What a beautiful day!
a or an
2nd time What is the fly doing in my soup? Only 1 the moon, the Queen, the President
the
no article
Rivers and seas The Severn is the longest river in the UK.
Superlatives Football is the best sport in the world. Inventions The computer has revolutionised the way we work
Exclamations Generalisations plural Dogs ore better than What beautiful cots. children you have! Proper nouns meals special People, countries, breakfast/ lunch/ places cities, etc ... dinner/ supper school, college, university, hospital, prison, church
Remember
Specific vs. Nonspecific: Remember that “a” and “an” indicate a nonspecific or generic item, whereas “the” indicates a specific or previously mentioned item. Example: “I need a pen.” (Any pen will do.) “I need the pen you borrowed yesterday” (Referring to a specific pen.)
Error Alert! Even though using articles is important in the English language; however, they are not used everywhere! Cases with zero article usage, often referred to as “zero article”, occur when we don’t use any article (neither “the,” “a,” nor “an”) before a noun. Example: What time do you have breakfast? We went to the shopping mall last week.
44
Part A_AI Grade 10.indb 44
4/12/2025 3:56:20 PM
A well-structured paragraph typically consists of three essential elements: 1. A topic sentence 2. Supporting details 3. A concluding sentence Topic Sentence The topic sentence is like the headline of your paragraph. It introduces the main idea or point that the paragraph discusses. It is a crucial element that guides the reader’s understanding of what is to come. Example: “One of the key benefits of regular exercise is improved physical health.”
Think and Tell State whether the articles in the sentences have been used correctly or not. If not, replace the article with the correct one. 1. Please pass me a salt. 2. He is a honourable man. 3. Rishi has moved to the United States of America. 4. My father is the honest man.
Supporting Details Supporting details are sentences or examples that provide evidence or an explanation for the topic sentence. They add depth and context to your main idea. Example: “Exercise helps strengthen the heart, reduce the risk of chronic diseases, and improve overall fitness.” Concluding Sentence The concluding sentence summarises the paragraph’s main point and often provides a smooth transition to the next paragraph. Example: “Incorporating regular exercise into your daily routine can lead to a healthier and happier life.” Effective paragraphs are not just about structuring sentences, but also about conveying your ideas clearly and persuasively. By constructing paragraphs properly, you are better equipped to communicate your thoughts and engage your readers effectively.
Tips for Writing Effective Paragraphs
Every writer should remember that it is important that their paragraphs are coherent and well-structured. Use the tips given below as a checklist while constructing and writing paragraphs: 1. Unity: Ensure that all sentences in a paragraph relate to the main idea expressed in the topic sentence. Irrelevant information can confuse readers. 2. Coherence: Use transition words and phrases (e.g., “furthermore,” “in addition,” “however”) to connect ideas within a paragraph and make the text flow smoothly. 3. Order: Organise your supporting details logically. You can use sequential order, order of importance, or any other suitable pattern to structure your paragraph effectively. 4. Conciseness: Be clear and concise in your writing. Avoid unnecessary repetition or overly long sentences that may confuse the reader. 5. Variety: Use a mix of sentence structures and lengths to keep your writing engaging. Short, direct sentences can be followed by longer, more descriptive ones for variety. 6. Proofreading: Always proofread your paragraphs for grammar, punctuation, and spelling errors. Clear, error-free writing enhances your credibility.
Transition Words
Transition words, also known as linking words, are essential for creating smooth and coherent written pieces. They help guide readers through the text, showing the logical relationships between ideas and shifts in thought or direction. Here are some common transition words and phrases, grouped by their functions:
Chapter 5 • Basics of Writing Skills
Part A_AI Grade 10.indb 45
45
4/12/2025 3:56:20 PM
Beginning
To begin with Generally speaking
On the one hand To be sure
Comparison/Contrast
On the other hand Despite Still Yet
Nevertheless In spite of Although
Emphasis
Indeed In fact Furthermore
Certainly Especially
Transition Between Paragraphs
First and foremost Moving on, to begin with
On the contrary In regard to
Conclusion
To sum up In the final analysis In brief
To conclude On the whole As a result
Activity Time Activity 1: Paragraph Writing
(Individual Work)
Imagine your teacher has given you a school assignment about the Importance of Internet. Write a 200-250-word paragraph
explaining why internet has become a necessity in today’s world. Use transition words to make your paragraph flow smoothly.
Topic Sentence
Supporting Details
Conclusion
Activity 2: Planning a Podcast
(Pair Work)
Get in pairs. Use the graphic organiser given below to plan your own podcast. In this graphic organiser template, prompts are given to guide your podcast planning. Choose any one topic, idea, or theme that you want to work on. Using the three
essential elements of a paragraph: Topic Sentence, Supporting Details, and Concluding Sentence/s, write a paragraph that you would like to share about. Include information about the concept, audience, and important details for the podcast.
46
Part A_AI Grade 10.indb 46
4/12/2025 3:56:20 PM
Podcast Name: Episode Title: Length: Purpose or Goal: What do you hope to accomplish through your podcast episode?
Overview: What topic will you discuss? (Global Warming, Importance of Reading, The Indian Constitution, Neeraj Chopra, etc.)
Topic Sentence: (What will you say to introduce your topic and hook your listeners?) Supporting Detail 1: (Details, Evidence, Examples) Supporting Detail 2: (Details, Evidence, Examples) Supporting Detail 3: (Details, Evidence, Examples) Concluding Sentence/s: (What should listeners do with the information you shared in this episode? What call to action do you have for them?)
Chapter Checkup A Select the correct option.
1 Which type of sentence asks a direct question? a Declarative c Interrogative
b Imperative
d Exclamatory
2 When do you use the definite article “the”?
a When talking about something in general
b When referring to a unique object or that is one of a kind c When referring to an unspecific item
d When making a general statement about a group
Chapter 5 • Basics of Writing Skills
Part A_AI Grade 10.indb 47
47
4/12/2025 3:56:21 PM
3 Which part of speech is used to replace nouns and avoid repetition? a Verb
b Adjective
c Adverb
d Pronoun
B Fill in the blanks with the most suitable words.
Use transition words or phrases from the boxes to fill in the blanks in the paragraphs. consequently
for instance
however
furthermore
particularly
likewise
nonetheless
moreover
Most habitable places on Earth have at least one species of snake. (1) , the rich, green land of Ireland is one place where ophidiophobes—those who have an excessive fear of snakes—can rest easy, for Ireland has no snakes. The most recent ice age, which ended about 10,000 years ago, made many places in the world too cold for reptiles like snakes to survive. (2) , snakes survived the period by migrating to warmer climates. Once the ice age ended, snakes were able to return to many of those original locations. But why not Ireland? Due to melting glaciers, Ireland’s land link to the mainland Britain and the rest of Europe was cut off thousands of years prior to the end of the most recent ice age. (3) , snakes were blocked from migrating to Ireland by the newly formed seas that surrounded it. As a large island cut off from other land masses, Ireland has maintained its snake-free status for thousands of years. (4) , the large islands of Antarctica, Iceland, Greenland, and New Zealand are also without any wild snakes. C State whether the following statements are True or False. Correct the statements that are false.
1 A well-structured paragraph consists of a topic sentence, supporting details, and a concluding sentence. 2 In the sentence, “The book on the table is mine”, the article “the” is used correctly.
3 A sentence can be considered complete if it contains either a subject or a predicate, but not both. 4 A declarative sentence gives a command and ends with a full stop. D Answer the following questions. (Solved)
Q1. Explain the three essential elements of a well-structured paragraph, with an example.
A1. A well-structured paragraph has three essential elements: a topic sentence, supporting details, and a concluding sentence. • Topic Sentence: The topic sentence tells you what the paragraph is going to be about. It is usually the first sentence of the paragraph.
Example: “Summer is my favourite season because of the warm weather and outdoor activities.”
• Supporting Details: These are the sentences that come after the topic sentence. They give more information, examples, or reasons related to the main idea in the topic sentence.
Example: “During summer, the sun shines brightly, and the days are longer. It is the perfect time for going to the beach, having picnics, and playing outdoor sports.” • Concluding Sentence: The concluding sentence is the suitable ending for your paragraph. It wraps up the main points and sometimes gives a final thought.
Example: “In short, summer brings joy and opportunities to enjoy nature and various outdoor activities.”
Q2. What is a sentence? Describe the four basic types of sentences in detail. Provide examples for each type.
A2. A sentence is a group of words that forms a complete thought, conveying a specific meaning. It is the basic unit of communication in written and spoken language. A sentence typically consists of a subject, which is what the sentence is about, and a predicate, which contains the verb and other words that provide information about the subject’s action or state. The four basic types of sentences—declarative, interrogative, imperative, and exclamatory sentences. • •
Declarative Sentences: Declarative sentences make statements or convey information. They end with a full stop. Example: “The sun rises in the east.” Interrogative Sentences: Interrogative sentences ask questions. They end with a question mark. Example: “Did you finish your homework?”
48
Part A_AI Grade 10.indb 48
4/12/2025 3:56:21 PM
• Imperative Sentences: Imperative sentences give commands, requests, or instructions. They can end with a full stop or an exclamation mark.
Example: “Please pass the salt.”
• Exclamatory Sentences: Exclamatory sentences express strong emotions, excitement, or surprise. They end with an exclamation mark.
Example: “What a beautiful sunset!”
Q3. Rohan is writing a speech on the topic ‘Sustainable Development Goals’. He needs to deliver his speech in the school assembly. He needs your help in writing the speech. What are the tips that you would like to give him? A3. I would ask Rohan to remember that it is important that the paragraphs are coherent and well-structured. The tips given below would help him while constructing and writing paragraphs: • Unity: Ensure that all sentences in a paragraph relate to the main idea expressed in the topic sentence. Irrelevant information can confuse readers. • Coherence: Use transition words and phrases (e.g., “furthermore,” “in addition,” “however”) to connect ideas within a paragraph and make the text flow smoothly. • Order: Organise your supporting details logically. You can use sequential order, order of importance, or any other suitable pattern to structure your paragraph effectively. • Conciseness: Be clear and concise in your writing. Avoid unnecessary repetition or overly long sentences that may confuse the reader. • Variety: Use a mix of sentence structures and lengths to keep your writing engaging. Short, direct sentences can be followed by longer, more descriptive ones for variety. • Proofreading: Always proofread your paragraphs for grammar, punctuation, and spelling errors. Clear, error-free writing enhances your credibility.
Answer Key A 1. c
2. b
B 1. However
3. d 2. Nonetheless
3. Furthermore
4. Consequently
C 1. True
2. True
3. False. A sentence can be considered incomplete if it contains either a subject or a predicate, but not both. 4. False. An imperative sentence gives a command and ends with a full stop.
Chapter 5 • Basics of Writing Skills
Part A_AI Grade 10.indb 49
49
4/12/2025 3:56:21 PM
Unit Reflection
Key Terms Articles: Articles are special words (a, an, the) that are used before nouns to specify whether we are talking about something in particular or something in general. Communication: It is the process of transmitting information from one individual or group to another, using various methods and media. Verbal Communication: It is the process of transmitting ideas and information about thoughts, feelings, and messages from one person to another using words. There are four types of verbal communication: • Oral Communication: It is a form of verbal communication that involves conveying information through spoken words and sentences. • Written Communication: It is a formal and structured mode of communication that uses written language to record and transmit information. • Intrapersonal Communication: It is essentially a private communication that happens entirely within our own minds and can be defined as ‘dialogue with oneself.’ • Interpersonal Communication: It allows individuals to effectively interact and exchange information with others in various personal, social, and professional settings. Non-verbal Communication: It refers to the messages and information that are conveyed without using words or spoken language; it includes expressing thoughts, ideas, and feelings through gestures, facial expressions, and body language. Visual Communication: It is the process of providing information, data, ideas, and thoughts through visuals and graphics. It only uses images, graphs, charts, videos, presentations, and other graphics to convey the message or information to other people or organisations. Decoding: It is the process by which the receiver interprets and understands the message sent by the sender. Effective communication: It means conveying ideas, thoughts, opinions, knowledge, and data clearly, and in a way that others can easily understand, leading to meaningful interactions. Encoding: It is the process of converting the sender’s thoughts and ideas into a form that can be understood by others. Face-to-Face: This type of communication occurs when two people interact with each other in person. Feedback: It is the response or reaction provided by the receiver to the sender’s message. It helps the sender understand the effectiveness of their communication and whether the intended message was understood accurately. There are three types of feedback: • Descriptive feedback: It is a detailed and specific input provided to an individual, focusing on their strengths and areas for improvement in their communication skills or work. • Specific Feedback: It focuses on the particular aspects of a person’s performance or communication skills and offers concrete suggestions for enhancement. • Non-specific feedback: It lacks details and fails to pinpoint areas for improvement, making it less actionable.
50
Part A_AI Grade 10.indb 50
4/12/2025 3:56:22 PM
Phrases: A phrase is a group of words. Unlike sentences, phrases do not have both a subject and a predicate, so they do not express a complete thought on their own. Sentence: A sentence is a group of words that make complete sense on their own. It’s like thoughts captured in words. Declarative sentence: It is a sentence that states a fact or an argument and ends with a full stop (.). Interrogative sentence: It is a sentence that asks a direct question. Interrogative sentences always end with a question mark (?). Imperative sentence: Like declarative sentences, imperative sentences usually end with a full stop (.). Unlike declarations though, the subject (you) is understood and an imperative sentence makes a command or a request. Exclamatory sentence: A sentence that expresses strong feelings like surprise, wonder, sorrow, or happiness. It is a complete statement that ends with an exclamation mark (!). Transition words: Transition words, also known as linking words, are essential for creating smooth and coherent writing. They guide readers through your text, showing the logical relationships between ideas and signalling shifts in thought or direction. 7 Cs of Communication: Clarity: Messages should be clear, straightforward, and easy to understand. Conciseness: Being concise means conveying the message using a few words to make it brief and comprehensive. Concreteness: Being concrete means being very specific and using tangible examples to make your message vivid and convincing. Correctness: It pertains to the accuracy of your message in terms of grammar, spelling, punctuation, and factual correctness. Coherence: It involves organising your message logically and ensuring that the ideas flow smoothly from one point to another. Completeness: A complete message provides all the necessary information that the recipient needs to take necessary action or make informed decisions. Courtesy: It refers to the tone and manner in which a message is conveyed. There should be respect and consideration for the recipient’s feelings and opinions.
Things to Remember • Interpersonal communication can be further divided into three types: face-to-face communication, small-group communication, and public communication. • The communication cycle has various elements like the sender, message, encoding, channel, receiver, decoding, and feedback. • Feedback is a crucial element within the communication cycle. For communication to be effective, the feedback should be timely and appropriate. It can either be positive or negative. • Descriptive feedback must be goal-oriented, actionable, user-friendly, timely, continuous, and consistent. • The 7 Cs of communication help to ensure that a message is conveyed clearly and comprehensively. • A communication barrier is an obstacle that prevents the receiver from receiving and understanding the message that has been sent by a sender.
Unit Reflection
Part A_AI Grade 10.indb 51
51
4/12/2025 3:56:22 PM
• The barriers to effective communication can be of many types, like linguistic, physical, interpersonal, organisational, and cultural. • There are various factors which can act as barriers in effective communication like lack of clarity, lack of feedback, distractions, cultural differences, power dynamics, technological issues, etc. • To engage in effective communication, one should take care of the following principles: simple language, definite purpose, completeness and concision, appropriate medium, authenticity, courtesy, active listening, and adaptability. • Every sentence can be broken down into two essential parts: a subject and a predicate. A subject in a sentence is a word or a group of words that tell the name of a person or thing that the sentence is about. A predicate in a sentence is the part of a sentence that tells what the subject is doing or what/who the subject is. • There are eight parts of speech in the English language: Noun, Pronoun, Adverb, Adjective, Verb, Preposition, Conjunction, and Interjection. • There are two main types of articles: Definite article (the) and Indefinite Articles (a/an). • A well-structured paragraph should include three elements: a topic sentence, supporting details, and a concluding sentence.
52
Part A_AI Grade 10.indb 52
4/12/2025 3:56:22 PM
Test Your Knowledge A. Select the correct option. 1. What are the types of communication barriers? a. Linguistic, personal, private, public, and cultural. b. Linguistic, physical, interpersonal, organisational, and cultural. c. physical, mental, private, public, and linguistic. d. interpersonal, emotional, private, public, and cultural. 2. Which of the following types of feedback focuses on the strengths and areas for improvement in communication? a. Negative
b. Descriptive
c. Non-specific
d. No feedback
3. Which of the following is an example of oral communication? a. Newspapers
b. Letters
c. Phone call
d. Email
4. A message is transferred from its sender to the receiver through a
.
a. Decoder
b. Feedback
c. Channel
d. Encoder
5. Which of the following can be considered as a physical barrier? a. Two people communicating in different languages. b. Two people arguing at the office. c. Two people talking on the phone with a poor line connection. d. Two students giving speeches on the same topic but with different accents. 6. Which of the following is defined as dialogue with oneself? a. Intrapersonal communication
b. Oral communication
c. Public communication
d. Small-group communication
7. Which of these is an example of a Declarative Sentence? a. It is raining outside.
b. Who are you?
c. Please open the door.
d. Hurray! It’s raining outside.
8. Which of the following sentences has an adjective? a. Raj has a blue shirt.
b. He can speak Spanish.
c. She will go by train.
d. Meera can run fast.
9. Which of the following includes expressing thoughts, ideas, and feelings through gestures, facial expressions, and body language?
a. Verbal communication
b. Non-verbal communication
c. Visual communication
d. Interpersonal communication
Unit Reflection
Part A_AI Grade 10.indb 53
53
4/12/2025 3:56:22 PM
means use of brief and comprehensive words to convey the message.
10. a. Clear
b. Completeness
c. Conciseness
d. Correctness
B. Fill in the blanks with the most suitable words. 1. Unclear or incomplete messages can lead to confusion,
, and misinterpretation.
2. An
barrier in communication refers to obstacles that arise due to the equation of the relationship
3. The
is the individual or group who decodes and interprets the message sent by the sender.
between two people.
4.
feedback is an indicator to the sender that there is a need to modify the mode of communication as
5.
communication is the process of providing information, data, ideas, and thoughts through pictures,
their ideas are not being communicated effectively. images, and info graphics.
6. Transition words are also known as 7.
words.
involves organising your message logically and ensuring that ideas flow smoothly.
8. Delivering a speech in public is an example of
communication.
C. State whether the following statements are True or False. Correct the statements that are false. 1. All regions have their own languages and not knowing them does not cause any hindrance. 2. A communication barrier is an obstacle that prevents the receiver from receiving and understanding the message that has been sent by the sender.
3. A message refers to the information, ideas, or thoughts that the sender wants to communicate to the receiver. 4. Feedback is an important component of an effective one-way communication. 5. Face-to-face communication is a type of communication when two people interact with each other in person. 6. Non-verbal communication refers to the messages and information that is conveyed by using words or spoken language. 7. We do not use ‘the’ before the names of newspapers. 8. Good communication helps people understand each other better, reducing confusion and mistakes.
D. Short answer-type questions. 1. Explain organisational barriers with an example. 2. Differentiate between encoding and decoding. 3. Define written communication. 4. Explain the two parts of a sentence with an example. 5. Describe effective communication.
E. Long answer-type questions. 1. What are the factors contributing to communication barriers? 2. Differentiate between specific and non-specific feedback. 3. What is non-verbal communication? State its advantages.
54
G-10_Unit 1_Recap _ Assessment.indd 54
4/12/2025 3:59:16 PM
4. Define phrases. Give examples of each of the four types of phrases. 5. Explain the principles of effective communication.
F. Competency-based questions. 1. Professor Krishna teaches at Tamil Nadu University. He needs to deliver a speech at a university located in Delhi, North
India. But, Prof. Krishna is under-confident due to the language and cultural barriers. What, in your opinion, might be the actions that Prof. Krishna need to take?
2. Rakesh and Vinay, who are the senior employees of an organisation, are required to provide detailed feedback to a junior worker. What factors must they take into account before giving the feedback?
3. Prakshi has to appear for an interview for the role of sales manager. Although Prakshi is well-versed in her subject matter and has good communication skills, what steps should she follow in the interview which can increase her chances of getting hired?
4. Moksh works for a multi national firm. He was asked to write a paragraph about teamwork so that other workers could read it and understand the value of teamwork. Moksh is confused about how he should structure his paragraph. What suggestions would you like to give to Moksh?
5. Some parts of the city of Raipur were being affected by the rising communal riots. The senior manager in a corporate
bank advised employees who were from riot-affected areas to avoid coming to the office the next day. However, because
the information was shared with many people working at different levels, when it got to the employees, it was modified to a work-from-home notice for everyone. What might have been the best course of action for the bank manager to follow?
Unit Reflection
Part A_AI Grade 10.indb 55
55
4/12/2025 3:56:22 PM
Unit 2 • Self-management Skills-II
6
Stress Management S
elf-management is the capability of an individual to manage their behaviours, thoughts, and emotions in a productive way that helps them to reach their goal and feel good about themselves. It enables a person to excel in both personal and professional spheres. When people can manage themselves well, they generally become more productive and content. An individual should understand his responsibilities and work towards fulfilling them on their own. For example, Vikas is a Product Manager at Prepare EdTech Co. He effectively manages himself to ensure productivity and happiness. He has a morning routine, he prioritises things in his to-do lists, keeps track of his time, and doesn’t get distracted easily. He sets his goals and achieves them; he connects with other people and aims to learn continuously. He also practices healthy living and as a consequence, gets sufficient time to spend with his family. Hence, self-management is an integral part of his life.
Elements of Self-management
Time Management The capacity of an individual to manage and allocate time to various tasks and responsibilities while minimising distractions and unproductive activities. Self-motivation It’s the internal drive and enthusiasm that prompts an individual to take initiative, set goals, and persistently pursue them. Self-awareness Self-aware individuals can reflect on their internal experiences and gain insight into their personality and skills. This will help them to make informed decisions. Stress Management The ability of an individual to handle their work efficiently and effectively even under pressure or difficulties. Decision Making The capacity to resolve issues, address the problems, and make rational decisions by considering all the factors involved. To Have a Goal It is essential for an individual to have a fixed goal and to continuously work towards achieving it. Personal Development new things.
A person should continuously strive hard and improve their existing knowledge and learn
56
Part A_AI Grade 10.indb 56
4/12/2025 3:56:22 PM
Stress Management
Stress is an automatic physical, mental, and emotional response to a challenging and difficult event. It is a common phenomenon in everyone’s fast-paced life and can get triggered due to various personal and professional reasons. The threats, challenges, and difficult events causing an emotional disturbance or stress are called stressors. They can be self-induced or external. Few examples of stressors can be: 1. You are feeling unprepared for an examination. 2. You haven’t completed your project before the submission date. 3. You experience the loss of someone close to you. Various factors that contribute to stress are: • Personal Relationships
• Lack of Control
• Financial Issues • Societal or Peer Pressures • Health Concerns • Technology Overload • Greed for materialistic pleasures
• Bad Experiences
• Unrealistic Goals • Discrimination
Stress can cause anxiety, irritability, and other serious ailments like headaches, body pains, loss of appetite, heart-related issues, etc. It can impact your mental health severely. You can also lose your ability to concentrate properly and can start feeling lonely even in familiar surroundings. But we have to cope with it to lead a happy and fulfilling life.
Error Alert! It is a misconception that all stress is harmful. Stress necessarily does not have a negative impact on us. Positive stress, often referred to as “eustress,” can motivate and energise you to perform well and achieve goals.
An individual can experience eustress when they are quite confident about their abilities and it leads to a positive response. After coping with a situation, they feel a sense of accomplishment. For example, Richa had to submit her project before the deadline and she successfully achieved her goal. She had to manage her time well and organised her tasks efficiently. The situation was stressful but it motivated her to take up more challenges in life. The way in which we respond to stress and manage in today’s world is of utmost importance. Stress management refers to the different ways, strategies, techniques, and practices used to reduce, cope with, and ease the physical, emotional, and psychological effects of stress. There are a variety of mechanisms which can help you to deal with stress in your life in a better way. Stress management is about learning how to deal with tough situations in a healthier and calmer way, so we can feel better and stay balanced.
Importance of Stress Management
The importance of stress management lies in its ability to promote overall well-being and help individuals to effectively navigate through the challenges of life. These are a few reasons:
Improving Physical Health
Stress can have a negative impact on physical health as it can lead to high blood pressure, cholesterol, obesity, and other lifestyle diseases. It is important to manage your stress to remain physically fit.
Improving Mental Health
Stress can have an equal amount of negative impact on one’s mental health and can lead to depression, anxiety, and many other related issues. Thus, stress management can help you cope with mental health issues.
Chapter 6 • Stress Management
Part A_AI Grade 10.indb 57
57
4/12/2025 3:56:23 PM
Cognitive Functioning
If you learn to manage your stress well, your cognitive skills, decision making abilities, problem-solving abilities, and rational thinking will not get hampered.
Productivity
Excessive stress can lead to decrease in one’s productivity as it leads to distraction and reduction in focus. Hence, stress management can help in making you more productive.
Relationships
High-stress levels can lead to strained relationships as people become irritable and are not able to communicate well. Thus, stress management is all the more important.
Quality of Life
Effective stress management definitely helps in improving one's quality of life. Destressing leads to improved communication and a better lifestyle, thus improving the quality of life.
Resilience
Learning how to manage stress builds resilience, enabling individuals to cope better with future challenges.
Emotional Regulation and Adaptability
Stress management also helps in regulating one’s emotions well. Thus, it improves your relationships and helps you to adapt to changing environments.
To Enhance Performance
Stress management has always helped individuals enhance their performance. When anyone is in better control of their emotions, they automatically perform better.
Tips to Manage Excessive Stress 1. Keep a positive attitude.
2. Assert your feelings, opinions, or beliefs instead of becoming angry, defensive, or passive. 3. Learn to manage your time more effectively. 4. Set limits appropriately and refuse requests that would create excessive stress in your life. 5. Create time for hobbies and interests. 6. Seek out social support. Spend enough time with your loved ones. 7. Reach out to a psychologist or other mental health professionals if you need any help.
Stress Management Techniques
It is common to encounter stressful situations in life. But there are various techniques and methods to manage our stress effectively so that such situations do not overwhelm us. Let us look at some of them: Physical Exercise It includes all the activities that help an individual maintain physical fitness, and mental wellbeing, and help improve their sleep. Engaging in physical exercises keeps us healthy, active, and helps to build immunity. Various organ systems of our body start functioning properly. We can indulge in various exercises, like running, jogging, dancing, cycling, swimming, aerobics, etc.
58
Part A_AI Grade 10.indb 58
4/12/2025 3:56:23 PM
Here are a few benefits of doing exercises regularly: 1. Release of Endorphins: Physical activity triggers the release of endorphins, which are natural “feel-good” chemicals that reduce stress and improve our mood. 2. Reduces Stress: Exercise helps to lower the level of the stress hormone like ‘cortisol’, which leads to a decrease in stress and anxiety. An individual can also vent out negative emotions and feelings using vigorous exercises. 3. Enhances Coping Mechanism: Regular exercises build resilience and strengthen a person physically and mentally. Thus, people are able to cope better with stress in the long term. 4. Boosts Confidence: It helps an individual feel more confident by improving their body image. 5. Better Mood: Regular exercise can make you feel less worried and avoid daily life stressors. It’s like a natural mood enhancer.
Think and Tell
• Imagine sitting down in a quiet corner and listening to soft music at the end of a hectic day. How would you feel? • Is ‘all work and no play’ a right way to lead your life?
6. More Energy: Exercise gives you an energy boost, which is great when stress is making you feel tired. Yoga Yoga is a part of our culture and its popularity is growing considerably as people are experiencing various health benefits. Different physical postures, meditation, breathing exercises, and relaxation techniques are very useful in reducing stress. The yoga exercises that focus on slow movement, stretching, and deep breathing are best for lowering your anxiety and stress levels. It should be a part of your daily routine so that it can provide a positive impact, both physically and mentally. Here are a few benefits of doing yoga regularly: 1. Improves strength, balance, and flexibility of an individual. 2. Can help you manage stress and reduce stress hormones. 3. Relaxes your mind to help you sleep better. 4. Provides relief in back pain and can ease symptoms of various ailments, like arthritis, asthma, etc. 5. Promotes self-care and helps in keeping your emotions in control.
Did You Know? Laughing counts as an exercise and acts like a mini-workout. It aims to cultivate joy, engages various muscles, and helps you let go of stressors.
6. Ensures more energy, a sense of happiness, and brighter moods. Meditation Meditation gives a sense of calm and balance to an individual’s life. It has worked wonders for many people and has many benefits. You need to focus your attention on something calming, like an image or chant a mantra; it will lower your stress and anxiety considerably. It will help you relax and improve your sleep, energy levels, and mood. To meditate, you will need to have the following things in place: 1. Find a quiet place. 2. Get into a comfortable position. 3. Focus your attention on a word, image, phrase, object, or even your breath.
Chapter 6 • Stress Management
Part A_AI Grade 10.indb 59
59
4/12/2025 3:56:23 PM
Here are a few of the most common benefits that people experience when they practice meditation on a regular basis: 1. Reduces stress and helps control our anxiety 2. Helps increase our concentration power and attention span 3. Promotes emotional health and doesn’t let you fall in the trap of negative thinking 4. Clears your mind and enhances your creativity and imagination 5. Helps us stay calm during stressful situations 6. Ensures that an individual becomes more self-aware 7. Improves the sleep cycle of an individual Enjoying Engaging in enjoyable activities is a wonderful way to improve your mental health and well-being. One should find time to indulge in hobbies, activities, and events that they enjoy the most. It helps us cope with stressful situations in daily life. Enjoying your life can help you with stress management by: 1. Mood Enhancement: Doing things that you enjoy releases positive chemicals in your brain, like endorphins. That will instantly boost your mood and reduce stress. 2. Stress Relief: Participating in activities you love shifts your focus away from daily life stressors. It provides a healthy distraction and lowers stress levels. 3. Provides a Necessary Break: Enjoyable activities give your mind a break from excessive worrying and overthinking, allowing you to relax and recharge. 4. Positive Emotions: Laughter and joy associated with enjoyable activities trigger the release of chemicals that counter stress hormones. 5. Reduced Tension: Engaging in activities that you like relaxes your tense muscles and alleviate physical symptoms of stress. 6. Escape from Routine: Indulging in fun activities can provide a break from your regular schedule and create an opportunity to refresh your mind. 7. Restored Energy: Having fun can provide a burst of energy that can help you combat fatigue, which often accompanies stress. Going for Vacations and Holidays Vacations and holidays with friends and family can provide a necessary break from the mundane routine of life. It provides an opportunity to break free from the hectic schedule and helps in slowing down the pace of one’s life. It helps an individual to indulge in refreshing experiences, come close to nature, strengthen bonds with family, and let go of their stress. Here’s why vacations are great for reducing stress: 1. Relaxation: Vacations offer a much-needed break from the monotonous routine, allowing you to relax and unwind, which can significantly reduce stress levels. 2. Change of Environment: Going to a new place can help you detach from your usual stressors and gain a fresh perspective on different things.
60
Part A_AI Grade 10.indb 60
4/12/2025 3:56:24 PM
3. Disconnecting: Taking a break from work, emails, and social media during a vacation gives your mind a chance to rest and reduces information overload. 4. Physical Rest: Vacations usually involve more sleep and physical rest, which helps your body recover from stress. 5. Positive Memories: The memories you create during vacations will serve as positive anchors when you struggle to manage stress during difficult times. 6. Stress Hormone Reduction: Vacations can lead to decreased levels of stress hormones like cortisol and make you more relaxed. Taking a vacation, whether short or long, allows you to recharge both physically and mentally, ultimately helping you better manage and cope with stress when you return to your regular routine. Nature Walk It is important that one goes back to nature or at least be with nature from time to time. Nature is the besthealer. Taking a nature walk is a simple yet powerful stress management technique that involves walking in a natural environment, such as a park, forest, beach, or any outdoor space with greenery. Here’s why nature walk can help to considerably reduce stress levels: 1. Fresh Air and Oxygen: Being outdoors exposes you to fresh air and provides an abundance of oxygen, which can help clear your mind and improve your mood. 2. Natural Beauty: Surrounding yourself with the beauty of nature, including trees, mountains, and water bodies, can calm and soothe your mind. 3. Reduced Mental Fatigue: Nature also helps in reducing mental fatigue caused by constant screen time and mental demands, giving your brain a much-needed break. 4. Time for Reflection: Nature provides a peaceful setting where you can introspect and contemplate about various solutions to challenges. 5. Improved Mood: Exposure to natural sunlight can boost serotonin levels. It will promote feelings of happiness and reduce anxiety. 6. Technology Detox: A nature walk provides a golden opportunity to disconnect from screens and digital devices, reducing stress caused by external factors. A small amount of stress may be beneficial for us and help us stay motivated, but too much stress can interfere with our daily life. The inability to cope with stress can cause many health problems. Stress can be dealt with the help of the techniques discussed in this chapter.
Chapter 6 • Stress Management
Part A_AI Grade 10.indb 61
61
4/12/2025 3:56:24 PM
Activity Time (Group Work)
Activity 1: Let’s Exercise Together
As we all know, stress has become a part of our daily life and we have to deal with such situations regularly. Your teacher
has suggested that it will be beneficial to conduct a few stress management exercises in the class daily for 10 minutes. Get in groups of four and propose one exercise each that can be conducted in your class and highlight its importance to your classmates.
(Individual Work)
Activity 2: A Wonderful Trip
You went on a trip with your family and friends during your summer vacations. It helped you to relax and spend some
quality time with your closed ones. Write an essay on how was your trip and recount a few memories from those days.
Chapter Checkup A Select the correct option.
1 Which is a stress management technique?
a Cycling b Watching TV all day c Chatting with others
d Spending excess time on social media
2 How can we manage stress effectively? a By having a negative attitude
b By creating time for our interests and hobbies c By worrying continuously
d By having no goal in life
3 How is nature walk helpful in making our mind calm? a By increasing mental fatigue
b By spoiling our mood
c By spending extra time on screens
d By giving us time to reflect on our actions B Fill in the blanks with the most suitable words. 1 Positive stress is referred to as 2
3 Exposure to
.
individuals have an ability to reflect on their internal experiences.
4 By being
can boost seroton in levels.
and not aggressive, one will be able to put across one’s feelings and thoughts properly.
C State whether the following statements are True or False. Correct the statements that are False. 1 Meditation helps in relaxing our body and mind.
2 Indulging in fun activities forces you to adhere to your regular routine. 3 Doing exercises regularly will improve your sleeping patterns. 4 Nurturing hobbies and interests are a waste of time. D Answer the following questions. (Solved)
Q1. What are the different stress management techniques an individual can use to de-stress themselves? A1. The various stress management techniques are as follows: • Physical Exercise
62
Part A_AI Grade 10.indb 62
4/12/2025 3:56:24 PM
• Yoga
• Meditation • Enjoying
• Vacations with friends and family • Taking a nature walk
Q2. Why do you think vacations are important?
A2. Vacations can be very relaxing and rejuvenating. They provide a much-needed break from the mundane routine and hectic schedules. The reasons why vacations are important are as follows: • Vacations give you time to unwind and relax. • They help you connect with the nature.
• They also help you to disconnect from usual stressors and provide a digital detox. • Vacations with friends and family also provides physical rest to your body. • It gives you a chance to create positive memories.
Q3. Rahul is about to appear for his annual exams. He is studying very hard to score good marks. However, he is under a lot of stress due to his family’s expectations from him. What measures do you suggest he should undertake in order to appear for his exam without any stress? A3. Measures that can be undertaken by Rahul are as follows:
• Study regularly and avoid any last-minute preparations as it would lead to more stress.
• Time management is the key. Rahul should use his time judiciously and prepare/revise according to the time tables created by him. • Sleep well and have a proper diet.
• Arrange all the things required for the exam the previous night as it helps avoid any stress at the last moment. • Do not think too much about the expectations of your family as stress is not healthy for your mind. • Relax yourself by meditating daily as it will improve your concentration power.
• You can take a break for a short period by indulging in any activity that you love, like dancing or listening to music. It will allow you to relax and recharge yourself.
Answer Key A 1. a
2. b
B 1. eustress
3. d 2. Self-aware
3. natural sunlight
4. assertive
C 1. True
2. False. Indulging in fun activities gives you a break from your regular routine. 3. True
4. False. Nurturing hobbies and interests is very useful.
Chapter 6 • Stress Management
Part A_AI Grade 10.indb 63
63
4/12/2025 3:56:25 PM
Unit 2 • Self-management Skills-II
7 Ability to Work Independently I
n a professional setting, individuals get the opportunity to complete their tasks in two main ways: with a group of colleagues or all by themselves. When people work in a group, they learn to work as a team. This can be helpful because everyone brings different skills and ideas to the table. Working within a group encourages different perspectives and the sharing of responsibilities. People come up with creative solutions and new ways of doing things together. On the other hand, working on our own has its own advantages. When someone works independently, they have the freedom to make decisions and work at their own pace. An independent worker can concentrate deeply on their work without distractions. They also don’t have to wait for others’ opinions or approval, which can speed things up. It is important for individuals and organisations to think about what works best for their goals and preferences.
Group Work
Independent Work
Ability to Work Independently
The ability to work independently means being capable of completing tasks and responsibilities on your own, without needing constant guidance from others. It means that you have to make your own decisions and organise your work properly because only you are accountable for it. It will increase your confidence and self-esteem. 1. When you work independently, it helps you set and achieve your goals on time. It also helps you understand yourself better. 2. You become less dependent on others and also develop leadership qualities.
64
Part A_AI Grade 10.indb 64
4/12/2025 3:56:25 PM
3. Time management is an essential aspect of independent work. You need to manage and organise your tasks effectively. 4. You become your own boss and learn to take initiatives. You have to pave a path to success for yourself. 5. For example, if you are given the responsibility to make a PowerPoint presentation on a project, you will learn to execute your skills efficiently. You have to bring your own ideas to the forefront and also manage your time well. If the presentation turns out well, it will boost your self-esteem and motivate you to grow further.
Characteristics of an Independent Worker
1. They are self-reliant and do not depend on others for approval or meeting deadlines. 2. They are very determined about their work and set their own goals. 3. They are self-motivated and push themselves to overcome challenges. 4. They have problem-solving and decision-making abilities as they encounter difficulties and seek answers on their own. 5. They are confident in their own actions and decisions. They develop an ability to handle their problems well.
Importance of the Ability to Work Independently Boosts Confidence
Increases Self-esteem
Makes You Accountable
Time Management
Improves Decision-making Skills Brings Out The Best In a Person
Boosts Confidence Working individually without any other support definitely boosts the confidence of an individual. You are like your own boss and do not have to follow anyone’s instructions. This will enhance your confidence and your ability to work, as you will gain more knowledge. Improves Decision-Making Skills An independent worker needs to take all the important decisions on their own to keep moving ahead. One cannot rely on other opinions and has to make bold and timely calls. This helps in building decision-making skills in an individual, as they know that it will only impact them in the future. Brings out the Best in a Person If you work alone, then you put in more effort to make your work stand out. You get the opportunity to express your ideas and thoughts without any obstacles. Thus, it brings out the best in you. The final work is the end result of the time and efforts you have put in. Makes You More Accountable If you are working without a team, then you are responsible for both accurate and inaccurate outcomes. You need to inculcate a sense of responsibility for your work and take full ownership of it, even if something goes wrong. Increases Self-esteem When people accomplish a goal on their own, it improves the way they think about themselves, and other people also perceive them in a different light. It boosts their self-esteem and makes them value themselves more. Enhance Time Management Skills Working independently also teaches you a very important skill—time management. You learn how to manage your things efficiently and organise your tasks in a proper manner so that there is no delay in producing the outcome.
Chapter 7 • Ability to Work Independently
Part A_AI Grade 10.indb 65
65
4/12/2025 3:56:26 PM
To achieve self-independence, we need to hone the following three skills:
Self-awareness
Self-motivation
Self-regulation
Think and Tell List down all your hobbies and interests. Discuss how you will manage your hobbies and studies together.
Self-awareness
The ability to recognise and understand one’s own thoughts, feelings, behaviours, and qualities is referred to as self-awareness. It involves being aware of your own strengths and flaws, as well as your values, beliefs, and emotions. You will know how they influence your actions and interactions with others. A person is prepared to work towards his goal in an effective manner when he is aware of how he thinks and what he thinks. It also involves having a good understanding of one’s own identity, desires, and motives. Only then can individuals make more informed decisions. 1. It is the ability to recognise, focus on, evaluate, and overcome one’s own weaknesses and limitations. 2. It will help you develop a positive mindset and progress towards achieving your goals. 3. The most important step towards self-awareness is paying attention to our emotions, thoughts, and behaviour. 4. For example, Rohan has joined a new firm as a Communications Trainer. He has his first project and has to give training to the Sales Department. He is feeling nervous and under-confident. He starts to make a list of their strengths and weaknesses. Then, he spots the areas where more attention is required and prepares himself accordingly. This increased his confidence in his abilities and made him more self-aware.
Types of Self-awareness Type of Self-awareness Public self-awareness
Explanation When you are conscious of how you are perceived publicly by other individuals or society, you have developed public self-awareness. Some people behave in a certain manner that is acceptable in society, as they are aware that they are being evaluated by other people. Such individuals are called ‘pleasers.’ All individuals try to impress others with their actions and behaviour when they are aware that all attention is on them.
Examples If we have to give a speech on our organisation’s Annual Day event, we will be aware that everyone’s attention is on us, so we become conscious of how we speak, what we speak, and our body language.
This type of self-awareness can also be harmful, as individuals can become pressurised by the expectations of society. Private self-awareness
When you are conscious of how you behave about certain things or situations and how it will impact others. With this type of self-awareness, you are able to notice and examine your own thoughts, feelings, and motivations. All individuals are aware of their actions and can reflect on them personally. Others cannot easily observe what is going on inside their minds.
Even when we have properly revised everything the night before an exam, our hearts still beat fast as the examination time approaches.
66
Part A_AI Grade 10.indb 66
4/12/2025 3:56:27 PM
We need to be self-aware publicly and privately because these two aspects are very important for our mental health. Our mental health gets hampered from unnecessary negative thoughts.
Steps to Improve Self-awareness
Think and Tell Imagine you had a very rough day at school, how will you make sure that your day ahead doesn’t go like that?
1. Meditation helps in knowing and relaxing your body and mind. 2. Journal writing helps you note down your emotions, feelings, strengths, and weaknesses. 3. One needs to learn to create boundaries in order to maintain a healthy body and mind. We should refuse if we do not feel comfortable. 4. In talk therapy, you can express your emotions, feelings, and insecurities to a professional or a close person. They can talk to you about both your positive and negative thoughts. 5. Expressing your thought process to other people is also important. No one will clearly know what goes on in your head until you tell them.
Error Alert! Why do I need to know myself? People frequently wonder why they need to know themselves. They feel they already know everything. However, when you begin to learn about yourself, you will discover a new aspect every time.
Self-motivation
Self-motivation refers to the internal drive and determination that inspire an individual to take actions, achieve goals, and put in efforts even when faced with challenges or obstacles. It is the ability to find inspiration and energy within oneself, rather than relying on others. A self-motivated individual always takes the lead, works hard, and pushes himself to achieve his goals. It’s like having your own cheerleader within your own mind, who encourages you to keep going and do your best. 1. It is a life skill that needs to be inculcated within every individual. 2. It can be seen as an inner force that motivates every person to work towards accomplishing their goals and living a meaningful life.
Chapter 7 • Ability to Work Independently
Part A_AI Grade 10.indb 67
67
4/12/2025 3:56:27 PM
Types of Self-motivation Type of self-motivation
Explanation
Examples
Intrinsic self-motivation
Intrinsic self-motivation is the drive that comes from within to accomplish a particular goal by putting in a lot of effort and hard work.
When you practice your favourite sport without feeling burdened or tired even after getting up early in the morning.
This typically comprises a job or a hobby that a person finds enjoyable rather than a huge burden of work to complete. This, the process of completing a task more rewarding than the actual accomplishment. So, this motivation comes from within and the individual is not concerned about the rewards or appreciation that come along with it. Extrinsic self-motivation
When you want to learn a new skill, then you take out time from your hectic schedule.
The drive to achieve a particular goal that comes from outside is known as extrinsic self-motivation. An action is performed due to external motivations like power, money, or rewards.
When you study hard to get good grades because your father promised a new gift.
This usually refers to a task that a person performs solely due to external factors and without any genuine passion for it.
An employee works day and night for a project because it will be reviewed for his salary increment.
Every person likes when they receive appreciation for any task they have completed, and working only by keeping that in mind is extrinsic motivation.
Importance of Self-motivation
Self-motivation is a critical attribute that can significantly impact various aspects of life. It is a valuable trait that can empower individuals to lead successful and fulfilling lives. Goal Achievement Self-motivated individuals are more likely to set and work towards achieving their goals. They have a strong internal drive that drives them forward, even in the face of obstacles. Productivity and Efficiency Self-motivated people tend to be more productive and efficient in their work. They have the initiative to start tasks and the determination to complete them with high quality results. Resilience A self-motivated individual is more likely to bounce back and persevere at the face of setbacks or failures. This makes them resilient by nature. Personal Growth Self-motivation is a driving force behind personal growth and self-improvement. It encourages individuals to continuously learn, develop new skills, and seek opportunities for self-enrichment. Independence and Autonomy Self-motivated individuals are often more independent and self-reliant. They are less dependent on external factors like rewards or external pressure to take action.
Tips to Stay Self-motivated
1. Develop healthy practices for progress toward your goals. 2. Set SMART goals for yourself. Your goal should be specific, measurable, attainable, relevant, and time-bound. 3. Prioritise your work and avoid all the distractions that come your way. 4. Always be grateful and humble for what you have achieved. 5. Self-evaluation is very essential to assess one’s growth, weaknesses, and strengths. 6. Learn to manage your time and maintain a healthy lifestyle.
68
Part A_AI Grade 10.indb 68
4/12/2025 3:56:27 PM
Self-regulation
The ability to control and manage your thoughts, emotions, and behaviours in different situations is referred to as self-regulation. When you practice self-regulation, you can calm yourself even when you’re unhappy, be patient even when things are difficult, and stay focused even when there are distractions. It is about controlling your own reactions, behaviours, and state of mind. It is about teaching your brain to process information before acting and not reacting in a hurried manner. 1. It is like having a control centre in your mind which helps you to regulate your feelings and make good decisions. 2. It helps you to focus on pursuing your goals without any distractions. For example, a person going through overwhelming emotions on their personal front does not let that overpower their professional commitments.
Importance of Self-regulation
Self-regulation is needed in various aspects of life, as it plays a vital role in personal development, mental and emotional well-being, and success in both individual and societal contexts. Emotional Well-being Self-regulation helps individuals manage their emotions effectively. It enables them to recognise and cope with stress, anxiety, anger, and other negative emotions, leading to improved mental health and overall well-being. Adaptability People with self-regulation skills are more adaptable to change. They can adjust to new situations, environments, and circumstances with greater ease. Ethical Decision-Making It helps people make ethical and moral decisions by considering the consequences of their actions and aligning them with their values. Stay Positive Self-regulated individuals look at the situations from a positive point of view. It helps them remain calm at time of stress. They consider every challenge as an opportunity to learn and improve their efforts. To Resolve Conflicts Self-regulation allows an individual to consider different opinions and empathise with colleagues and others they interact in the workplace. A self-regulated professional help in solving workplace conflicts without emotions guiding their decisions.
Error Alert! People will often misunderstand you as being selfish after you start working on yourself. But remember that it is always important to be a better version of yourself.
Activity Time Activity 1: Working Independently vs Working in a Group
(Group Work)
In a group, discuss whether you like to work individually or in a group. Then, prepare a chart on the pros and cons of working independently.
Activity 2: Role Play on Self-awareness
(Group Work)
Prepare a role play on ‘Self-awareness’ in the class within a fixed time period. Prepare a storyline and include all the steps taken to become a self-aware person. Students can volunteer for the roles. You cannot take the help of your teacher.
Chapter 7 • Ability to Work Independently
Part A_AI Grade 10.indb 69
69
4/12/2025 3:56:28 PM
Chapter Checkup A Select the correct option.
1 Ability to work independently means
a completing one’s own responsibilities.
b completing others’ responsibilities.
c completing everyone’s responsibilities.
d completing one’s own and others’ responsibilities.
2 The capacity to be aware of one’s thoughts, values, and emotions is called a selfishness b self-awareness c motivation d discipline
3 Which of the following is NOT a step to improve self-awareness? a Journal writing c Talk therapy
b Meditation d Fighting
B Fill in the blanks with the most suitable words. 1
is the process of writing down one’s thoughts and emotions to work upon them.
2
self-motivation is the drive that comes from within to accomplish a task.
3 The ability to control and manage your thoughts, emotions, and behaviours is called 4 The ability to work independently will
.
your confidence.
C State whether the following statements are True or False. Correct the statements that are false. 1 The ability to know yourself and your emotions is called selfishness. 2 There is no need to regulate your emotions.
3 Self-awareness, self-motivation, and self-regulation are essential skills that we need to hone if we want to work independently. 4 Meditation helps in relaxing your body and mind. D Answer the following questions. (Solved) Q1. What is self-regulation?
A1. Self-regulation is knowing one’s behaviour, emotions, and ideas, and controlling them for future objectives. It involves controlling your state of mind and the situations that upset you. It’s about teaching your brain to process information before acting. It places a strong emphasis on concentrating and pursuing goals, and helps in regulating emotional reactions and controlling them.
Q2. Differentiate all the three skills needed to work independently. A2.
Basis
Self-awareness
Self-motivation
Self-regulation
Definition
The ability to recognise and understand one’s own thoughts, feelings, behaviours, and qualities is referred to as self-awareness.
Self-motivation refers to the internal drive and determination that inspires an individual to take an action, achieve goals, and put efforts even when faced with challenges or obstacles.
The ability to control and manage your thoughts, emotions, and behaviours in different situations is referred to as self-regulation.
Examples
Writing down your strengths and flaws, so that you become more aware about yourself.
Learning a new skill on your own, being appreciated for doing good work, etc.
A person going through overwhelming emotions on their personal front does not let that overpower their professional commitments.
70
Part A_AI Grade 10.indb 70
4/12/2025 3:56:28 PM
Q3. Nitesh is a senior in high school. He is the captain of the school basketball team, as well as a member of the school drama and debate clubs. As college admissions approach, Nitesh is unsure which course to pursue further because he is interested in all three. What is your opinion on Nitesh’s approach to resolving the problem?
A3. Nitesh’s involvement in the school basketball team, drama club, and debate club showcases his diverse interests and talents. This not only reflects his willingness to explore different areas but also exposes him to a variety of skills and experiences. All three aspects provide different learning, exposure, and experience. Moreover, Nitesh’s ability to manage multiple commitments shows that he possesses good time management and organisational skills. These skills are important in college, regardless of the path he chooses. His experience in managing different activities effectively could give him an advantage in adapting to the demands of college projects and extra-curricular involvement.
Firstly, Nitesh needs to be self-aware about his area of interest. He needs to reflect on the co-curricular activity that he wishes to pursue further. Then, he needs to start journalling about his strengths, weaknesses, likes, dislikes, and opportunities. Finally, he needs to know which of the interests motivates him internally and not externally. This will help him know about his interests and then, he can easily choose his course.
Answer Key A 1. a
2. b
3. d
B 1. Journal writing
2. Intrinsic
3. self-regulation
4. boost
C 1. False. The ability to know yourself and your emotions is called Self-awareness. 2. False. Regulating your emotions helps in achieving your future goals. 3. True 4. True
Chapter 7 • Ability to Work Independently
Part A_AI Grade 10.indb 71
71
4/12/2025 3:56:29 PM
Unit Reflection
Key Terms Ability to Work Independently: It means being capable of completing tasks and responsibilities on your own, without needing constant guidance from others. Eustress: It is a positive stress that can motivate and energise an individual to perform well and achieve their goals. Extrinsic self-motivation: The drive to achieve a particular goal that comes from outside a person is known as extrinsic self-motivation. Intrinsic self-motivation: The drive that comes from inside a person to accomplish a particular goal by putting in a lot of effort and hard work. Private self-awareness: When you are able to examine and reflect on your own thoughts, feelings, and motivations, you have developed private self-awareness. Public self-awareness: When you are conscious of how you are perceived publicly by other individuals or society, you have developed public self-awareness. Self-awareness: The ability to recognise and understand one’s own thoughts, feelings, behaviours, and qualities is referred to as self-awareness. Self-management: It is the capability of an individual to manage their behaviours, thoughts, and emotions in a productive way that helps them to reach their goal and feel good about themselves. Self-motivation: It refers to the internal drive and determination that inspires an individual to take an action, achieve goals and put efforts even when faced with challenges or obstacles. Self-regulation: The ability to control and manage your thoughts, emotions, and behaviours in different situations is referred to as self-regulation. Stress: It is an automatic physical, mental, and emotional response to a challenging and difficult event. Stressors: The threats, challenges, and difficult events causing an emotional disturbance or stress are called stressors. Stress Management: It refers to the different ways, strategies, techniques, and practices used to reduce, cope with, and ease the physical, emotional, and psychological effects of stress.
Things to Remember • There are various elements of self-management, like time management, self-motivation, self-awareness, stress management, decision making, personal development etc. • Various factors that contribute to stress are personal relationships, financial issues, lack of control, unrealistic goals, greed for materialistic pleasures, bad experiences, technology overload, etc. • Stress management can help in improving our physical and mental health, enhancing our cognitive abilities, productivity, and the quality of life, and building resilience and emotional control.
72
Part A_AI Grade 10.indb 72
4/12/2025 3:56:29 PM
• There are various stress management techniques, like physical exercise, meditation, yoga, enjoying our favourite activities, nature walks, and going for vacations. • An independent worker is self-reliant, determined, self-motivated, confident and possesses decision making abilities. • The ability to work independently boosts your confidence, improves decision making skills, makes you more accountable, increases your self-esteem, and teaches you how to manage your time effectively. • To achieve self-independence, we need to hone the three skills: self-awareness, self-motivation, and selfregulation. • A self-motivated person is able to work productively and efficiently with resilience to achieve their goals. They can work independently for their personal and professional growth. • Self-regulation is important to monitor one’s emotional well-being and to stay optimistic. A self-regulated individual is able to resolve conflicts with their ethical decision-making.
Unit Reflection
Part A_AI Grade 10.indb 73
73
4/12/2025 3:56:29 PM
Test Your Knowledge A. Select the correct option. 1. Which of the following is not an importance of working independently? a. Boost in confidence
b. Improved decision-making skills
c. Increased self-esteem
d. Demotivation
2. What do you possess if you are conscious of how people will view you in public? a. Public self-awareness
b. Private self-awareness
c. Self-motivation
d. Stress management
3. Which hormone is often referred to as the ’stress hormone’ and is released due to excessive stress? a. Dopamine
b. Serotonin
c. Cortisol
d. Endorphin
4.
seem to be difficult.
is the internal force and determination that drives you to complete tasks which
a. Self-motivation
b. Self-regulation
c. Self-respect
d. Self-praise
5. What is stress management? a. Thinking about stressful situations
b. Coping with stress effectively
c. Ignoring stress
d. Avoiding stressful situations
B. Fill in the blanks with the most suitable words. 1. A self-motivated individual always takes the lead, works hard, and pushes himself to achieve his
.
2. The ability to control and manage your thoughts, emotions, and behaviours in different situations is referred to as .
3.
is about learning how to deal with tough situations in a healthier and calmer way.
4.
self-motivation is the drive to attain a specific goal that emerges from external motivations, such as
money or power.
5. Enjoying life works as mood enhancement and releases positive hormones, like
.
C. State whether the following statements are True or False. Correct the statements that are false. 1. Self-regulation helps to regulate your feelings and enables you to make good decisions. 2. Stress is an intentional physical, mental, and emotional response to a challenging and difficult event. 3. Independent workers are very determined about the work but someone else sets their goals. 4. Stress can have a negative impact on our physical health only. 5. Time Management is the capacity of an individual to manage and allocate time to various tasks and responsibilities.
74
Part A_AI Grade 10.indb 74
4/12/2025 3:56:29 PM
D. Short answer-type questions. 1. What is intrinsic self-motivation? Explain with the help of an example. 2. In a Unit Test of grade 10, Rashika received low marks. She needs to keep herself motivated so that she can improve her performance in the next test. Define self-motivation and suggest some tips which can be followed by Rashika.
3. How can yoga help in managing stress?
E. Long answer-type questions. 1. Differentiate between the two types of self-awareness. Give an example. 2. Define Stress Management. What are the different ways in which you can manage your stress effectively? 3. What do you mean by the ability to work independently? Discuss its significance.
F. Competency-based questions. 1. Sakshi is a media manager at an advertising agency. She was initially very passionate about her work, but due to a lack of acknowledgment and a heavy workload, she has recently started to lose interest in it and has no motivation. What steps can she take to motivate herself to do better at work?
2. Jay works as a manager in Mitali Pvt. Ltd. His job involves meeting tight project deadlines and dealing with a
demanding workload. Lately, the pressure has been taking a toll on his mental and physical health. You are Jay’s
friend and are worried about him. You have decided to help your friend realise the need and importance of managing stress. What would you tell him?
Unit Reflection
Part A_AI Grade 10.indb 75
75
4/12/2025 3:56:29 PM
Unit 3 • Information and Communication Technology Skills-II
8 Operating Systems and File Organisation I
n the early days of computers, there were no operating systems, so every program had to be created with its own specific set of instructions, which made computing complex and time-consuming. Then, in 1956, General Motors developed an operating system for a single IBM computer, marking the first step towards simplifying computer operations. As the 1960s rolled in, IBM began incorporating operating systems into their computers, making computing more accessible and efficient. A significant milestone came with the introduction of UNIX in the 1960s, a revolutionary system that allowed multiple users to work on a computer simultaneously and was written in the C programming language. Microsoft also entered the scene later, playing a pivotal role in the evolution of personal computing by developing its own operating system. Today, virtually all major computer devices come equipped with operating systems, each possessing unique features and contributing to the diverse landscape of modern computing.
Operating System
An operating system, often called an OS, is like the boss of a computer. It’s the important software that helps your computer do its job smoothly. Think of it as the traffic police of your computer world, directing all the programs and making sure they work together without crashing into each other.
Functions of Operating System
Processor Management The operating system oversees the functioning of the processor by assigning tasks to it, ensuring that each process and application get sufficient processor time for proper operation. Memory Management The operating system handles the distribution of internal memory (like RAM, cache, etc.) among various applications to ensure smooth execution of each process. Device Management An operating system controls the operation of input and output devices, receiving their requests, performing specific tasks, and communicating with requesting processes. File Management The operating system maintains organised records of file actions, such as creation, deletion, transfer, copying, and storage. It also preserves data integrity and directory structures. Security An operating system employs various techniques to safeguard user data’s confidentiality and integrity, typically involving usernames, passwords, and firewalls. Error Detection The operating system periodically checks for external threats, malicious software, and hardware issues, alerting users when necessary. Job Scheduling In multitasking systems where multiple programs run concurrently, the operating system decides which applications run and in what sequence, also determining their allocated time.
76
Part A_AI Grade 10.indb 76
4/12/2025 3:56:29 PM
Types of Operating System
Following are the different types of Operating System: Single-user Operating System These operating systems were designed to accommodate just one user performing a single task at a time. Among the most well-known single-user operating systems were Microsoft Windows 3.1, Microsoft Windows 95, and Microsoft DOS. Batch Operating System In a batch operating system, there is no direct interaction between the user and the computer. Instead, an operator is responsible for grouping similar tasks into batches. Multiple users can submit their jobs to the operator. It’s good for handling a large volume of work efficiently. Example: Early mainframe computers used batch processing for tasks like payroll processing. Graphical User Interface This operating system employs a graphical interface that encourages user interaction. Within this system, menus and icons facilitate all tasks, simply requiring a click to execute. This eliminates the necessity for users to recall complex commands or their syntax, as was necessary in the Command-Line Interface (CLI) or Character User Interface (CUI). Notable examples of GUI-based systems include the Windows operating system, the Mac OS, and Linux. Multi-user Operating System Multi-user operating systems enable multiple users to utilise the same computer simultaneously. Examples of operating systems falling into this category include Linux, Unix, and various versions of Microsoft Windows. Windows 2000 marked a significant milestone as the initial Windows iteration permitted users to establish multiple user accounts on a single machine. Multitasking Operating System Multitasking refers to the capability of handling multiple tasks simultaneously. A multitasking operating system can manage multiple processes using shared resources like the CPU. Multithreading Operating System These are operating systems that enable various components of an application or program to operate concurrently. Multithreading, a characteristic of such systems, can potentially lead to delayed response times for specific processes. For instance, if you host a game server on a local area network (LAN), your friends can connect to your machine simultaneously, allowing them to engage with different aspects of the same game. Real-time Operating System Real-time operating systems are super quick. They process user commands with minimal delay. Used in scenarios where rapid responses are crucial, like in aviation or medical devices. Example: Aircraft control systems often run on real-time operating systems. Time-sharing Operating System This type of operating system allows multiple users to use a computer simultaneously from different terminals. The goal is to minimise response times for users. Example: Unix-based systems offer timesharing capabilities, allowing multiple users to work on the same server.
Chapter 8 • Operating Systems and File Organisation
Part A_AI Grade 10.indb 77
Did You Know? The first Graphical User Interface (GUI) operating system, called “Xerox Alto,” was developed in the 1970s at Xerox’s Palo Alto Research Centre (PARC). It introduced concepts like windows, icons, and menus, which later inspired the GUIs of popular systems like Windows and macOS. In essence, your computer’s familiar desktop environment can be traced back to the groundbreaking work done at Xerox PARC.
77
4/12/2025 3:56:30 PM
Distributed Operating System Distributed operating systems connect multiple systems, allowing them to share resources and work together. They use multiple central processors to serve real-time applications. If one system fails, it doesn’t affect others. Example: Google’s distributed operating system, known as the Google File System (GFS) and the MapReduce framework. These systems are designed to manage vast amounts of data across thousands of servers, allowing Google to perform tasks like web indexing and data analysis on an immense scale.
Think and Tell
Imagine a world where each operating system is a character with its own unique superpower. For example, one OS can organise information super-fast, another can protect against viruses, and yet another can create amazing graphics. If these operating systems were superheroes in a computer universe, what adventures and challenges might they face? How would they work together to keep the computer world safe and efficient? Let your imagination run wild and tell us a story about these OS superheroes and their exciting journeys in the digital realm.
Windows 11
Windows 11, launched on October 5, 2021, represents Microsoft’s latest iteration of its personal computer operating system. While it maintains the underlying foundation of Windows 10, Windows 11 introduces a fresh user interface and various novel functionalities. Notable enhancements encompass a reimagined Start menu, updated snap controls for multitasking, and the inclusion of virtual desktops. It’s worth noting that Windows 11 brings revised system requirements into play, meaning that not all devices compatible with Windows 10 can accommodate Windows 11.
Starting Windows
When you power on your computer, Windows starts automatically and shows a welcome screen with a login message. Subsequently, you’re greeted by the initial Windows screen, referred to as the Desktop, which showcases graphical symbols known as icons.
ICONS DESKTOP
START BUTTON
Fig. 8.1: Windows 11 Interface
78
Part A_AI Grade 10.indb 78
4/12/2025 3:56:30 PM
Desktop The term ‘Desktop’ draws its inspiration from the physical desk in your workspace, where you typically keep items like a pen holder, notepad, calculator, and files. Similarly, the Windows desktop replicates this concept by displaying icons such as shortcuts, documents, and disk drives for easy access. Icons Icons are the small graphical symbols you see on your computer screen, and they allow users to perform various tasks by double-clicking on them. Each icon corresponds to a specific program. Menu In a Graphical User Interface (GUI), menus are used to help users find information and execute program functions. A menu is a structured collection of options related to a particular operation. Taskbar The taskbar is a horizontal bar usually located at the bottom of the desktop. It has several sections:
Fig. 8.2: Taskbar in Windows 11
1. Start Button: Found at the bottom-left corner, clicking it opens the Start menu, where you can access various tasks like launching programs, searching for files, and shutting down the computer. It also provides quick access to File Explorer, Settings, and frequently used apps. 2. Middle Section: This part displays buttons for currently open programs, making it easy to switch between them with a single click. Active programs are highlighted. 3. Notification Area: Located on the right side, it shows the system date and time along with icons that provide information and notifications about various aspects of the computer, such as software updates, network status, battery life, and volume control. The Peek button on the extreme right minimises all open program windows to reveal the desktop.
Difference Between Menu, Icon and Taskbar Feature
Menu
Icons
Taskbar
Definition
A digital menu card for your computer’s programs and options.
Tiny pictures or symbols representing programs, files, or folders on your screen.
A bar usually at the bottom of your screen that helps manage open programs.
Purpose
Helps you find and open programs and options easily.
Visual shortcuts for quick access to programs and files.
Manages open programs and allows you to switch between them quickly.
Function
Lists all available programs and options on your computer.
Represents programs, files, or folders visually.
Displays icons for open programs and provides quick access to them.
Example
Imagine it’s like a restaurant menu, showing all the dishes you can order.
Think of them as road signs on your computer screen that help you find what you need.
It’s like having a personal assistant on your computer desk, keeping things organised.
Usage
You use it to open programs and access various computer functions.
Click on icons to open programs, files, or folders without reading long names.
Helps you switch between different tasks or programs you’re working on.
Chapter 8 • Operating Systems and File Organisation
Part A_AI Grade 10.indb 79
79
4/12/2025 3:56:30 PM
File
A file is like a digital document that can store information, data, or programs on a computer. It can hold text, images, music, and more. Just like you keep your school assignments in folders, a computer uses files to store and organise information. Each file has a unique name and a specific type, like a document (e.g., a Word file) or a picture (e.g., a JPEG image). Files help computers understand and manage the data they store. Example: Think of a file as a digital version of a book. A book can contain stories, pictures, or information, and you can give it a title like “My Vacation Photos.docx.”
File Operations
File operations are actions you can perform on files, like creating, opening, saving, copying, moving, or deleting them. When you work on a computer, you use these operations to manage files. For instance, you create a new document, open an existing photo, save changes you made to a file, copy a song to another folder, move a video to a different drive, or delete a file you no longer need. Example: Imagine you’re working on a project. You create a new file to write down your ideas, open it to edit, and save it when you’re done. These are file operations in action. File Operation
Explanation
Example
Create
Making a new file or folder.
Creating a new Word document.
Open
Accessing and viewing an existing file.
Opening a PDF to read its contents.
Save
Storing changes made to a file.
Saving edits made in a text document.
Copy
Duplicating a file or folder.
Copying a photo to create a backup.
Move
Relocating a file or folder to a different location.
Moving a video from one folder to another.
Delete
Removing a file or folder from the system.
Deleting a document you no longer need.
Rename
Giving a new name to a file or folder.
Renaming a file from “File001” to “Report.”
Properties
Viewing and changing file attributes like size, date, and author.
Checking the properties of an image file.
File Organisation
File organisation refers to how files are structured and arranged on a computer’s storage, like in folders and drives. Just like you use folders or drawers to organise your belongings, a computer uses folders to organise files. Files can be grouped into folders based on their type or purpose, making it easier to find and manage them. Example: Think of file organisation as arranging your school assignments in subject-specific folders. You have a “Math” folder for maths-related papers and a “Science” folder for the science-related ones.
Directory Structures
A directory structure is the way folders and subfolders are organised on a computer to create a hierarchy. Imagine a tree with branches. The main folder is like the tree trunk, and subfolders are like branches. This structure helps you organise and access files efficiently. You can have folders within folders to create a hierarchy. Example: Picture your computer’s directory structure as a tree. The “C:” drive is the trunk, and you have branches like “Documents,” “Pictures,” and “Music.” Inside “Documents,” you might have sub-branches like “Work” and “School.”
80
Part A_AI Grade 10.indb 80
4/12/2025 3:56:31 PM
Difference Between File and Folder Feature
File
Folder
Definition
A digital document or data item that can contain text, images, programs, or other types of data.
A container used to organise and store files and other folders.
Purpose
Stores and manages specific data or content, such as a text document, image, or program.
Provides a way to group and organise related files and subfolders together.
Content
Contains data or information, such as text, images, audio, video, or executable code.
Contains files, subfolders, or a combination of both. It does not hold data directly but organises it.
Representation
Typically represented by an icon with a specific file extension (e.g., .txt, .jpg, .exe).
Usually represented by a folder icon, and its contents are visible when opened.
Example
Examples include a Word document (document.docx), an image (photo.jpg), or a music file (song.mp3).
Examples include a “Documents” folder, a “Pictures” folder, or a “Projects” folder.
Usage
Used to store and manage specific data or content. Files are the building blocks of digital information.
Used to organise and group related files and folders to maintain an orderly digital workspace.
Actions
Files can be opened, edited, copied, moved, renamed, and deleted.
Folders can be created, opened, copied, moved, renamed, and deleted.
Hierarchy
Typically, files are organised within folders
Folders themselves can be organised hierarchically within other folders.
File System Structures
A file system is the underlying software that manages how files and directories are stored and accessed on a computer’s storage device. Think of the file system as the rules that govern how files are saved, organised, and retrieved. Different operating systems (like Windows, macOS, or Linux) have their own file systems with their own set of rules. Example: It’s like the foundation and framework of a building. Without a proper structure (file system), the files and folders (the building’s rooms and floors) wouldn’t be organised or accessible.
Remember
File Operations: Actions like creating, opening, saving, copying, moving, and deleting files. File Organisation: Structuring files within folders and drives for easy management. Directory Structures: Hierarchical arrangement of folders and subfolders for efficient organisation. File-System Structures: Underlying software governing file storage and access, unique to each OS.
Creating a New File
To create a new file, think of it like starting a new document or drawing. You need an application, such as OpenOffice Writer, Microsoft Word or Notepad (for text) or Paint (for images).
Select the application to create a file
To create a new file on your desktop, follow these steps: 1. Right-click on an empty area.
2. F rom the menu that appears, choose the New option. You’ll then see a list of file types and applications, like MS Excel, MS Word, OpenOffice Writer, or any other application. Pick the one you need. 3. Enter a file name where the cursor is and press Enter, and a new file will be generated. Chapter 8 • Operating Systems and File Organisation
Part A_AI Grade 10.indb 81
Fig. 8.3: To create a new file
81
4/12/2025 3:56:31 PM
Creating a New Folder
Imagine a folder as a digital container where you can keep your files organised.
Click here
To create a new folder on your desktop, follow these steps: 1. Right-click on an empty area. 2. From the menu that appears, choose the New option. You’ll then see the option Folder. 3. Click on Folder, and a new folder will be generated.
Renaming a File/Folder
Renaming a file or folder can be done in various ways: 1. Right-click on the file or folder, choose the Rename option from the context menu, then type the new name and press Enter.
Fig. 8.4: To create a new folder
2. Open “This PC” by double-clicking the icon. 3. Navigate to the location of your file or folder in the left panel. In the right panel, select the file or folder, and then click on the “Rename” command in the “Organize” group on the Home tab. 4. Type the new name and press Enter.
Deleting a File/Folder
To delete a file or folder, there are several methods you can follow:
Click here
1. Select the file or folder you want to delete and press the Delete key. 2. Right-click on the file or folder, then choose the Delete option from the context menu. 3. Use the This PC icon method: • Double-click on the This PC icon to open it. • Navigate to the location of your file or folder in the left panel. • Select the file or folder in the right panel.
Fig. 8.5: To rename a file
Error Alert! Misconception—File Deletion is Permanent! It’s a common misconception that when you delete a file on your computer, it’s gone for good and there’s no way to get it back. But don’t panic just yet! Computers are smarter than that, and they have a special place called the “Recycle Bin” to give you a second chance.
82
Part A_AI Grade 10.indb 82
4/12/2025 3:56:32 PM
• Click on the Delete command in the Organize group on the Home tab.
Click here Fig. 8.6: To delete a file
Restoring a File/Folder
Step 1: Locate the Recycle Bin. The Recycle Bin is like a digital safety net for deleted files. You can usually find it on your desktop or in your file explorer. Step 2: Double-click on the Recycle Bin icon to open it. Inside, you’ll see a list of files and folders that you’ve deleted. Step 3: Look through the Recycle Bin list to find the file you want to restore. It might be hiding among other deleted items. Step 4: When you’ve found your file, double-click on it. A dialog box will appear. Choose “Restore.” This action will your file back to its original location.
Click here
Step 5: Go back to where your file was originally saved (like, your “Documents” folder) and make sure it’s back in its rightful place.
Fig. 8.7: To restore the deleted file
Chapter 8 • Operating Systems and File Organisation
Part A_AI Grade 10.indb 83
83
4/12/2025 3:56:32 PM
Permanently Deleting a File/Folder
To permanently remove all items from the Recycle Bin, you can take either of these actions: 1. Right-click on the Recycle Bin icon and choose Empty Recycle Bin. You will be prompted to confirm the permanent deletion of the files. Click on Yes to proceed. 2. Double-click on the Recycle Bin icon on your desktop to open it. Then, click on Empty Recycle Bin in the Manage group on the Recycle Bin Tools tab to permanently delete all deleted files and folders.
Click here to delete all the files of Recycle Bin
Fig. 8.8: To empty Recycle Bin
Moving or Copying a File/ Folder from One Drive to Another
Moving a file or folder involves relocating it from its original place (source) to another location (destination). Copying, on the other hand, means making a duplicate of the selected file or folder. To perform a move or copy action on a file or folder, follow these steps:
Options for copying/moving a file
1. Double-click on the “This PC” icon on your desktop. 2. Choose a location from the left pane where you want to move or copy the file/folder. 3. Select the specific file or folder you wish to move or copy from the right pane.
Fig. 8.9: To copy/move a file
84
Part A_AI Grade 10.indb 84
4/12/2025 3:56:32 PM
4. Use one of the following methods to move or copy your file/folder: • Select Copy and choose the destination to copy the file to. • Right-click the file/folder and select Cut to move it or Copy to make a duplicate. Then, right-click an empty area in the right pane and choose “Paste” from the menu to select your desired location. • You can also press Ctrl+X to move or Ctrl+C to copy the selected file/folder and then press Ctrl+V at the destination where you want to move or copy it.
Importance of Managing Files and Folders
Managing files and folders is crucial for maintaining order, efficiency, and data security in the digital age. It’s a fundamental skill that can save you time, prevent headaches, and ensure your digital assets remain accessible and protected. 1. Organisation: Proper file and folder management helps you keep your digital life organised. It’s like tidying up your room or arranging your books on a shelf. When files are well-organised, you can quickly find what you need without wasting time searching. 2. Efficiency: An organised file structure boosts productivity. You can work more efficiently because you know where to locate your documents, photos, or projects. This reduces frustration and helps you complete tasks faster. 3. Preventing Data Loss: Good file management reduces the risk of losing important data. When you organise files into folders and regularly back up your files, you have a safety net in case of computer crashes, hardware failures, or accidental deletions. 4. Accessibility: Properly organised files and folders make your data accessible from various devices and locations. You can access your work documents, photos, or music whether you’re on your computer at home, on a work computer, or using a mobile device. 5. Collaboration: When working with others, an organised file system makes it easier to collaborate. You can share specific files or folders without confusion, and everyone involved knows where to find and save their contributions. 6. Data Security: Organised file management can enhance data security. You can protect sensitive files by placing them in password-protected folders or encrypting them. It also helps you keep track of what’s important and needs safeguarding. 7. Saving Space: Managing files and folders efficiently can help you save storage space. You can delete unnecessary files and keep your computer running smoothly. 8. Backup and Recovery: When you have a structured file system, it’s easier to back up your data regularly. In the event of data loss, you can quickly restore your files from backups.
Activity Time Activity 1: Taskbar Exploration and Icon Hunt
(Individual Work & Class Discussion)
Identify and list five icons on the taskbar and describe their functions. Participate in the discussion on the significance of the taskbar and icons based on the findings.
Activity 2: File and Folder Management Adventure
(Individual Work & Class Discussion)
Perform actions like creating a new folder, renaming a file, deleting a folder, and saving a file within a specific subfolder. Finally, share your experiences and troubleshoot challenges faced during the activity. Activity 3: Recycle Bin Rescue Challenge
(Individual & Group Work)
Delete a file from your computer and try to access and restore it from the Recycle Bin. Finally, in a group of four to five students, discuss the importance of the Recycle Bin in preventing permanent file deletion.
Chapter 8 • Operating Systems and File Organisation
Part A_AI Grade 10.indb 85
85
4/12/2025 3:56:32 PM
Chapter Checkup A Select the correct option.
1 Which type of operating system allows multiple users to use a computer simultaneously from different terminals with the goal of minimising response times? a Real-Time Operating System c Batch Operating System
b Distributed Operating System
d Time-Sharing Operating System
2 Which action involves relocating a file or folder to a different location?
a Copying b Opening and Editing c Creating d
3 What makes a folder different from a file?
Moving
a It can store various types of data.
b It usually has a specific file extension.
c It contains files, subfolders, or both.
d
B Fill in the blanks with the most suitable words. 1 An operating system is like the smoothly.
2 The first operating systems emerged in operations.
It can be opened, edited, and deleted.
of a computer, directing all the programs and ensuring they work together , marking a significant step towards streamlining the computer
3 Real-time operating systems are used in scenarios where rapid responses are crucial, such as in medical devices.
or
4 To create a new folder, right-click on a file explorer window or on your desktop, choose “New,” and then select
.
C State whether the following statements are True or False. Correct the statements that are False. 1 Files can store various types of data, including text, images, music, and programs.
2 The taskbar helps manage open programs and allows quick switching between them.
3 File operations include actions like creating, opening, saving, copying, moving, and deleting files.
4 File organisation involves arranging files within folders and drives to make them easier to find and manage. D Answer the following questions. (Solved)
Q1. What is the purpose of a file system structure in an operating system?
A1. The purpose of a file system structure in an operating system is to govern how files and directories are stored and accessed on a computer’s storage device. It defines the rules for organising, naming, and managing files. Different operating systems have their own unique file systems, ensuring efficient storage and retrieval of data.
Q2. Explain the role of the Recycle Bin in managing deleted files on a computer.
A2. The Recycle Bin is a digital safety net for deleted files. When a file is deleted, it is not permanently removed but moved to the Recycle Bin. Users can open the Recycle Bin, locate the deleted file, right-click on it, and choose “Restore” to return the file to its original location. This feature helps prevent accidental data loss and provides a second chance to recover deleted files.
Q3. Rohan is using his uncle, Mr Rakesh’s desktop, when he notices the poor manner in which his uncle organises his files containing personal and professional details. Rohan decides to explain to his uncle that organising his files would lead to data security. What should Rohan say to his uncle?
A3. Rohan should educate his uncle that proper file organisation can enhance data security by enabling users to categorise and protect sensitive files within password-protected folders or encrypted storage areas, thereby reducing the risk of unauthorised access.
Answer Key A 1. d
2. d
3. c
B 1. boss
2. 1956
3. aviation
4. Folder
C 1. True
2. True
3. True
4. True
86
Part A_AI Grade 10.indb 86
4/12/2025 3:56:33 PM
Unit 3 • Information and Communication Technology Skills-II
9 Care and Maintenance of Computer T
aking proper care of our things, whether they are books, clothes, furniture, or electronic gadgets, is of extreme importance. It is important to ensure the smooth operation of electronic devices, such as computers and mobile phones. As we maintain our personal hygiene through daily routines like bathing, brushing our teeth, and eating, we must also realise the importance of the regular maintenance of our machines. Computers are complex devices with many delicate electronic components that require protection from dust and potential damage. Neglecting their maintenance can result in reduced efficiency. Considering the expense associated with computers and mobile phones, it becomes essential to take consistent and vigilant care of them.
Computer Maintenance
Computer maintenance means ensuring that computers are well-maintained to function properly. This maintenance can be categorised into two parts: Hardware maintenance and Software maintenance.
Hardware Maintenance
Hardware maintenance involves taking care of the physical parts of a computer, like the monitor, keyboard, CPU cabinet, mouse, and any additional devices connected to it. You need to ensure that these components work well by cleaning them, storing them correctly, and fixing them when needed. Cleaning of the Hardware Components Properly maintaining your computer is essential for its smooth operation. If you avoid cleaning and caring for your computer, dust can build up, which will lead to decreased performance. To keep your computer running well, stick to these guidelines for cleaning its different hardware parts. Monitor 1. Use a gentle and damp cotton cloth for cleaning. 2. Never spray any liquid directly onto the screen, and refrain from touching it with your hands. 3. Use a pointer or stylus to prevent potential damage to your computer screen.
87
Part A_AI Grade 10.indb 87
4/12/2025 3:56:33 PM
Keyboard 1. You can use compressed air, a soft brush, or an anti-static vacuum cleaner to remove dust from the keyboard. 2. Avoid eating while using the computer to prevent food particles from getting stuck between the keys, which could harm it. 3. In cases of severe dirtiness, you might have to physically remove and clean the keys. 4. To clean the top surface of the keys, a soft, damp cloth is suitable for removing oil and dirt. Mouse 1. When dealing with a mechanical mouse that contains a ball beneath it, it is more prone to gathering dust. 2. In such cases, you might have to open the mouse and take out the ball. Dip it in isopropyl alcohol to eliminate dust, oil, or grease. 3. For an optical mouse, a simple wipe from both above and below using a clean cotton cloth is sufficient. CDs and DVDs 1. Always store CDs and DVDs in their appropriate cases to keep them safe against scratches. 2. Avoid touching the surfaces with your hands. 3. To clean the CD surface, you can apply a specialised cleaning solution to a cotton cloth and gently wipe the CD. CPU Cabinet 1. Make sure to clean both the exterior and interior parts of the CPU cabinet. 2. Use a soft cotton cloth to wipe the outer surface, and do not forget the back. 3. Inside the cabinet, use a blower to remove dust, but be cautious not to touch the small components on the motherboard. Digital Camera 1. Avoid touching the lens of the camera. 2. Use a soft brush or dry cotton cloth to eliminate dust. 3. You can also use a specific cleaning solution for the lens, but never directly apply it to the lens.
Software Maintenance
Software maintenance refers to the cleaning of computer programs. This includes tasks like scheduled disk cleaning, protection against viruses, removing temporary and unnecessary files, creating backups regularly, updating software, and checking for security threats. Virus Computers and data are crucial for any organisation’s operations. If something goes wrong with computers or data, it will cause business activities to stop, resulting in the loss of many hours of hard work and research. A computer virus is a program or set of programs that interrupts a computer’s normal functioning and can infect or destroy data. It enters a computer without the user’s permission or knowledge, at times through infected storage devices like CDs or pen drives, and can even enter while browsing the internet. To avoid detection, these viruses hide silently. They can remain undetected and inactive for a long time, waiting for a specific signal or event to activate them.
88
Part A_AI Grade 10.indb 88
4/12/2025 3:56:36 PM
Signs of Virus Attack Signs of a virus attack on a computer can be identified in several ways:
Did You Know? The full form of Virus is Vital Information Resources under Siege.
1. Slowing down the computer by consuming memory 2. Causing unusual movements or patterns on the screen 3. Displaying strange messages like “Your PC is stoned,” and more 4. Increasing disk space usage and file sizes as the virus attaches itself to many files 5. Resulting in frequent system freezes 6. Showing abnormal ‘write protect error’ messages 7. Changing data in the directory against the filename when a virus modifies a file 8. Formatting the hard disk 9. Deleting or damaging files Protecting Computer Against Virus Virus attacks can harm not only your data but also the functioning of your computer. Malware attacks can result in modified files, frequent disruptions, reduced speed, and more. Therefore, it is important to ensure your safety online. 1. Use Security Software: Install trustworthy antivirus software and keep it updated. Set it to regularly scan and isolate potential threats. 2. Employ Firewalls: Configure your web browser settings to block access to unwanted websites. 3. Be Cautious Online: Exercise caution when sharing information online. Use secure websites for financial transactions, avoid saving personal data on websites, and restrict yourself from downloading software from unauthorised sources. 4. Update Software: Keep your computer’s software and applications up-to-date to patch security vulnerabilities. 5. Beware of Spam: Delete emails from unknown sources without opening them or downloading attachments. 6. Backup Your Data: Regularly back up your data to protect against loss and use encryption software to secure it. 7. Scan Portable Devices: Before using USB drives or other portable storage devices, scan them for viruses. 8. Disable Cookies: To protect your personal information, consider disabling cookies in your web browser. Using Antivirus Software Antivirus software is a set of computer programs that are created to find, prevent, and delete viruses from a computer. They perform these tasks: 1. Check computer files for known viruses by comparing them to a virus dictionary. 2. Recognise unusual behaviour in computer programs that could indicate an infection.
Chapter 9 • Care and Maintenance of Computer
Part A_AI Grade 10.indb 89
Think and Tell Which is the largest and most complex virus known?
89
4/12/2025 3:56:38 PM
However, merely installing antivirus software does not guarantee complete protection because it cannot detect new virus programs. To stay safe, you should regularly update your computer with the latest antivirus software versions. Most antivirus companies allow users to download these updates from their websites. Some well-known antivirus programs include Quick Heal, Norton Antivirus, Avast One, and AVG Antivirus. Process of Cleaning Virus Given below is the process that is followed to scan a system for various kinds of viruses and malwares.
Scanning and Cleaning Virus The steps to use an antivirus software are as follows: We will study the steps for McAfee antivirus software here, but you can use any antivirus software that you have, like Norton, AVG, Avast One, etc., on your computer. To open McAfee antivirus, follow these steps: 1. Go to Start and search for McAfee Security Scan Plus. 2. The McAfee window appears.
Did You Know? The first antivirus software was invented in 1987 by Andreas Luning and Kai Figge.
Think and Tell Can Antivirus programs detect every virus?
3. Click on the Scan option, and it will scan your system within a minute. 4. If it detects any threat, then it will also ask for your permission to fix the issue.
Preparing a Maintenance Schedule Maintaining a computer system is often overlooked, which can lead to equipment damage and even accidents. To prevent this, it is important to create a maintenance schedule covering daily, weekly, monthly, and yearly tasks. Disk Defragmentation and Optimisation When you save files on your computer, they may not be stored in contiguous memory locations, resulting in fragmented data that slows down your system. To address this issue, regularly run the Disk Defragmenter utility program.
90
Part A_AI Grade 10.indb 90
4/12/2025 3:56:40 PM
To start defragmentation: 1. Click on Start > All Apps >Windows Tools > Defragment and Optimize Drives.
2. In the Optimize Drives dialog box, select the partition you want to optimise (e.g., Drive C:). 3. Click Optimize to improve your computer’s efficiency.
You can also schedule disk optimisation by following these steps:
1. Click on the Change settings button in the Optimize Drives dialog box. 2. The Optimization Schedule window appears. 3. Check the box next to “Run on a schedule (recommended).”
4. Choose the frequency for running the Optimize Drives program: Daily, Weekly, or Monthly.
5. Click the Choose button in the Drives option to select the disk you want to optimise, or you can choose all partitions. 6. Click OK and then Close to save your Optimize Drives settings. Your computer will now run the optimised schedule based on this schedule, so make sure it is powered on during these times. Chapter 9 • Care and Maintenance of Computer
Part A_AI Grade 10.indb 91
91
4/12/2025 3:56:41 PM
Removing Temporary Files Sometimes you may have noticed that your computer is working very slowly. It can happen due to the temporary internet files that need to be deleted from your computer regularly. To delete these files, follow these steps: 1. In the Search box on the taskbar, type “disk cleanup”, and select Disk Cleanup from the list of results. 2. Select the drive you want to clean up, and then select OK. 3. Under Files to delete, select the file types to get rid of. To get a description of the file type, select it. 4. Select OK. If you need to free up more space, you can also delete system files: 1. In the Disk Cleanup dialog box, select Clean up system files. 2. Select the file types to get rid of. To get a description of the file type, select it. 3. Select OK. By following these steps, you can effectively set up an optimisation schedule for your computer and remove unnecessary temporary files to keep it running smoothly. To delete temporary files using an alternate method: 1. On the taskbar, enter %temp% in the Search box. 2. Click on the %temp% file folder that appears. 3. The b folder with temporary files will open. 4. Highlight all the files by using the Ctrl+A key combination. 5. Hit the Delete key. 6. This action will remove all the files from this folder. Removing Spam from an Email Account Spam, or unwanted emails, arrive from unknown senders, and they are generally related to advertising, spreading harmful software, attempting phishing, and sometimes containing inappropriate content. If you open these spam emails, there’s a risk of your system getting infected by a virus or your personal information being compromised. To protect users, nearly all email services offer a filter feature that stops spam messages from reaching your main inbox. Now, let us talk about how to use a filter in your Gmail account. Creating a Filter To make a filter in your Gmail account that automatically moves suspicious emails to the spam folder, follow these steps: 1. Log in to your Gmail account. 2. In the Search bar at the top, click the Filter option. 3. A pop-up box will appear. 4. Set the criteria for creating the filter. 5. Click on the Create filter option. Another pop-up box will show different choices. 6. Choose the relevant option and click the Create filter button.
92
Part A_AI Grade 10.indb 92
4/12/2025 3:56:41 PM
Creating a Filter for a Particular Email Account To create a filter for a specific email account in Gmail, use these steps: 1. Log in to your Gmail account. 2. Select the checkbox next to the email for which you wish to create a filter. 3. Above, click on the More icon, which will open a pop-up menu. 4. Choose the option Filter messages like these.
Chapter 9 • Care and Maintenance of Computer
Part A_AI Grade 10.indb 93
93
4/12/2025 3:56:41 PM
5. A pop-up box will appear where you can specify the filter criteria. 6. Select the relevant options and click the Create filter button. Deleting Spam To remove spam messages from your Gmail account, follow these steps: 1. Access your Gmail account. 2. On the left-hand pane, click the More option and select Spam from the drop-down list of folders. 3. At the top, click on the “Delete all spam messages now” link. 4. A confirmation dialogue box will appear. 5. Click OK. 6. This will delete all the spam messages from your email account.
Activity Time Activity 1: Let’s Scan Divide yourself into groups of four or five and create a chart showing the step-by-step process of how scanning is done in the system. Activity 2: Speed-up the Computer
(Group Activity) (Individual Activity)
Imagine that Ramesh has a computer system, which he has been complaining about, that has become very slow. What action would you ask him to take in order to increase the speed of the computer? Activity 3: Checking Spam
(Individual Activity)
Aman is feeling frustrated due to the frequent spam emails he receives. What steps can he take to set up an email filter and eliminate these unwanted messages from his inbox?
94
Part A_AI Grade 10.indb 94
4/12/2025 3:56:42 PM
Chapter Checkup A Select the correct option. 1 Which of the following is NOT a recommended method for cleaning a computer keyboard? a Using compressed air
b Using an anti-static vacuum cleaner c Submerging the keyboard in water
d Physically removing and cleaning the keys 2 What is the primary function of antivirus software? a Defragmenting hard drives
b Cleaning temporary files
c Detecting and removing viruses
d Creating backup copies of files
3 What is the purpose of disk defragmentation? a Deleting temporary files
b Cleaning the computer screen
c Organising fragmented data on the hard drive
d Scanning for viruses
4 Which of the following is NOT a recommended action to protect against spam emails? a Creating email filters
b Opening emails from unknown senders c Deleting spam messages
d Using a spam filter feature 5 What does the “Run on a schedule (recommended)” option refer to in the context of disk optimisation? a Running disk optimisation only once
b Running disk optimisation manually
c Scheduling regular disk optimisation at specified intervals
d Running disk optimisation in safe mode
B Fill in the blanks with the most suitable words. 1 To protect against virus attacks, it is important to regularly update
software.
2 Disk defragmentation helps organise fragmented data on the hard drive to improve 3 Creating an email
.
in Gmail can automatically move suspicious emails to the spam folder.
4 One of the signs of a virus attack is an increase in
space usage.
5 Temporary internet files should be deleted from your computer regularly to prevent it from working
.
C State whether the following statements are True or False. Correct the statements that are False. 1 Computer maintenance is essential for ensuring the smooth operation of electronic devices. 2 Hardware maintenance includes cleaning and caring for physical computer components. 3 Regularly updating antivirus software is not important to protect your computer from new virus programs. 4 Disk optimisation can help improve a computer’s efficiency by defragmenting data. 5 Creating filters in Gmail can help automatically scan suspicious emails.
Chapter 9 • Care and Maintenance of Computer
Part A_AI Grade 10.indb 95
95
4/12/2025 3:56:42 PM
D Answer the following questions. (Solved) Q1. What are the key components of computer hardware maintenance, and why is it important? A1. C omputer hardware maintenance encompasses cleaning and caring for physical components like the monitor, keyboard, CPU, and more. Regular maintenance is crucial because neglecting it can lead to dust buildup and reduced performance. Cleaning, storing components correctly, and addressing issues promptly help ensure the smooth operation of electronic devices. Q2. How can users protect their email accounts from spam in Gmail? A2. Users can protect their Gmail accounts from spam by creating email filters that automatically move suspicious messages to the spam folder. Additionally, being cautious about opening emails from unknown senders and regularly deleting spam messages helps maintain a clean inbox and avoids potential security risks. Q3. Sharmila’s computer is behaving in a strange manner. What are the warning signs that her computer might have a virus, and how can she keep her computers safe from harmful software? A3. Signs of a virus attack include slowed performance, unusual screen behaviour, error messages, increased disk space usage, and file modification. To protect their systems, users should install reliable antivirus software, install firewalls, avoid suspicious websites, keep software updated, and practice safe online behaviour.
Answer Key A 1. c
2. c
3. c
4. b
5. c
B 1. Antivirus
2. Efficiency
3. Filter
4. Disk
5. Slowly
C 1. True
2. True
3. False. To stay safe, you should regularly update your computer with the latest antivirus software versions. 4. True
5. True
96
Part A_AI Grade 10.indb 96
4/12/2025 3:56:43 PM
Unit Reflection
Key Terms Operating System: It is an important software that helps the computer do its job smoothly. There are many types of operating system: Single-User Operating System: These operating systems were designed to accommodate just one user, performing a single task at a time. Batch Operating System: In a batch operating system, there is no direct interaction between the user and the computer. Instead, an operator is responsible for grouping similar tasks into batches. Graphical User Interface: This operating system employs a graphical interface that encourages user interaction. Within this system, menus and icons facilitate all tasks, simply requiring a click to execute. Multi-user Operating System: Multi-user operating systems enable multiple users to utilise the same computer, simultaneously. Multitasking Operating System: A multitasking operating system can manage multiple processes using shared resources like the CPU. Multithreading Operating System: These are operating systems that enable the various components of an application or program to operate concurrently. Real-Time Operating System: Real-time operating systems are super quick. They process the user commands, with minimal delay. Time-Sharing Operating System: This type of operating system allows multiple users to use a computer, simultaneously from different terminals. The goal is to minimise the response time for users. Distributed Operating System: They connect multiple systems, allowing them to share the resources and work together. They use multiple central processors to serve real-time applications. Desktop: The Windows desktop displays icons such as shortcuts, documents, and disk drives for easy access. Icons: Icons are the small graphical symbols you see on your computer screen, and they allow the users to perform various tasks by double-clicking on them. Each icon corresponds to a specific program. Menu: In a Graphical User Interface (GUI), menus are used to help users find information and execute the program’s functions. A menu is a structured collection of options related to a particular operation. Taskbar: The taskbar is a horizontal bar usually located at the bottom of the desktop. It has several sections including the start button, the middle section, and the notification area. File: A file is like a digital document that can store information, data, or programs on a computer. It can hold text, images, music, and more. Folder: A container used to organise and store files and other folders. File operations: They are actions you can perform on files, like creating, opening, saving, copying, moving, or deleting them.
Unit Reflection
Part A_AI Grade 10.indb 97
97
4/12/2025 3:56:43 PM
File organisation: It refers to how files are structured and arranged on a computer’s storage, like in folders and drives. Directory Structure: A directory structure is the way folders and subfolders are organised on a computer to create a hierarchy. File System: It is the underlying software that manages how files and directories are stored and accessed on a computer’s storage device. Computer Maintenance: Computer maintenance means ensuring that computers are well-maintained to function properly. There are two types of computer maintenance: • Hardware Maintenance: Hardware maintenance involves taking care of the physical parts of a computer, like the monitor, keyboard, CPU cabinet, mouse, and any additional devices connected to it. • Software Maintenance: Software maintenance refers to the cleaning of computer programs. This includes tasks, like scheduled disk cleaning, protection against viruses, removing the temporary and unnecessary files, creating backups regularly, updating the software, and checking for security threats. Virus: A computer virus is a program or set of programs that interrupts a computer’s normal functioning and can infect or destroy data. Anti–Virus Software: They are the computer programs that are created to find, prevent, and delete viruses from a computer.
Things to Remember • Various functions of an Operating System are: processor management, memory management, device management, file management, security, error detection, and job scheduling. • Maintaining files and folders is crucial for maintaining order, efficiency, preventing data loss, accessibility, collaboration, data security, saving space, backup, and recovery. • Regular cleaning of both the hardware and software components of a computer is very important, as it helps in the smooth working of the system. • When a virus attacks a computer, it slows down the system, causes unusual movements on the screen, displays strange messages, increases disk space usage, changes data in the directory against the file name, formats the hard disk and deletes or damages files. • Malware attacks can result in modified files, frequent disruptions, reduced speed, and more. Therefore, it’s important to ensure your safety online by using security software, employing firewalls, updating software, being cautious of spam, backing up your data, scanning portable devices, and disabling cookies. • An antivirus helps in checking computer files for known viruses by searching for them in a virus dictionary and recognising unusual behaviour in computer programs that could indicate an infection. • Some well-known antivirus programs include Quick Heal, Norton Antivirus, Avast One, AVG Antivirus.
98
Part A_AI Grade 10.indb 98
4/12/2025 3:56:43 PM
Test Your Knowledge A. Select the correct option. 1. Accumulation of dust on the computer may result in
.
a. virus
b. slow performance
c. software malfunction
d. filled-up disk space
2. Which of the following is a single-user operating system? a. Microsoft DOS
b. Linux
c. Mac OS
d. Unix
3. Which method cannot be used to clean a keyboard? a. Using a soft brush to remove dust
b. Physically removing and cleaning the keys
c. Using a damp cloth to remove dirt
d. Eating while using a keyboard
4. Windows 11 was launched in which year? a. 2022
b. 2021
c. 2023
d. 2020
5. Which operating system is used in scenarios where rapid responses are crucial? a. Multi Operating system
b. Multitasking Operating system
c. Multithreading Operating system
d. Real Time Operating system
B. Fill in the blanks with the most suitable words. 1. It is important to make sure to
any programs and files that you no longer use.
2.
are the small graphical symbols you see on your computer screen.
3.
are usually created to steal information and important data from various users.
4. The
is a horizontal bar usually located at the bottom of the desktop.
C. State whether the following statements are True or False. Correct the statements that are False. 1. A menu is a structured collection of options related to a particular operation. 2. To rename a file, left-click on the file or folder and choose the Rename option from the context menu. 3. Computer maintenance means ensuring that computers are well-maintained to function properly. 4. Email services do not have a feature to stop spam messages from reaching your email inbox.
D. Short answer-type questions. 1. What is the need for the care and maintenance of computers? 2. Differentiate between Single-user and Multi-user Operating System. 3. What is the importance of managing your files and folders?
Unit Reflection
Part A_AI Grade 10.indb 99
99
4/12/2025 3:56:43 PM
E. Long answer-type questions. 1. What are the functions of an operating system? 2. What is a computer virus and how is it harmful to computers? 3. Differentiate between Menu, Icon and Taskbar.
F. Competency-based questions. 1. Smita is facing several issues with her computer. Lately, she has not been able to perform any task on her computer
because a virus has attacked her system. It is running very slowly and many duplicate files have been created on their own on the desktop. Suggest some ways in which Smita can avoid this situation in the future.
2. Mukesh is 50 years old and he is learning to operate computers. He needs to create a new file to store his official
documents but he is not familiar with the steps. List the steps by which Mukesh can create a new file on his computer.
100
Part A_AI Grade 10.indb 100
4/12/2025 3:56:43 PM
Unit 4 • Entrepreneurial Skills-II
10 Exploring Entrepreneurship A long time ago, in a busy neighbourhood in Indianapolis, America, there lived a lady named Sarah. She worked hard and washed clothes for a living. Sarah had a dream, and it all started with talking to her neighbour, Addie. Sarah told Addie about her hair troubles. She wanted her hair to look as beautiful as those of the women in magazines, but there weren’t many good hair products for black women back then. Addie who knew a lot about hair care gave Sarah some advice. She told Sarah about natural things that could make her hair healthy and pretty. Sarah was excited and decided to try them. Sarah worked hard and made special hair products just for black women. She called her products “Madam C. J. Walker” after herself. Sarah travelled around the country, teaching other black women how to use her products and take care of their hair. What started as a casual conversation between neighbours led to a successful entrepreneurial venture. Madam C. J. Walker changed how people took care of their hair and helped black women feel confident and independent. Sarah’s journey is truly inspiring, isn’t it? It is a wonderful example of someone recognising a need and then taking the initiative to create a business that addresses that need. But what is truly amazing is that Sarah’s story is just one of many that highlight the entrepreneurial spirit.
S
arah and many like her possess the passion to be self-employed and start a new venture with a sense of ownership. These people are called entrepreneurs. An entrepreneur can be an individual or a small group of partners striving to venture into an unknown territory to establish a business, work hard to succeed, and take complete ownership of their failures. These people aim to create an ‘Enterprise’ by taking the initiative to develop innovative ideas, products, or services and then bringing them to the market. They leave no stone unturned in this journey. Entrepreneurship is the process of transforming an idea into a bigger business enterprise by identifying the opportunity and creating the market through thorough planning and management skills, typically with the goal of achieving financial profitability and long-term success. In today’s world, entrepreneurship is a subject of great discourse, particularly in India. It is a form of self-employment where individuals manage a business to meet people’s needs while continually seeking ways to innovate their business and generate profits.
101
Part A_AI Grade 10.indb 101
4/12/2025 3:56:44 PM
Entrepreneurship and Society
The relationship between entrepreneurship and society is direct. An entrepreneur needs society to build a business; and the society needs entrepreneurs to identify its problems and come up with ideas, products, and services to solve them. Entrepreneurship and society share a dynamic and mutually influential relationship. Entrepreneurship, the process of identifying, creating, and pursuing opportunities, has far-reaching impacts on various facets of society. They contribute to the economic growth of the country, leading to development and growth in the society by generating employment opportunities. When there is an exchange of goods and services, it is not just beneficial for the entrepreneurs but for everyone involved. The buyers get what they need, and the sellers earn a living. Entrepreneurship plays a crucial role in the flow of money and generation of work opportunities enabling the growth and prosperity of local regions, communities, and society at large. Let us look at an example of Arjun who is a young entrepreneur in your neighbourhood. Arjun noticed something interesting—everyone in his community loved fresh, homemade snacks, but they were often hard to find. One day, while chatting with his friends, they mentioned how they wished they could enjoy delicious homemade snacks more often. Arjun saw an opportunity here. He decided to start a small business of making and selling homemade snacks. He began experimenting with recipes in his kitchen, creating mouthwatering snacks like crispy kachoris, flavourful mathris, and crunchy potato chips. Arjun’s business grew quickly! Soon, his snacks became popular in the neighbourhood. But here is the twist: Arjun did not do it all alone. He hired a group of local cooks, mostly homemakers looking for part-time work. This not only helped him meet the growing demand but also provided much-needed employment to people in his community. As Arjun’s business became more popular, he regularly started donating a portion of his earnings to support a local charity that fed underprivileged children. Thus, entrepreneurship is not just about making money but also about making a difference. So, what do entrepreneurs like Arjun do when they run their businesses? For example, Arjun noticed the demand for homemade snacks and created a solution by making and selling them.
Fulfill Customer Needs
Entrepreneurs are like problem solvers. They pay attention to what people need or want but cannot easily find in the market. Then, they come up with innovative ideas to meet those needs.
Support Local Talent
In Arjun’s case, he employed local cooks, Entrepreneurs often collaborate with people in their empowering them to showcase their community who have special skills or talents. This collaboration provides opportunities for local talent to culinary abilities. shine and earn a living.
Benefit Society
Arjun, for instance, donated a Successful entrepreneurs feel a responsibility to portion of his earnings to help feed give back to their communities. They may support underprivileged children. charities, contribute to building schools or hospitals, or engage in environmental initiatives. By doing this, they help address social issues and improve the overall well-being of the society in which they operate.
Create Jobs
As entrepreneurs’ businesses grow, they need more hands to help. This leads to the creation of jobs. When more people in the community have job opportunities, it reduces unemployment rates and enhances economic stability.
Arjun hired local cooks to keep up with the demand of snacks, thereby providing employment.
(continued...)
102
Part A_AI Grade 10.indb 102
4/12/2025 3:56:45 PM
Share Wealth
Entrepreneurs do not keep all their earnings for themselves. They reinvest in communities, which can include paying fair wages to their employees and contributing to local development. This sharing of wealth improves the living standards of those in the community.
Arjun did not just make money; he used some of his profits to make a positive impact on the lives of others.
Lower Prices
Entrepreneurs introduce or increase competition in markets. When they offer new and better products or services, it forces other businesses to improve and lower their prices to remain competitive. This benefits consumers, as they get better products at more affordable rates.
Arjun’s success may have encouraged others to offer similar snacks, potentially leading to competitive pricing in the neighbourhood.
Qualities of a Successful Entrepreneur
Successful entrepreneurs possess a combination of personal qualities, skills, and traits that enables them to navigate the challenges of starting and running a business. While there is no one-size-fits-all formula for success, here are some common qualities and characteristics often found in a successful entrepreneur: Vision Successful entrepreneurs have a clear vision of their business. They can see opportunities and future possibilities. For example, successful Indian entrepreneur Ratan Tata had a vision for Tata Group to become a global business. Under his leadership, Tata Group expanded its presence and diversified into various industries, including automobiles, steel, and information technology. Passion Entrepreneurs are deeply passionate about their work. They are not motivated by money alone; they love what they do and are willing to work hard and dedicate extra hours to make their business successful. For example, N. R. Narayana Murthy, cofounder of Infosys, is known for his passion for technology and entrepreneurship. He was instrumental in building Infosys into one of India’s leading IT services companies. Risk-taking Entrepreneurship involves calculated risk-taking. Successful entrepreneurs are willing to step out of their comfort zones and take risks when they believe in their ideas. For example, Mukesh Bansal and Ashutosh Lawania, the cofounders of Myntra, are prime examples of entrepreneurs who took significant risks in the e-commerce industry by pioneering online fashion in India in the year 2007. Adaptability Successful entrepreneurs adapt to changing circumstances. They are flexible and open to change. They can change their strategies based on their learnings and changing market conditions. For example, Mukesh Ambani, chairman and managing director of Reliance Industries, transformed the company from a textile-focused business to a diversified company with interests in telecommunications, retail, and digital services. Innovative Thinking Entrepreneurs seek creative solutions to problems and constantly look for ways to improve their products, services, or processes. For example, Kunal Shah, the founder of CRED, is an Indian entrepreneur known for his innovative thinking in the financialtechnology sector. Kunal Shah launched CRED as a platform that rewards credit card users for paying their bills on time. This innovative approach transformed the traditional process of credit card bill payments into a rewarding experience.
Ratan Tata
N.R. Narayan Murthy
Mukesh Bansal and Ashutosh Lawania
Mukesh Ambani
Kunal Shah
Self-motivation Entrepreneurs are self-starters. They are intrinsically motivated to work and succeed. For example, Ritesh Agarwal, the founder of OYO Rooms, displayed self-motivation by starting as a teenager and building OYO into one of India’s largest hospitality companies. Ritesh Agarwal
Chapter 10 • Exploring Entrepreneurship
Part A_AI Grade 10.indb 103
103
4/12/2025 3:56:46 PM
Resilience and Persistence Entrepreneurs bounce back from setbacks and failures. Entrepreneurship is full of ups and downs, and the ability to persevere in the face of adversity is crucial. For example, Kiran Mazumdar-Shaw, founder of Biocon, faced numerous challenges in the biotechnology industry but persevered to make Biocon a global biopharmaceutical company.
Kiran Mazumdar-Shaw
Leadership Entrepreneurs must lead their teams and inspire others to share their vision. Effective leadership and communication skills are essential. For example, Adi Godrej, chairman of the Godrej Group, has shown effective leadership in directing the diversified business through various industries such as consumer goods, real estate, and agribusiness. Networking Building a strong network of contacts can provide valuable resources, advice, and opportunities. Successful entrepreneurs often have excellent networking skills. For example, Kishore Biyani, founder of Future Group, used his extensive network to establish Future Group as a major player in the retail sector in India. Customer Focus Entrepreneurs prioritise understanding customer needs and delivering value to them. Customer feedback is essential for product or service improvement. For example, boAt’s products are often praised for their sleek and trendy designs. The founders, Aman Gupta and Sameer Mehta understood that customers not only wanted great sound but also stylish accessories.
Adi Godrej
Kishore Biyani
Aman Gupta
Time Management Entrepreneurs need to juggle multiple responsibilities. Effective time management skills help them prioritise tasks and stay organised. For example, N. R. Narayana Murthy emphasised time management and a disciplined work culture at Infosys, which contributed to its success as an IT services leader. Decision-making Successful entrepreneurs make well-informed decisions, often relying on data and analysis. They are not afraid to make tough choices when necessary. For example, Binny Bansal, cofounder of Flipkart, one of India’s largest e-commerce companies, took significant strategic decisions that shaped the company and when required, didn’t hesitate to step down from his role as CEO in 2018. Problem-solving Entrepreneurship involves solving a variety of problems, from operational challenges to strategic dilemmas. For example, Shiv Nadar, founder of HCL Technologies, excelled in problem-solving by providing innovative IT solutions to global clients and building HCL into a multinational IT services company. Open-mindedness An open-minded trait is essential for entrepreneurs, as it allows them to be receptive to new ideas, feedback, and various perspectives. They see every event and situation as a business opportunity. For example, Nithin Kamath, cofounder of Zerodha, applied his open-mindedness for embracing innovation, user feedback, and a customer-centric approach and transformed the Indian stock brokerage industry. He continues to be a catalyst for positive change in the financial services sector.
Binny Bansal
Shiv Nadar
Nithin Kamath
104
Part A_AI Grade 10.indb 104
4/12/2025 3:56:48 PM
Ethical Conduct Maintaining high ethical standards is crucial. It involves adhering to a set of moral principles, rules of conduct and values in all business activities, interactions, and decisionmaking processes. Ethical entrepreneurship contributes to long-term success, trust from stakeholders, and a positive impact on society. For example, Anita Roddick, the founder of The Body Shop, built her business on principles of ethical consumerism and sustainability. Disciplined While adaptable, entrepreneurs often have a well-structured business plan. They take a disciplined approach in their work and take steps every day towards achieving their objectives. For example, Dhirubhai Ambani, the founder of Reliance Industries, adhered to a well-structured business plan while expanding his empire, which laid the foundation for the huge success of his organisation.
Anita Roddick
Dhirubhai Ambani
Entrepreneurs possess a unique blend of qualities that set them apart from the crowd. These qualities not only drive their own success but often inspire those around them.
Think and Tell COVID-19 saw the rise of many small businesses that helped solve the problem of hygiene and sanitisation. Mention a few quality traits that these entrepreneurs displayed.
Main Functions of an Entrepreneur
Entrepreneurs can drive innovation, economic growth, and societal change. Entrepreneurs’ function encompass a wide range of activities and responsibilities. These functions play a crucial role in their journey towards success. Decision-making Entrepreneurs are like the captains of their ships, making choices that steer their businesses. Entrepreneurs are the chief decision-makers in their enterprises. They need to make decisions about the products or services they offer, the production policy, the purchase and sale of the goods and services, and the marketing strategy their organisation employs. Management Control Entrepreneurs are responsible for managing and controlling their businesses. They are responsible for overseeing the day-to-day operations of their businesses, ensuring that resources are used efficiently and goals are timely met. It is crucial for them to have good management skills and employ people with good management skills as well.
Decision Making Bearing Uncertainties
Innovation Main Functions
Division of Income
Risk-taking Management Control
Division of Income Entrepreneurs need to divide the total revenue among various factions of production like rent, interest, and purchase of raw material. Entrepreneurs also decide how profits and incomes are to be distributed among stakeholders, including employees, investors, and themselves. Risk-taking Entrepreneurs are inherently risk-takers. They identify opportunities and are willing to invest time, effort, and resources into pursuing these opportunities, even if success is uncertain. They understand that taking calculated risks is often necessary to achieve significant gains and create value.
Chapter 10 • Exploring Entrepreneurship
Part A_AI Grade 10.indb 105
105
4/12/2025 3:56:49 PM
Bearing of Uncertainties Entrepreneurs operate in environments characterised by ambiguity, incomplete information, and unpredictable market conditions. They must make decisions and take actions in the face of uncertainties. Uncertainty-bearing involves making informed judgments, adapting to changing circumstances, and being resilient in the face of setbacks. Innovation Entrepreneurs are change-makers who drive economic growth, improve quality of life, and shape the future through their innovative efforts. Whether it is a small business owner introducing a new product to a local market or a tech startup disrupting entire industries, innovation is at the heart of entrepreneurial endeavours. These functions form the foundation of entrepreneurship, and it is the skill with which entrepreneurs balance these functions that often determine their success in the world of business.
Role and Importance of an Entrepreneur
Entrepreneurship benefits the entrepreneur and plays a crucial role in making communities and regions prosper. Entrepreneurs contribute to innovation, economic growth, job creation, and overall progress. Their importance cannot be overstated, and their roles encompass various aspects that benefit individuals, communities, and nations. Helps in Wealth Creation Successful entrepreneurs have the potential to accumulate wealth, which can be reinvested in their businesses or new businesses. Such reinvestments can result in the creation of more jobs, stimulating economic activity and benefiting the broader community. Adds to National Income Entrepreneurs drive economic growth by identifying and exploiting opportunities, introducing innovative products and services, and contributing to increased productivity. They contribute to national income by earning revenue and paying taxes. Creates Employment Opportunities Entrepreneurs are significant job creators. They start and expand businesses, which in turn hire employees, thus reducing unemployment and stimulating economic activity. For example, Elon Musk, the entrepreneur behind companies like SpaceX, has significantly impacted job creation in the aerospace industry. SpaceX, founded in 2002, has been at the forefront of commercial space exploration and transportation. Improves Standard of Living Entrepreneurs enhance the standard of living by introducing products or services that enhance convenience. They help improve the standard of living not only by providing income to many families through job opportunities but also by fostering new products and services that enhance the living standards of all the stakeholders. Creates Social Change Social change denotes significant alterations in societal norms, behaviours, or structures. Entrepreneurs drive social change by introducing innovations that challenge existing practices. For example, Harish Hande, an Indian social entrepreneur, cofounded SELCO India in 1995 with the mission to provide sustainable energy solutions to rural and underserved communities in India. Harish Hande’s vision and SELCO India’s initiatives have demonstrated the transformative power of social entrepreneurship. By providing sustainable and clean energy solutions to rural communities, SELCO has not only improved the standard of living but also empowered individuals and communities to take control of their own development and related environmental impact. Community Development Community development refers to initiatives aimed at enhancing the well-being of a local community. Entrepreneurs contribute by supporting local causes, schools, and charities. For example, the Tata Group invested heavily in building infrastructure and amenities for the community. This includes hospitals, schools, housing complexes, sports facilities, parks, and cultural centres. Tata Steel’s community development programs aim to enhance the quality of life for its employees and residents of the city. The Role of Government Government policies have a significant impact on encouraging entrepreneurship. The economy may benefit from a government-regulated, balanced approach to fostering entrepreneurship. Uncontrolled entrepreneurship may result in undesirable social effects like unethical business practices, corruption, financial crises, and criminal activity.
106
Part A_AI Grade 10.indb 106
4/12/2025 3:56:49 PM
Myths About Entrepreneurship Let us look into some of these myths. Myths
Expectation
Reality
Example
Every Idea Must Be Unique
This myth suggests that to be an entrepreneur, you need to develop a groundbreaking idea that has never been used before.
Many successful entrepreneurs succeed by adding a unique twist to existing concepts.
Priya wanted to start a bakery in her neighbourhood, where several bakeries were already operating. Instead of creating entirely new products, she focused on adding a unique cultural touch by incorporating traditional Indian flavours and spices into her baked goods. This innovative approach helped her stand out and attract a loyal customer base.
You Need Lot of Money
Another misconception is that launching a business requires a substantial amount of money or capital.
Although capital is essential, it is not always the determining factor for success.
Ravi dreamt of opening a technology repair service in his town but had limited funds. He started small, offering his repair services from a small kiosk. As his reputation grew, he reinvested his earnings into expanding his business, eventually opening a proper repair shop. Ravi’s business success was built over time, starting with modest resources.
Only Big Business Owners Are Entrepreneurs
Many people believe that entrepreneurs exist only in the world of big corporations.
Entrepreneurship can thrive in small and medium-sized businesses too.
Sita runs a small tailoring business from her home, creating custom dresses for local customers. While her business is not at a large scale, she is an entrepreneur because she identified a market need, established her business, and steadily grew her customer base through her tailoring skills and excellent customer service.
Entrepreneurs Are Born, Not Made
This misconception suggests that entrepreneurship is an innate talent and you either have it from birth or you don’t.
In truth, anyone can develop entrepreneurial skills and mindsets.
Rahul, a high school student, organised a charity event to raise funds for a local orphanage. He came up with creative fundraising ideas, organised volunteers, and managed the event effectively. Rahul’s entrepreneurial spirit shone through his ability to identify a need, plan, and execute a successful project, showing that entrepreneurship can be nurtured and developed at any age.
Entrepreneurship as a Career Option
Countries are making a shift from ‘managerial’ to ‘entrepreneurial’ economies. India is known to be a land of ideas. Since a long time, we have had craftsmen, artisans, farmers, and traders working outside the formal employment structure. From a small departmental store owner to a prominent industrialist, business sense flows through the Indian society.
Think and Tell List a few myths that you have heard about entrepreneurs.
1. E ntrepreneurs are being recognised as role models in our country. Webinars, seminars, videos, blogs, and books are being used as the media of motivation and encouragement. 2. Online courses are being offered to help youth take up entrepreneurship as a serious career option. 3. Educational institutes are providing courses on entrepreneurship. 4. Institutes are inviting alumni to meet for mentoring and career guidance sessions.
Chapter 10 • Exploring Entrepreneurship
Part A_AI Grade 10.indb 107
107
4/12/2025 3:56:49 PM
5. The government has gauged the shift and has taken many initiatives.
• Startup India: Launched in 2016, it aims to promote entrepreneurship and innovation in the country. This initiative provides various benefits to startups, including tax exemptions, funding support, and simplification of regulatory procedures. • Make in India: Make in India is a campaign launched in 2014 to encourage manufacturing and production within India. This campaign seeks to transform the country into a global manufacturing hub by promoting ease of doing business, simplifying regulations, and attracting foreign investments. • Stand-up India: This scheme, launched in 2016, aims to promote entrepreneurship among women and underprivileged sections of society by offering loans and support.
• Mudra Yojana: The Pradhan Mantri Mudra Yojana (PMMY) was initiated to financially support small businesses and micro-enterprises. This scheme offers loans at various stages of business development, from startup to growth and expansion. • Atal Innovation Mission (AIM): Launched in 2016, this scheme focuses on promoting innovation and entrepreneurship among students and startups. It includes initiatives such as Atal Tinkering Labs in schools and Atal Incubation Centres to support startups. • Entrepreneurship and Skill Development Program: It is run by various agencies, including the Ministry of Skill Development and Entrepreneurship, and offers training and skill development programs to aspiring entrepreneurs.
• Pradhan Mantri Employment Generation Programme (PMEGP): PMEGP aims to generate employment opportunities in rural and urban areas by providing financial assistance for setting up micro-enterprises. This programme supports various sectors, including manufacturing and services.
• Research and Development Grants: The government offers grants and incentives to startups and businesses engaged in research and development activities to promote innovation and technology advancement. 6. In today’s digital age, entrepreneurship has become more accessible than ever. The internet has opened up countless opportunities for online businesses, making it easier for aspiring entrepreneurs to reach a global customer base. 7. In the world of entrepreneurship, your success is not limited by titles or corporate hierarchies. The effort you put into your business directly correlates with the outcomes you achieve. Entrepreneurs often find that their income potential is limited only by their ambition and hard work. In conclusion, entrepreneurship offers a career path that combines passion, creativity, independence, and the potential to make a meaningful impact. It is a journey filled with challenges and rewards, making it an attractive option for those with vision and the determination to pursue their dreams.
ActivityTime Time Activity Activity 1: Writing a Note on Entrepreneurship as a Career Option
(Group Work & Independent Work)
In a group of four to five students, discuss the importance of entrepreneurship as a career option. You may highlight the key points from the chapter, emphasising how entrepreneurship nurtures creativity, offers independence, and has a positive impact on society. After the discussion, write down a short note on ‘Entrepreneurship: An Appealing Career Option’ in about 150 to 200 words. Activity 2: Researching Success Stories of First-Generation and Local Entrepreneurs
(Pair Work)
Get in pairs for the research-based project. Research on the success stories of two first-generation and local entrepreneurs. Your research should include the following: 1. About the founder(s) 2. Business idea 3. Role towards the society Present your findings to the whole class.
108
Part A_AI Grade 10.indb 108
4/12/2025 3:56:49 PM
(Individual Work)
Activity 3: Analysing Strengths and Weaknesses
Reflect and introspect yourself as a budding entrepreneur. Create a list of the entrepreneurial qualities that you hold. Assess yourself based on the qualities you have listed to identify your areas of strength and weakness. You can use a simple scale, rating yourself from 1 to 5 for each quality (1 being the lowest and 5 being the highest). Get in pairs to share your qualities, strengths, and weaknesses. Take feedback and suggestions from your partner to help improve the areas of weakness.
(Group Work)
Activity 4: Listing Entrepreneurial Qualities
Divide yourselves into small groups, each consisting of four to five members. Within your groups, engage in a lively discussion to compile a list of qualities you believe are necessary for entrepreneurs to succeed. Feel free to draw from your personal experiences or share anecdotes that illustrate these strategies. Each group should nominate a spokesperson who will present your list of qualities and provide real-life examples or stories to support them. After all the groups have presented, reflect on the presentations as a class. Discuss any common qualities that multiple groups mentioned and whether there were any differences in perspectives among the groups. This collective insight can be enlightening.
(Group Work)
Activity 5: Data for a Business
Form a group of five students. Imagine each member of the group to be a cofounder of a business venture. As a team, brainstorm and conceive a business idea that can solve an existing problem in the society. Collect data and information about your business idea, the future scope of growth and the market where your business can thrive. Map out a business setup plan. Imagine your class to be a room full of investors. Present your findings and the business setup plan to them. After all the groups have presented, as a class, discuss the best business idea you liked and why. Activity 6: Guest Speaker Session
(Group Work)
Imagine you need to invite a successful entrepreneur for a guest lecture. Your teacher has provided you a list of business ventures and their entrepreneurs. Form a group of four to five students each and select a business venture with the mutual consent of your group. 1. Myntra
2. Nykaa
3. Mamaearth
4. Zomato
5. Uber
6. Lenskart
7. BharatPe
8. Zepto
9. MakeMyTrip
10. PharmEasy
Now, as a team, research the success story of the founder(s) of the selected business, the reason behind starting the business, and their contribution to the community. Present your findings to the class while trying to convince them why should your chosen entrepreneur be invited as a guest speaker.
Chapter Checkup A Select the correct option.
1 What inspired Sarah to start her own business? a She wanted to become famous. c She inherited a business.
b Her neighbour, Addie, suggested it. d She had a lot of free time.
2 Which of the following qualities is NOT typically associated with successful entrepreneurs? a Innovation b Resilience c Delaying things
Chapter 10 • Exploring Entrepreneurship
Part A_AI Grade 10.indb 109
d Confidence
109
4/12/2025 3:56:49 PM
3 What is the one way in which entrepreneurs can contribute to society? a By hoarding their wealth
c By avoiding risks
B Fill in the blanks with the most suitable words. 1 Entrepreneurs often take calculated
b By creating job opportunities d By keeping their ideas secret
in the pursuit of their goals.
2 The standard of living in a community can be improved by introducing convenience.
and
3 Entrepreneurs contribute to the national income by earning revenue and paying 4 One myth about entrepreneurship is that every idea must be
.
that enhance .
C State whether the following statements are True or False. Correct the statements that are False. 1 Entrepreneurship can thrive only in big corporations.
2 The impact of entrepreneurship on society is limited to economic growth. 3 Entrepreneurs are always born with innate talents for doing a business.
4 Wealth creation involves generating assets, income, or value by using resources effectively. D Answer the following questions. (Solved)
Q1. Explain one quality that entrepreneurs often possess and provide an example of how this quality can benefit their business.
A1. One quality that entrepreneurs often possess is “creativity”. Creativity allows entrepreneurs to think out of the box and develop innovative solutions to problems. For example, a cloth designer can use their creativity to design unique and eye-catching clothing, setting their business apart from competitors. Q2. Discuss the role of entrepreneurship in creating employment opportunities and its impact on the overall well-being of a community or a region. A2. Entrepreneurship plays a crucial role in creating employment opportunities within a community or a region. When entrepreneurs set up or expand their businesses, they often hire residents of the neighbouring areas, thus reducing unemployment rates and improving economic stability. This job creation not only benefits individuals by providing them with a regular income but also enhances the overall well-being of the community. It can further lead to better living standards, increased access to goods and services, and a stronger sense of community pride. Additionally, as businesses grow and succeed, they contribute to the economic growth of the region, attracting further investment and development. Therefore, entrepreneurship is a driving force behind both individual and community prosperity.
Q3. Meet Raj, a Craft Innovator. Raj is a young and spirited entrepreneur who hails from Jaipur, Rajasthan. In his vibrant city, traditional artistry is treasured, and one craft that stands out is block printing on fabric. Raj recognised a growing interest in handcrafted, eco-friendly clothing not only in Jaipur but also across India.
With a vision to blend traditional craftsmanship with current fashion trends, Raj started his business, “Rajrang Apparel”. He sources organic cotton from local farmers and employs skilled artisans from his community. Raj personally designs unique block patterns that reflect the rich heritage of Rajasthan. Initially, he worked with a small team of artisans, but as the demand for his beautifully crafted clothing grew, so did his team. Raj provided employment opportunities to more artisans, empowering them to showcase their talents while earning a sustainable income. Raj’s efforts not only benefited his team but also the local farmers who supplied him with organic cotton. With increasing orders, he purchased larger quantities of cotton, contributing to the farmers’ income. As Rajrang Apparel thrived, Raj made sure that everyone involved shared in the success. Moreover, Raj was conscious of his responsibility to the environment. He implemented eco-friendly practices in his production process, such as natural dyeing techniques and minimal water usage. He also supported his community by supporting local charities and sponsoring education programs. Raj not only created beautiful clothing but also contributed to a positive change. His journey showcases how entrepreneurship can uplift not only individuals and communities but also honour age-old traditions in the modern world. What roles of an entrepreneur do you think Raj fulfilled?
110
Part A_AI Grade 10.indb 110
4/12/2025 3:56:50 PM
A3. Raj is a successful entrepreneur who identified a potential opportunity in the market and is working hard to generate employment and fulfil his responsibilities towards the environment, society, and nation. •
•
• • •
Helped in Wealth Creation: Successful entrepreneurs have the potential to accumulate wealth, which can be reinvested in their businesses. Raj showed the potential in the market, and now he is using the earned revenue to expand and upscale his business. He is making sure to share the success with all the stakeholders.
Added to the National Income: Entrepreneurs drive economic growth by identifying and exploiting opportunities. Raj saw an opportunity gap, and his idea and production have been able to fulfil the market need. His small business has ensured the flow of money in the economy as his business sources organic cotton from local farmers and employs skilled artisans from his community. Created Employment Opportunities: Entrepreneurs are significant job creators. Raj provided employment opportunities to more artisans, empowering them to showcase their talents while earning a sustainable income.
Improved Standard of Living: Entrepreneurs enhance the standard of living by bringing sustainable fashion to the people of their community and globally.
Created Social Change: Raj is conscious of his responsibility to the environment. He implemented eco-friendly practices in his production process, such as natural dyeing techniques and minimal water usage. He also supported his community by supporting local charities and sponsoring education programs.
Answer Key A 1. b
2. c
3. b
B 1. risks
2. product; services
3. taxes
4. unique
C 1. False. Entrepreneurship can thrive not only in big corporations, but also in small and micro-businesses. 2. False. The impact of entrepreneurship on society includes economic growth, job opportunities, and community development. 3. False. Entrepreneurs are not born; entrepreneurship is a skill that can be developed. 4. True
Chapter 10 • Exploring Entrepreneurship
Part A_AI Grade 10.indb 111
111
4/12/2025 3:56:50 PM
Unit Reflection
Key Terms Community Development: It refers to initiatives aimed at enhancing the well-being of a local community. Entrepreneurs: They are individuals or small groups of partners striving to venture into unknown territories to establish a business, willing to work hard to succeed, and take complete ownership of their failures. Entrepreneurship: It is the process of transforming an idea into a big business enterprise by identifying the opportunity, and creating a market through thorough planning and management skills, typically with the goal of achieving financial profitability, and long-term success. Social Change: It denotes significant alterations in societal norms, behaviours, or structures.
Things to Remember • Entrepreneurship and society share a dynamic and mutually influential relationship. When entrepreneurs run their businesses, they fulfil customer needs, support local talent, benefit society, create jobs, offer products and services at lower prices, and share the wealth. • Successful entrepreneurs have a clear vision, passion for work, ability to take risks, and can also adapt and innovate. They are self-motivated, resilient, and persistent individuals with leadership skills and a vast network of people. Their approach is customer-focused and they maintain ethical conduct and discipline. • An entrepreneur’s role includes decision-making, management control, division of income, risk-taking ability, bearing of uncertainties, and innovation. • Entrepreneurs help in wealth creation as they add to the national income by creating employment opportunities, and improving the standard of living. They may be the torchbearers of social change, and community development. Government policies play an important role in encouraging entrepreneurship. • Entrepreneurs’ ideas may not necessarily be unique. They need not have lots of money or big businesses. Anyone can develop entrepreneurial skills and mindsets. • Countries are making a shift from ‘managerial’ to ‘entrepreneurial’ economies. • Entrepreneurs are being recognised as role models in India. • Online courses are being offered to help the youth take entrepreneurship as a serious career option. • Educational institutes are providing courses on entrepreneurship. • The Indian government has introduced many initiatives, such as Startup India, Make in India, Stand-Up India, MUDRA Yojana, Atal Innovation Mission (AIM), National Entrepreneurship Development Program (NEDP), Pradhan Mantri Employment Generation Programme (PMEGP), Research and Development Support, and so on, to promote entrepreneurship in India. • The internet has opened up countless opportunities for online businesses, making it easier for aspiring entrepreneurs to reach a global customer base.
112
Part A_AI Grade 10.indb 112
4/12/2025 3:56:51 PM
Test Your Knowledge A. Select the correct option. 1. What is the nature of the relationship between entrepreneurship and society? a. Indirect
b.
Direct
c. Not related
d.
None of these
2. How can a successful entrepreneur give back to his community? a. By supporting charities
b.
By keeping all the profit
c. By building own houses
d.
By investing in gold
3. Which of the following is not a trait of a successful entrepreneur? a. Decision-making
b.
Leadership
c. Adaptability
d.
Risk-fearing
4. Entrepreneurs contribute to the national income by earning revenue and paying a. Fines
b.
Money
c. Duties
d.
Taxes
a. Prime Minister Money Scheme
b.
Pradhan Mantri Money Yojana
c. Pradhan Mantri Mudra Yojana
d.
Pradhan Mantri Madad Yojana
5. The full form of PMMY is
.
.
B. Fill in the blanks with the most suitable words. 1.
is a campaign launched in 2014 to encourage manufacturing and production within India.
2. Entrepreneurs introduce
into the market.
3. Countries are making a shift from ‘managerial’ to 4. The
economies.
has opened up countless opportunities for online businesses, making it easier for aspiring
entrepreneurs to reach a global customer base.
C. State whether the following statements are True or False. Correct the statements that are false. 1. A person is considered an entrepreneur if they begin making chocolates at home and selling them to others. 2. Mudra Yojana, which was launched in 2016, focuses on promoting innovation and entrepreneurship among students and start-ups.
3. Only a big business owner is an entrepreneur. 4. Government policies have a big impact on encouraging entrepreneurship.
D. Short answer-type questions. 1. Explain the relationship between entrepreneurship and society. 2. Is it important to be passionate as an entrepreneur? 3. Mention any two government initiatives that promote entrepreneurship in India.
Unit Reflection
Part A_AI Grade 10.indb 113
113
4/12/2025 3:56:51 PM
E. Long answer-type questions. 1. Define entrepreneurship. What is the role and importance of an entrepreneur? 2. ‘You need a lot of money to become a successful entrepreneur.’ It is a popular statement regarding entrepreneurship. Do you agree with this statement? Support your reasons with an example.
3. What are the different functions of an entrepreneur?
F. Competency-based questions. 1. Latika is an enthusiastic home baker who is famous for her delicious cakes, cookies, and pastries. She has decided to turn her passion for baking into a home-based bakery business. She started by selling her baked goods to her friends and
family, and they quickly gained popularity due to their taste and quality. What qualities of a successful entrepreneur does Latika possess?
2. Raj is a young entrepreneur in India who is passionate about clean energy solutions. He has developed a unique solar-
powered water purification device that can provide clean drinking water to rural communities with limited access to clean water sources. Raj’s innovation has the potential to address a critical problem and improve the lives of many people.
However, Raj is facing challenges in scaling up his business and bringing his invention to a wider audience. Name various Indian government schemes and initiatives that are available to support entrepreneurs like Raj.
114
Part A_AI Grade 10.indb 114
4/12/2025 3:56:51 PM
Unit 5 • Green Skills-II
11 Sustainable Development I
n the rapidly changing world that we all are a part of, our environment is also changing. From rising global temperatures to shifts in weather patterns and from the depletion of important natural resources to the alarming loss of biodiversity, it has become increasingly evident that our planet is facing unforeseen challenges. The once stable and predictable patterns of nature are being disturbed and demand our attention and action. We are responsible for taking care of our planet, which is full of life.
Sustainable Development
“Sustainable Development is development that meets the needs of the present without compromising the ability of future generations to meet their own needs.”1 Let us break this definition down to two parts:
Meeting Our Present Needs This means that we must ensure that presently, all people have access to things like clean water, food, shelter, education, and healthy living conditions. It’s about making sure that everyone has a chance to lead a decent life. Without Compromising the Future Needs This means that we should not meet our present needs in a way that harms the planet or uses up resources so quickly that there is nothing left for our future generations. We need to take care of the environment so it stays healthy and can provide for our children, their children, and so on. At its heart, sustainable development is about finding a balance which will not only enable us to optimally utilise the resources in the current times but also ensure that there is no scarcity in the future.
1
As per the Report of the World Commission on Environment and Development: Our Common Future (1987).
115
Part A_AI Grade 10.indb 115
4/12/2025 3:56:52 PM
EVOLUTION OF
SUSTAINABLE DEVELOPMENT
THE CONCEPT HAS EVOLVED SIGNIFICANTLY OVER THE YEARS, RESPONDING TO THE CHANGING NEEDS AND CHALLENGES OF THE WORLD.
1960-1970 (EARLY ROOTS) The seeds were sown in 1960s when environmental concerns gained global attention. Early movements like Rachel Carson's "Silent Spring" and the first Earth Day in 1970 raised awareness about environmental issues.
1987 (BRUNDTLAND REPORT) The seeds were sown in 1960s when environmental concerns gained global attention. Early movements like Rachel Carson's "Silent Spring" and the first Earth Day in 1970 raised awareness about environmental issues.
1992 (RIO EARTH SUMMIT) The UN Conference on Environment and Development also known as the "Earth Summit," held in Rio de Janeiro, Brazil was an important milestone. It produced a comprehensive plan of action for sustainable development.
2000 - 2015 (MILLENNIUM DEVELOPMENT GOALS)
It is like a roadmap for building a better future. It is an integrated approach to development which will prevent us from exhausting all the natural resources and damaging the environment to a point from where it cannot recover. When we practise sustainable development, we become responsible caretakers of our planet. Sustainable development is a strategy for driving growth in an environmentally smarter way. It is about growing and being successful while also being kind to our environment and people. If development is not driven by keeping a particular need in mind, it will cause economic, environmental, and social issues. Hence, sustainable development means to meet the diverse needs of the present and the future generations by promoting wellbeing, social inclusion and the creation of equal opportunities.
Pillars of Sustainable Development
The international community focused on MDGs which included objectives like eradicating poverty and achieving universal primary education. Along with sustainability, it was recognised '!hat a more holistic approach is needed.
2015-PRESENT (SUSTAINABLE DEVELOPMENT GOALS) In 2015, !he world adopted !he SDGs. These 17 goals provided a comprehensive framework that addressed poverty, inequality, climate change etc. They emphasised on interconnectedness of social, economic and environmental issues.
Evolution of Sustainable Development
The three main pillars of sustainable development are:
Environmental This is all about protecting and being friendly to the environment. It includes reducing waste and pollution, using less energy, a wise usage of natural resources, and preserving our biodiversity. By doing these things, we can help solve issues like pollution, global warming, and climate change.
Economic This means using assets and resources wisely and efficiently to ensure economic growth and produce profit. It aims to improve the standard of living of the public. The resources should be used responsibly to meet development goals and build a competitive economy. Social This is about making sure that the public is safe, healthy, and treated fairly. Also, it is about being inclusive and welcoming to people from different social and cultural backgrounds. The development needs to focus on creating accessible services for the community which cater to various aspects like health, security, education, etc.
116
Part A_AI Grade 10.indb 116
4/12/2025 3:56:53 PM
Sustainable Development Goals (SDGs) The concept of sustainability is accepted worldwide, and the United Nations General Assembly released a guideline for the world called the Sustainable Development Goals in 2015 for the year 2030. The Sustainable Development Goals, also called the SDGs, are like a global ‘to-do list’ for making the world a better place and addressing global issues like hunger, poverty, education, peace, global warming, environmental issues, inequality, and injustice.
There are seventeen SDGs and one hundred and sixty-nine targets in total, which are a part of this agenda. Each goal has a specific aim, like ending hunger, ensuring clean water, providing quality education, etc. These goals cover many different aspects of life, from taking care of the environment to ensuring everyone is healthy and has enough to eat. These goals aim to include people of all the countries to enhance economic growth and create a more prosperous world.
The Importance of Sustainable Development
By understanding the definition and evolution of Sustainable Development, we now know that it is a critical approach that shapes our future. But why is sustainable development so important? Read the table given below to understand its significance: The Importance of Sustainable Development 1. Ensuring Our Planet Remains Healthy
ur planet Earth is our only home, and its health directly O impacts our well-being. Sustainable development prioritises environmental protection and resource conservation. It’s a way to ensure that our natural resources, such as air, water, and fertile soil, remain clean and abundant for the current and the future generations. 3. Enhancing Quality of Life
Ultimately, sustainable development is about improving the quality of life for all individuals. It’s about clean air to breathe, safe and vibrant communities, and a world where future generations can look forward to their future without worrying about basic amenities. 5. Preserving Our Biodiversity
ustainable Development also aims at preserving the S ecosystem and the habitats of all birds and animals and, thus, helping to maintain our biodiversity.
Chapter 11 • Sustainable Development
Part A_AI Grade 10.indb 117
2. Combating Climate Change
Sustainable development is a powerful tool to combat the looming threat of climate change. It encourages the reduction of greenhouse gas emissions, promotes renewable energy sources, and advocates for sustainable transportation; all crucial steps in mitigating the effects of global warming.
4. Leaving a Legacy
Sustainable development is about creating a legacy we can be proud of, one that reflects our values and commitment to a better world. It is about ensuring that our children and their children inherit a planet that is thriving and abundant. 6. Financial Stability
here is a continuous effort to stabilise the economies of all T countries and a promise of steady growth. The use of fossil fuels, which cannot be replenished easily, is being replaced by cost-effective renewable sources of energy.
117
4/12/2025 3:56:53 PM
Sustainable Practices
Sustainable practices are the actionable steps we take to achieve the objectives of sustainable development. They guide us in making everyday decisions that reduce negative environmental impact, promote fair practices, and contribute to economic well-being. Some key and popular sustainable practices are: educe, Reuse, Recycle This mantra covers R the essence of sustainable waste management. Reducing waste at the source, reusing items whenever possible, and recycling materials are fundamental practices that conserve resources and reduce landfill waste. nergy Efficiency Using energy more E efficiently is the cornerstone of sustainable practices. It includes strategies like insulated buildings, upgrading lighting systems, and investing in energyefficient appliances. Reducing energy consumption decreases our carbon footprint and lowers our energy bills. onservation of Water Sustainable water consumption practices involve using water wisely in domestic areas and C avoiding unnecessary waste in industrial sectors. This can be achieved through efficient irrigation methods, fixing leaks promptly, and adopting low-flow fixtures (water saving plumbing equipment to reduce the flow of water). Water conservation is crucial in regions prone to drought and in the face of growing global water scarcity. ustainable Transportation Choosing eco-friendly modes of transportation, such as walking, biking, carpooling, S or using public transit reduces greenhouse gas emissions and eases traffic congestion. Electric and hybrid vehicles are also increasingly popular sustainable options. ustainable Agriculture Sustainable agricultural practices promote soil health, reduce chemical inputs, and S prioritise biodiversity. Organic farming, crop rotation, and the use of natural fertilisers are examples of methods that maintain the long-term fertility of agricultural land.
Think and Tell Name any one sustainable practice that you follow in your daily life. Share why it is beneficial for our environment.
Eco-friendly Lifestyle
Eco-friendly is a term used to describe products and activities that are designed and carried out with minimal harm to the environment. This can include the production of materials, the use of renewable energy sources, and practices that reduce water, air, and land pollution. Eco-friendly practices are an integral part of sustainable development. They align with the principles of responsible resource use, environmental protection, and social equity. By adopting eco-friendly habits, individuals, businesses, and communities contribute to the broader goals of sustainability, fostering a world where the needs of the present are met without compromising the ability of future generations to meet their own needs. So, whether you reduce waste, conserve energy, or support sustainable products, every eco-friendly choice is a step towards a more sustainable and harmonious world. These are some eco-friendly products that are used worldwide:
118
Part A_AI Grade 10.indb 118
4/12/2025 3:56:53 PM
BAG Reusable shopping bags are a great eco-friendly alternative to disposable plastic bags. They are durable, long-lasting, and can be used to reduce the amount of plastic waste.
PRODUCTS Recycle paper products are a great way to reduce the amount of trees being cut down. They are made from post-consumer paper and are an eco-friendly alternative to traditional paper products.
PRODUCTS Bamboo is a fast-growing and sustainable material that can be used to make a varietly of product. Bamboo products are durable. Lightweight and look great.
WATER BOTTLE Reusable water bottles are a great way to reduce plastic waste and save money. They are designed to be used for years and are made from durable materials like stainless steel, glass and aluminium.
Problems Related to Sustainable Development
Sustainable development requires resources, concentrated efforts, and a shift in society’s mindset to understand and adapt to a sustainable lifestyle. On the surface, the concept may sound simple to implement; however, it faces numerous issues. As responsible citizens, it is important to be aware of the challenges and complexities associated with sustainable development. Limited Resources One of the foremost challenges is the scarcity of vital resources. As the global population continues to grow, there is increased pressure on resources like freshwater, land, and energy sources. Sustainable development requires us to manage these resources carefully, which often demands innovation and conservation efforts. Short-term Vs Long-term Interests Balancing short-term economic interests with long-term sustainability goals can be challenging. Some policies and practices prioritise immediate gains over the well-being of future generations, making it crucial to shift this mindset. Lack of Awareness Not everyone is fully aware of the importance of sustainable development and its implications. Raising awareness and educating communities about the benefits and necessity of sustainable living is an ongoing challenge. Global Cooperation Many sustainability challenges are global in nature, such as climate change. Addressing these issues requires cooperation among countries, which can be complicated because of differing priorities and interests. Measuring Progress Tracking progress towards sustainable development is a complex task. Developing accurate metrics and indicators that consider economic, social, and environmental factors is a challenge in itself.
Did You Know? Corporate social responsibility (CSR) is a sustainable business practice where companies develop global programmes that help the surrounding communities and society at large. For example: ITC, Tata Steel, etc. The CSR departments in big companies often tackle significant global challenges such as climate change, poverty, and education.
Sustainable development demands innovation, commitment, and collaboration on a global scale.
Chapter 11 • Sustainable Development
Part A_AI Grade 10.indb 119
119
4/12/2025 3:56:59 PM
Possible Strategies and Solutions for Sustainable Development
Strategising to solve problems is an important skill that we must learn. Here are a few possible strategies and solutions for sustainable development. Sustainable Resource Management 1. Resource Efficiency: Implementing resource-efficient practices in industries, agriculture, and households can help reduce the strain on natural resources. This includes recycling, reusing, and adopting eco-friendly products.
2. Conservation: Protecting and restoring natural habitats and ecosystems is vital. Conservation efforts can help safeguard biodiversity, promote clean water sources, and mitigate climate change. Social Equity 1. Education and Awareness: Promoting education about sustainable development and environmental conservation helps empower communities to make informed decisions. International Cooperation 1. Climate Agreements: Encourage international cooperation through agreements, like the Paris Agreement, which aims to limit global warming. Collaboration on a global scale is essential for addressing climate change.
2. Aid and Assistance: Developed countries can provide financial and technical assistance to developing nations to support their sustainable development efforts. Addressing the challenges related to sustainable development requires a multifaceted approach involving individuals, communities, governments, and businesses. By adopting these strategies and solutions, we can collectively work towards a more sustainable, equitable, and harmonious world. Each action, no matter how small, contributes to the greater goal of a better future for all.
Think and Tell If you were leading a country which was on a path to adopt sustainable practices, what strategies and solutions would you have suggested or implemented?
Activity Time Activity 1: Conservation of Cultural Heritage
(Group Work)
Get into groups of four and discuss how we can conserve our indigenous knowledge and cultural heritage. Guiding Questions: 1. Which indigenous knowledge and cultural heritage are you focusing on?
2. Why is it important to respect and conserve indigenous knowledge and cultural heritage?
3. How can indigenous knowledge contribute to sustainable development and environmental conservation? 4. What are some challenges indigenous communities face in preserving their knowledge and heritage?
5. What can individuals and society do to support and respect indigenous knowledge and cultural heritage? Activity 2: Save the Capital
(Pair Work)
Our country, especially our capital, New Delhi, has been facing a grave issue of air pollution. Delhi has consistently ranked among the most polluted cities in the world, primarily due to vehicle emissions, industrial pollution, and stubble burning.
Imagine you and your classmate are research analysts working at the New Delhi Air Pollution Control Centre. Work on this major problem related to sustainable development and brainstorm potential solutions.
120
Part A_AI Grade 10.indb 120
4/12/2025 3:56:59 PM
Follow the given activity steps: • Brainstorming: Find out more information related to the issue or any other related issues.
• Research and Analysis: Gain information on the current state of the issue, its impact on people, and what the government has done to address this issue.
• Solution Brainstorming: Think creatively and list short-term and long-term approaches to solve the problem at hand.
• Presentation: Present your research, findings, and solutions to the class.
(Group Work)
Activity 3: Sustainable Technology Models
Get into groups of five. Design and create a sustainable technology model on rainwater harvesting, drip/sprinkler irrigation, vermicompost, solar energy, solar cooker and/or any other technology of your choice.
Chapter Checkup A Select the correct option. 1 What does sustainable development aim to achieve? a Unlimited economic growth
b Immediate benefits for the present generation
c Balancing current needs with those of future generations
d Maximising resource consumption
2 What do the Sustainable Development Goals (SDGs) represent? a A global to-do list for making the world a better place
b A set of economic policies for developed countries
c A set of guidelines for exploiting natural resources
d A list of challenges that cannot be solved
3 Which of the following is NOT a pillar of sustainable development? a Economic
b Environmental c Social
d Political B Fill in the blanks with the most suitable words. 1 The United Nations adopted the aspects of sustainability. 2
in 2015, which consists of 17 goals and 169 targets covering various
is a term used to describe products and activities that are designed and carried out with minimal harm to the environment.
3 Reduce, Reuse and Recycle covers the essence of sustainable
.
4 Eco-friendly practices align with the principles of responsible resource use, environmental protection, and
.
C State whether the following statements are True or False. Correct the statements that are False. 1 Sustainable practices, such as energy efficiency and water conservation, play a crucial role in reducing environmental impact and promoting responsible use of resources. 2 Sustainable development focuses only on economic growth and profit maximisation.
Chapter 11 • Sustainable Development
Part A_AI Grade 10.indb 121
121
4/12/2025 3:57:00 PM
3 Developed countries should not provide financial or technical assistance to developing nations to support their sustainable development efforts. 4 The Sustainable Development Goals (SDGs) address various aspects of sustainability, including poverty, health, education, and climate action. D Answer the following questions. (Solved) Q1. Explain the concept of sustainable development. A1. A ccording to the World Commission on Environment and Development, Sustainable Development is the “development that meets the needs of the present without compromising the ability of future generations to meet their own needs.” It is about finding a balance which will enable us to optimally utilise the resources in current times so that there will be no scarcity in the future. It is an integrated approach to development which will prevent us from exhausting all the natural resources and damaging the environment to a point from where it can’t recover. Q2. List any five ways in which sustainable development is important for us. A2. Sustainable Development is a critical approach essential for shaping our future in the following ways:
• Combating climate change: It is a powerful tool to combat the threat of climate change and global warming. It results in the reduction of greenhouse gas emissions and the use of renewable resources of energy. • Ensuring a healthy planet: It prioritises environmental protection and resource conservation. • Leaving a legacy: It wants to create a legacy that we all can be proud of and ensure that our children inherit a planet with abundant resources. • Enhancing biodiversity: It aims to preserve the ecosystem and the habitats of different birds and animals. • Providing financial stability: It promises steady economic growth and tries to stabilise the economies by optimum use of resources.
Q3. Read the case study given below and answer the questions in detail that follow.
The government of Madhya Pradesh has introduced a bicycle-sharing program to reduce traffic congestion and carbon emissions in the city. 1. How does promoting cycling contribute to sustainable transportation in a city? 2. What are some potential challenges for implementing such a program?
A3. 1. Cycling is an eco-friendly mode of transportation, and promoting its usage is a great initiative by the government. It will reduce traffic congestion and the carbon footprint of the city. By using such a sustainable mode, the amount of greenhouse gases like carbon dioxide will decrease considerably in the city. 2. Some potential challenges for implementing such a program are:
• Lack of funds and finances for creating such assets. • Inconsistent maintenance and availability of bikes. • Lack of infrastructure like proper streets and sidewalks, bike lanes etc. which can threaten the safety of daily riders. • Lack of an existing cycling culture and health-oriented ecosystem. • Lack of awareness in people about sustainable transportation and its benefits.
Answer Key A 1. c
2. a
3. d
B 1. Sustainable Development Goals (SDGs)
2. Eco-friendly
3. waste management
4. social equity
C 1. True
2. False. Sustainable development does not only focus on economic growth and profit maximisation.
3. False. Developed countries should provide financial or technical assistance to developing nations to support their sustainable development efforts. 4. True
122
Part A_AI Grade 10.indb 122
4/12/2025 3:57:00 PM
Unit Reflection
Key Terms Crop Rotation: Crop rotation is the practice of growing different types of crops in the same area in sequential seasons. Eco-friendly: It is a term used to describe the products and activities that are designed and carried out with minimal harm to the environment. Organic Farming: It is a sustainable way of producing crops without the use of artificial/synthetic fertilisers and pesticides. It uses natural fertilisers, composts, and manure. Low-flow Fixtures: It is a water-saving fixture created to reduce the flow of water in order to save water. Sustainable Development: It is the development that meets the needs of the present without compromising the ability of future generations to meet their own needs. Sustainable Development Goals: The United Nations General Assembly published them in 2015 as a global ‘to-do list’ for the year 2030, with the goal of making the world a better place and addressing global problems like hunger, poverty, education, peace, global warming, environmental issues, inequality and justice. Sustainable Practices: These are the actionable steps we take to achieve the objectives of sustainable development.
Things to Remember • Sustainable development is about finding a balance which will enable us to optimally utilise the resources in current times so that there will be no scarcity in the future. • The three main pillars of sustainable development are: Environment, Economic, and Social. • There are 17 Sustainable development goals and 169 targets in total for the year 2030. • Sustainable development prioritises environmental protection and resource conservation. It encourages the reduction of greenhouse gas emissions, promotes renewable energy sources, and advocates for sustainable transportation. It also aims at preserving the ecosystem and the habitats of all birds and animals. • Reduce, Reuse, and Recycle are fundamental practices that conserve resources and reduce landfill waste. • Sustainable practices that can promote reduce, reuse, and recycle at individual level may include: reducing the use of single use plastics, reducing food wastage, reusing containers, repurposing things, separating biodegradable and non-biodegradable wastes, and recycling electronic wastes. • Energy Efficiency includes implementing strategies like insulated buildings, upgrading lighting systems, and investing in energy-efficient appliances. • Sustainable water practices involve using water wisely and avoiding unnecessary waste. • Choosing eco-friendly modes of transportation, such as walking, biking, carpooling, or using public transit, reduces greenhouse gas emissions and eases traffic congestion.
Unit Reflection
Part A_AI Grade 10.indb 123
123
4/12/2025 3:57:01 PM
• Sustainable agricultural practices promote soil health, reduce chemical inputs, and prioritise biodiversity. • By adopting eco-friendly habits, individuals, businesses, and communities contribute to the broader goals of sustainability. • Limited resources, short-term vs. long-term interests, lack of awareness, lack of global cooperation, and improper measures to track progress are the various problems related to sustainable development. • Efficiency of resources, conservation of resources, education and awareness among people, climate agreements between countries, and aid and assistance are the possible strategies and solutions for sustainable development.
124
Part A_AI Grade 10.indb 124
4/12/2025 3:57:01 PM
Test Your Knowledge A. Select the correct option. 1. What are the three main pillars of sustainable development? a. Environment, Government, Social
b. Environment, Social, Economic
c. Social, Economic, Finance
d. Political, Social, Economic
2. Sustainable Development Goals were released in which year? a. 2016
b. 2020
c. 2015
d. 2014
3.
is an eco-friendly mode of transportation. a. Electric vehicles
b. Trucks
c. Diesel cars
d. Airplane
4. Which of the following is not a sustainable practice? a. Reuse, Recycle, Reduce
b. Energy Efficiency
c. Conservation of water
d. Use of plastic products
5. Which of the following is not an example of sustainable farming? a. Organic farming
b. Crop Rotation
c. Use of natural fertilisers
d. Deforestation
B. Fill in the blanks with the most suitable words. 1. Sustainable development meets the diverse needs of present and future generations by promoting wellbeing, and creating of equal opportunities.
2. Sustainable development helps to preserve the habitats of birds and animals, thus helping to maintain our .
3. The
General Assembly released a global ‘to-do list’, called the Sustainable Development Goals (SDGs).
4. Eco-friendly is a term used to describe products and activities that are designed and carried out with minimal harm to the .
C. State whether the following statements are True or False. Correct the statements that are false. 1. Reduced chemical use and biodiversity preservation will damage the health of the soil. 2. Eco-friendly practices are an integral part of sustainable development. 3. Developing countries can provide financial and technical assistance to developed nations to support their sustainable development efforts.
4. Protecting and restoring natural habitats and ecosystems is vital.
D. Short answer-type questions. 1. Give a few examples of sustainable water practice. 2. What is the importance of sustainable development in enhancing our quality of life? 3. Mention ways to follow the sustainable practice of ‘reuse, reduce, and recycle’ at your home. Unit Reflection
Part A_AI Grade 10.indb 125
125
4/12/2025 3:57:01 PM
E. Long answer-type questions. 1. Explain the three pillars of sustainable development. 2. What are the sustainable practices that we can follow to achieve SDGs? 3. What are the different challenges associated with sustainable development?
F. Competency-based questions. 1. Rakesh is working as an engineer for a government-owned company. He uses his car every day to make the hour-long commute to work through congested traffic. He occasionally rides in his colleague’s car. How can Rakesh change his means of transportation to promote sustainable development?
2. Kanha is a farmer in Saharanpur district of Uttar Pradesh. He possesses a lot of land for farming, but in order to boost his income, he over-irrigates, uses chemicals, and grows numerous crops on the same plot of land despite the depletion of the soil. What are the methods that he can follow to maintain the long-term viability of his agricultural land?
126
Part A_AI Grade 10.indb 126
4/12/2025 3:57:01 PM
Part B
Artificial Intelligence
Part A_AI Grade 10.indb 127
4/12/2025 3:57:01 PM
Part A_AI Grade 10.indb 128
4/12/2025 3:57:01 PM
Unit 1 • AI Project Cycle and Ethical Frameworks
1 AI Project Cycle
Y
ou studied about AI and its role in our daily lives in your previous class. In this session, you will learn about the AI project cycle, using an example to illustrate its stages. Understanding the AI project cycle is essential because it helps teams systematically approach problem-solving. Every project, from start to finish, goes through several stages or steps. These stages collectively form the project cycle. In the context of AI, the project cycle includes specific stages for developing and deploying AI solutions. By the end of this session, you will understand each stage of the AI project cycle and how they work together to complete an AI project. Let us consider a simple example of a project cycle: constructing a bridge.
Project Cycle
The following stages, or steps, are included in the construction of a bridge: Stage 1: Site Inspection and Planning: Identify the need for a bridge at a specific location. Study the site to understand the terrain, environmental impact, and any challenges that may arise. Stage 2: Collecting Resources: Collect all necessary information, such as environmental data, materials, labour, and equipment. Conduct surveys and gather data on soil stability, weather conditions, traffic patterns, etc. Stage 3: Analysing Site Data: Examine the gathered data to gain meaningful insights. Understand the site’s characteristics, such as soil type, load-bearing capacity, and potential environmental impacts. Stage 4: Designing the Bridge: Create detailed plans and models of the bridge structure. This includes designing the foundation, framework, structure, etc., using engineering software and simulations to predict performance. Stage 5: Testing and Quality Assurance: Evaluate its performance under various conditions by checking for weight capacity, stability, etc. to ensure the bridge meets overall safety and quality standards. Stage 6: Deployment and Construction: Implement the bridge construction based on the finalised design. Assemble structural components, complete finishing touches, and prepare the bridge for public use. The above steps are a simple example to illustrate how we plan to execute tasks in our daily lives. We need to create plans for every task we need to accomplish. This helps clarify our objectives. Similarly, when developing an AI project, the AI project cycle offers a structured framework that guides us towards achieving our goal.
AI Project Cycle
When a project is developed based on AI, it also goes through several stages, which are together known as the AI project cycle. This cycle represents the step-by-step process that an organisation or an individual should follow to develop and deploy an AI project while solving a problem. We can map the construction of a bridge to the six stages of the AI project cycle as follows:
129
Part B_AI Grade 10.indb 129
4/12/2025 4:03:54 PM
Problem Scoping
Data Exploration
Data Acquisition
Evaluation
Modelling
Deployment
Problem Scoping
This is the initial stage that helps us understand the problems that need to be addressed and defines the goals to be achieved, with the help of an AI system. Identifying such a problem and having a vision to solve it is what problem scoping is about.
In the example of the construction of a bridge, problem scoping involves identifying the need for a bridge and understanding the site requirements by studying the terrain and potential challenges. It also includes understanding the goals of the project cycle, such as the type of bridge and its load capacity. Additionally, problem scoping assesses stakeholders’ needs and considers constraints like budgets, timelines, and environmental regulations.
Data Acquisition
Data acquisition means gathering or collecting data to solve the problem defined. Let us understand first what data is. Data is facts/figures/information collected for analysis purposes. Data may be in the form of numbers, text, forms, audio, videos, etc. For example, in an insurance policy project, the input data typically consists of numerical values, such as age, income, and policy details. In contrast, a social media project, such as those involving Instagram or Facebook, handles diverse input data types, including photos, text, audio, and videos.
Whenever we want any AI model to predict output, it must have a huge amount of data for its training. For an AI project to be efficient, authentic, and accurate, a huge amount of data collection is required. Data can be collected from surveys, blogs, laboratories, published articles/magazines, etc.
Remember
An AI model is an algorithm or a program that uses a set of data to make predictions from it or reach a conclusion.
Did You Know? Data for AI can come from your favourite apps, video games, and even the sounds around you.
130
Part B_AI Grade 10.indb 130
4/12/2025 4:03:55 PM
Data Exploration
When we gather data from various sources, we cannot use it right away to train AI algorithms. We need to explore the data to clean it up and make it useful. This is done in the third stage of the AI project cycle, called data exploration. Data exploration helps us understand the data and determine if it is suitable for training AI models. Data exploration also leads to data visualisation, where we can identify patterns, trends, and relationships among the data values. Data visualisation helps to analyse the data in the form of pie charts, bar charts, scatter plots, histograms, etc. Thus, to analyse the data, you need to visualise it in some user-friendly format so that you can: •
Quickly get a sense of the trends, relationships, and patterns contained within the data.
•
Communicate the same to other team members in the project.
•
Define the strategy for which model to use at a later stage.
Modelling
When machines analyse the data, it needs the data in its most basic form (which is binary—0s and 1s). When it comes to discovering patterns and trends in data, machines rely on the mathematical representations of the collected data. Modelling means to model the data that will be used for prediction. Modelling is the process of creating various AI models based on visualised data from the previous step, enabling predictions and conclusions. To build an AI-based project, we need to work with AI models or algorithms. This could be done either by designing your model or using pre-existing AI models. Generally, AI models can be classified as learning-based models or rule-based models, which will be discussed in further chapters.
Did You Know? Some AI models are trained using super-powerful computers that can fill up an entire room!
Evaluation
Once the AI model is developed, it must be tested for its accuracy and performance using testing data. The developed AI model is tested with the help of the testing data (the testing data is separated from the acquired or gathered dataset at the data acquisition stage). Then the results are evaluated to decide if the model can be deployed in a real environment or if it needs any improvements. Evaluation is based on the outputs obtained by feeding data into the model and comparing these outputs with the actual answers.
Chapter 1 • AI Project Cycle
Part B_AI Grade 10.indb 131
131
4/12/2025 4:03:56 PM
Deployment
Finally, after thorough evaluation, the deployment stage plays a vital role in seamlessly integrating AI solutions into real-world applications. This phase ensures that the system operates effectively, meets user requirements, and delivers tangible benefits. Proper deployment enables AI models to function efficiently, scale as needed, and provide meaningful impact to users and stakeholders while maintaining reliability and performance. AI PROJECT CYCLE
Problem Scoping
Data Acquisition
Data Exploration
Collecting data from different sources such as labs, sensors, surveys, etc. Identify problem and answer all questions to solve the problem.
Modelling
Evaluation
Developing algorithms, also called models which can be trained to get intelligent outputs.
Visualise data using bar graphs, pie charts, etc., to understand insights of data
Deployment
Integrating the trained model into a real-world environment for inference, decision-making, and practical use.
Testing quality of developed model using some testing data to check accuracy.
Figure: AI Project Cycle in a Nutshell
Error Alert! There is a misconception that only computer experts are needed to make AI models. Creating AI models requires teamwork from people with different skills, like engineers, scientists, and business experts.
Activity Time Activity: Create a Weather Prediction Model
Have each student engage in a project focused on creating a weather prediction model.
(Group Activity)
Each student should prepare a presentation summarising their contributions to creating the weather prediction model.
They should also outline the stages of the AI project cycle they navigated, highlighting insights gained into weather prediction methodologies, challenges faced during data analysis and modelling, and key lessons learned throughout the project.
Chapter Checkup A Select the correct option. 1 What is the first step in the AI project cycle?
a Teaching AI b Collecting Data c Problem Scoping
d Testing AI
132
Part B_AI Grade 10.indb 132
4/12/2025 4:03:56 PM
2 Which step involves testing and quality assurance? a Evaluation b Collecting Data c Problem Scoping
d Data Exploration
3 What does the term “data acquisition” refer to in the context of AI? a Cleaning and preparing the collected data
b Identifying the problem to be addressed by AI c Gathering or obtaining data for training AI models d Assessing the performance metrics of the AI model B Fill in the blanks with the most suitable words. 1
is the process in which different AI models are created based on visualised data.
2 After training, AI system needs to be 3 Data exploration leads to
. .
4 Testing how well AI works is known as C
.
State whether the following statements are True or False. Correct the statements that are false. 1 AI models do not need to be tested before being deployed. 2 Once an AI model is trained, it never makes mistakes. 3 The AI project cycle refers to the step-by-step process that needs to be followed to develop and deploy an AI project. 4 The last phase of the AI project cycle is data exploration.
D Answer the following questions. (Solved) Q1. Write the names of the missing stages in the given AI project cycle. Data Exploration
Data Acquisition
Modelling
Deployment
A1. Problem Scoping and Evaluation. Q2. What is data visualisation? Why is it important?
A2. Data exploration leads to data visualisation, where we can identify patterns, trends, and relationships among the data values. Data visualisation helps to analyse the data in the form of pie charts, bar charts, scatter plots, histograms, etc. Thus, to analyse the data, you need to visualise it in some user-friendly format so that you can:
• Quickly get a sense of the trends, relationships, and patterns contained within the data. • Communicate the same to other team members on the project. • Define a strategy for which model to use at a later stage.
Chapter 1 • AI Project Cycle
Part B_AI Grade 10.indb 133
133
4/12/2025 4:03:57 PM
Q3. Vanshdeep has been investing in the stock market for the past 10 months. He wants to analyse which shares have been profitable for him based on his investment history. Which phase of the AI project cycle is he in?
A3. Data Exploration
AI Activities Visit the link: https://youtu.be/tLaLfaIJf-Y?si=I53jDu09iheZh4g4 to see the difference between training data and testing data.
Answer Key A
1. c
2. a
3. c
B
1. Modelling
2. Tested
3. Data Visualisation
C
1. False. AI models need to be tested before being deployed.
4. Evaluation
2. False. Once an AI model is trained, it can still make mistakes. 3. True
4. False. The last phase of the AI project cycle is deployment.
134
Part B_AI Grade 10.indb 134
4/12/2025 4:03:57 PM
Unit 1 • AI Project Cycle and Ethical Frameworks
2 AI and Its Domains
A
I can help computers play sports like chess, recognise faces in pictures, respond to our voice commands, etc. AI is an umbrella term that has different domains or areas where it can be used. The three main domains of AI are Statistical Data, Computer Vision, and Natural Language Processing (NLP). Let us learn about these domains. Domains of AI
Statistical Data
Computer Vision
Natural Language Processing
Statistical Data
Data is a collection of raw facts that can be transformed into useful information. It can be in the form of text, images, audio, or video. Statistical data is a domain of AI that focuses on data systems and processes, where the system gathers, maintains, and analyses large datasets to extract meaningful insights. The derived information can then be used to make decisions. AI enhances computer performance by learning from data. The more the data, the more intelligent the machine becomes. AI can process and analyse data, and identify patterns and trends based on its goals. For example, when you play games online, AI adapts and learns from your gameplay to make the experience more engaging and challenging.
Applications of Statistical Data
Across various industries, statistical data provides valuable insights that can help you in making strategic decisions. Here are some examples: Marketing: Understanding customer demographics, preferences, and online behaviour allows companies to develop targeted marketing campaigns and optimise their marketing budget. By analysing past purchase history and online interactions, businesses can predict trends and improve customer engagement. Public Health: Analysing disease outbreaks and tracking vaccination rates helps public health officials make informed decisions about resource allocation and disease prevention strategies. Predictive models can also help in early disease detection and controlling the spread of infections.
135
Part B_AI Grade 10.indb 135
4/12/2025 4:03:58 PM
Scientific Research: Statistical data allows researchers in various fields to analyse massive datasets, leading to new discoveries and advancements in medicine, science and technology, and other areas. It helps in drug discovery, climate change analysis, and space exploration by processing vast amounts of complex data. Compare Prices Online: There are various websites that help you compare prices of numerous items from different web stores. These sites use extensive datasets to provide the convenience of comparing product prices across multiple vendors in one place. Examples include PriceGrabber, PriceRunner, Junglee, Shopzilla, and DealTime. Advanced recommendation algorithms also suggest the best deals based on user preferences. Finance and Banking: Financial institutions use statistical data to detect fraudulent transactions, assess credit risks, and provide personalised financial advice based on customer spending patterns. Statistical data helps predict stock market trends and optimise investment strategies.
Sports Analytics: Teams and coaches use statistical data to analyse player performance, develop game strategies, and optimise training programs based on data-driven insights. By processing data from matches and training sessions, predictive models can identify patterns, suggest tactical improvements, and enhance team performance.
Activity Impact Filter
Let us perform the following activity to understand how AI learns from data.
Objective: The Impact Filter experiment has huge data of images of various species. While performing this experiment, one can experience how rising temperatures impact the survival of various species and how it would affect our daily lives. Let us perform the activity. •
Visit the link https://artsexperiments.withgoogle.com/impactfilter/
•
The following screen appears.
•
Click on the CLICK TO START button.
136
Part B_AI Grade 10.indb 136
4/12/2025 4:03:59 PM
•
You will be redirected to a tutorial on how to explore this experiment. If you wish to take the tutorial then follow the steps given in the tutorial. Otherwise, you can exit the tutorial.
•
Now, from the top bar, select any of the given options of various species categories, such as insects, birds, reptiles, amphibians, and so on.
• •
Let us click on the INSECT category.
Another web page with an option to select from an insect will appear.
•
Click on any of the insects, for example, BUMBLEBEE.
•
The web page showing the population of bumblebees will open. This number of bumblebees is presented at the current global temperature, which has already increased by 1.20 ºC.
•
On this web page, you can see a bar on the right side, displaying the temperature.
•
Move the slider upwards by dragging the mouse pointer to increase the temperature bit-by-bit.
•
You can observe the impact of rising temperature on the population of bumblebees that decreases as you increase the temperature.
Chapter 2 • AI and Its Domains
Part B_AI Grade 10.indb 137
137
4/12/2025 4:03:59 PM
•
Similarly, you can try the same with the other species as well and understand the impact of rising global temperatures on these species.
Computer Vision
Computer Vision is another important domain of AI which uses cameras to see and understand visual information. For example, by using cameras to monitor the environment and keeping an eye on the activity at the front door, a smart home security system makes use of computer vision. It detects familiar faces to unlock the door for family members and sends alerts for unfamiliar faces.
Applications of Computer Vision
Computer vision has numerous applications across various fields. Some of the most common applications include: Autonomous Vehicles: Computer vision enables vehicles to perceive and understand their surroundings, identifying objects like pedestrians, traffic signs, and other vehicles to navigate autonomously. It helps cars stay in their lanes and avoid obstacles while driving. Healthcare: In medical imaging, computer vision aids in diagnostics by analysing images from X-rays, MRIs, and CT scans to detect anomalies and assist medical professionals in making accurate diagnoses. AI-powered models help in early disease detection, improving treatment outcomes. Retail: Computer vision powers applications such as automated checkout systems in retail stores, where cameras identify and track items selected by shoppers, enabling seamless transactions without the need for manual scanning. It also assists in inventory management by tracking stock levels in real time. Security and Surveillance: Video surveillance systems use computer vision to monitor environments in real-time, detecting suspicious activities, recognising faces, and alerting authorities to potential threats. Automated intrusion detection systems enhance security in public spaces and restricted areas.
Manufacturing: Computer vision is used for quality control in manufacturing, where it inspects products on assembly lines for defects and inconsistencies. Automated inspection systems improve efficiency and reduce human errors in production processes. Smartphones and Facial Recognition: Many smartphones use computer vision for facial recognition to unlock devices, authorise payments, and enhance security. It is also used in camera apps to improve photo quality by detecting faces and applying automatic enhancements like background blur and lighting adjustments. Agricultural Monitoring: Computer vision plays a crucial role in modern agriculture by enabling efficient crop monitoring, pest detection, and yield estimation. Advanced drones equipped with high-resolution cameras capture aerial images of farmland, which are then processed using AI algorithms to analyse crop health, detect diseases, and identify areas requiring attention. This data-driven approach helps farmers make informed decisions to enhance overall agricultural efficiency.
138
Part B_AI Grade 10.indb 138
4/12/2025 4:04:01 PM
Activity AutoDraw
Let us perform the following experiment to understand how AI uses computer vision to see and understand visual information. Objective: AutoDraw is a fun and free online drawing tool based on computer vision. It uses AI to guess your drawing and provides suggestions to turn your scribbles into complete drawings. Follow the given steps to explore how this application works. 1. Visit the link: https://www.autodraw.com/ 2. The following window appears.
3. Click on the Start Drawing button. 4. Now, select the AutoDraw
tool from the left panel.
5. As soon as you begin to scribble in the drawing area, the AutoDraw tool will make use of computer vision to guess your drawing.
6. Choose the drawing from the list of suggestions provided in the top bar that most closely resembles the one you plan to create.
Chapter 2 • AI and Its Domains
Part B_AI Grade 10.indb 139
139
4/12/2025 4:04:01 PM
7. You may further customise your drawing by using the Shape tool to draw a circle for the eyes and fill in colours using the Fill tool.
Fill Tool Shape Tool
Natural Language Processing
Natural Language Processing (NLP) is a domain of AI that enables computers to understand human language and generate appropriate responses when we interact with them. It allows computers to talk to us in a way that feels natural to us. Popular examples of NLP applications include Google Assistant, Apple’s Siri, Amazon’s Alexa, Google Translate, etc.
Hi!
101010 Hello!
100101
NLP
Applications of Natural Language Processing
Natural Language Processing (NLP) has several key applications across different domains. Here are some of the common applications: Email Filtering: Email filtering is an early application of NLP. It started with spam detection by identifying keywords and phrases. Over time, it has evolved to enable smarter categorisation of emails into spam, promotions, and priority messages for improved user experience. Language Translation: NLP is used extensively in translation applications like Google Translate and Microsoft Translator, where it processes and translates text from one language to another, preserving context and meaning. Advanced models ensure translations are more natural and accurate over time.
Sentiment Analysis: NLP techniques analyse text data to determine the sentiment or opinion expressed. This is used in social media monitoring, customer review analysis, and market research to gauge public opinion and sentiment towards products or brands. Companies use this to improve customer satisfaction and brand reputation.
Chatbots and Virtual Assistants: NLP powers chatbots and virtual assistants like Siri, Alexa, etc. These systems understand and generate human-like responses to users’ queries, providing information, assistance, and help in performing tasks. They are widely used in customer service to handle queries efficiently.
140
Part B_AI Grade 10.indb 140
4/12/2025 4:04:02 PM
Text Summarisation: NLP is used to generate concise summaries of long documents, articles, and reports by extracting key points. This helps users quickly grasp important information without reading the entire text, making it useful in news aggregation and research.
Speech Recognition: NLP enables speech-to-text applications that convert spoken language into written text. This technology is used in voice assistants, transcription services, and accessibility tools for individuals with disabilities. Autocomplete and Spell Check: NLP is used in search engines, messaging apps, and word processors to suggest words, correct spelling mistakes, and improve typing efficiency. Features like predictive text help users compose messages faster.
Did You Know? NLP techniques are used in automated content generation, where AI systems can write articles, summaries, and even poetry by analysing patterns in large datasets of text.
Think and Tell
Which app can identify and provide information about objects and landmarks using your camera?
Activity Wordtune
Let us perform the following experiment to understand how AI makes use of NLP.
Objective: Wordtune is an AI-powered writing assistant that helps users improve their writing in various ways. It suggests alternative ways to phrase sentences, offer synonyms, different sentence structures, and maintain the original meaning. When prompted, Wordtune can generate additional text to elaborate on ideas and create new content that aligns with the existing text. Let us explore wordtune. •
Visit https://www.wordtune.com/ in your web browser. The following window appears. Click on the Get started button.
•
You will be prompted to sign in with your Google, Apple, or Facebook account. Choose any option and login to the portal.
Chapter 2 • AI and Its Domains
Part B_AI Grade 10.indb 141
141
4/12/2025 4:04:03 PM
•
Next, you will be asked about your purpose of using the Wordtune portal. You can select “Study”.
•
Select the language by entering your preferred language.
•
The Wordtune portal opens. You have two options: {
{
Copy and Paste: Copy the text you want to improve and paste it into the large text box on the Wordtune homepage. Write Directly: You can directly write your text in the text box if you have not already copied it.
•
If you want to adjust the writing style, choose from options like “Formal”, “Casual”, “Expand”, “Shorten”, etc., located above the text box.
•
Click the blue “Rewrite” button above the text box.
142
Part B_AI Grade 10.indb 142
4/12/2025 4:04:03 PM
•
Wordtune will display several suggestions for rephrased sentences or expanded text (depending on your input) alongside your original text.
•
Click on the suggestion you prefer to see it replace the original text in the main text box.
•
Once you are happy with the revised text, you can copy it to your clipboard or download it as a document.
Activity Time Activity 1: Let’s Discuss
(Group Work)
As a class, participate in a discussion on the topic ‘The Role of AI in Improving Agricultural Practices’. Activity 2: Let’s Play
(Individual Work)
Using the internet, find out some interesting links for the games related to the domains of AI. Share the links in the class and play the games to understand about the domains of AI.
Chapter 2 • AI and Its Domains
Part B_AI Grade 10.indb 143
143
4/12/2025 4:04:03 PM
Chapter Checkup A Select the correct option. 1 Which of the following is a domain of AI?
a Computer Vision b NLP
c Statistical Data d All of these
2
is a collection of raw facts that can be transformed into useful information. a Data b Deep Learning c Machine Learning d NLP
3 Which among the following is an application of NLP? a Google Translate b AutoDraw c Alexa d Both a and c 4
equipped with high-resolution cameras capture aerial images of farmland, which AI algorithms process to analyse crop health and detect diseases. a Google Lens b Terrace farming c Drones d Surveillance
B Fill in the blanks with the most suitable words. 1
is the full-form of NLP.
2
is a domain of AI that uses cameras to see and understand things.
3
is a domain of AI that focuses on data systems and processes, where the system gathers, maintains, and analyses large datasets to extract meaningful insights.
4 Wordtune is an AI-powered writing assistant based on the C
domain of AI.
State whether the following statements are True or False. Correct the statements that are false. 1 AI can help recognise faces in pictures. 2 AI learns from data fed into algorithms. 3 Computer vision helps computers understand and respond when we talk to them. 4 NLP techniques analyse text data to determine the sentiment or opinion expressed.
D Answer the following questions. Q1. How do price comparison websites assist users in making informed purchasing decisions? A1. There are various websites that help you compare prices of numerous items from different web stores. These sites use extensive datasets to provide the convenience of comparing product prices across multiple vendors in one place. Advanced recommendation algorithms also suggest the best deals based on user preferences. Q2. What is Natural Language Processing? List any two applications of NLP. A2. Natural Language Processing (NLP) is a domain of AI that enables computers to understand human language and generate appropriate responses when they interact with humans. Two applications of NLP are: Language Translation: NLP is used extensively in translation applications like Google Translate and Microsoft Translator, where it processes and translates text from one language to another, preserving context and meaning. Sentiment Analysis: NLP techniques analyse text data to determine the sentiment or opinion expressed.
144
Part B_AI Grade 10.indb 144
4/12/2025 4:04:04 PM
Q3. Explain any three applications of statistical data. A3. Three applications of statistical data are: Marketing: Understanding customer demographics, preferences, and online behaviour allows companies to develop targeted marketing campaigns and optimise their marketing budget. Public Health: Analysing disease outbreaks and tracking vaccination rates helps public health officials make informed decisions about resource allocation and disease prevention strategies. Scientific Research: Statistical data allows researchers in various fields to analyse massive datasets, leading to new discoveries and advancements in medicine, science and technology, and other areas. Q4. Yash recently installed a smart home security system that uses facial recognition technology. Name the domain of AI that this security system uses. A4. The domain of AI that is used by the security system is Computer Vision.
AI Activities 1 V isit the link: https://tenso.rs/demos/fast-neural-style/ to edit digital images by transferring the visual style from the source image to an uploaded image or an image captured through webcam. 2 V isit the link: https://transformer.huggingface.co/doc/distil-gpt2 to see how AI autocompletes your thoughts as you type. 3 V isit the link: https://artsandculture.google.com/experiment/blob-opera/AAHWrq360NcGbw?cp=e30 to create amazing operatic music.
Answer Key A
1. d
B
1. Natural Language Processing
C
1. True
2. a
3. d
4. c 2. Computer Vision
3. Statistical data
4. NLP
2. True
3. False. Natural Language Processing helps computers understand and respond when we talk to them. 4. True
Chapter 2 • AI and Its Domains
Part B_AI Grade 10.indb 145
145
4/12/2025 4:04:04 PM
Unit 1 • AI Project Cycle and Ethical Frameworks
3 Ethical Frameworks for AI
I
n 2019, ProPublica, a non-profit organisation, conducted a study on an AI algorithm used by Upstart, a startup that provides personal loans. The study found that African Americans were more likely to be denied loans or offered higher interest rates compared to white borrowers, even when their credit profiles were similar. This highlights an important concern about biased algorithms and their potential impact on discriminatory practices. Ethical practices are crucial in AI development to ensure fairness and prevent unjust outcomes. AI ethics directly addresses these issues by providing a set of fundamental values for ethical AI development.
Ethics can be defined as the set of rules that direct our actions so that we make the best possible decisions for the benefit of everyone. Ethics deals with questions about what is morally right and wrong, good and bad, fair and unfair. It involves the study of principles, standards, and systems that guide human conduct and the moral consequences of human actions.
Moral Issues: Self-Driving Cars
Scenario 1: Imagine it’s the year 2030. Self-driving cars, which are currently just a concept, have become a reality and are now common on the roads. These cars, equipped with advanced features, are expensive but offer significant convenience, prompting people to purchase them for their daily commutes. Now, let us assume that one day, your father is on his way to the office in his self-driving car, comfortably seated in the back as the car navigates itself. Suddenly, a small boy comes in front of the car. What should the car do? Should it prioritise the safety of the passenger, pedestrian, or both? These are tough decisions. During the development of a car’s algorithms, the car developer faces various dilemmas. The moral judgements of the developer directly impact the car’s decision-making processes. In other words, the choices made by the developer—whether consciously or unconsciously—get embedded into the car’s programming.
In this scenario, the self-driving car must make a split-second decision that involves potential harm to either the pedestrian or the passenger. The developer’s ethical standpoint becomes critical because it dictates the car’s response. Some might argue that preserving human life is paramount, thus prioritising the boy’s safety over property. However, the passenger is also a human, which complicates the decision. Some might also contend that the car should protect its occupants, as they have entrusted their lives to its technology. This situation mirrors the classic “trolley problem” in ethics, where one must choose between two harmful outcomes. The developer’s choice in programming the If you were the developer and had to choose between these two outcomes car’s responses will reflect deep-seated ethical beliefs about the value of life, with no other alternatives, which responsibility, and the role of technology in making moral decisions.
Think and Tell
would you prioritise and why?
146
Part B_AI Grade 10.indb 146
4/12/2025 4:04:05 PM
Scenario 2: Now, let us assume that the car hits the boy who came in front of it. In this situation, who should be held responsible for the accident, and why? 1. The owner of the car
2. The manufacturing company
3. The developer who created the car’s algorithm
4. The small boy who unexpectedly came in front of the car and got injured ............................................................................................................................................................................................................................................. ............................................................................................................................................................................................................................................. ............................................................................................................................................................................................................................................. .............................................................................................................................................................................................................................................
In this scenario, opinions on responsibility may vary, and it is essential to recognise that different perspectives exist. Each person might make a decision based on their moral reasoning, and no single perspective is definitively right or wrong. Understanding the varied viewpoints is crucial in addressing the ethical complexities of self-driving technology.
Activity Moral Machine
The Moral Machine is an online platform developed by researchers at the Massachusetts Institute of Technology (MIT). It presents users with scenarios where they must make decisions about how self-driving cars should prioritise lives in various hypothetical crash situations. In the end, you can see how your responses compare with those of other people. Objective: To understand more about the impact of moral concerns. Follow the steps to use the Moral Machine platform: 1. Visit the link: https://www.moralmachine.net The Home page of the website appears.
2. Select your preferred language.
Chapter 3 • Ethical Frameworks for AI
Part B_AI Grade 10.indb 147
147
4/12/2025 4:04:05 PM
3. Click on the Start Judging button. The screen shows different scenarios of self-driving cars. 4. Click on the Show Description button for both scenarios. You will then be able to see the descriptions of different scenarios that the self-driving cars may have to face while travelling on the road. Each scenario is depicted as the two possible outcomes of the inevitable deaths of passengers or pedestrians, young or old, male or female, pedestrians following or not following traffic rules, etc. Make the best judgement about these inevitable ethical problems and guide the self-driving car to what it should do by clicking on either of the two images.
5. Continue answering the questions until you see your results.
The following are some of the conclusions based on your results:
• You may identify which characters you liked better based on the results of the scenarios.
• Saving more lives is important to you. You consistently chose to save as many people as possible in the given scenarios. • You are more concerned with protecting pedestrians than passengers. • You are committed to strictly upholding the law.
148
Part B_AI Grade 10.indb 148
4/12/2025 4:04:06 PM
AI Bias
Biases are inherent in everyone, regardless of efforts to remain neutral. While biases are not always negative and can sometimes be useful for effective decision-making, in the realm of AI, bias poses unique challenges. We know that machines cannot think independently. While machines can possess intelligence, they do not inherently have biases. Any bias in an AI system arises from the choice made by the developers while developing the algorithms. Let us understand the concept of AI bias with the help of examples.
Virtual Assistants and Gender Bias
Most virtual assistants have traditionally been given female voices. Recently, some companies have started offering male voice options, but female voices have been predominantly preferred since the inception of virtual assistants. Possible reasons include societal stereotypes that associate female voices with helpfulness and approachability, which may influence user acceptance and comfort.
Search Engine Results
When searching for salons on Google, the top results are often for female salons. This assumes that the majority of people searching for salons are female. This is an example of a bias based on gender assumptions. While it may not seem harmful, it reflects and reinforces stereotypes that can be limiting and exclusionary.
Facial Recognition Technology
Facial recognition systems have been found to have higher error rates for people with darker skin tones compared to those with lighter skin tones, often resulting in two types of errors: false positives and false negatives. •
False Positives: This occurs when the system incorrectly identifies one person as someone else. For example, a facial recognition system might mistakenly identify two different individuals with darker skin tones as the same person. This could lead to unauthorised access or wrongful actions taken against the person identified, as the system mistakenly treats them as someone else.
•
False Negatives: This happens when the system fails to recognise a person it should correctly identify. For instance, someone with darker skin might repeatedly fail to unlock their phone using facial recognition, despite being the rightful owner.
An example of these errors is the 2018 study by the National Institute of Standards and Technology (NIST), which found that facial recognition algorithms were significantly less accurate in identifying African-American and Asian faces compared to Caucasian faces (people with features commonly associated with European ancestry). This discrepancy can lead to serious consequences, such as biased policing and discrimination.
Hiring Algorithms
Some companies use AI to screen job applicants. However, these algorithms can inherit biases from historical hiring data. For instance, if a company has historically favoured male candidates for technical roles, AI might continue this trend, disadvantaging female applicants. This perpetuates gender bias and undermines diversity efforts.
Chapter 3 • Ethical Frameworks for AI
Part B_AI Grade 10.indb 149
149
4/12/2025 4:04:10 PM
Loan Approval Systems
AI systems used by banks to approve loans may exhibit bias if they are trained on historical data that reflects discriminatory lending practices. This can result in unfairly denying loans to certain demographics. Such biases can increase socio-economic disparities.
Error Alert! AI systems can inherit biases from training data, requiring careful design and oversight to ensure fairness.
Frameworks
A framework is a set of steps that provide guidance to solve a problem. Moreover, frameworks offer a well-defined approach to problem-solving, ensuring that all relevant factors and considerations are taken into account. Also, frameworks provide a common standard language to communicate and collaborate with developers across the globe.
Problem Scoping
Data Exploration
Data Acquisition
Evaluation
Modelling
Deployment
AI Project Cycle
You have followed one framework earlier in the previous chapters i.e. AI Project Cycle, which is always followed for developing any AI Project.
Ethical Frameworks
We learnt that framework is a set of steps that provide guidance to solve a problem. Ethical frameworks for AI are a set of principles and guidelines that govern the development of AI systems, ensuring fairness and societal benefits. Hence, ethical frameworks help us ensure that the choices we make do not cause unintended harm. They provide a systematic approach to AI development, guiding decision-making processes and addressing risks associated with AI. Furthermore, ethical frameworks provide a structured way to navigate complex moral dilemmas by considering various ethical principles and perspectives. By following these frameworks, organisations can make well-informed decisions that align with their values, protect users, respect human rights, and promote positive outcomes for all stakeholders involved.
Need of Ethical Framework for AI
Before understanding the necessity of ethical frameworks, students should first be aware of AI bias. AI bias refers to systematic errors in AI models that arise when the system favours one category over another due to patterns in the training data. These biases can result in unfair or discriminatory outcomes, impacting decision-making processes. AI systems are particularly vulnerable to biases introduced by human decisions, data collection processes, and inherent flaws in the training data itself. These biases can result in unfair or discriminatory outputs, highlighting the importance of ethical frameworks in AI development. The following points highlight the importance of ethical frameworks in AI: •
Mitigating Biases and Discrimination: Ethical frameworks help reduce biases in AI systems. For example, if an AI-based job recruitment system is trained primarily on data from male applicants, it may develop a gender bias, leading to unfair hiring practices that disadvantage female candidates.
150
Part B_AI Grade 10.indb 150
4/12/2025 4:04:10 PM
•
Protecting Human Rights: Ethical frameworks safeguard fundamental rights such as privacy and freedom.
•
Ensuring Accountability: They ensure that AI systems are developed responsibly and address any ethical implications that may arise.
•
Enhancing Public Trust and Adoption: Ethical frameworks promote fairness, increasing societal acceptance of AI systems. For instance, if an AI system favours individuals from specific socio-economic backgrounds, it may lead to distrust and limited adoption.
•
Preventing Misuse: Ethical frameworks help identify and prevent the exploitation of AI for malicious purposes.
Machines are made intelligent by humans. While they can make decisions, they do not possess independent thought. Biases are not inherent in machines but are transferred by humans through data and design choices. Since AI is increasingly used as a decision-making tool, it is crucial to ensure that its recommendations align with ethical and moral standards.
Error Alert! A perfectly ‘fair’ AI can still be discriminatory depending on how fairness is defined. For example, in hiring algorithms, if fairness is defined as equal outcomes, it could unfairly disadvantage qualified candidates from overrepresented groups.
Activity MyGoodness MyGoodness is an interactive game designed to explore your giving preferences. By presenting you with 10 giving scenarios, the game uncovers your personal approach to generosity. Objective: To explore how individuals make decisions about charitable giving, examining the influence of personal morals, values, and ethics while also uncovering potential biases that shape their judgment. Follow the given steps to learn how this application works: 1. To play the game, click on the given link: https://www.my-goodness.net/ 2. You will be directed to a web page as shown.
Chapter 3 • Ethical Frameworks for AI
Part B_AI Grade 10.indb 151
151
4/12/2025 4:04:11 PM
3. Now, click on the Start Game! button to start playing the game. 4. Throughout the game, you will make 10 decisions, each requiring you to choose between two options and determine how to allocate $100. For example, you might face a scenario like this:
Each choice reflects your giving style, helping you discover your unique approach to generosity. Every decision is shaped by three key factors: • Where the recipients are located • Who the recipients are • What the donation will be used for In some cases, any of the above information may be concealed, but you have the option to reveal it if you choose. 5. If you are interested in exploring your decision-making further, click “Yes”.
152
Part B_AI Grade 10.indb 152
4/12/2025 4:04:11 PM
6. You will then be directed to a quick survey.
7. Click the Submit survey button once you complete the survey. 8. At the end, you will receive a summary of your ‘goodness’ score and how it compares to others.
Chapter 3 • Ethical Frameworks for AI
Part B_AI Grade 10.indb 153
153
4/12/2025 4:04:11 PM
9. Through this game, you will also gain insights into the factors influencing your decisions. Factors that may influence your decisions subconsciously include: • The identity of the charity recipient • The recipient’s location • Biases towards family members • The availability of specific information Remember that there are no right or wrong answers. You can share your results with anyone you choose.
Types of Ethical Frameworks
The different types of ethical frameworks are: Ethical Frameworks for AI
Sector Based
Value-Based
Bioethics- In Healthcare
Rights- prioritises the protection of human rights and dignity
Utility-prioritises decisions that
maximise benefits while minimise harm
Virtue- ensures that all stakeholders uphold ethical standards
Two main types of ethical frameworks are: Sector-Based and Value-Based. Sector-Based Frameworks
A sector-based AI framework is designed for specific industries, ensuring that AI solutions align with the unique needs, regulations, and challenges of each domain. One common example is bioethics, an ethical framework developed for the healthcare sector. It addresses critical issues such as patient privacy, data security, and the ethical use of AI in medical decision-making. Similarly, sector-based ethical frameworks exist for various industries, including finance, education, transportation, agriculture, governance, and law enforcement, ensuring that AI applications in these fields adhere to ethical standards and best practices. Value-Based Frameworks
Value-based frameworks in AI focus on fundamental ethical principles and human values that guide decisionmaking. They reflect various moral philosophies that shape ethical reasoning, ensuring that AI systems align
154
Part B_AI Grade 10.indb 154
4/12/2025 4:04:11 PM
with societal goals and ethical standards. These frameworks help assess the moral worth of AI-driven actions and promote responsible AI development, deployment, and decision-making to maximise benefits while minimising risks. •
Rights-Based: A rights-based framework prioritises the protection of human rights and dignity, valuing human life above all other considerations. It emphasises respect for individual autonomy, privacy, and freedom. For example, an AI assistant on a phone should not secretly record conversations, as this would violate user privacy. Similarly, an AI-powered hiring system should ensure fair opportunities for all candidates, avoiding discrimination against any societal group. This framework ensures that AI systems are developed and deployed in a way that upholds human rights and prevents unethical biases.
•
Utility-Based: The utility-based framework evaluates actions based on their overall impact, aiming to maximise benefits while minimising harm. It prioritises decisions that provide the greatest good for the largest number of people. In AI, this means ensuring that AI systems make choices that enhance societal well-being while reducing risks. For example, a self-driving car should prioritise actions that reduce accidents and protect both passengers and pedestrians.
•
Virtue-Based: This framework emphasises the character, intentions, and ethical values of individuals involved in AI development and decision-making. It prioritises principles such as honesty, fairness, trust, and responsibility. AI systems should be designed to act transparently and ethically, avoiding deception or manipulation. In the context of AI, this framework ensures that all stakeholders—including developers, users, and policymakers— uphold ethical standards throughout the AI lifecycle. For example, an AI-powered diagnostic system should seek confirmation from a doctor before making high-risk medical decisions alone.
Activity Time Activity 1: Creating a Presentation
(Individual Work)
Assign students the task of developing a policy proposal addressing a specific ethical challenge posed by AI (e.g., algorithmic bias in hiring). They should conduct research on current policies, consult experts or stakeholders, and draft a detailed proposal outlining regulatory measures or guidelines. Each student will present their proposal, highlighting the ethical considerations and the anticipated impact on various stakeholders. Activity 2: Research Work
(Individual Work)
Assign students the task of drafting an ethical code or guideline for the development and deployment of AI technologies. They should research existing ethical frameworks and guidelines, identify gaps or areas of improvement, and propose their own set of principles. Each student can then justify their choices based on real-world examples of ethical lapses in AI.
Chapter Checkup A Select the correct option.
1 What is the main purpose of a framework? a To replace human decision-making
b To provide a structured approach to problem-solving c To eliminate the need for ethical considerations
d To create AI models without human intervention
Chapter 3 • Ethical Frameworks for AI
Part B_AI Grade 10.indb 155
155
4/12/2025 4:04:11 PM
2 Which of the following is not a reason why ethical frameworks are important in AI? a Preventing biases in AI systems
b Encouraging unfair decision-making
c Enhancing public trust
3 AI bias occurs due to
d Ensuring accountability
.
a The systematic errors introduced by human decisions and data
b The independent thoughts of machines
c AI systems learning from their own experiences
d Implementation of ethical frameworks
4 Which ethical framework prioritises the greatest good for the largest number of people? a Rights-Based c Virtue-Based
c Utility-Based d Sector-Based
5 Bioethics is an example of which type of ethical framework?
a Value-Based b Rights-Based
c Utility-Based d Sector-Based
B Fill in the blanks with the most suitable words. 1 A 2
is a set of steps that provide guidance to solve a problem.
frameworks help ensure that AI systems do not cause unintended harm.
3 AI
occurs due to the systematic errors introduced by human decisions and data.
4 The
framework ensures respect for individual autonomy, privacy, and freedom.
5 A self-driving car following a and pedestrians. C
framework will prioritise reducing accidents and protecting both passengers
State whether the following statements are True or False. Correct the statements that are false. 1 Ethical frameworks ensure that AI systems align with human rights and societal values. 2 Machines inherently possess biases without human involvement. 3 A utility-based framework in AI prioritises transparency and fairness over maximising benefits. 4 AI systems used by banks to approve loans may exhibit bias if they are trained on historical data that reflects discriminatory lending practices. 5 A virtue-based framework focuses on the character and ethical values of AI developers.
D Answer the following questions. (Solved) Q1. What is a framework, and why is it important in problem-solving? A1. A framework is a set of steps that provide guidance to solve a problem. Frameworks offer a well-defined approach to problem-solving, ensuring that all relevant factors and considerations are taken into account. They also provide a common standard language to communicate and collaborate with developers across the globe. Q2. Why do AI systems require ethical frameworks?
A2. AI systems require ethical frameworks because of the following reasons:
• Mitigating Biases and Discrimination: Ethical frameworks help reduce biases in AI systems. For example, if an AI-based job recruitment system is trained primarily on data from male applicants, it may develop a gender bias, leading to unfair hiring practices that disadvantage female candidates.
• Protecting Human Rights: Ethical frameworks safeguard fundamental rights such as privacy and freedom. • Ensuring Accountability: They ensure that AI systems are developed responsibly and address any ethical implications that may arise.
• Enhancing Public Trust and Adoption: Ethical frameworks promote fairness, increasing societal acceptance of AI systems. For instance, if an AI system favours individuals from specific socio-economic backgrounds, it may lead to distrust and limited adoption.
• Preventing Misuse: Ethical frameworks help identify and prevent the exploitation of AI for malicious purposes.
156
Part B_AI Grade 10.indb 156
4/12/2025 4:04:12 PM
Q3. Differentiate between sector-based and value-based ethical frameworks in AI. A3. Sector-Based Frameworks: These are designed for specific industries, ensuring that AI solutions align with the unique needs, regulations, and challenges of each domain. For example, bioethics is an ethical framework developed for the healthcare sector, addressing issues like patient privacy, data security, and the ethical use of AI in medical decision-making.
Value-Based Frameworks: These focus on fundamental ethical principles and human values that guide decision-making. They ensure that AI systems align with societal goals and ethical standards.
Q4. Describe the three types of value-based ethical frameworks with examples.
A4. • Rights-Based Framework: Prioritises the protection of human rights and dignity, valuing human life above all other considerations. Example: An AI assistant on a phone should not secretly record conversations, as this would violate user privacy. • Utility-Based Framework: Evaluates actions based on their overall impact, aiming to maximise benefits while minimising harm. Example: A self-driving car should prioritise actions that reduce accidents and protect both passengers and pedestrians.
• Virtue-Based Framework: Emphasises the character, intentions, and ethical values of individuals involved in AI development and decision-making. Example: An AI-powered diagnostic system should seek confirmation from a doctor before making high-risk medical decisions alone. Q5. Jatin is a developer working on an AI system used for loan approvals in a bank. During testing, he noticed that the system consistently denied loans to applicants from certain demographic groups. How should Jatin address this issue from an ethical standpoint?
A5. Jatin should analyse the training data to identify and reduce biases, ensuring that the AI system does not discriminate against certain demographic groups. He should apply ethical frameworks to promote fairness, transparency, and accountability in loan approvals. Additionally, retraining the model with a diverse dataset and implementing explainable AI techniques will help create a more equitable and trustworthy system.
AI Activities 1 Visit the link: https://www.youtube.com/watch?v=NgaW_p7gsRc to learn more about ‘Ethics of AI Bias’.
2 Visit the link: https://www.youtube.com/watch?v=VqFqWIqOB1g to learn about ‘Ethics of AI: Challenges and Governance’.
Answer Key A
1. b
B
1. Framework
C
1. True
2. b
3. a 2. Ethical
4. c 3. Bias
5. d 4. Rights-based
5. Utility-based
2. F alse. Biases are not inherent in machines but are transferred by humans through data and design choices. 3. False. A utility-based framework prioritises maximising benefits while minimising harm. 4. True 5. True
Chapter 3 • Ethical Frameworks for AI
Part B_AI Grade 10.indb 157
157
4/12/2025 4:04:13 PM
Unit 1 • AI Project Cycle and Ethical Frameworks
4 Bioethics
W
ith the rapid advancement of AI, machines are becoming more capable of making decisions that impact human lives. AI technologies are transforming the way we live and work across various fields such as healthcare, agriculture, autonomous vehicles, and social media. But these developments also bring up significant issues about the ethical use of AI. Bioethics in AI focuses on understanding the moral principles and values that guide the development and application of AI systems, especially when dealing with sensitive areas like health.
What is Bioethics?
Bioethics is an ethical framework used in medical science and the healthcare sector. It helps physicians, scientists, and researchers make fair and informed decisions while respecting human dignity, safety, and equality. It addresses ethical issues related to health, medicine, and biological sciences. In the context of AI, bioethics ensures that AI applications developed in the healthcare sector follow ethical standards, prioritising patient consent, privacy, and well-being. For example, imagine a hospital is using an AI-based health app to suggest treatment plans for patients. Before collecting or sharing patient data with the app, the hospital must ask for the patient’s consent and explain how the data will be used. This ensures that the patient’s privacy and choices are respected. Another example is organ donation, where bioethics ensures that the donor’s decision is made voluntarily without any pressure and that the process follows proper ethical guidelines.
Did You Know? The Word “Bioethics” Is Pretty New: The term “bioethics” was first used in 1970 by Van Rensselaer Potter, a biochemist who wanted to combine biology and human values.
Why is Bioethics Important?
Bioethics plays a crucial role in safeguarding people’s rights, dignity, and well-being in medical science and healthcare. It ensures that every individual, regardless of their identity, is treated with fairness, respect, and equality. Bioethics helps professionals make difficult decisions by balancing scientific advancements with moral values and human rights. It addresses key questions like: •
Should medical professionals share a patient’s private health information with third parties without their consent?
•
Is it ethical to use animals for testing new medications, considering their well-being?
•
When facing serious illnesses, should patients have the right to decide their preferred treatment options?
158
Part B_AI Grade 10.indb 158
4/12/2025 4:04:13 PM
By promoting informed consent, privacy, and fair treatment, bioethics ensures that all decisions are made with care, transparency, and respect for everyone involved. It helps society use technology and medical innovations in a way that benefits people while upholding ethical values.
Principles of Bioethics Respect for Autonomy
Justice
Principles of Bioethics
Do Not Harm
Maximum
Benefit for All
The four primary principles of bioethics are as follows:
Respect for Autonomy
Respect for autonomy is a fundamental principle of bioethics. It means allowing individuals to make their own decisions about their health. This principle emphasises the right of individuals to make informed and voluntary choices about their bodies and medical care, based on accurate information and without external pressure. Example: A doctor explains different treatment options to a patient, including their benefits, risks, and possible side effects. The patient listens to the advice, asks questions, and then decides which treatment to proceed with based on their own preferences and understanding.
Do No Harm (Non-Maleficence)
Non-maleficence is an ethical principle that focuses on avoiding actions that cause harm or have negative effects. It stresses the responsibility to minimise harm and prioritise actions that protect the well-being of individuals, communities, or the environment. This principle plays a key role in fields like medicine, psychology, and research. Example: A surgeon ensures that all surgical instruments are thoroughly sterilised before an operation to prevent infections and safeguard the patient’s health.
Chapter 4 • Bioethics
Part B_AI Grade 10.indb 159
159
4/12/2025 4:04:13 PM
Ensure Maximum Benefit for All (Beneficence)
Beneficence is an ethical principle that focuses on promoting the well-being of individuals and society. It involves taking actions that result in positive outcomes and contribute to the overall good. This principle encourages efforts that enhance the quality of life and prioritise the best interests of all. Example: Healthcare institutions provide clean, safe environments, high-quality medical equipment, and continuous staff training to deliver the best possible care to patients.
Give Justice
Justice in bioethics is the principle of fairness and equal treatment for everyone. It focuses on distributing healthcare resources, services, and benefits in an unbiased way, ensuring that no one is treated differently based on their background, status, or identity. This principle also promotes transparency and fairness in decisionmaking, especially when resources are limited. Example: Imagine three patients arrive at a small village clinic at the same time. One has a mild fever, another has a broken arm, and the third is struggling to breathe. With only one doctor available, the principle of justice ensures that patients are treated based on medical urgency, not the order in which they arrived. The patient with breathing difficulties would receive care first, as their condition is the most critical.
Think and Tell
Is it ethical to use AI technologies in healthcare if they might replace human jobs but improve patient care?
Remember
Maleficence refers to the concept of intentionally causing harm or wrongdoing.
Let us explore a case study to understand how applying an AI ethical framework influences the final outcome.
Case Study: Ethical Challenges in AI-Powered Diagnostic Tools
A hospital developed an AI-powered diagnostic tool to help doctors identify potential illnesses faster and provide better patient care. The AI system analysed medical records, test results, and X-rays to suggest possible diagnoses. While the tool aimed to improve healthcare services, it unintentionally raised several ethical concerns.
Problems Identified •
Bias: The AI model was trained on data from urban hospitals, making it more effective at diagnosing patients from those areas. However, it often misdiagnosed patients from rural areas or underrepresented backgrounds due to the lack of diverse training data. This resulted in unequal access to accurate care, disproportionately affecting certain groups.
•
Privacy and Consent: The AI model was trained using patient medical records without obtaining explicit consent from individuals. Patients were not informed about how their data would be used, violating their right to privacy and transparency.
160
Part B_AI Grade 10.indb 160
4/12/2025 4:04:14 PM
•
Over-Reliance on AI: Doctors began relying heavily on the AI’s suggestions without cross-verifying the results. This reduced the importance of human judgment and could lead to misdiagnoses if the AI system made errors.
•
Potential Harm to Patients: One instance occurred where the AI system recommended an unnecessary surgery based on faulty predictions. This caused serious health complications for the patient, highlighting the risks of unchecked AI decisions.
How Bioethics Principles Could Address These Issues
The four principles of bioethics provide a framework to ensure that AI systems in healthcare are ethical, fair, and beneficial to all. 1. Respect for Autonomy: Patients should be fully informed about how their data is used and provide explicit consent before their information is included in AI model training. The AI system’s decision-making process should be transparent, enabling patients to understand how predictions are made. 2. Do No Harm (Non-Maleficence): The AI model must be designed to minimise harm for all patients, not just specific groups. Training datasets should be diverse and unbiased, representing patients from different regions, races, and socio-economic backgrounds. The AI system should always act as a support tool for doctors, not as a final decision-maker, to prevent any potential harm. 3. Maximum Benefit (Beneficence): The AI solution should not only avoid harm but also focus on maximising benefits for patients. Regular monitoring and updating of the model should be conducted to ensure its accuracy and fairness. Developers should explore better datasets that reflect diverse healthcare needs. 4. Justice: The AI system should distribute healthcare benefits and resources equitably among all patients. Developers must understand the social structures that contribute to healthcare inequalities and actively design the solution to counteract these biases. This case study highlights how the lack of ethical considerations in AI systems can lead to unintended consequences that harm vulnerable populations. By applying the principles of bioethics—respect for autonomy, non-maleficence, maximum benefit, and justice—developers and healthcare providers can design AI systems that are not only technologically advanced but also fair, transparent, and beneficial for all members of society.
Activity Time Activity: Exploring Bioethical Principles
(Group Activity)
Divide whole class into number of groups and students to understand bioethical principles by exploring real-world healthcare scenarios in the society and making ethical decisions.
Chapter Checkup A Select the correct option. 1 What is the main purpose of bioethics? a To create new medicines
b To decide who gets the best medical care
c To ensure fair, safe, and ethical decisions in healthcare
d To increase hospital profits
Chapter 4 • Bioethics
Part B_AI Grade 10.indb 161
161
4/12/2025 4:04:14 PM
2 Which principle of bioethics focuses on doing good and helping others?
a Autonomy b Non-maleficence c Beneficence d Justice
3 What is an example of respecting autonomy in healthcare? a Forcing a patient to take a medicine
b Allowing a patient to choose their treatment after understanding the risks c Ignoring a patient’s wishes
d Making decisions without explaining the details 4 Why is bioethics important in health apps?
a To make the app more popular
c To track how much money people spend
b To protect personal health information d To increase advertisement views
5 Which principle is violated if a patient is treated unfairly due to their financial status? a Autonomy b Justice
c Non-maleficence d Beneficence
B Fill in the blanks with the most suitable words. 1
helps people make fair and good choices about health and medicine.
2 The principle of
C
allows people to make their own choices in healthcare.
3
means avoiding harm to others in medical practice.
4
ensures equal access to medical care and resources.
5
involves doing good and helping others in healthcare.
State whether the following statements are True or False. Correct the statements that are false. 1 Bioethics only focuses on doctors and not on patients.
2 Justice in bioethics means treating everyone equally in healthcare. 3 Non-maleficence means doing good for others.
4 Bioethics helps in making difficult medical decisions fairly. 5 Beneficence involves avoiding harm to patients. D Answer the following questions. Q1. What is Bioethics? A1. Bioethics is an ethical framework used in medical science and the healthcare sector. It helps physicians, scientists, and researchers make fair and informed decisions while respecting human dignity, safety, and equality. Q2. Describe the four main principles of bioethics. A2. The four main principles of bioethics are respect for autonomy, do not harm, ensure maximum benefit for all, and give justice. i. Respect for autonomy: It is a fundamental principle of bioethics. It means allowing individuals to make their own decisions about their health. This principle emphasises the right of individuals to make informed and voluntary choices about their bodies and medical care, based on accurate information and without external pressure. ii. Do Not Harm (Non-maleficence): Non-maleficence is an ethical principle that focuses on avoiding actions that cause harm or have negative effects. It stresses the responsibility to minimise harm and prioritise actions that protect the well-being of individuals, communities, or the environment. iii. Ensure Maximum Benefit for All (Beneficence): Beneficence is an ethical principle that focuses on promoting the well-being of individuals and society. It involves taking actions that result in positive outcomes and contribute to the overall good. This principle encourages efforts that enhance the quality of life and prioritise the best interests of all.
162
Part B_AI Grade 10.indb 162
4/12/2025 4:04:15 PM
iv. Give Justice: Justice in bioethics is the principle of fairness and equal treatment for everyone. It focuses on distributing healthcare resources, services, and benefits in an unbiased way, ensuring that no one is treated differently based on their background, status, or identity. Q3. Give an example of a real-life situation where bioethics is used. A3. A hospital conducts an organ transplant surgery. Before the procedure, doctors explain all possible risks, benefits, and alternative treatments to the patient. The patient is then given the choice to accept or refuse the surgery. This example shows bioethics by respecting the patient’s autonomy and helping them make an informed decision about their own health. Q4. What is the need of bioethics? A4. Bioethics plays a crucial role in safeguarding people’s rights, dignity, and well-being in medical science and healthcare. It ensures that every individual, regardless of their identity, is treated with fairness, respect, and equality. Bioethics helps professionals make difficult decisions by balancing scientific advancements with moral values and human rights. Q5. A hospital is facing a shortage of ventilators during a health crisis. According to bioethical principles, how should the hospital decide who gets access to the ventilators? A5. The hospital should follow the principle of justice by prioritising patients based on the severity of their condition and their chances of recovery, not on factors like financial status or social background. This ensures that resources are distributed fairly and ethically. The decision should be made through a transparent and unbiased process.
AI Activities 1 Visit the link: https://pmc.ncbi.nlm.nih.gov/articles/PMC10403458/ to learn more about bioethical principles in AI. 2 Visit the link: https://hdsr.mitpress.mit.edu/pub/l0jsh9d1/release/8 to know more about AI ethical principles.
Answer Key A
1. c
B
1. Bioethics
C
1. False. Bioethics focuses on both doctors and patients, ensuring ethical decision-making for all involved.
2. c
3. b 2. Autonomy
4. b
5. b
3. Non-maleficence
4. Justice
5. Beneficence
2. True
3. False. Non-maleficence means avoiding harm to others, not necessarily doing good. 4. True
5. F alse. Beneficence means doing good and promoting the well-being of patients, while avoiding harm is part of non-maleficence.
Chapter 4 • Bioethics
Part B_AI Grade 10.indb 163
163
4/12/2025 4:04:15 PM
Unit Reflection
Key Terms • Problem Scoping: Before building an AI system, it is important to clearly define the problem we want to solve and set specific goals. This initial stage, known as problem scoping, ensures that the AI system is developed with a clear purpose. • Data Acquisition: AI models need data to learn and make decisions. The process of collecting relevant data for analysis and training these models is called data acquisition. • Data Exploration: Once data is collected, it must be examined for patterns, trends, and inconsistencies. This process, known as data exploration, helps in understanding the information better before using it to train an AI model. • Modelling: After exploring the data, the next step is to create an AI model that can make predictions or decisions based on that data. This process is called modelling, and it forms the core of AI applications. • Evaluation: To ensure that an AI model works correctly, it must be tested for accuracy and efficiency. Evaluation is the step where the model’s performance is measured against real-world data to check its reliability. • Artificial Intelligence (AI): AI refers to machines and computer systems that can mimic human intelligence by learning, reasoning, and solving problems, making them capable of performing tasks that usually require human intelligence. • Machine Learning: A branch of AI, machine learning allows computers to learn from data and improve their performance over time without being explicitly programmed for every task. • Neural Networks: Inspired by the human brain, neural networks are computational models that help machines process complex data and recognise patterns, making them essential for deep learning and AI applications. • Natural Language Processing (NLP): NLP enables computers to understand, process, and respond to human language, allowing applications like virtual assistants and chatbots to interact with people naturally. • Computer Vision: AI systems can interpret images, videos, and other visual data using a technology called computer vision, which helps them make decisions based on what they “see”. • Deep Learning: Deep learning is an advanced form of machine learning that uses large neural networks to analyse vast amounts of data, leading to highly accurate AI models for tasks like speech recognition and image processing. • Automation: Many repetitive tasks can now be performed by machines without human involvement. This process, known as automation, improves efficiency and reduces human effort. • Bioethics: In healthcare and medical science, bioethics provides a moral framework to ensure that decisions are made fairly, ethically, and with the best interests of patients in mind. • Autonomy: Every individual has the right to make their own healthcare decisions. This ethical principle, called autonomy, ensures that patients can choose treatments based on their personal values and preferences. • Non-Maleficence: One of the core principles of medical ethics, non-maleficence, means that healthcare providers should avoid causing harm and always prioritise patient safety.
164
Part B_AI Grade 10.indb 164
4/12/2025 4:04:15 PM
• Beneficence: The principle of beneficence emphasises the importance of doing good and ensuring the wellbeing of others, particularly in healthcare settings where doctors and AI systems aim to provide the best possible outcomes. • Justice: In the medical field, justice ensures fairness and equality by making sure that healthcare resources and treatments are distributed fairly, without discrimination or bias.
Things to Remember • AI projects follow a structured AI project cycle to ensure effective problem-solving. • Data acquisition is essential, as AI models require large datasets for training. • Data visualisation helps in understanding patterns and trends in the collected data. • Evaluation and testing ensure that the AI model performs accurately before deployment. • AI models can be learning-based or rule-based, depending on the approach used. • Artificial Intelligence enables machines to mimic human intelligence for problem-solving and decision-making. • Machine Learning allows computers to learn from data and improve their performance without explicit programming. • AI applications include voice assistants, self-driving cars, facial recognition systems, and many more. • Neural Networks are inspired by the structure of the human brain and play a key role in AI learning processes. • Computer Vision helps machines analyse and interpret images, videos, and other visual data. • Deep Learning models use multiple layers of neural networks to process complex data. • Automation reduces human effort by using AI-powered machines. • Bioethics ensures that AI applications in healthcare follow ethical standards by prioritising patient consent, privacy, and well-being. • The four principles of bioethics are Respect for Autonomy, Do No Harm (Non-Maleficence), Maximum Benefit for All (Beneficence), and Justice. • Bioethics helps balance scientific advancements with moral values and human rights. • AI in healthcare must be transparent, unbiased, and support human decision-making rather than replace it. • A lack of ethical considerations in AI healthcare systems can lead to unintended consequences that harm vulnerable populations.
Unit Reflection
Part B_AI Grade 10.indb 165
165
4/12/2025 4:04:15 PM
Test Your Knowledge A. Select the correct option. 1. What does data exploration help in? a. Creating AI models
b. Cleaning and visualising data
c. Collecting data
d. Writing code
2. Which phase ensures AI models perform efficiently in real-world applications? a. Problem Scoping
b. Data Acquisition
c. Deployment
d. Evaluation
3. Which of the following is an example of AI application? a. Calculator
b. Voice Assistant
c. Paint Software
d. Text Editor
4. Machine Learning helps computers to: a. Perform calculations only
b. Learn from data and improve
c. Work without human intervention
d. Store large amounts of data
5. Which AI technology is used for recognising speech and text? a. Deep Learning
b. Automation
c. Natural Language Processing
d. Machine Learning
6. Which of the following is NOT one of the four principles of bioethics? a. Autonomy
b. Beneficence
c. Intelligence
d. Justice
B. Fill in the blanks with the most suitable words. 1. The
stage involves analysing data to identify trends and patterns before modelling.
2. The final stage of the AI project cycle is called 3.
.
helps machines understand and process human language.
4. The use of technology to perform tasks without human intervention is called 5. 6. The principle of
.
ensures that every patient is treated fairly and has equal access to medical resources. focuses on promoting well-being and positive outcomes for individuals and society.
C. State whether the following statements are True or False. Correct the statements that are False. 1. AI models can function efficiently without collecting large amounts of data. 2. Data visualisation is an unnecessary step in AI project development. 3. AI can only work when a human is continuously monitoring it. 4. Neural Networks are designed based on the structure of the human brain. 5. The principle of non-maleficence allows doctors to take actions that could harm patients if necessary. 6. Bioethics ensures that AI technologies used in healthcare prioritise patient privacy and well-being.
166
Part B_AI Grade 10.indb 166
4/12/2025 4:04:15 PM
D. Short-answer type questions. 1. Why is problem scoping important in an AI project? 2. How does Machine Learning improve AI systems? 3. How does Natural Language Processing help AI systems? 4. What is the role of bioethics in AI-powered healthcare applications? 5. Why is informed consent important in medical decisions?
E. Long-answer type questions. 1. Explain the importance of evaluation in the AI project cycle. 2. Describe the relationship between data acquisition and data exploration. 3. Explain how AI is used in real life with examples. 4. Discuss the impact of Automation in daily life. 5. Describe the principle of justice in bioethics and its application in healthcare.
F. Competency-based questions. 1. Rajiv is building an AI-based chatbot for customer support. Before training the model, he collects customer queries from emails, chat logs, and feedback forms. Which stage of the AI project cycle is he currently working on?
2. Riya uses a voice assistant to search for information and set reminders. How does AI help her in this task? 3. A self-driving car stops automatically when it detects a pedestrian crossing the road. Which AI technology is responsible for this, and how does it work?
4. A factory has introduced robotic arms that assemble products without human intervention. Which AI concept is applied here, and what are its advantages?
5. A hospital introduces an AI-powered system to predict patient diagnoses. However, the system performs poorly for rural patients due to biased training data. Based on bioethics principles, how should the hospital address this issue?
Unit Reflection
Part B_AI Grade 10.indb 167
167
4/12/2025 4:04:16 PM
Unit 2 • Advance Concepts of AI Modelling
5 AI, ML, and DL
W
e have already learned about artificial intelligence and how machines can exhibit smartness similar to humans. For instance, when Google Maps suggests the quickest route or streaming services like Netflix or YouTube recommend content based on your viewing habits, that’s AI in action. In this chapter, we will take a closer look at the differences between AI, machine learning, and deep learning.
AI vs Machine Learning (ML) vs Deep Learning (DL)
Artificial Intelligence deals with the study of the principles, concepts, and technology for building machines that can think, act, and learn like humans. Machines possessing AI should be able to mimic human traits, i.e., making decisions, predicting outcomes based on certain actions, learning, and improving on their own. An example of this is self-driving cars. It integrates various components, such as sensors, cameras, GPS, as well as decision-making algorithms to mimic human-like driving behaviour. John McCarthy, who is regarded as the father of AI, defined AI as “the science and engineering of making intelligent machines”. Machine Learning is a subset of AI that enables machines to improve at a task. It enables machines to learn from experiences using the provided data and make accurate algorithms for predictions or decisions. In the selfdriving car example, these algorithms analyse data collected from cars’ sensors and cameras to learn about traffic behaviour, pedestrian movement, etc. This helps the cars improve their driving capabilities over time through experience. Deep Learning is a subset of machine learning in which a machine is trained with vast amounts of data. These machines are capable of creating their algorithms. It is an AI function that mimics the working of the human brain (based on artificial neural networks), processing information for tasks, like object detection, speech recognition, language translation, and decision-making. Deep learning processes information using neural networks. In self-driving cars, deep learning is often used for tasks such as object detection, lane detection, pedestrian recognition, and traffic sign recognition, thereby enabling safe navigation. Artificial Intelligence is the umbrella term which holds both Deep Learning as well as Machine Learning. Deep Learning, on the other hand, is the very specific learning approach which is a subset of Machine Learning as it comprises of multiple machine learning algorithms.
Artificial Inteligence Machine Learning
Deep Learning
Deep Learning represents the most advanced level of Artificial Intelligence among the three. It is followed by Machine Learning, which demonstrates a moderate level of intelligence. Artificial Intelligence, in general, encompasses all the concepts and algorithms that imitate human intelligence in various ways.
168
Part B_AI Grade 10.indb 168
4/12/2025 4:04:16 PM
Machine Learning (ML)
Machine Learning (ML) enables machines to enhance their performance at tasks through experience. The machine learns from its mistakes and applies this knowledge in subsequent attempts, continuously improving based on its own experience.
Input
Output ML Mode
Block Representation of Machine Learning
This is a general illustration of a machine learning model’s operation. The model receives input data, learns from it or from historical data, and generates output. For better understanding, let us understand it through an example. Rectangle
Star
Triangle
1001000101 0101000100
Circle
ML Model
Output Prediction
0100010001 Circle
Square Input
This example demonstrates labelled images, where each image is tagged as either a star, rectangle, triangle, square, or circle, provided as input to the ML model. The ML model learns from the input data to identify these shapes and predicts the correct output, as shown.
Examples of Machine Learning (ML)
Let’s understand it with the help of different examples where this concept is being used. ML model learns from the input data for object classification and anomaly detection. Object Classification
It determines whether an object is a member of a particular class or not. Usually, it gives the entire image or a specific area of the image as input to machine learning model. The model then classifies the object into a category and assigns a corresponding label. Raw input
Output Apple Model
Orange Banana
Chapter 5 • AI, ML, and DL
Part B_AI Grade 10.indb 169
169
4/12/2025 4:04:17 PM
Anomaly Detection
Think and Tell
It uncovers the unexpected information concealed in the data with the use of anomaly detection. If you track your pulse rate, for example, and notice a rapid increase, it may be an abnormality that indicates a possible problem.
How can a machine learning model help in identifying your favourite fruits from a basket of mixed fruits?
Deep Learning (DL)
Deep Learning (DL) allows software to automatically learn and perform tasks by leveraging large amounts of data. Large volumes of data are used to train the machine in deep learning, which enables it to learn from the data. These machines possess the intelligence to create algorithms on their own. Input 1 Input 2
Output
Input 3 Input 4 Deep Learning
An Artificial Neural Network receives the input, and the Deep Learning block generates the output after its processing. Here is an example where the pixels of a tree image are provided as input to the DL model, which analyses the data and accurately predicts that the object is a tree using a deep learning algorithm.
Tree
Input
Artificial Neural Network (ANN)
Output
Examples of Deep Learning (DL)
Let’s understand it with the help of different examples where this concept is being used. DL model learns from the input data for object identification and digit recognition. Object Identification
The task of recognising and labelling objects inside a picture is addressed by object identification in deep learning. It makes use of strong algorithms to identify and classify the objects in an image.
DOG output DOG
CAT
170
Part B_AI Grade 10.indb 170
4/12/2025 4:04:18 PM
Digit Recognition
Deep learning’s digitisation feature addresses the problem of training computers to recognise handwritten digits (0–9) in images. Deep Learning models use artificial neural networks to analyse pixel patterns in images, training on large datasets of handwritten digits to accurately identify numbers from 0 to 9.
Did You Know?
7
1
2
4
8
6
Handwritten Digit Recognition
Deep Learning models can recognise objects in images with greater accuracy than humans in certain tasks, such as identifying specific plant species or detecting diseases in medical scans!
The Recognised Numbers are: 7 1 2 4 8 6
Activity Time Activity: Let’s Discuss
(Group Work)
Divide students into different groups and ask them to explore different examples of AI, ML and DL from daily life.
Chapter Checkup A Select the correct option. 1 Which of the following best defines Machine Learning? a Machines that mimic human emotions
b Machines that learn from experience and improve performance c Machines that follow pre-defined rules only d Machines that perform tasks without any data 2 What is the primary function of Deep Learning? a Creating static algorithms
b Learning from small datasets c Processing large amounts of data using neural networks d Detecting emotions from audio 3 Which of the following is an example of Object Classification in Machine Learning? a Detecting a sudden increase in pulse rate
b Identifying the type of fruit from an image c Translating text from one language to another d Playing music based on mood
Chapter 5 • AI, ML, and DL
Part B_AI Grade 10.indb 171
171
4/12/2025 4:04:18 PM
4 What is the relationship between AI, ML, and DL?
a AI is the umbrella term, ML is a subset of AI, and DL is a subset of ML
b AI is a subset of ML, and ML is a subset of DL c AI is independent of ML and DL
d DL and ML are separate technologies from AI 5 Which component helps Deep Learning models process information?
a Decision Trees b Neural Networks
c Statistical Models d Rule-based Systems
B Fill in the blanks with the most suitable words. 1
is the science of making machines intelligent like humans.
2 Machine Learning models improve performance based on 3
is regarded as the father of AI.
4
represents the most advanced level of Artificial Intelligence.
5 An unexpected information in the data is uncovered by C
.
.
State whether the following statements are True or False. Correct the statements that are false. 1 The task of recognising and labelling objects inside a picture is addressed by object identification. 2 Deep Learning models are based on neural networks. 3 Anomaly Detection helps in identifying normal patterns in data. 4 ML takes large amount of data for its processing as compared to DL. 5 Object Classification assigns labels to objects based on their features.
D Answer the following questions. Q1. What is Artificial Intelligence? A1. Artificial Intelligence is the science of building machines that can think, act, and learn like humans by mimicking human intelligence in various tasks such as decision-making, prediction, and problem-solving. Q2. How does Machine Learning improve the performance of machines? A2. Machine Learning improves the performance of machines by enabling them to learn from data and experiences, continuously refining their algorithms to make better predictions or decisions over time. Q3. What is the difference between Machine Learning and Deep Learning? A3. Machine Learning enables machines to improve at tasks by learning from data, while Deep Learning is a subset of Machine Learning that uses artificial neural networks to automatically learn and perform tasks by processing large amounts of data. Q4. Give one example each of Object Classification and Anomaly Detection. A4. Object Classification: Identifying different types of fruits in an image. Anomaly Detection: Detecting irregular heart rate patterns from health data. Q5. How do Deep Learning models recognise handwritten digits? A5. Deep Learning models use artificial neural networks to analyse pixel patterns in images, training on large datasets of handwritten digits to accurately identify numbers from 0 to 9.
172
Part B_AI Grade 10.indb 172
4/12/2025 4:04:19 PM
Q6. Riya works at a bank where transactions are monitored automatically. If the system detects an unusually large transaction from a customer’s account, it sends an alert to the bank. Which type of Machine Learning application is being used in this case? A6. Anomaly Detection is being used to identify unusual transaction patterns and alert the bank of possible fraudulent activity.
AI Activities 1 Visit the link https://www.youtube.com/watch?v=me3QEYPsFWE to study machine learning use cases. 2 Visit the link https://www.youtube.com/watch?v=6M5VXKLf4D4 to know more about deep learning.
Answer Key A
1. b
B
1. Artificial Intelligence
C
1. True
2. c
3. b
4. a 2. Experience
5. b 3. John McCarthy
4. Deep Learning
5. Anomaly Detection
2. True
3. False. Anomaly Detection helps in identifying unexpected or abnormal patterns in data. 4. False. DL takes a larger amount of data for its processing as compared to ML. 5. True
Chapter 5 • AI, ML, and DL
Part B_AI Grade 10.indb 173
173
4/12/2025 4:04:19 PM
Unit 2 • Advance Concepts of AI Modelling
6 Data Terminologies
I
n the realm of AI, data is the fuel that powers machine learning models. To work with AI, it is essential to understand the common data terminologies used in the field. Data refers to the raw, unprocessed information collected from various sources. This data is then transformed into features, which are individual characteristics or attributes extracted from the data. Labels, on the other hand, are the target or response variables corresponding to each data point. The data is typically split into training data and testing data. Understanding the common terminologies used to describe data in AI is essential for anyone working with machine learning models. In this chapter, we will explore the key data terminologies used in AI like Data, Features and Labels.
What is Data?
1. Data refers to the collection of information like numbers, words or images.
Animal
Type
Lifespan (Years)
2. In the given example, a table with information about different animals is data.
Dog
Mammal
12
Parrot
Bird
50
Elephant
Mammal
60
3. Each row will contain different information about different animals.
Terms Related with Data 1. Features 2. Label
What are Features?
Features
1. Features refer to the characteristics of a dataset. Each animal is described by certain features. 2. Features can be thought as the “attributes” or “columns of the table”. 3. Features are the input variables used by machine learning model to make predictions. 4. In the animal dataset, features may be Animal, Type, Lifespan, Habitat, etc.
Animal
Type
Lifespan (Years)
Dog
Mammal
12
Parrot
Bird
50
Elephant
Mammal
60
174
Part B_AI Grade 10.indb 174
4/12/2025 4:04:20 PM
What are Labels?
Label
1. Some special features are called labels. 2. Data labelling is the process of attaching meaning to data.
Features
3. Labels are used to classify or describe the data.
Animal
Type
Lifespan (Years)
4. For example – if we are trying to predict what animal it is based on its lifespan, then lifespan is the feature and animal is the label.
Dog
Mammal
12
Parrot
Bird
50
Elephant
Mammal
60
5. Data can be of two types: labelled and unlabelled.
Think and Tell
Remember
• If you were training an AI model to recognise fruits, what would be its features and labels? • How does a spam filter use features and labels to detect spam emails?
Data is the foundation for training model, with features representing specific attributes and labels providing the correct answer.
Differences between Labels and Features Let us learn about the differences between labels and features. Features
Label
1. R epresents the input characteristics or attributes of a 1. R epresents the target value or outcome that a model data point used to make predictions. is trying to predict based on the features. 2. Examples: Temperature, humidity, wind speed (in a weather prediction model)
2. E xample: Rainfall amount (in a weather prediction model)
3. Provided as input to a machine learning model during training.
3. U sed to evaluate the model’s performance by comparing predicted outcomes with actual values.
Some Examples about Features and Labels
Now, let’s explore more examples of features and labels across different domains to gain a clearer understanding of how these concepts are applied in machine learning applications. Example 1. Healthcare – Predicting Fever Diagnosis Features:
Example 2: Image Recognition – Facial Recognition Features:
•
Body Temperature
•
Shape of eyes, nose, and mouth
•
Presence of Cough
•
Facial features
•
Headache (Yes/No)
•
Facial expressions like smile or frown
•
Fatigue Level (Low/Medium/High)
•
Skin tone and texture
Label: •
Fever Diagnosis (Yes/No)
Chapter 6 • Data Terminologies
Part B_AI Grade 10.indb 175
Label: •
Person’s Identity (e.g., Person’s Name or ID)
175
4/12/2025 4:04:20 PM
Types of Data
Data can be of two types– Labelled and Unlabelled
Labelled Data
1. Labelled data refers to a dataset that has been tagged with relevant information such as categories, classes or description to provide context and meaning. 2. This type of data is often used in supervised machine learning, where the model learns from input-output pairs to make predictions or classifications based on patterns in the labelled examples.
Labelled data
Unlabelled data
Unlabelled Data
1. Unlabelled data refers to a dataset that has not been annotated or tagged with relevant information. 2. This type of data is often used in unsupervised machine learning, where the goal is to discover patterns, relationships or structure in the data without prior knowledge of the correct labels.
Training Dataset •
The training dataset is a collection of examples given to the model to analyse and learn patterns.
1.
•
It is used to train a machine learning model by allowing it to identify relationships between input features and target labels.
Training data
•
Just like a teacher teaches a topic to the class through a lot of examples and illustrations, the training dataset helps the model understand the data structure before making predictions.
Testing Dataset •
A testing dataset, also known as a test set or evaluation set, is a collection of data used to assess the performance of a machine learning model after it has been trained.
•
Just like how a teacher conducts a class test to evaluate students’ understanding of a topic, the testing dataset helps measure the model’s accuracy and effectiveness.
•
The test is performed without providing labelled data to the model initially, and then the predicted results are compared with actual labels to determine accuracy.
2.
Feed
Tag
Tag with desired output AI learns from labelled data 3.
Test
Use more training data
Incorrect output
Correct output Model is ready
176
Part B_AI Grade 10.indb 176
4/12/2025 4:04:20 PM
Activity Time Activity 1: Identify Features and Labels from Real-World Scenarios
(Group Work)
The teacher will provide different real-world scenarios to identify features and labels like weather app predicts if it will rain tomorrow and a food delivery app estimates the delivery time. Students must identify the features (input data) and labels (output data).
Activity 2: Create a Small AI dataset
(Individual Work)
Pick a topic (e.g., predicting students grades, recommending movies, detecting spam emails). Create a small dataset with at least 3–5 features and 1 label.
Activity 3: Train and Test an AI model
(Group Work)
Teacher write 10–15 questions (e.g., “What is the capital of India” or “What is 2+2?”). Select 80% of the questions as the
training dataset and the rest as the testing dataset. One student (acting as AI) is “trained” using the training set. The rest of the class asks the “AI” student the test questions to see if they answer correctly.
Chapter Checkup A Select the correct option. 1 In machine learning, what are ‘features’?
a The output variables the model predicts. c The algorithm used for training models.
2 What is a ‘label’?
a A unique identifier for each data point. c A type of feature used in clustering algorithms.
b The input variables used to make predictions.
d The data used to test the model’s performance. b The output variable that the model is trained to predict d The process of normalising data.
3 Which of the following statements is true about features and labels?
a Features are dependent variables, and labels are independent variables.
b Features are used as input to the model while labels are the output the model predicts.
c Labels are used as input to the model while features are the output the model predicts.
d Features and labels are both output of the model.
4 In a dataset used for training a machine learning model, what do the column typically represent? a Features b Labels
c Data points d Algorithms
5 Which of the following is an example of a label in a dataset? a The colour of a car in an image recognition task. c The age of a person in a demographic study.
b The price of a house in a real estate dataset. d The date of transaction in a sales record.
6 In a machine learning model predicting house prices, which of the following would be considered a feature? a The predicted price of the house. c The size of the house in square feet.
Chapter 6 • Data Terminologies
Part B_AI Grade 10.indb 177
b The actual sale price of the house.
d The error between predicted and actual price.
177
4/12/2025 4:04:21 PM
B Fill in the blanks with the most suitable words. 1 The input variables used to make predictions are called
.
2 The output variable the model aims to predict is known as the
.
3 In a dataset, the represent the characteristics or attributes of the data, while the represents the outcome or target variable. 4 The process of adding tags or labels to raw data such as images, videos, text and audio is called
.
5 In a machine learning model predicting house prices, the size of the house would be considered a the price of the house would be the . C
and
State whether the following statements are True or False. Correct the statements that are false. 1 Training Data is the data used to evaluate the performance of an AI model.
2 Labelled data refers to a dataset that has been tagged with relevant information. 3 Data labelling is the process of attaching meaning to data. 4 Labelled data is often used in unsupervised machine learning. D Answer the following questions. (Solved) Q1. What are features and why are they important? A1. Features are the input variables used by machine learning models to make predictions. They represent characteristics or attributes of the data, such as age or height of a person. Features are essential because they provide the necessary information for the model to learn patterns and relationships. Q2. What is the difference between training and testing dataset? A2. The training dataset is a collection of examples given to the model to analyse and learn patterns. It is used to train a machine learning model by allowing it to identify relationships between input features and target labels. On the other hand, a testing dataset, also known as a test set or evaluation set, is a collection of data used to assess the performance of a machine learning model after it has been trained. Q3. What is the difference between labelled and unlabelled data? A3. A labelled dataset contains both input data (features) and corresponding output values (labels). It is mainly used in supervised learning. Example: A data with images of cats and dogs, where each image has a label (“cat” or “dog”). An unlabelled data contains only input data without output labels. It is used in unsupervised learning. Example: A dataset with images of animals without any labels, where the type of animal is not mentioned. Q4. A hospital is developing an AI model to predict diseases from patient data. Identify the possible features and labels. A4. • Features (Input variables): Age
Blood pressure Symptoms reported Family history of diseases • Labels (output variable) Diseases name (e.g., “Diabetes”, “Heart Disease”, “No Disease”) Q5. You have a dataset that contains information about houses, including data such as the number of rooms, square footage, location and the price of each house. Identify the features and label. A5. • F eatures: Characteristics of each house are considered the features. In this case number of rooms, square footage and location are the features.
178
Part B_AI Grade 10.indb 178
4/12/2025 4:04:21 PM
• Label: The price of the house is the label, as it is the target variable you want to predict based on the
features.
AI Activities Learn how to split data into training and testing dataset. https://youtu.be/vAi6bCTFuAY?si=zJhmLEOs6Dv2AdgN
Answer Key A
1. b
B
1. Features
C
1. False. Training data is used to train the model, while evaluation is done with the testing data.
2. b
3. b 2. Label
4. a
5. b
3. Features, Label
6. c 4. Data labelling
5. Feature, Label
2. True 3. True
4. False. Labelled data is often used in supervised machine learning.
Chapter 6 • Data Terminologies
Part B_AI Grade 10.indb 179
179
4/12/2025 4:04:22 PM
Unit 2 • Advance Concepts of AI Modelling
7 Introduction to Modelling M
odelling is the fourth stage in an AI project cycle. This is the phase that comes after the phase of data exploration. After understanding the data and discovering trends, patterns, and relationships in the data, a model is created using the data so that it can be used for making predictions and decisions. In this chapter, you will learn about modelling in detail.
Modelling
AI modelling refers to the process of creating algorithms, known as models, that can learn from data and make predictions or decisions based on new data. The output of the modelling is a model that can make accurate predictions, classify information, or identify patterns in new datasets once the AI models are trained using historical data. Modelling involves the following: •
Selecting Algorithms: Choosing an appropriate algorithm(s) based on the nature of the problem (e.g., classification, regression or clustering).
•
Training the model: Training the model using pre-existing data to identify patterns and correlations between input and desired output.
•
Testing the model: Testing the model’s performance on a new dataset to assess how well the model predicts outcomes.
Types of AI Models
There are two main methods for building AI models: the rule-based approach and the learning approach. AI Models
Rule Based
Learning Based
180
Part B_AI Grade 10.indb 180
4/12/2025 4:04:22 PM
Rule-Based Approach
Rule-based AI, also known as expert systems, operates on a set of pre-defined rules created by developers. The machine is programmed with these rules and performs tasks according to the defined guidelines. Let us understand the rule-based approach through two different scenarios. Scenario 1: Decision Making for Match Scheduling
For example, consider a dataset that specifies conditions for deciding whether a match will be played. The parameters or data features can include weather, team availability, pitch condition, and location. You would consider various possibilities of these parameters to decide if the match will be played. For instance, if the weather is sunny, both teams are available, the pitch is fine, and the location is London, the match will be played. Conversely, if the weather is rainy or one team is unavailable or the pitch is waterlogged, or the location is unknown, the match will not be played. After considering all these parameters, you input this data into the machine along with the rules. The machine trains using this dataset. During testing, you input new data, and based on the rules, the machine determines whether the match can be played. This is known as a rule-based approach because we have fed the data along with rules to the machine and after training on them, the machine can now predict outcomes based on the same rules. Weather
Team Availability
Pitch Condition
Location
Play Match
Sunny
Both Teams Are Available
Fine
London
Yes
Rainy
Both Teams Are Available
Waterlogged
London
No
Sunny
One Team Is Unavailable
Fine
London
No
Cloudy
Both Teams Are Available
Fine
London
Yes
Sunny
Both Teams Are Available
Fine
Unknown
No
Rainy
One Team Is Unavailable
Fine
London
No
Sunny
Both Teams Are Available
Poor
London
No
Cloudy
Both Teams Are Available
Fine
Paris
Yes
Sunny
Both Teams Are Available
Waterlogged
London
No
Cloudy
One Team Is Unavailable
Fine
London
No
In a rule-based approach, the model may struggle with data that does not fit within the established rules. For example, consider a scenario where the dataset specifies conditions for deciding whether a match will be played, but an unforeseen condition arises, such as extreme fog. Since extreme fog was not included in the training dataset, the model may not be able to accurately decide whether the match should be played because it lacks specific rules for handling this new condition. Thus, the performance of rule-based AI models depends heavily on the accuracy and completeness of the rules defined by developers. Scenario 2: A Hospital’s Chatbot for Appointment Booking
Rule-based Chatbots are commonly used on websites to answer frequently asked questions (FAQs) or provide basic customer support. Let us understand this through the given example: 1. Data: The chatbot operates using a predefined list of services, doctor availability schedules, and common patient inquiries. It does not require extensive training data. 2. Rules: The chatbot follows a structured rule-based system to assist patients with booking appointments and answering general queries. CONTINUE
Chapter 7 • Introduction to Modelling
Part B_AI Grade 10.indb 181
What do you need? October
30
Otolaryngologist Health Register
How to get?
Notification +1 Reminder date
Case
Your case
Skill
Dentist
Booking
Call
Dr. Name
You can also search
Search Pharmacy
My Information
+2
181
4/12/2025 4:04:22 PM
•
Rule 1: If the user’s message contains keywords like “book appointment”, “schedule doctor visit”, or “see a doctor”, proceed to appointment booking options.
•
Rule 2: Under appointment booking: If the user selects a department (example, cardiology, dermatology, etc.), display available doctors and time slots. If the user selects a doctor and time slot, confirm the appointment and provide a booking reference. If no slots are available, suggest alternative timings or doctors.
•
Rule 3: If the user asks about “hospital timings”, “emergency services”, or “contact details”, provide predefined answers.
•
Rule 4: If the chatbot cannot understand the user’s query, it responds with “I’m sorry, I couldn’t understand your request. Please visit our website or call our helpline for assistance”.
3. Interaction: When a user engages with the chatbot, it processes the message based on predefined rules and responds accordingly, either guiding them through appointment booking or providing relevant information. Another example of a rule-based AI system is an automated diagnostic system in healthcare. The system uses a set of medical rules and logical reasoning to analyse patient symptoms and medical history to suggest potential treatments. Limitation of Rule-Based Approach
A limitation of this approach is that the learning process remains fixed. Once the machine is trained, it does not account for any modifications made to the original training dataset. This means that if the model is tested on data that differs from what was used during training, it will not adapt or learn from its errors. After training, the model lacks the ability to refine itself based on feedback. Machine learning addresses this limitation by enabling the system to adjust to new data and evolving rules, ensuring it follows updated patterns rather than relying solely on predefined instructions, as seen in rule-based models.
Learning-Based Approach
Learning-based AI empowers systems to learn patterns and make decisions from data without defining rules. As no pre-defined rules are framed, these approaches use algorithms that learn from data iteratively to improve their performance on a task. Learning-based approaches rely on the large datasets to learn patterns and relationships in the data. Once the model has learnt from the data during training, it can be tested to predict the output using new and unseen data. The major feature of learning-based approach is that the model updates itself with changes in the data, allowing it to improve its performance over time and adapt to new and unseen patterns. For example, you have a dataset of 100 images of cats and dogs. The images showing cats are labelled as “cat” and the images showing dogs are labelled as “dog”. An AI model is trained with this dataset, and the model is programmed so that it can distinguish between images of a cat and a dog based on the various features of cats and dogs. Once the model is trained with the dataset, a testing dataset is fed to the model. The testing dataset may contain images of cats and dogs that are not exactly similar to the images with which the model is trained. But a learning-based AI model adapts itself to the features of a new image and predicts if the image is of a cat or a dog.
182
Part B_AI Grade 10.indb 182
4/12/2025 4:04:22 PM
Learning based AI model Cat
Dog
Cat
Dog
Dog
Dog
Cat
Cat
Dog
Dog
Cat
Dog
Cat
Dog
Dog
Dog
Cat
Cat
Dog
Dog
Machine trained Using labelled dataset
Testing using testing data
Labelled Data Set
Output
Machine identifies the image as a dog
Testing Data
Learning-based approach to AI modelling refers to an AI modelling approach where the machine learns on its own. In a learning-based approach, the AI model is trained using data and develops the ability to adapt when the data changes. For example, if the model is trained on a certain type of data, it creates a pattern based on it. When new data is introduced, the model adjusts itself to handle changes and exceptions automatically. A common example is a spam email filter. Instead of following fixed rules to detect spam, the filter learns from labelled emails during training. It analyses different aspects like words used, sender details, and attachments. Using machine learning, it identifies patterns that separate spam from non-spam emails. Once trained, the filter can classify new emails based on what it has learned. Over time, it improves its accuracy by learning from new emails, making it more effective in filtering out spam and helping users manage their inbox efficiently. Other real-life examples of learning-based AI systems include recommendation systems and autonomous vehicles. The recommendation system used by streaming platforms like Netflix uses learning-based AI algorithms to analyse user preferences and recommend new films that the user might like. The AI algorithms in autonomous vehicles learn from vast amounts of data collected from sensors, cameras, and GPS systems to analyse the environment and make driving decisions.
Think and Tell
Does the music recommendation system use a learning-based approach to continuously adapt and personalise recommendations based on user preferences?
Chapter 7 • Introduction to Modelling
Part B_AI Grade 10.indb 183
Remember Rule-based AI systems are based on predefined rules and logic created by experts, and they make decisions based on instructions and conditions finalised in advance. However, learning-based AI learns from data to identify patterns and make decisions, gradually enhancing its performance through feedback and experience.
183
4/12/2025 4:04:33 PM
Activity Time (Group Activity)
Activity 1: Compare AI Models
In groups of 4-5, create a rule-based and a learning-based AI model using a simple dataset. Test both models with new data, compare their performance, and present your findings. (Individual Activity)
Activity 2: Analyse AI Applications
Select a real-world AI application. Identify if it uses a rule-based or learning-based approach. Suggest improvements using the other approach in a brief one-page report.
Chapter Checkup A Select the correct option. 1 What is the main goal of AI modelling?
a To manually define all possible outcomes
b To create algorithms that learn from data and make predictions c To replace data collection entirely d To only classify images 2 Which of the following is not a step in AI modelling?
a Selecting algorithms b Training the model c Deleting the dataset d Testing the model
3 What is a key difference between rule-based and learning-based AI models?
a Rule-based models follow predefined rules, while learning-based models adapt to new data
b Learning-based models follow predefined rules, while rule-based models adapt to new data c Rule-based models require manual updates, while learning-based models automatically update based on new data d Learning-based models cannot handle new data, while rule-based models handle dynamic data 4 What kind of AI model is best suited for diagnosing diseases using a fixed set of medical rules? a Learning-based AI b Neural networks
c Rule-based AI d Reinforcement learning 5 In a learning-based AI model, how does the system improve over time? a By memorising all past data
b By refining predefined rules manually c By adapting to new patterns in data automatically d By ignoring previous training data and starting fresh each time B Fill in the blanks with the most suitable words. 1
is the fourth stage in the AI project cycle, following data exploration.
2 A rule-based AI model relies on a set of 3 A
created by developers.
based model improves over time as it encounters new data.
4 A limitation of the rule-based approach is that the learning process remains 5 The
.
system used by platforms like Netflix is an example of learning-based AI.
184
Part B_AI Grade 10.indb 184
4/12/2025 4:04:33 PM
C
State whether the following statements are True or False. Correct the statements that are false. 1 Rule-based AI models can adapt to new data and update their rules automatically.
2 Learning-based AI requires a large dataset to identify patterns and improve predictions. 3 The testing phase of AI modelling is used to delete unnecessary data. 4 AI models can be used for classification, regression, and clustering tasks. 5 A learning-based AI model can identify patterns in new datasets without being explicitly programmed with rules. D Answer the following questions. Q1. Define AI modelling.
A1. AI modelling refers to the process of creating algorithms, known as models, that can learn from data and make predictions or decisions based on new data. Q2. What is the key difference between rule-based and learning-based AI?
A2. Rule-based AI uses predefined rules to make decisions, whereas learning-based AI learns patterns and makes decisions from data without defining rules. Learning-based AI learns on its own. Q3. How does a rule-based AI model work? Give an example.
A3. Rule-based AI, operates on a set of pre-defined rules created by developers. The machine is programmed with these rules and performs tasks according to the defined guidelines.
Example: A chatbot on a shopping website that provides answers based on fixed rules. If a user types “track order”, the bot follows predefined steps to retrieve order status.
Q4. Why is testing important in the AI modelling process?
A4. Testing ensures that the trained AI model performs accurately on new and unseen data. It helps evaluate the model’s ability to make correct predictions, detect biases, and refine performance before deployment. Q5. Aarav is developing a music recommendation system for an online streaming platform. Should he use a rule-based approach or a learning-based approach? Explain briefly.
A5. Aarav should use a learning-based approach for his music recommendation system. Unlike rule-based methods that rely on predefined criteria, learning-based approaches use machine learning models trained on data such as user listening history, song characteristics, and user preferences. These models can adapt and improve over time, providing more accurate recommendations based on complex data patterns and user behaviour.
AI Activities 1 Visit the link: https://www.scaler.com/topics/artificial-intelligence-tutorial/rule-based-system-in-ai/ to learn more about rule-based AI. 2 Visit the link: https://developers.google.com/machine-learning/intro-to-ml to get an introduction to learning-based AI.
Answer Key A B C
1. b
2. c
1. Modelling
3. a
2. rules
4. c
3. Learning
5. c
4. fixed/static
5. recommendation
1. False. Rule-based AI models cannot adapt to new data and update their rules automatically. 2. True
3. False. The testing phase of AI modelling is used to assess the model’s performance on a new dataset, not delete unnecessary data. 4. True 5. True
Chapter 7 • Introduction to Modelling
Part B_AI Grade 10.indb 185
185
4/12/2025 4:04:34 PM
Unit 2 • Advance Concepts of AI Modelling
8 Types of LearningBased AI Models
I
n the previous chapter, we learned about AI modelling, which refers to developing algorithms, also called models, that can be trained to produce intelligent outputs. In other words, it involves writing code to make a machine artificially intelligent. We also learned about the two types of AI models: rule-based and learning-based AI models. In this chapter, we will explore the types of learning-based AI models, namely machine learning and deep learning AI models, along with their subcategories in detail. AI models can generally be categorised as follows: AI Models
Learning
Rule
Based
Deep
Based
Machine
Learning
Learning
Artificial Neural
Supervised
Convolution Neural
Unsupervised
Networks
Learning
Networks
Learning
Reinforcement Learning
Categories of AI models
186
Part B_AI Grade 10.indb 186
4/12/2025 4:04:34 PM
Categories of Machine Learning Based Models
Learning-based approaches cover a wide range of methods, including both machine learning and deep learning. Machine learning, in particular, is further divided into three categories: Learning Based Approach (Machine Learning)
Supervised Learning
Unsupervised Learning
Reinforcement Learning
Let us learn about these three learning-based approaches one by one.
Supervised Learning
Supervised learning is a machine learning method that uses well-labelled datasets to train models to predict outcomes and recognise patterns. A label is some information which can be used as a tag for data. In supervised machine learning, the developers are very familiar with the data. In other words, the dataset is known to the developer, which allows them to label the data accurately. They provide this labelled data to the machine learning model, which then learns from it. Once the model understands the relationship between the input and output data, it becomes capable of classifying new and unseen datasets as well as predicting outcomes. Supervised Learning can be compared to learning under the guidance of a teacher. For example, a math teacher explains concepts using solved examples (training) and then assesses students’ understanding by giving them problems to solve independently. Likewise, in Supervised Learning, a machine is trained using labelled data, allowing it to learn patterns and make predictions based on the given information. Example of Supervised Learning
Let’s consider the example of classifying students based on their test scores. Problem Statement: Build a model to predict a student’s grade based on their exam scores. Assume we have a dataset where students receive grades based on their scores: •
Scores 90 and above Grade A
•
Scores 80 to 89 Grade B
•
Scores 70 to 79 Grade C
•
Scores 60 to 69 Grade D
•
Scores below 60 Grade E
Feature: Exam Score Label: Grade If a model is trained to associate exam scores (features) with grades (labels), it can then predict a student’s grade based on their test score, as it has already learned from previous data. Types of Supervised Learning
There are broadly two types of supervised learning models: Classification and Regression.
Chapter 8 • Types of Learning-Based AI Models
Part B_AI Grade 10.indb 187
187
4/12/2025 4:04:34 PM
Classification Model: Here the data is classified according to the labels.
Supervised
Learning Model
Let us understand this through an example. Example 1: Identification of apples and bananas The identification of apples and bananas as different fruits is a great example of supervised learning.
Classification
Regression
Model
Model
Since we knew the data really well, i.e., apples are spherical and red, while bananas are curved and yellow, we fed this data to the machine by providing a large number of images of both apples and bananas. This is then reasoned into the statements, “Given an image of an apple, we know it as an apple”, and “Given an image of a banana, we know it as a banana”. Thus, the machine learns this information and applies it to new images, thereby starting to make predictions. This model works on discrete datasets.
Example 2: Classifying Emails as Spam or Not The model is trained using a large collection of emails, including legitimate ones (such as messages from friends or colleagues) and spam. By analysing patterns in these emails, the model learns to identify features that indicate spam. Once trained, when the model encounters a new email, it examines key characteristics and determines whether it should be classified as “spam” or “not spam”. This process is similar to sorting physical mail into different categories.
Inbox
Classification Model
Spam
Regression: Regression is a type of supervised learning where the goal is to predict a continuous numerical value based on input data instead of predicting a label representing a category. While classification assigns data to various predefined categories, regression aims to predict a number.
188
Part B_AI Grade 10.indb 188
4/12/2025 4:04:35 PM
Example: Predicting the Price of a House
Suppose you want to predict the price of a house in your town. The price of a house (dependent variable) depends on various features like its size, number of bedrooms, and location (independent variables). To create a house price prediction AI model, you must have a dataset containing features of each house and its actual price. You will train a regression model with this data. During training, the model learns the relationship between the features and the house prices. Once trained, the model can predict the price of new houses based on their features.
Remember
Discrete values are countable and separate, like the number of students in a class. There can be 20 students or 25 students, but not 22.5. Continuous values are measurable and can take any value within a range, like the height of students. It can be 5 feet, 5.7 feet, or 6.2 feet.
Activity Teachable Machine Objective: To use a web-based tool that helps to create machine learning models based on supervised learning in an easy and fast manner. You do not need to be a coding expert to use the application. This application helps train a computer to recognise images, sounds, and poses. Follow the given steps to learn how this application works:
Think and Tell
Can you give examples of real-world applications where supervised learning is particularly effective?
1. Visit the following link: https://teachablemachine.withgoogle.com/ 2. The following window will appear.
3. Click on the Get Started button. You will be directed to a web page, as shown.
Chapter 8 • Types of Learning-Based AI Models
Part B_AI Grade 10.indb 189
189
4/12/2025 4:04:35 PM
4. From the window that appears, you can use any of the following options to teach your machines: •
Image Project: To teach a model to classify images using files on your system or your webcam.
•
Audio Project: To teach a model to classify audio by recording short sound samples.
•
Pose Project: To teach a model to classify body positions or poses using image files on your system or striking poses on your webcam.
5. Let us create a pose project. For this, click on the Pose Project option. 6. Collect images of random people’s sitting and standing poses, as shown. Here is the training data, in the form of images, of standing and sitting poses, for your reference.
Training Data for Sitting Poses
Training Data for Standing Poses
7. Click on the Upload button to upload the images related to these poses.
190
Part B_AI Grade 10.indb 190
4/12/2025 4:04:35 PM
8. The results of any machine learning model depend on the examples or the sample data you give it. So, if it’s not working as you had intended, then add more samples to the training data that was provided to your machine. 9. After uploading the training data, click on the Train Model button.
10. Now, test your machine learning model by posing in front of the webcam and see what Output (standing or sitting pose) it displays in the Preview window.
Unsupervised Learning
An unsupervised learning model operates on a dataset that lacks labels. This means the data provided to the machine is unstructured, and the person training the model might not have prior knowledge about it. These models are designed to discover relationships, patterns, and trends within the data. This process helps users gain insights into the data and identify key features that the machine detects. For instance, imagine you have a dataset of 1,000 random cat images and want to uncover patterns within it. You would input this data into an unsupervised learning model, which would then analyse and identify patterns after training. The model might detect familiar patterns, such as colour, or reveal something unexpected, like variations in the size of the cats. Unsupervised Learning is a type of learning without any guidance. For example, a child trying to solve a jigsaw puzzle without any instructions. Here, the child is the model, attempting to identify patterns and piece together the
Chapter 8 • Types of Learning-Based AI Models
Part B_AI Grade 10.indb 191
191
4/12/2025 4:04:36 PM
puzzle. The scattered puzzle pieces are similar to the unlabelled data fed to the model. In this process, the model is responsible for discovering patterns, similarities, and differences on its own based on the unlabelled dataset. Example of Unsupervised Learning
Let’s consider the example of an online streaming platform. Assume that we have a database of users with records of the movies they have watched over time. However, there are no predefined labels identifying user preferences, such as action movie lovers or comedy movie lovers. The model analyses viewing patterns without any prior labelling and automatically groups users into clusters based on similarities in their watch history. Action Movie Lovers Comedy Movie Lovers No. of action
movies watched
No. of comedy
movies watched
Comedy Movies
User ID
Supervised
Learning Model
Action Movies
These discovered clusters can later be used for marketing or personalised recommendations. Types of unsupervised learning
Unsupervised learning models can be further divided into two categories: Clustering model and Association model. Clustering: Clustering is a process of dividing the data points into different groups or clusters based on their similarity between them.
Unsupervised Learning Model
Imagine a scenario where a developer feeds an unsupervised learning model a dataset consisting of various images of fruits, such as apples, bananas, Clustering and grapes. This dataset is unlabelled, meaning the Model model has no prior information about which images correspond to which fruit. The model’s task is to automatically identify patterns and similarities within the data.
Association Model
or instance, during the training process, the model might detect that the images of apples tend to share certain F features, like a red colour and a spherical shape. Similarly, it might recognise that bananas generally have a yellow colour and a curved shape, while grapes are typically small, round, and green. Based on these observations, the model organises the images into distinct clusters or groups. nce trained, the model can be tested with new, unlabelled O images of apples, bananas, or grapes. It will then assign each new image to one of the pre-established groups based on the patterns it learnt during training. This process exemplifies how unsupervised learning models can automatically categorise data by identifying inherent patterns without explicit guidance from the developer.
Input Data
Model Output Data
192
Part B_AI Grade 10.indb 192
4/12/2025 4:04:36 PM
Example: David prefers drinks that are sweet and cold, whereas he dislikes beverages that are bitter and hot. •
We have grouped all the beverages that are sweet and cold into one cluster that he likes.
•
Meanwhile, beverages that are bitter and hot are placed into another cluster.
•
Now, if he is offered a new drink Z that is sweet and cold, could you predict whether he will like it?
This is how clustering techniques work. The clustering model identifies clusters based on available features without predefined labels. For example, sweetness and temperature are the only known features, but clusters based on preferences (likes and dislikes) emerge as the output. Similar techniques are used in OTT platforms like Netflix/ Spotify for recommendation systems. Association: Association rule is an unsupervised learning method that is used to find interesting relationships between variables from the database. Consider a clothing store example wherein: •
Customer A buys a t-shirt, jeans, and sneakers.
•
Customer B buys a t-shirt, jeans, and a jacket.
Customer A
Customer B
Based on the purchasing pattern of Customers A and B, can you predict what any Customer X who buys a t-shirt will most probably buy? Based on the purchasing pattern of other customers, there is a high probability that any Customer X who buys a t-shirt will buy jeans.
Customer X
Therefore, such meaningful associations can be useful to recommend items to customers. This is called Association Rule.
Differences between Supervised and Unsupervised Learning Supervised Learning
Unsupervised Learning
Uses labelled data, where input-output pairs are provided.
Uses unlabelled data, where the system identifies patterns without predefined labels.
Learns to map inputs to outputs based on past examples.
Finds hidden patterns, structures, or groupings in data.
Useful for tasks like price prediction, spam detection, and disease diagnosis.
Used for clustering, anomaly detection, and customer segmentation.
Requires less computing power as data is structured and labelled.
Requires more computing power due to complex pattern discovery in raw data.
Learns with supervision, where the model is corrected using labelled examples.
Learns without direct supervision, finding relationships on its own.
Chapter 8 • Types of Learning-Based AI Models
Part B_AI Grade 10.indb 193
193
4/12/2025 4:04:37 PM
Reinforcement Learning
Reinforcement learning is a type of machine learning where an AI model learns to take actions in an environment to maximise a cumulative reward. The model learns through trial and error, receiving rewards for good actions and penalties for bad ones. In our fruit recognition problem, the model learns to recognise fruits by identifying images. When the model correctly identifies a fruit, it receives a reward. However, if it guesses incorrectly, there is a penalty. With each attempt and its corresponding feedback, the model becomes ‘smarter’. It starts How is reinforcement learning recognising the key features that distinguish different fruits. Parking a different from supervised and car is an example of reinforcement learning because the system learns unsupervised learning? through trial and error by receiving rewards for correct parking actions and penalties for mistakes, such as hitting obstacles. Over time, it improves its strategy to park efficiently based on past experiences.
Think and Tell
Example of Reinforcement Learning • •
• • • •
Suppose you provide an image of a banana to the machine and ask it to identify the fruit.
Initially, the machine predicts it as an ‘apple’, and you give negative feedback, indicating the prediction is incorrect.
The machine then learns that the image is not an apple. When you present the same image of a banana again, the machine remembers that it is not an apple.
Reinforcement Model
Reinforcement Model
APPLE
BANANA
This time, it predicts ‘banana’, and you provide positive feedback, confirming the answer is correct.
Through this process, the machine learns to recognise a banana accurately.
Activity Infinite Drum Machine Objective: To see the working of an infinite drum machine which is an AI model based on unsupervised learning. This experiment uses machine learning to translate thousands of day-to-day sounds to create personalised music. Follow the given steps to learn how it works: 1. Visit the link: https://experiments.withgoogle.com/ai/drum-machine/view/. The following window opens.
194
Part B_AI Grade 10.indb 194
4/12/2025 4:04:37 PM
2. Click on the START PLAYING button. You will be directed to a web page, as shown.
3. Click on the play button to enjoy the music created by the sounds of different objects like “CARD PLAYING”, “WINDOW CRANK”, “TOY BOARD GAME”, etc., marked in circles as shown. You can also click the shuffle button to change the sounds for creating music. Now, you can experiment with new sounds such as “TAPE RECORDER CASSETTE”, “HUMAN LAUGH”, etc. to create music.
Categories of Deep Learning Models
Deep Learning enables software to learn and improve its performance on tasks by training with large amounts of data. In this approach, the machine processes vast datasets to recognise patterns and refine its predictions over time, optimising its own learning process. There are two types of deep learning models: Artificial Neural Networks (ANN) and Convolutional Neural Networks (CNN). Let us learn about these two deep learning models in detail.
Deep Learning
Artificial Neural
Networks (ANN)
Chapter 8 • Types of Learning-Based AI Models
Part B_AI Grade 10.indb 195
Convolutional Neural Networks (CNN)
195
4/12/2025 4:04:38 PM
Artificial Neural Networks (ANN)
Artificial Neural Networks (ANNs) are intelligent systems that learn to perform tasks by analysing examples. They are inspired by the human brain, consisting of interconnected artificial neurons that process information and identify patterns within data. Each neuron in a neural network applies a mathematical function to its inputs, making ANNs powerful for handling complex, high-dimensional data. These networks are particularly useful for tasks involving large datasets, such as natural language processing and financial forecasting.
Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN) are a specialised type of deep learning model designed for processing visual data. They apply convolutional layers that automatically detect and learn spatial hierarchies of features, such as edges, textures, and objects, in an image. By assigning learnable weights and biases, CNNs can differentiate between different objects in an image with high accuracy. These models are widely used in applications like facial recognition, medical image analysis, and autonomous driving.
Activity Time Activity 1: Supervised Learning Activity: “Guess the Fruit”
(Group Work)
Divide the students into groups. Ask each group to collect photos of different fruits and list features of each fruit, like
colour, shape, and origin, on different cards. Show other groups a card containing the features of the fruit but not the
picture of the fruit. Students will guess the name of the fruit based on its features. This will help the students to explore how supervised learning makes use of features for classification. Activity 2: Reinforcement Learning Activity: “Maze Solver”
(Individual Work)
Instruct the students to create a maze on a piece of paper. Students will act as “agents” to find the shortest path to the exit. Each move is rewarded, like +1 for moving closer to the exit or penalised, like –1 for hitting a dead end. Students will learn how reinforcement learning based algorithms make decisions based on penalties and rewards.
Chapter Checkup A Select the correct option. 1 What type of data is used in supervised learning? a Only labelled data c Both labelled and unlabelled data
b Only unlabelled data d No data is used
2 What is the key feature of a neural network? a These are rule-based systems b These do not need data for training c These consist of layers of interconnected neurons d These can perform only classification tasks 3
Which of the following is an example of a regression problem? a Predicting whether an email is spam or not b Grouping customers based on purchasing behaviour
196
Part B_AI Grade 10.indb 196
4/12/2025 4:04:38 PM
c Predicting the price of a house based on its features d Identifying objects in an image 4 The target variable is categorical in
problem.
a Classification b Clustering c Regression d Association 5 Which algorithmic model would you use when you have to predict a continuous valued output? a Clustering b Classification c Regression d Association B Fill in the blanks with the most suitable words. 1 An
learning model operates on a dataset that lacks labels.
2 Rule-based AI systems make decisions using predefined 3 Classification and
.
are two main types of supervised learning.
4 Association is a type of
learning.
5 The process of using tagged photos on a social media platform to recognise people is an example of learning. C
State whether the following statements are True or False. Correct the statements that are false. 1 Clustering is a type of unsupervised learning. 2 The regression model predicts only the discrete numerical values. 3 Learning-based AI models do not require any data for training. 4 In reinforcement learning, the AI model learns by maximising cumulative rewards through actions. 5 Parking a car is an example of reinforcement learning.
D Answer the following questions. Q1. What is the key difference between rule-based and learning-based AI? A1. Rule-based AI uses predefined rules to make decisions, whereas learning-based AI learns patterns and makes decisions from data without defining rules. Q2. Differentiate between supervised learning and unsupervised learning. A2.
Supervised Learning Uses labelled data, where input-output pairs are provided.
Unsupervised Learning Uses unlabelled data, where the system identifies patterns without predefined labels.
Learns to map inputs to outputs based on past examples. Finds hidden patterns, structures, or groupings in data. Useful for tasks like price prediction, spam detection, and disease diagnosis.
Used for clustering, anomaly detection, and customer segmentation.
Requires less computing power as data is structured and labelled.
Requires more computing power due to complex pattern discovery in raw data.
Learns with supervision, where the model is corrected using labelled examples.
Learns without direct supervision, finding relationships on its own.
Q3. What is the difference between clustering and classification? A3. Classification uses predefined classes in which objects are assigned whereas clustering finds similarities between objects and places them in the same cluster and it differentiates them from objects in other clusters. Classification is a type of supervised learning whereas clustering is a type of unsupervised learning.
Chapter 8 • Types of Learning-Based AI Models
Part B_AI Grade 10.indb 197
197
4/12/2025 4:04:39 PM
Q4. A bank wants to determine whether a customer is eligible for a loan or not. The output is either “yes” or “no”. Which type of model should be used: classification or regression? A4. This is a Classification problem, as the model predicts one of two discrete outcomes: eligible (yes) or not eligible (no). Q5. Which machine learning model, classification or regression, is best suited for predicting temperature? A5. Since temperature is a continuous variable that can take any value within a range, regression models are the most suitable for making such predictions. Q6. Is an OTT platform recommending content based on a user’s watch history an example of supervised or unsupervised learning? A6. It is an example of unsupervised learning. OTT platforms like Netflix and Spotify analyse a user’s watch or listening history, identify patterns based on preferences, and recommend new content with similar features—without using predefined labels.
AI Activities 1 Visit the link: https://playground.tensorflow.org/ to learn and experiment with neural networks. 2 Visit the link: https://www.scaler.com/topics/artificial-intelligence-tutorial/rule-based-system-in-ai/ to learn more about rule-based AI. 3 Visit the link: https://developers.google.com/machine-learning/intro-to-ml to get an introduction to learning-based AI.
Answer Key A B C
1. a
2. c
3. c
4. a
5. c
1. Unsupervised
2. Rules
3. Regression
4. Unsupervised
5. Supervised
1. True
2. False. Regression model predicts the continuous numerical values. 3. False. Learning-based AI models require data for training. 4. True 5. True
198
Part B_AI Grade 10.indb 198
4/12/2025 4:04:39 PM
Unit 2 • Advance Concepts of AI Modelling
9 Artificial Neural Networks
I
n today’s world, AI is transforming the way machines learn and make decisions. One of the most powerful techniques behind AI is the neural network, a system designed to mimic how the human brain processes information. Just as our brain consists of interconnected neurons that help us recognise patterns, neural networks use layers of artificial neurons to analyse data and identify meaningful patterns. In this chapter, we will explore how neural networks function, their structure, and why they are essential for modern machine learning. By understanding neural networks, we can appreciate how AI systems learn and improve, enabling innovations across various fields like healthcare, finance, and autonomous technology.
Artificial Neural Network (ANN)
An artificial neural network can be thought of as a smart system that can learn to perform a task by looking at examples. It mimics how the human brain works, using neurons connected to form a network. Their primary strength lies in their ability to automatically identify patterns and features in data without requiring explicit programming of these features. Essentially, they serve as the foundation for machine learning algorithms, enabling them to execute specific tasks efficiently. This makes neural networks particularly powerful for handling large datasets, such as those used in image processing and speech recognition.
Did You Know? The concept of Artificial Neural Networks (ANNs) dates back to the 1940s! The first model, called the Perceptron, was developed in 1958 by Frank Rosenblatt, inspired by how the human brain processes information.
Remember
Neural networks can recognise complex patterns in data, but they don’t actually “see” images the way humans do. Instead of recognising shapes and objects directly, they analyse pixel values and detect patterns in textures, edges, and colours to make predictions.
199
Part B_AI Grade 10.indb 199
4/12/2025 4:04:41 PM
Components of ANN
Let us learn about the different components of Artificial Neural Network (ANN).
Artificial Neural Network
1. Nodes: In an Artificial Neural Network (ANN), nodes—also called neurons—are the core processing units that mimic biological neurons. A neural network consists of multiple layers, each composed of several interconnected nodes. Each node performs a specific computation on the input data and transmits the processed information to the next layer. 2. Layers: A Neural Network is divided into multiple layers. There are three types of layers in a neural network: input layer, hidden layer, and output layer. • Input Layer: The input layer is the first layer of a neural network, responsible for receiving data. It does not perform any processing but simply passes the input to the next layers. For example, if you are teaching a neural network to recognise images of birds, the input layer receives the value of the pixels of the images here. • Hidden Layers: The hidden layers are intermediate layers between the input and output layers, where all processing takes place. They extract patterns and features from the input data through computations involving weights and biases. Biases are additional values that help to adjust the output to minimise the error in predictions during network training. The network learns through trial and error, adjusting weights based on the difference between the predicted and actual outputs. Each node in these layers applies a mathematical operation to the input data. The result is then passed through an activation function, which determines whether the neuron should activate based on the received information. This function helps the network learn complex patterns. The transformed information is then forwarded to the next layer for further processing. A neural network can have multiple hidden layers, enabling it to learn complex patterns effectively. These layers are called “hidden” because they are not directly visible to the user. There can be multiple hidden layers in a neural network system and their number depends upon the complexity of the function for which the network has been configured. Also, the number of nodes in each layer can vary accordingly. • Output Layer: The last hidden layer passes the final processed data to the output layer, which then presents it to the user. Like the input layer, the output layer does not process data—it simply delivers the final result. It is meant for user-interface. The output layer is the final layer of a neural network, responsible for generating the model’s predictions. For example, in an image classification task, it might output “Yes, this is a bird” or “No, this is not a bird”.
200
Part B_AI Grade 10.indb 200
4/12/2025 4:04:41 PM
How does a Neural Network Learn?
A neural network learns through a process called training. During training, a neural network is fed with a large amount of labelled data. For example, many images labelled as “bird” or “not bird” are given as input to the neural network during training. The training involves the following steps: Forward Propagation: The network processes the input data received at the input layer and passes through the network by hidden layers to the output layer to make a prediction. Loss Function: The network compares its output/prediction with the actual answer to see how wrong it is. The difference is measured using a loss function. Backward Propagation: The network adjusts its weights and biases based on how wrong it was (given by the difference measured by a loss function). This helps the network improve its predictions over time. The process of forward propagation, calculating the loss, and backward propagation occur many times, with a lot of examples. Each time, the neural network becomes better at making correct predictions.
Applications of Neural Networks
Neural networks are powerful because they can learn to perform complex tasks that are difficult for traditional computer programs. They are widely used in various fields, including: •
Image Recognition: Identifying objects, faces, and patterns in photos.
•
Speech Recognition: Converting spoken language into text.
•
Natural Language Processing (NLP): Understanding and generating human language, such as chatbots and language translation.
•
Game Playing: Enabling AI to play strategy games like chess and Go.
•
Medical Diagnosis: Assisting in detecting diseases from medical images.
•
Autonomous Vehicles: Helping self-driving cars recognise objects and make decisions.
Key Features of a Neural Network Following are the key features of a neural network:
1. Scalability: A neural network can handle large and complex datasets. 2. Adaptability: A neural network learns and improves from data over time. 3. Fault Tolerance: The performance of a neural network is robust even with incomplete data. 4. High-dimensionality: It can handle large numbers of input features effectively. 5. Generalisation: It can make predictions on new and unseen data effectively. 6. Pattern recognition: Neural networks excel at identifying patterns and relationships in data. 7. Layered structure: A neural network organises computations in multiple layers.
Activity Time Activity: The Role of Neural Networks in Everyday Life
(Group Work)
Divide students into small groups. Each group will discuss different applications of neural networks (e.g., in healthcare,
finance, self-driving cars, etc.). They will explore how neural networks impact daily life and future possibilities. Each group presents their key takeaways to the class.
Chapter 9 • Artificial Neural Networks
Part B_AI Grade 10.indb 201
201
4/12/2025 4:04:41 PM
Chapter Checkup A Select the correct option. 1 What is the primary function of an Artificial Neural Network (ANN)? a Storing large amounts of data
b Manually coding rules for decision-making
c Automatically identifying patterns and features in data
d Performing arithmetic calculations
2 Which layer in a neural network is responsible for receiving raw input data? a Hidden layer b Input layer
c Output layer d Processing layer
3 What process helps a neural network adjust its weights and biases during training? a Forward Propagation b Loss Calculation
c Backward Propagation d Activation Function
4 Which of the following is not an application of neural networks?
a Image Recognition b Speech Recognition
c Textbook Printing d Autonomous Vehicles
5 Which of the following is a key component of hidden layers in a neural network?
a Forward Propagation b Biases and Weights c Loss Function d Training Data
B Fill in the blanks with the most suitable words.
1 A neural network consists of interconnected processing units called 2 The
.
layer is responsible for making the final predictions in a neural network.
3 The process of passing input data through the layers of a neural network to generate an output is called 4 The function used to measure the difference between predicted and actual values is called the
function.
.
5 The function responsible for determining whether a neuron should activate based on the received information is called the . C
State whether the following statements are True or False. Correct the statements that are false. 1 Neural networks require explicit programming of all features before making predictions. 2 The hidden layers in a neural network perform all the processing and feature extraction. 3 There are three types of layers in a neural network.
4 Artificial neural networks are only used in image recognition tasks.
5 Backward propagation is the process where the network updates its weights based on errors. D Answer the following questions.
Q1. What are the three main types of layers in an artificial neural network? Briefly explain their roles.
A1. i. Input Layer: The first layer, responsible for receiving data without processing it. Example: Receiving pixel values for image recognition. ii. Hidden Layers: Intermediate layers that process data using weights and biases to extract patterns.
iii. Output Layer: The final layer that delivers the processed result to the user. For example, in an image classification task, it might output “Yes, this is a bird” or “No, this is not a bird”.
Q2. How does a neural network learn from data? Explain the training process.
A2. A neural network learns through training, where it is fed a large amount of labelled data.
202
Part B_AI Grade 10.indb 202
4/12/2025 4:04:42 PM
The process involves:
i. Forward Propagation: The network processes the input data received at the input layer and passes through the network by hidden layers to the output layer to make a prediction.
ii. Loss Function: The network compares its output/prediction with the actual answer to see how wrong it is. The difference is measured using a loss function.
iii. Backward Propagation: The network adjusts its weights and biases based on how wrong it was (given by the difference measured by a loss function). This helps the network improve its predictions over time.
Q3. What is the role of an activation function in a neural network?
A3. An activation function determines whether a neuron should activate based on the received information. It helps the network learn complex patterns by processing the input data and transforming it before passing it to the next layer for further computation. Q4. List three real-world applications of neural networks.
A4. Three real-world applications of neural networks are:
i. Image Recognition: Identifying objects, faces, and patterns in photos.
ii. Speech Recognition: Converting spoken language into text.
iii. Autonomous Vehicles: Helping self-driving cars recognise objects and make decisions.
Q5. What are some key features of a neural network?
A5. Following are the key features of a neural network:
i. Scalability: A neural network can handle large and complex datasets.
ii. Adaptability: A neural network learns and improves from data over time.
iii. Fault Tolerance: The performance of a neural network is robust even with incomplete data. iv. High-dimensionality: It can handle large numbers of input features effectively. v. Generalisation: It can make predictions on new and unseen data effectively.
vi. Pattern recognition: Neural networks excel at identifying patterns and relationships in data.
vii. Layered structure: A neural network organises computations in multiple layers.
Q6. How do the layers of a neural network help an autonomous vehicle recognise traffic signs and pedestrians? A6. Input Layer: Receives raw image data from vehicle cameras.
Hidden Layers: Process the images using weights and biases, extracting patterns like shapes and colours to identify objects.
Output Layer: Classifies objects (e.g., “traffic sign” or “pedestrian”) and sends signals for appropriate actions, such as stopping or turning.
AI Activities Visit the link: https://playground.tensorflow.org/ to learn and experiment with neural networks.
Answer Key A
1. c
B
1. nodes
C
1. False. Neural networks automatically learn patterns from data without explicit programming.
2. b
3. c
2. output
4. c
5. b
3. forward propagation
4. loss
5. activation function
2. True 3. True
4. False. Neural networks are used in various fields like speech recognition, healthcare, finance, autonomous vehicles, etc.
5. True
Chapter 9 • Artificial Neural Networks
Part B_AI Grade 10.indb 203
203
4/12/2025 4:04:43 PM
Unit 2 • Advance Concepts of AI Modelling
10 How AI Makes Decisions
W
hen we give data to a machine and it responds as expected, have you thought about how it does that? How does a machine select the best answer based on the given information? You can say that this is how a machine works—when we ask it to generate a specific result, it requires input data and certain conditions to process the request, much like how humans think, predict, and make decisions. Let’s understand this with the help of an example. Priya and Rohan are talking about AI decision-making: Priya: Imagine choosing which movie to watch, Rohan. What factors would you consider? Rohan: Well, I would look up the film’s genre, reviews, and whether my friends recommend it. Priya: That’s right! Now, imagine AI making this choice. After receiving inputs such as ratings, reviews, and individual preferences, it prioritises them and determines which movie would be the best option based on these factors. Rohan: So, just like people, AI follows a methodical process, but instead of using human judgment, it relies on logic and numbers? Priya: Exactly! AI gives importance to different factors by assigning them weights. It also includes a small adjustment, called bias, to fine-tune the result. If the final score is high enough, it suggests the movie; otherwise, it looks for another option. Rohan: That makes sense! It makes decisions based on data and reasoning, much like a recommendation system. Accordingly, we might describe decision-making in AI as the process by which AI examines data, assesses potential outcomes, and decides on the optimal course of action based on preset rules, lessons learned, or optimisation strategies. AI decision-making often involves algorithms like Perceptron, neural networks, or probabilistic models that weigh different factors along with using logical reasoning to arrive at an informed decision.
204
Part B_AI Grade 10.indb 204
4/12/2025 4:04:43 PM
Understanding Perceptron in AI
As we know, neurons (also called nodes) are the fundamental building blocks of artificial neural networks. A perceptron, a type of neuron, helps AI make decisions by assigning numerical weights to different inputs, summing them up, and comparing the result to a threshold. Let’s apply this concept to Rohan’s movie selection scenario where AI decides whether to recommend a movie or not.
The Perceptron Structure
Every input (X1 to X4) has a weight (W1 to W4) that determines the importance in the final decision. Additionally, a bias (B) with weight WB is included to adjust the calculation. The perceptron sums-up all these weighted inputs and compares them with a threshold to decide whether to watch the movie or not. X1
W1
Output (Y)
W2
X2
WB
W3
X3
B
W4
X4
Converting the Movie-Decision into a Perceptron-Model
In our example, we have four inputs (factors) influencing the decision to watch a movie: X₁: Does the movie match Rohan’s favourite genre? X₂: Does the movie have high ratings and reviews? X₃: Do his friends recommend this movie? X₄: Is the movie available on a streaming platform?
Genre Match Personal Preference Ratings and Reviews Friend Recommendations Availability
W1
Output (Y)
W2 W3
WB
Ratings and Reviews
B
W4 Friend Recommendations
Availability
Chapter 10 • How AI Makes Decisions
Part B_AI Grade 10.indb 205
205
4/12/2025 4:04:43 PM
Error Alert!
Think and Tell
Imagine you are shopping online for a new backpack. The website suggests backpacks based on your previous purchases and product ratings. Do you think AI always provides the best recommendations in such cases? Why or why not?
A spam filter AI trained on old email patterns might struggle to detect or identify new types of spam. AI relies too much on specific training data, failing to make perfect predictions for new cases.
Assigning Weights to Each Parameter
AI assigns weights to parameters based on the relevance. Now, you have the factors that will influence your decision to watch a movie or not. But take note, not all factors are equally important. Some factors play a vital role, while others have a smaller impact. Let’s rank them based on importance or priority. Does this movie belong to my favourite genre?
Genre Match
1st
What is the average rating of this movie from critics and audience rating for this movie?
Output (Y)
2nd
WB
3rd
How many friends have
recommended this movie?
Ratings and Reviews
B
Friend Recommendations
4th
Is the movie available on any
streaming platform I have access to?
1st Personal Preference (40%)
Availability
2nd Ratings and Reviews (30%)
3rd Friend Recommendations (20%)
4th Availability (10%)
Ranking Factors Based on Priority
Remember that the actual values of the weights are unknown. We estimate approximate values based on the importance of each input or factor. Explanation of How Values Are Determined
The assigned weights reflect the relative importance of each factor or input: •
Input (X)
Weight (W)
X₁: Genre match (most important)
W1 = 0.4
X₂: Ratings and reviews
W2 = 0.3
X₃: Friend recommendations
W3 = 0.2
X₄: Availability
W4 = 0.1
Genre match (X1): This is the most critical factor, as people are more likely to watch movies that align with their preferred genres. It gets the highest weight: W1 = 0.4.
206
Part B_AI Grade 10.indb 206
4/12/2025 4:04:44 PM
•
Ratings and reviews (X2): Reviews and ratings significantly impact choices, so it is the second most important factor with W2 = 0.3.
•
Friend recommendations (X3): While friends’ opinions matter, they are less important than personal genre preference and reviews. This factor is given a weight of W3 = 0.2.
•
Availability (X4): A movie being available is important but does not directly influence whether someone enjoys it. This has the lowest weight: W4 = 0.1.
Learning and Adjustments in the Values of the Weights AI continuously learns from the user feedback: •
If a user likes the recommendation, AI reinforces similar choices.
•
If a user dislikes it, AI adjusts weights and refines the future suggestions.
This makes AI adaptive and smarter over the time. Personal Preferences and AI Decision-Making
Not everyone assigns the same importance (weights) to these factors. For example: •
Priya cares more about free time → More likely to watch the movie if she has free time.
•
Rohan values movie rating more → He watches only highly rated movies. Factor
Priya’s Weights
Rohan’s Weights
X₁: Free time
0.4
0.2
X₂: Movie rating
0.3
0.5
X₃: Friend recommendations
0.2
0.1
X₄: Availability
0.1
0.2
This means Priya and Rohan may make different decisions for the same movie.
Understanding the Bias
The values for WB are also based on personal preference. If a person is more selective, he may set the value for WB to be higher, meaning he would choose to watch a movie only if multiple factors align with his preferences. On the other hand, a person who is more open to exploring different movies will have a lower WB, making him more likely to watch a movie even if only a few factors are met. In this example, we choose 0.1, a lower value as we want to be more open to exploring different movies. Binary Representation of the Inputs and Biases
For this example, let’s say: The movie matches Rohan’s favourite genre (1), it does not have high ratings and reviews (0), his friends recommend this movie (1), and it is not available on a streaming platform (0). We can convert the yes and no responses to numbers 1 and 0 respectively. For bias, we will always take the binary representation to be 1.
Chapter 10 • How AI Makes Decisions
Part B_AI Grade 10.indb 207
207
4/12/2025 4:04:44 PM
Does this movie belong to
1
my favourite genre?
0.4
What is the average rating of this movie from critics and audience rating for this movie?
0
recommended this movie?
0
0.3
0.1
yes
No
Output (Y)
0.2
How many friends have
1
Genre Match
Ratings and Reviews
B
yes
0.1
Friend Recommendations No
Is the movie available on any
streaming platform I have access to?
Availability
Input (X)
Weight (W)
Value (0 or 1)
X₁: Genre match (most important)
W1 = 0.4
1 (Yes)
X₂: High ratings and reviews
W2 = 0.3
0 (No)
X₃: Friend recommendations
W3 = 0.2
1 (Yes)
X₄: Availability
W4 = 0.1
0 (No)
Bias (B)
WB = 0.1
1 (Always 1)
Error Alert! AI is only as smart as the data it learns from. Remember to always be cautious of biases in AI-generated recommendations.
Threshold in a Perceptron Model
The threshold is a predefined value that determines the final decision of the perceptron model. It acts as a cutoff point to classify whether the AI should recommend a movie or not. How the Threshold Works •
Every input is multiplied by its assigned weight.
•
The weighted values are summed-up along with the bias.
•
If the final score crosses the threshold, the decision is to watch the movie; otherwise, the decision is not to watch.
Perceptron Calculation
Y (output) = (X1 × W1) + (X2 × W2) + (X3 × W3) + (X4 × W4) – (B × WB) Substituting the values: Y = (1 × 0.4) + (0 × 0.3) + (1 × 0.2) + (0 × 0.1) – (1 × 0.1) Y = 0.5 Since 0.5 exceeds the threshold (e.g., 0), the AI recommends watching the movie. Let us consider another scenario of not watching the movie. •
Personal preference match: 90%
•
Friend recommendations: 70%
•
Ratings and reviews: 85%
•
Availability: 100%
208
Part B_AI Grade 10.indb 208
4/12/2025 4:04:44 PM
Does this movie belong to
0
1
my favourite genre?
What is the average rating of this movie from critics and audience rating for this movie? How many friends have
0
recommended this movie?
1
Genre Match
0.9 0.85 0.7 1
Yes
Y 4.0
B
Ratings and Reviews No Friend Recommendations Yes
Is the movie available on any
streaming platform I have access to?
No
Availability
Y (output) = (X1 × W1) + (X2 × W2) + (X3 × W3) + (X4 × W4) – (B × WB) Substituting the values: Y = (0 × 0.9) + (1 × 0.85) + (0 × 0.7) + (1 × 1) – (1 × 4.0) Y = –2.15 Since –2.15 < threshold (which we have assumed to be 0 in this case), the perceptron does NOT recommend watching the movie.
Activity AI Movie Selector – How AI Learns Your Preferences Objective: To understand how AI learns from user data and makes decisions based on preferences, just like online movie recommendation platforms (Netflix, Amazon Prime, etc.) Steps to Perform the Activity: 1. Visit the website https://www.whatismymovie.com/. This website uses AI to recommend movies based on the descriptions. 2. The following web page appears.
Chapter 10 • How AI Makes Decisions
Part B_AI Grade 10.indb 209
209
4/12/2025 4:04:44 PM
3. Type a few words about a movie you like (for example, “A Bollywood comedy movie”) in the text box. Then click on the Search button.
4. Now, see what movies AI suggests.
5. Try using different keywords and observe how AI makes changes to its recommendations. 6. Analyse How AI Learns: • The more specific details you provide, the more accurate AI’s recommendations will be. • AI uses past user data, keywords, and patterns to improve its decision-making. 7. Continuous Learning and Optimisation: • If you watch the movie and rate it highly, AI learns and improves the future recommendations. • If you dislike it, AI reduces the weight of similar movies in the future decisions. For the above-mentioned example, let’s say: I like action movies (1), I don’t like horror movies (0), the reviews are positive (1), and my favourite actor is in the film (1). We can convert these preferences into numbers, where “yes” is 1 and “no” is 0. For bias, we will always take 1. The combined effect of these values will influence whether I decide to watch the movie or not. AI mimics human decision-making by considering multiple factors, assigning importance, learning from past experiences, calculating a final-score. This structured, data-driven approach makes AI-powered decisions more valuable and effective, just like human judgment but without emotions.
210
Part B_AI Grade 10.indb 210
4/12/2025 4:04:44 PM
Activity Human Neural Network – The Game Objective of the game: To help the students experience and understand how neural network works by processing and filtering information through structured steps. Description of the game Students will act as nodes of a neural network with different layers: •
Input Layer
•
Hidden Layer 2
•
Hidden Layer 1
•
Output Layer
Each student takes on the role of a node in each of the specified layers, forming a human neural network. The facilitator presents an image exclusively to the students in the Input Layer. These students then describe the image using a single word, writing it on sticky notes. As the sticky notes or chits move through the layers, students refine, filter, and process them to ensure accuracy and relevance. Game Structure Layers
No. of Students
No. of Chits
Input Layer
7
6
Hidden Layer 1
6
4
Hidden Layer 2
6
2
Output Layer
1
-
Total
20
-
Game Rules •
No talking or discussing till the game ends.
•
Each layer should sit at a distance from the others.
•
Only the Input layer can see the image.
•
The game must be played silently.
•
Players write one word per chit and pass it forward.
•
Words cannot be sentences; only single words are allowed.
•
The process must be fast, ensuring efficiency.
•
Once a layer finishes its task, students must sit aside silently.
Game Instructions: 1. Input Layer (7 students)
• Each student observes the image and writes 6 distinct words that best describe it, each on a separate chit.
• They can also repeat the words if needed. • They pass one chit to each student in Hidden Layer 1.
2. Hidden Layer 1 (6 students)
• Each student receives 7 chits from different Input Layer nodes.
• They analyse the words, filter the important ones, and write 4 new words on 4 different chits.
• They can either use the same words as the input layer
did, or they can make their own information and write it.
• They pass these words to any 4 students in Hidden
Layer 2. For best results, each node of hidden layer 2 should get almost same number of chits.
Chapter 10 • How AI Makes Decisions
Part B_AI Grade 10.indb 211
211
4/12/2025 4:04:44 PM
3. Hidden Layer 2 (6 students)
• Each student receives some number of chits and again
4. Output Layer (1 student)
filters the information, writing 2 words on 2 different chits.
• They pass the chits to the Output Layer.
• Receives 12 chits with final words. • Analyses the words and guesses the image shown to the Input Layer.
• Writes a summary (max 5 lines) out of all the words received.
At last, the Output Layer presents the summary, and the real image is revealed. If the guess is correct, then the team wins.
INPUT LAYER
HIDDEN LAYER 1
HIDDEN LAYER 2
OUTPUT LAYER
Human Neural Network Game
Activity Exploring Neural Networks with TensorFlow Playground Objective: To help students visualise how neural networks process data, making AI concepts more interactive and engaging. Steps to Perform the Activity: 1. Visit the website: https://playground.tensorflow.org/. 2. You will be directed to the following web page.
212
Part B_AI Grade 10.indb 212
4/12/2025 4:04:45 PM
3. You will see a simple neural network with input features, hidden layers, and an output. 4. Notice the ‘DATA’ options on the left hand side that you want to use for your dataset and the network structure in the middle. You may choose a dataset (e.g., “Circle”, “Exclusive”, “Gaussian” or “Spiral”). 5. You may also increase or decrease the number of hidden layers and neurons to observe how it impacts learning or the ‘OUTPUT’ shown on the right hand side. 6. You may also select ‘Problem type’ from the drop-down (e.g., “Classification” or “Regression”) to see how it impacts the OUTPUT. 7. Discuss how changes in layers, neurons, and Problem type affect the network’s ability to classify data. 8. Compare results with classmates by using different settings.
Activity Time Activity 1: AI Assistant Recommending Books
(Individual Activity)
Imagine, you are an AI-assistant helping a person choose a book to read. You have data on their past reading preferences (e.g., genres they like, authors they have read before, and book ratings). How will you decide which book to recommend? List three factors you would consider and explain why they are important. Activity 2: AI System for a Food Delivery App
(Group Activity)
Form a team and act as an AI system for a food delivery app. Your task is to decide the best restaurant to recommend to a user based on past orders, user ratings, and delivery time. Discuss and list at least four key factors your AI system would use to make the best decision.
Chapter 10 • How AI Makes Decisions
Part B_AI Grade 10.indb 213
213
4/12/2025 4:04:45 PM
Chapter Checkup A Select the correct option.
1 What is the role of weights in the AI decision-making process? a To increase complexity
b To prioritise factors
c To confuse AI d To remove bias
2 A perceptron is mainly used to
.
a Store data b Make decisions based on inputs c Generate images d Create animations
3 What does the bias do in the perceptron?
a Adjusts the threshold b Makes decisions randomly
c Removes weights d Converts inputs to binary values
4 If an AI model assigns higher importance to the current weather, what does this mean? a Future weather is ignored c AI does not need input data
5 A threshold in AI decision-making is
:
a The maximum possible input c A factor with no importance
b AI makes random decisions
d Current weather influences decision more b A limit that determines the output d The sum of all inputs
B Fill in the blanks with the most suitable words. 1 AI assigns
to the factors to prioritise their importance.
2 A perceptron consists of inputs,
, and the threshold.
3 A perceptron helps AI decide by weighting inputs, summing them, and comparing to a 4 If the sum of inputs and bias is above the threshold, the AI will output 5 C
.
.
in AI is the process by which AI examines data, assesses potential outcomes, and decides on the optimal course of action.
State whether the following statements are True or False. Correct the statements that are false. 1 A perceptron cannot make the binary-decisions.
2 Weights determine how much influence each factor has in the decision-making. 3 Bias is always set to zero in AI decision-models. 4 AI decision-making is always perfect and never makes mistakes. 5 AI continuously learns from the user feedback. D Answer the following questions. (Solved) Q1. What is the role of a perceptron in the AI decision-making process? A1. A perceptron, a type of neuron, helps AI make decisions by assigning numerical weights to different inputs, summing them up, and comparing the result to a threshold. Q2. How do personal preferences affect the AI decision-making process? A2. Personal preferences determine how much importance a person assigns to different factors, affecting the AI’s decision. For example, one person might prioritise ratings while another prioritises genre, leading to different recommendations. Q3. Why are weights important in the perceptron model? A3. Weights help AI determine the significance of each input in making decisions. Higher weights indicate more important factors, ensuring that AI prioritises relevant information while making predictions.
214
Part B_AI Grade 10.indb 214
4/12/2025 4:04:46 PM
Q4. Explain with an example how AI makes a decision using a perceptron. A4. AI uses a perceptron by assigning numerical weights to different inputs, summing them up, and comparing the result to a threshold to make a decision. For example, in a movie recommendation system, inputs like genre match, ratings, and friend recommendations are given specific weights. If the weighted sum exceeds the threshold, the AI recommends the movie; otherwise, it does not. Q5. What happens if the bias is too high or too low? A5. If the bias is too high, the perceptron requires a much larger weighted sum to activate, making it more selective and less likely to give a positive output. If the bias is too low, the perceptron becomes less selective, allowing activation even when fewer conditions are met. This affects how easily the perceptron reaches the threshold for decision-making. Q6. Kanika is developing an AI-based shopping assistant that suggests products based on customer preferences. She assigns different weights to factors like price, brand reputation, user ratings, and past purchases. How does assigning weights to different factors help the AI make better recommendations? Explain with an example. A6. Assigning weights helps the AI prioritise the most important factors while making recommendations. Factors with higher weights influence the decision more, ensuring that the AI suggests products that align better with user preferences. For example, if Kanika’s AI is recommending a smartphone, it might assign the following weights: Brand reputation (0.4): Customers often prefer trusted brands. User ratings (0.3): Higher ratings indicate better user satisfaction. Price (0.2): Budget is important but may not be the top priority. Past purchases (0.1): Previous buying patterns provide additional insights. If a customer values brand reputation the most, the AI will recommend a well-known brand with good reviews, even if it is slightly more expensive. This ensures a more personalised and effective recommendation system.
AI Activities Visit the link: https://playground.tensorflow.org/ to learn and experiment with neural networks.
Answer Key A
1. b
B
1. Weights
C
1. False. A perceptron makes binary decisions.
2. b
3. a 2. Bias
4. d 3. Threshold
5. b 4. 1 (or an activated response)
5. Decision-making
2. True
3. False. Bias can have any value. 4. False. AI can make mistakes. 5. True
Chapter 10 • How AI Makes Decisions
Part B_AI Grade 10.indb 215
215
4/12/2025 4:04:46 PM
Unit Reflection
Key Terms • Artificial Intelligence (AI): AI is the science of creating intelligent machines that can think, learn, and act like humans, enabling them to solve complex problems and make decisions. • Machine Learning (ML): ML is a branch of AI that allows machines to analyse data, recognise patterns, and improve their performance without being explicitly programmed. • Deep Learning (DL): DL is an advanced form of machine learning that uses neural networks with multiple layers to process large amounts of data and perform tasks like image recognition and speech processing. • Object Classification: This is the process where AI models analyse images and categorise objects based on their features, helping in tasks like face recognition and medical diagnosis. • Anomaly Detection: AI-based anomaly detection identifies unusual patterns in data that differ from normal behaviour, helping in fraud detection, network security, and quality control. • Features: Features are the measurable characteristics or attributes of a dataset, which are used as input variables in machine learning models to make predictions. • Labels: Labels represent the target outcome or category that a machine learning model is trained to predict, such as identifying whether an email is spam or not. • Training Data: Training data is a dataset that helps AI models learn patterns, relationships, and trends so they can make accurate predictions when given new data. • Testing Data: Testing data is a separate dataset used to evaluate how well an AI model has learned from the training data, ensuring its accuracy and reliability. • Data Labelling: This is the process of tagging raw data with meaningful information, such as labelling images of cats and dogs, to help AI models learn to classify them correctly. • Modelling: Modelling is the fourth stage in the AI project cycle, where a model is developed to analyse data, make predictions, or assist in decision-making. • Rule-Based Approach: A rule-based approach in AI uses predefined rules set by developers to make decisions, such as filtering emails based on specific keywords. • Learning-Based Approach: In this AI modelling method, the system learns patterns from data without relying on predefined rules, allowing it to adapt and improve over time. • Neural Network: A neural network is a computational model inspired by the human brain, consisting of layers of interconnected neurons that help AI systems recognise patterns and make intelligent decisions. • Nodes (Neurons): These are the basic processing units in a neural network that receive input, apply computations, and pass information to the next layer. • Hidden Layers: Hidden layers in a neural network process input data, extracting patterns and features that help in complex decision-making tasks. • Backward Propagation: This is a learning process in neural networks where the system adjusts its internal weights and biases based on the errors it makes, improving its accuracy.
216
Part B_AI Grade 10.indb 216
4/12/2025 4:04:46 PM
• Activation Function: An activation function determines whether a neuron should be activated or not, helping AI models make decisions based on input data. • Algorithm: An algorithm is a structured set of step-by-step instructions that a computer follows to solve a problem or complete a task efficiently. • Data Training: Data training involves feeding large datasets into an AI system to help it learn, improve accuracy, and make better predictions or decisions.
Things to Remember • AI enables machines to mimic human intelligence and perform tasks like decision-making and learning. • Machine Learning improves system performance by analysing past data and refining predictions. • Deep Learning uses artificial neural networks to process data and make intelligent decisions. • Object classification in AI assigns labels to different objects in an image. • Anomaly detection is useful for identifying irregularities, such as fraudulent bank transactions. • Data is the foundation of AI models, helping them make accurate predictions. • Features act as input variables that describe data, while labels represent the correct answers. • Machine learning models are trained using labelled data and tested using separate datasets. • Labelled data is crucial for supervised learning, while unlabelled data is used in unsupervised learning. • Modelling is an essential stage in the AI project cycle that follows data exploration. • Rule-based AI models operate based on predefined rules and cannot learn from new data. • Learning-based AI models improve their performance over time as they learn from new data. • AI models can be used for classification, regression, and clustering tasks. • Testing an AI model ensures its accuracy and ability to make correct predictions on new data. • AI is used in various fields, including healthcare, education, and robotics. • Ethics in AI is important to ensure fair and unbiased decision-making. • Neural networks can recognise complex patterns in data but do not “see” images the way humans do. • The first model of an artificial neural network, called the Perceptron, was developed in 1958 by Frank Rosenblatt. • Neural networks learn through training using forward propagation, loss calculation, and backward propagation. • The input layer receives raw data, the hidden layers process it, and the output layer provides the final result. • Neural networks are widely used in image recognition, speech processing, and autonomous vehicles. • AI uses algorithms to process data and make predictions. • Neural networks are modelled after the human brain and help in complex problem-solving. • AI is used in various fields, including healthcare, education, and transportation.
Unit Reflection
Part B_AI Grade 10.indb 217
217
4/12/2025 4:04:46 PM
Test Your Knowledge A. Select the correct option. 1. Which of the following is an example of Anomaly Detection? a. Identifying different fruits in an image
b. Detecting a sudden spike in temperature data
c. Translating text into different languages
d. Playing songs based on mood
2. What role do neural networks play in Deep Learning? a. They create static algorithms b. They process large amounts of data and recognise patterns c. They identify anomalies in simple datasets d. They only function for rule-based systems 3. What is the purpose of a testing dataset? a. To train the AI model
b. To evaluate the model’s performance
c. To store unused data
d. To improve model efficiency
4. Which of the following best describes labelled data? a. Data without any assigned output values b. Data used only in unsupervised learning c. Data that includes both input values and corresponding output values d. Data that is randomly collected without any structure 5. Which of the following is a limitation of rule-based AI models? a. They can update their rules automatically
b. They adapt to new data easily
c. They do not modify their rules after training
d. They do not require predefined rules
6. In a learning-based AI model, what is necessary for training? a. A predefined rule set
b. A large dataset
c. Manual adjustments after each prediction
d. Fixed responses
7. Which of the following is an example of Natural Language Processing? a. Self-driving cars
b. Chatbots
c. Image recognition
d. Weather forecasting
8. AI-powered robots are commonly used in: a. Agriculture
b. Space exploration
c. Manufacturing
d. All of these
9. Which function helps neural networks determine the activation of a neuron? a. Loss Function
b. Forward Propagation
c. Activation Function
d. Data Scaling
218
Part B_AI Grade 10.indb 218
4/12/2025 4:04:47 PM
10. Which of the following is an essential step in neural network training? a. Storing large amounts of data
b. Manual coding of all rules
c. Adjusting weights using backward propagation
d. Ignoring incorrect predictions
11. What enables machines to learn from data and improve over time? a. Machine Learning
b. Hardware Processing
c. Cloud Computing
d. None of these
12. What is an example of AI in everyday life? a. Watching TV
b. Using a virtual assistant like Siri or Alexa
c. Writing a letter
d. Walking in a park
B. Fill in the blanks with the most suitable words. 1.
is a subset of AI that allows machines to improve through experience.
2. In Deep Learning,
are used to process information and recognise patterns.
3. The characteristics or attributes of a dataset that help an AI model make predictions are called
.
4. A dataset that has been tagged with relevant information to provide meaning is known as
data.
5. A
AI model operates using a predefined set of instructions created by developers.
6. A
AI model improves over time by adapting to new and unseen data.
7.
is a branch of AI that enables computers to recognise and process images.
8. AI systems rely on large amounts of 9. The
to make accurate predictions.
layer is responsible for receiving raw input data in a neural network.
10. The process where a neural network adjusts its weights based on errors is called 11.
.
is a subset of AI that enables machines to learn from past experiences.
12. A set of step-by-step instructions used by a computer to solve a problem is called an
.
C. State whether the following statements are True or False. Correct the statements that are False. 1. Machine Learning does not require data for training. 2. Deep Learning models can recognise objects in images more accurately than humans in certain cases. 3. A testing dataset is used to train the AI model. 4. Data labelling is important in supervised learning. 5. Learning-based AI models do not require training data. 6. Rule-based AI models can adapt and improve their performance over time. 7. AI can only be used in the field of robotics. 8. Deep learning is a subset of machine learning that uses neural networks. 9. Neural networks require explicit programming of all features before making predictions. 10. The output layer of a neural network processes data before presenting it to the user. 11. AI can help doctors diagnose diseases more accurately. 12. Neural networks do not play any role in AI-based decision-making.
Unit Reflection
Part B_AI Grade 10.indb 219
219
4/12/2025 4:04:47 PM
D. Short-answer type questions. 1. What is the relationship between AI, ML, and DL? 2. Give an example of how Deep Learning is used in self-driving cars. 3. What is the difference between labelled and unlabelled data? 4. Why is the training dataset important in machine learning? 5. What are the main steps involved in AI modelling? 6. Why does a rule-based AI model struggle with unforeseen conditions? 7. What is the role of AI in healthcare? 8. How does AI impact education? 9. What is the role of hidden layers in a neural network? 10. Why is backward propagation important in a neural network? 11. What is the role of Machine Learning in AI? 12. How do neural networks help in AI?
E. Long-answer type questions. 1. How does Machine Learning improve performance, and how is it different from Deep Learning? 2. Explain the concept of Object Classification with an example. 3. Explain the role of features and labels in a machine learning model with an example. 4. Describe how an AI model is trained and tested using datasets. 5. Explain the difference between rule-based AI and learning-based AI with examples. 6. Why is testing important in AI modelling? Describe the process. 7. Explain the importance of ethics in Artificial Intelligence. 8. Describe any three real-world applications of AI. 9. Explain how an artificial neural network processes information from input to output. 10. What are some real-world applications of artificial neural networks? 11. Explain how AI is transforming different industries with examples. 12. Describe the importance of data training in AI.
F. Competency-based Questions. 1. Riya’s smartwatch detects an unusual increase in her heart rate and alerts her to consult a doctor. Which AI concept is being used here, and why is it important?
2. A security system in an airport scans passengers’ faces to match them with their ID cards. What AI technology is being used, and how does it work?
3. A food delivery app wants to predict the estimated delivery time for orders. Identify the possible features and labels for the AI model.
4. A school wants to develop an AI model to predict student grades based on their performance. What features and labels would be useful?
220
Part B_AI Grade 10.indb 220
4/12/2025 4:04:47 PM
5. A hospital is using a chatbot for booking patient appointments. Should they use a rule-based or learning-based AI model? Justify your answer.
6. A company wants to improve its product recommendation system for online shopping. Which AI approach should they use, and why?
7. Raj noticed that his phone suggests words while typing a message. Which AI technology is responsible for this? Explain. 8. Priya uses an AI-powered voice assistant to set reminders and play music. What AI features enable this functionality? 9. Imagine you are building a chatbot that understands customer queries. How would an artificial neural network help improve its responses?
10. A self-driving car needs to recognise traffic lights. Describe how an artificial neural network would process this information. 11. Rohan uses a voice assistant to set reminders and search for information. How does AI enable this feature, and what technology is behind it?
12. An e-commerce website recommends products based on previous purchases and browsing history. How is AI being used in this case, and why is it beneficial?
Unit Reflection
Part B_AI Grade 10.indb 221
221
4/12/2025 4:04:47 PM
Unit 3 • Evaluating Models
11 Model Evaluation
I
n artificial intelligence, model evaluation is a necessary component of the model development process. It assists in determining which model best captures our data and how well the selected model can perform in the future. In this chapter, we will look at the importance of model evaluation and study how to split the training set data for evaluation.
Model Evaluation
Model evaluation is a technique that employs metrics to assist us analyse the performance of the model. It ensures that AI models perform effectively, make accurate predictions, and meet user requirements. Proper evaluation helps identify errors, biases, and areas for improvement in AI models. There are two ways to do it:
Offline Evaluation
Offline evaluation is conducted after a model has been trained. It involves testing the model using a predefined dataset to measure its performance before deploying it in real-world applications. This approach helps refine the model through experimentation, retraining, and tuning hyperparameters to improve accuracy. For example, consider a self-driving car model being trained to recognise stop signs. Before deploying it on real roads, engineers test it on a dataset containing thousands of stop sign images. If the model accurately identifies stop signs in the test dataset, it indicates that it is ready for further testing in real-world environments.
222
Part B_AI Grade 10.indb 222
4/12/2025 4:04:48 PM
Online Evaluation
Online evaluation takes place while the model is in production and being actively used. It involves continuous tracking of the model’s performance and making adjustments when necessary. This is crucial for models that operate in dynamic environments where data patterns may change over time. For example, a recommendation system used by an e-commerce website continuously tracks customer behaviour. If the model suggests irrelevant products over time, adjustments are made based on customer interactions to improve future recommendations. For example: Training a model like teaching a student.
You learn a subject
Training the model with train data
You take a test
Testing the
model with test data
You assess the result
Evaluating the model
You thrive for better results
Fine tuning the
model for better performance
In this example, model evaluation is similar to taking a test to determine whether someone genuinely understand the subject or simply learnt the answers. After creating a model and obtaining input, you make adjustments and keep going until you reach the desired level of accuracy.
Need for Model Evaluation
In machine learning, model evaluation is a crucial step to determine how well a model performs on new, unseen data. It helps us understand the model’s strengths, weaknesses, and suitability for the intended task. Before deploying a model in real-world applications, it is essential to ensure its reliability and accuracy. The model evaluation is important because of the following reasons: Evaluating Model Performance: It provides a measurable way to determine how well a model makes predictions and whether it meets the required accuracy. Avoiding Overfitting and Underfitting: Ensures that the model does not memorise training data (overfitting) or fail to learn patterns effectively (underfitting). Comparing Various Models: Allows us to select the best-performing model by testing multiple algorithms on the same dataset. Maintaining Reliability in Real-World Applications: Ensures that the model can handle new data accurately, making it dependable for practical use. Tuning Hyperparameters: Helps optimise model parameters such as learning rate, number of layers in a neural network, or depth of a decision tree for improved performance. Once we understand the importance of model evaluation, the next step is learning how to conduct it effectively. Different evaluation techniques exist depending on the nature and purpose of the model.
Chapter 11 • Model Evaluation
U26AI1011.indd 223
Think and Tell
What happens if a model performs well on training data but poorly on new data?
223
4/15/2025 12:18:13 PM
Splitting the Training Set Data for Evaluation
To accurately assess a machine learning model, we divide the dataset into subsets. This helps us understand how well the model generalises to previously unseen data. One of the most common techniques for this purpose is the Train-Test Split.
Train-Test Split
The train-test split is a fundamental method used to evaluate a machine learning model’s performance. It is particularly useful when dealing with large datasets. The dataset is divided into two parts: •
Training Set (typically 70–80%) – Used to train the model so it can learn patterns from the data.
•
Test Set (20–30%) – Used to evaluate the model’s final performance on unseen data.
•
This technique ensures that the model is tested on new data, providing a realistic measure of its ability to make accurate predictions beyond the training set.
Remember
Dataset – 100% Split 80%
20%
Training Set
Test Set
Common Train-Test Split Ratios • 80% Train / 20% Test (Standard for most ML problems) • 70% Train / 30% Test (More robust evaluation) • 90% Train / 10% Test (Useful for small datasets) • 60% Train / 20% Validation / 20% Test (Used for hyperparameter tuning)
Need of Train-Test Split
The train-test split is necessary because of the following reasons: Avoiding Overfitting: A model trained only on one dataset may memorise patterns rather than understanding them. If tested on the same data, it would perform exceptionally well but fail on new data. This is known as overfitting. By testing the model on unseen data, we get a more realistic estimate of its performance. Example: A student who memorises answers from a textbook may do well on homework but struggle with unseen questions on an exam. Evaluates Generalisation: The real test of a model is whether it can correctly predict outcomes for new data, not just the data it was trained on. Example: A doctor trained to diagnose diseases should be able to diagnose new patients, not just the ones they studied. Adjusting Hyperparameters: Some machine learning models have settings that affect their accuracy (such as the number of layers in a neural network). A validation set (a small portion of the training data) is often used to tune these hyperparameters before final testing. Example: Adjusting the sensitivity of a speech recognition model so it correctly identifies words spoken in different accents.
224
Part B_AI Grade 10.indb 224
4/12/2025 4:04:48 PM
Prevents Data Leakage: If test data is inadvertently used during training, the model might learn patterns that does not exist in real-world applications, leading to unrealistically high accuracy during testing. Example: If a student receives an answer sheet before an exam, they will score well, but this does not reflect their actual understanding. Practical Use of Train-Test Split
This technique reflects how models are expected to function in the real world. They are trained on available data with known outcomes and then used to make predictions on new, unknown data. Example: A fraud detection model is trained on past fraudulent transactions and then tested to see if it can accurately detect new cases of fraud.
Did You Know?
Example: A weather forecasting model learns from historical weather patterns and is evaluated by predicting future weather conditions.
The Kirkpatrick Model is the
By properly splitting the dataset, we can ensure that our model is robust, reliable, and ready for real-world deployment.
utilised training evaluation
most popular and commonly model currently in use.
Activity Time Activity 1: Real-World Dataset Evaluation
(Group Activity)
Divide students into groups and assign each group a different dataset (e.g., stock market trends, weather patterns,
customer purchase history). Have them analyse the dataset, identify patterns, and discuss how a machine learning model could be trained to make predictions.
Activity 2: Train-Test Split Implementation
(Pair Activity)
Provide students with a sample dataset. Have them divide the data into training (70–80%) and testing (20–30%) sets. Ask them to discuss why it is important to separate training and testing data and how this impacts model performance.
Chapter Checkup A Select the correct option.
1 Why is model evaluation important?
a It helps in selecting the best model for a problem.
b It ensures the model generalises well to unseen data. c It helps identify overfitting and underfitting.
d All of these
2 What is the purpose of a test set in model evaluation? a To train the model for better accuracy
b To fine-tune hyperparameters
c To evaluate the model’s performance on unseen data
d To remove noise from the dataset
Chapter 11 • Model Evaluation
Part B_AI Grade 10.indb 225
225
4/12/2025 4:04:49 PM
3 Which of the following best explains why a train-test split is necessary in machine learning? a To ensure the model memorises all training data for higher accuracy
b To evaluate how well the model generalises to new, unseen data c To eliminate the need for hyperparameter tuning
d To use the test data for training the model 4 What happens if the test set is too small?
a The evaluation results may not be reliable.
b The model will always overfit.
c The training time increases significantly.
d The accuracy of the model improves.
B Fill in the blanks with the most suitable words. 1 A validation set is necessary when adjusting
.
2
is used to evaluate the final model performance.
3
is a technique that employs metrics to assist us analyse the performance of the model.
4 A model that performs well on training data but fails to generalise to new data is said to be experiencing C
.
State whether the following statements are True or False. Correct the statements that are false. 1 Overfitting occurs when a model performs well on training data but poorly on test data. 2 Model evaluation is only necessary when the model performs poorly. 3 If test data is used to train the model, it may learn patterns that do not exist in real-world circumstances, resulting in incorrectly high accuracy. 4 A train-test split helps evaluate a machine learning model’s ability to generalise to new, unseen data.
D Answer the following questions. (Solved)
Q1. Why model evaluation is important in machine learning?
A1. The model evaluation is important because of the following reasons:
Evaluating Model Performance: It provides a measurable way to determine how well a model makes predictions and whether it meets the required accuracy.
Avoiding Overfitting and Underfitting: Ensures that the model does not memorise training data (overfitting) or fail to learn patterns effectively (underfitting).
Comparing Various Models: Allows us to select the best-performing model by testing multiple algorithms on the same dataset. Maintaining Reliability in Real-World Applications: Ensures that the model can handle new data accurately, making it dependable for practical use.
Tuning Hyperparameters: Helps optimise model parameters such as learning rate, number of layers in a neural network, or depth of a decision tree for improved performance. Q2. What is the need of Train-test split? State two reasons.
A2. The train-test split is necessary because of the following reasons:
Avoiding Overfitting: A model trained only on one dataset may memorise patterns rather than understanding them. If tested on the same data, it would perform exceptionally well but fail on new data. This is known as overfitting. By testing the model on unseen data, we get a more realistic estimate of its performance.
Example: A student who memorises answers from a textbook may do well on homework but struggle with unseen questions on an exam.
Evaluates Generalisation: The real test of a model is whether it can correctly predict outcomes for new data, not just the data it was trained on. Example: A doctor trained to diagnose diseases should be able to diagnose new patients, not just the ones they studied.
226
Part B_AI Grade 10.indb 226
4/12/2025 4:04:49 PM
Q3. A company develops a machine learning model to detect spam emails. During testing, the model performs exceptionally well on training data but fails to identify spam correctly in real-world emails. What might be the issue, and how could model evaluation techniques help improve the model’s performance?
A3. The model is likely overfitting to the training data, meaning it has memorised patterns instead of learning general spam characteristics. Using techniques like train-test split would help assess its real-world performance and improve generalisation.
AI Activities 1 Visit the link: https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html and explore some more examples.
2 Visit the link: https://machinelearningmastery.com/train-test-split-for-evaluating-machine-learning-algorithms/ and understand how to Configure the Train-Test Split?
Answer Key A
1. d
B
1. hyperparameters
C
1. True
2. c
3. b
4. a
2. Test Set
3. Model evaluation
4. Over-fitting
2. False. Model evaluation is always necessary to check performance, even if the model seems to work well. 3. True 4. True
Chapter 11 • Model Evaluation
Part B_AI Grade 10.indb 227
227
4/12/2025 4:04:50 PM
Unit 3 • Evaluating Models
12 Accuracy and Error
I
n the world of Artificial Intelligence (AI), evaluating the performance of a model is an essential step. When machines make predictions, it is important to know how correct or incorrect those predictions are. This chapter introduces two important concepts that help us measure the performance of AI models—Accuracy and Error. Understanding accuracy and error helps developers select the best model for solving different problems. Higher accuracy means better performance, while lower error indicates that the model is making fewer mistakes. Through real-life examples and scenarios, this chapter will explain how these metrics work and why they are important in building reliable AI systems.
Scenario
David and Mia are estimating the height of a tree in their schoolyard. The actual height of the tree is 17 metres. David estimates it to be 20 metres. Mia estimates it to be 16 metres. Who is more accurate? David’s error = |20 – 17| = 3 metres Mia’s error = |17 – 16| = 1 metre Since Mia’s error (1 metre) is smaller than David’s error (3 metres), Mia is more accurate in estimating the tree’s height. This scenario highlights how accuracy depends on how close an estimate is to the actual value, and error represents the deviation from the correct measurement. Evaluating the performance of AI models before using them in the real world is important to ensuring their effectiveness. Proper evaluation helps refine AI models that makes them more reliable and accurate.
170
170
160
160
150
150
140
140
130
130
120
120
110
110
100
100
90
90
80
80
70
70
60
60
50
50
Two key aspects of evaluation are accuracy and error.
228
Part B_AI Grade 10.indb 228
4/12/2025 4:04:50 PM
Accuracy
Accuracy is a metric used to evaluate AI models. It measures the proportion of correct predictions out of the total predictions, indicating how often the model makes correct predictions. The accuracy of a model is directly proportional to its performance—higher accuracy generally means better performance.
Error
Error can be described as an action that is inaccurate or wrong. It refers to an incorrect prediction or an inaccuracy in the model’s output. It represents the difference between the model’s estimated value and the actual value, showing how far the model’s predictions deviate from the true values. Error metrics help us understand a model’s strengths and weaknesses. By carefully analysing and minimising errors, AI models can be improved to deliver more reliable and meaningful outcomes. In Machine Learning, error analysis assesses a model’s performance on both training and unseen data. By examining errors, developers can identify areas for improvement and select the most suitable model for a given dataset. Based on the present error, the AI model parameters are fine tuned to reduce further error
Input Data
AI model
Predicted value Error Actual value
Error Alert! AI can make errors due to poor-quality data, software bugs, or hardware issues. Achieving high accuracy requires both human oversight and machine precision.
Example Imagine you are training a model to predict whether an email is spam or not spam (classification task). •
Error: If the model predicts an important email as spam, but it was actually not spam, that’s an error.
Important Email
AI Model
Prediction
Classified as Spam
(Wrong prediction, error detected)
Chapter 12 • Accuracy and Error
Part B_AI Grade 10.indb 229
229
4/12/2025 4:04:50 PM
•
Accuracy: If the model correctly classifies all emails as spam or not spam for a given dataset, it achieves 100% accuracy for that set. Important Email
AI Model
Spam Email
AI Model
Prediction
Classified as Not Spam
Prediction
Classified as Spam
Error Alert! Real-world data can be messy, and even the best models
Remember
make mistakes.
Activity Find the Accuracy of the Student Score Prediction AI Model.
Sometimes, focusing solely on accuracy might not be ideal. For instance, in medical diagnosis, a model with slightly lower accuracy but a strong focus on avoiding incorrectly identifying a healthy person as sick might be preferable.
Objective: To understand how to calculate error and accuracy by applying mathematical calculations. Instructions: •
Fill in the missing values using the formulas provided. One has been done for you.
•
Calculate the mean accuracy of all five samples.
•
Multiply accuracy by 100 to get percentage accuracy. Predicted Score (out of 100)
Actual Score (out of 100)
Error Abs (Actual - Predicted)
Error Rate (Error/Actual)
Accuracy (1 - Error Rate)
Accuracy % (Accuracy * 100) %
78
82
Abs (82 – 78) = 4
4/82 = 0.048
1 – 0.048 = 0.952
0.952 * 100 = 95.2%
90
95
65
70
88
92
73
80
* Abs means the absolute value, which means only the magnitude of the difference between predicted and actual score without any negative sign (if any).
230
Part B_AI Grade 10.indb 230
4/12/2025 4:04:50 PM
Activity Time (Group Work)
Activity: Understanding Error and Accuracy in AI
Discuss the impact of error and accuracy in AI models. Divide the students into small groups of 4–5 members each. Ask each group to discuss:
1. What are error and accuracy in AI? 2. How do they affect AI performance? 3. Real-world examples (spam filters, medical AI, self-driving cars). After the discussion, each group will present their findings, emphasising key insights such as the difference between accuracy and error, how they impact different AI applications, and what factors influence them.
Chapter Checkup A Select the correct option.
1 What are the two key aspects of evaluating AI models? a Accuracy and errors c Prediction and execution
2 What does an error represent in an AI model? a A correct prediction
c The total number of predictions made
3 In machine learning, error analysis helps to: a Select the best model
b Data collection and storage
d Data collection and data visualisation b A wrong or inaccurate prediction d A fully trained AI model b Delete errors
c Ignore accuracy d Stop training
4 If an AI model predicts an important email as spam, this is an example of: a High accuracy b Data collection c Correct classification d Error
5 How can AI models be improved?
a By ignoring errors c By analysing and minimising errors
b By increasing errors
d By reducing training data
B Fill in the blanks with the most suitable words. 1
is a metric used to measure how often an AI model makes correct predictions.
2 The difference between a model’s estimated value and the actual value is called 3 Accuracy and performance of an AI model are
proportional.
4 In machine learning, error analysis helps measure a model’s accuracy on 5 A model with C
accuracy has no errors.
.
and
data.
State whether the following statements are True or False. Correct the statements that are False. 1 Higher error means better AI model performance.
2 AI models must be evaluated before using them in the real world.
3 Error is the difference between the model’s estimated value and the actual value. 4 AI models do not need error analysis to improve their predictions.
5 By examining errors, developers can identify areas for improvement.
Chapter 12 • Accuracy and Error
Part B_AI Grade 10.indb 231
231
4/12/2025 4:04:51 PM
D Answer the following questions. (Solved) Q1. Why is it important to evaluate AI models before using them in the real world? A1. Evaluating the performance of AI models before using them in the real world is important to ensuring their effectiveness. Proper evaluation helps refine AI models, making them more reliable and accurate. Q2. What does accuracy measure in an AI model? A2. Accuracy is a metric used to evaluate AI models. It measures the proportion of correct predictions out of the total predictions, indicating how often the model makes correct predictions. Q3. What is the relationship between accuracy and performance in an AI model? A3. The accuracy of a model is directly proportional to its performance—higher accuracy generally means better performance. Q4. How does error analysis help in evaluating a machine learning model’s performance? A4. In Machine Learning, error analysis assesses a model’s performance on both training and unseen data. By examining errors, developers can identify areas for improvement and select the most suitable model for a given dataset. Q5. A hospital AI system predicts whether a patient has a disease. If the AI incorrectly predicts that a healthy patient has the disease, what type of issue is this? a. Is this an error or an accurate prediction? b. How could this impact the patient? A5. a. This is an error. b. The patient may undergo unnecessary tests or treatment, leading to stress and increased medical costs.
AI Activities Let’s revise the concept of Accuracy and Error: https://www.youtube.com/watch?v=JbEo46uV6d4&t=47s
Answer Key A
1. a
B
1. Accuracy
C
1. False. Higher accuracy means better AI model performance.
2. b
3. a 2. Error
4. d 3. Directly
5. c 4. Training, unseen
5. 100%
2. T rue 3. True
4. False. AI models need error analysis to identify mistakes and improve their predictions, making them more reliable. 5. True
232
Part B_AI Grade 10.indb 232
4/12/2025 4:04:52 PM
Unit 3 • Evaluating Models
13 Evaluation Metrics for Classification
H
ave you ever sorted objects into different groups? Imagine separating clean and dirty clothes, arranging books by subject, or deciding whether an email is important or spam. These everyday tasks involve classification— categorising things based on specific characteristics.
What is Classification?
In AI, classification helps machines identify whether a message is spam or recognising handwritten digits. Classification refers to a problem where a specific type of class label is the result to be predicted from the given input field of data. Let us understand this through a scenario.
Scenario
Imagine you are a security officer monitoring people entering a building. •
Employees with ID cards are allowed to enter.
•
Visitors without ID cards need to register first.
Based on whether a person has an ID card or not, they are classified into: •
Employees
•
Visitors
In this scenario, you are classifying people into two categories: Employees and Visitors. Similarly, classification in AI involves training a model to categorise data into predefined classes.
Popular Metrics Used for Classification
Following are the popular metrics used for classification: •
Confusion matrix
•
Recall
•
Accuracy
•
F1 Score
•
Precision
We will study these metrics in detail in this chapter.
233
Part B_AI Grade 10.indb 233
4/12/2025 4:04:52 PM
As already discussed, in the evaluation stage of the AI project cycle, we test all the models to see which one works best and gives the most reliable results. We try different ways to test our models to make sure they are accurate and efficient before we decide which one to use in the real world. During the process of evaluating our model, we come across different terms. Let us understand them with the help of an example.
Understanding Model Evaluation: Prediction vs. Reality
Imagine an AI-based prediction model deployed in a vegetable sorting factory. The model’s objective is to predict whether vegetables are fresh or rotten. To understand how well our model works, we compare its predictions with the actual scenario in the area in which this prediction model has been deployed. So, we have two conditions to consider: prediction and reality. •
Prediction: This is the output given by the machine.
•
Reality: This is the actual situation in the field at the time the prediction was made.
Now, let us look at various scenarios based on these conditions:
Scenario 1 Case 1: Are the vegetables fresh?
In the picture, we can see that the vegetables are fresh. True Positive (TP) Prediction: The model predicts the vegetables are fresh. Reality: The vegetables are indeed fresh. Output: Correct prediction. It indicates that the model successfully predicted fresh vegetables. Prediction
Yes
Reality
Yes True Positive
Case 2: Are the vegetables fresh?
In the picture, we can see that the vegetables are rotten. True Negative (TN) Prediction: The model predicts the vegetables are rotten. Reality: The vegetables are indeed rotten. Output: Correct prediction. The machine correctly predicts that the vegetables are rotten. Prediction
No
Reality
No True Negative
234
Part B_AI Grade 10.indb 234
4/12/2025 4:04:54 PM
Case 3: Are the vegetables fresh?
Here, we can see that the vegetables are not fresh. False Positive (FP) Prediction: The model predicts the vegetables are fresh. Reality: The vegetables are not fresh. Output: Incorrect prediction. It indicates that the model incorrectly predicts that the vegetables are fresh when they are actually not. Prediction
Yes
Reality
No False Positive
Case 4: Are the vegetables fresh?
Here, we can see in the picture that the vegetables are fresh. False Negative (FN) Prediction: The model predicts the vegetables are rotten. Reality: The vegetables are actually fresh. Output: Incorrect prediction. It indicates that the model incorrectly predicts rotten vegetables when the vegetables are actually fresh. Prediction
No
Reality
Yes False Negative
Scenario 2
Consider that we use AI-based prediction model that checks and gives predictions if a patient has a particular disease. The main purpose of this model is to predict the possibility of disease of that patient. Thus, we need to check the accuracy of this model, and therefore, we check, whether the prediction is right or wrong. Let us consider different cases for the same scenario:
Case 1: Does the patient have a disease? Prediction: The model predicts that the patient has a disease.
Reality: As we can see in the provided picture, the patient does have the disease. Output: The machine correctly predicts that the patient has disease. Therefore, this is a case of True Positive. Prediction
Yes
Reality
Yes True Positive
Chapter 13 • Evaluation Metrics for Classification
Part B_AI Grade 10.indb 235
235
4/12/2025 4:04:57 PM
Case 2: Does the patient have disease? Prediction: The model predicts that the patient does not have disease. Reality: As we can see in the provided picture, the patient does not have the disease. Output: The machine correctly predicts that the patient does not have the disease. Therefore, this is a case of True Negative. Prediction
No
Reality
No True Negative
Case 3: Does the patient have disease? Prediction: The model predicts that the patient has disease. Reality: As we can see in the provided picture, the patient does not have the disease. Output: The model incorrectly predicts yes. There is a mismatch between reality and prediction. Therefore, this is a case of False positive. Prediction
Yes
Reality
No False Positive
Case 4: Does the patient have a disease? Prediction: The model predicts that the patient does not have a disease. Reality: As we can see in the provided picture, the patient does have the disease. Output: The model incorrectly predicts No when in reality it’s a Yes. Therefore, prediction is False Negative. Prediction
No
Reality
Yes False Negative
In summary, this is what the following terminologies mean: True Positive (TP): When the value predicted by the model is positive and the actual value is also positive. True Negative (TN): When the value predicted by the model is negative and the actual value is also negative. False Positive (FP) (Type I Error): When the value predicted by the model is positive but the actual value is negative. False Negative (FN) (Type II Error): When the value predicted by the model is negative but the actual value is positive.
Confusion Matrix
In the evaluation stage of an AI model, a confusion matrix is a table that helps visualise the performance of the model by summarising the counts of correct and incorrect predictions. It allows us to see the actual and the
236
Part B_AI Grade 10.indb 236
4/12/2025 4:05:01 PM
predicted results in a structured format. We use the confusion matrix to evaluate the performance of a classification model. Reality
negative
positive
Prediction
positive
True Positive (TP) •
Prediction and Reality
•
Prediction and Reality
•
Prediction is True
•
Prediction is True
matches (True) (Positive)
False Negative (FN) negative
False Positive (FP) do not match (False) (Positive)
True Negative (TN)
•
Prediction and Reality
•
Prediction and Reality
•
Prediction is False
•
Prediction is False
do not match (False) (Negative)
matches (True) (Negative)
The following is an example of a confusion matrix for predicting whether vegetables are fresh or not. Reality: Fresh
Reality: Rotten
Prediction: Fresh
True Positive (TP)
False Positive (FP)
Prediction: Rotten
False Negative (FN)
True Negative (TN)
Activity Build the Confusion Matrix
Objective: To make a confusion matrix based on the data given for the containment zone prediction model.
Consider a scenario where an AI prediction model is deployed to predict whether a specific area will be a containment zone due to a disease outbreak. The aim of the model is to classify areas as either “containment zone” or “not a containment zone”. Containment zone: A specific geographical area identified and isolated from other areas by government and health agencies to control the spread of an infectious disease. Consider and complete the following table. You need to identify areas as either “containment zone” or “not a containment zone” based on the scenario given in the table. Then, you need to classify each scenario as TP/FP/TN/ FN based on predicted and actual labels. One has been done for you.
Chapter 13 • Evaluation Metrics for Classification
Part B_AI Grade 10.indb 237
237
4/12/2025 4:05:01 PM
Scenario Description An area with a recent increase in reported cases is correctly identified as a containment zone.
Actual (Reality) Label
Predicted Label
Classification (TP/FP/TN/FN)
Containment Zone
Containment Zone
TP
A previously declared containment zone shows no new cases for an extended period and is incorrectly classified as not a containment zone. A residential area is mistakenly marked as a containment zone due to misinterpreted data from neighbouring areas. An area with no reported cases is correctly identified as not needing containment precautions. A remote village, initially labelled a “no containment zone” later experiences a sudden increase in cases due to undetected transmissions. A densely populated area with initial positive report cases turns out to be false as later testing reveals no active infection cases.
Now, consider the data collected from the containment zone prediction model and create a confusion matrix for it. True Positive = 50 (In 50 zones, the model predicted the area to be a containment zone, and the area actually turned out to be a containment zone) True Negative = 40 (In 40 zones, the model predicted the area to be not a containment zone, and the area actually turned out to be not a containment zone) False Positive = 10 (In 10 zones, the model predicted the area to be a containment zone, but the area actually turned out to be not a containment zone) False Negative = 5 (In 5 zones, the model predicted the area to be not a containment zone, but the area actually turned out to be a containment zone) Confusion matrix for containment zone prediction is as follows: Reality: Containment Zone
Reality: Not Containment Zone
Predicted: Containment Zone
50 (TP)
10 (FP)
Predicted: Not Containment Zone
5 (FN)
40 (TN)
Remember False Positive is also known as a Type I error and False Negative is also known as Type II error.
Evaluation Methods
There are various evaluation methods used to assess the efficiency of a predictive model. Evaluation methods help in determining how effectively a model can generate correct predictions or classifications on previously unknown data.
Accuracy
Accuracy is the percentage of total correct predictions to total predictions made. A prediction is considered correct if it matches reality.
238
Part B_AI Grade 10.indb 238
4/12/2025 4:05:01 PM
Accuracy =
Correct prediction × 100% Total cases
Accuracy =
(TP + TN) × 100% (TP + TN + FP + FN)
In the formula, the numerator represents two conditions in which the prediction matches reality: True Positive (TP) and True Negative (TN). The denominator represents total observations that cover all the possible cases of prediction, i.e., True Positive (TP), True Negative (TN), False Positive (FP) and False Negative (FN). Example Let us consider a model that predicts whether an email is spam or not. Assume that the model consistently predicts that the email is not spam. However, in reality, there is a 5% chance that the email is indeed spam. In this case, for 95 cases, the model will predict right, but for the remaining 5 cases where the email is spam, the model still predicts it as not spam. This implies that: True Positives = 0 True Negatives = 95 False Positives = 0 False Negatives = 5 Total Cases = TP + TN + FP + FN = 100 (TP + TN) Accuracy = × 100% (TP + TN + FP + FN) =
Prediction:
Always Not Spam
0 + 95 95 × 100 = × 100 = 95% 100 100
Even though the model accurately predicts the cases where the mail is not spam, it fails to predict the cases where the mail is spam. Now, let us look at another evaluation method that takes into account such cases too.
Precision
Reality:
5% Probability of Spam Mail Accuracy: 95%
Think and Tell
What percentage of accuracy is reasonable to show good performance?
It is defined as the percentage of true positive predictions to the total number of positive predictions. It is also known as a positive predictive value. It is beneficial, especially when false positives are extremely costly and the model needs to reduce the FPs as much as possible. Precision = Precision = Example
True Positive × 100% All predicted Positives TP × 100% (TP + FP)
Reconsidering the email spam example, let us assume that the model always predicts that an email is spam. In this case, we will consider the predicted positives, that is, True Positive and False Positive. However, if the model always predicts that the mail is spam, people will not check their email and eventually might lose important information. This implies that a false positive condition (predicting the mail as spam while the mail is not spam) would have a high cost. This makes precision an important evaluation criteria. If precision is high, the true positive cases outweigh false alarms.
Chapter 13 • Evaluation Metrics for Classification
Part B_AI Grade 10.indb 239
239
4/12/2025 4:05:02 PM
Error Alert! You might remember the story of the boy who repeatedly cried wolf when there were none, causing everyone to ignore him when wolves actually appeared. Similarly, if a spam filter’s precision is low (which means the model often falsely predicts mails as spam when the mails are not actually spam) then the users would get complacent and start ignoring the spam filter altogether, considering it could be a false alarm. Let us consider that a model has 100% precision. This means that 1. Whenever the machine says there’s a spam mail, there is actually a spam (True Positive).
2. In the same model, there can be a rare, exceptional case where there was actual spam mail but the system could not detect it. This is the case of a false negative condition. But the precision value would not be affected by it because it does not take FN into account.
This implies that:
True Positives = 100
False Positives = 0 TP Precision = × 100% (TP + FP) = [100/(100 + 0)] × 100% = 1 × 100%
100% Precise
= 100%
Recall
It is defined as the ratio of the number of true positive (TP) predictions to the sum of true positive (TP) and false negative (FN) predictions. It is beneficial, especially when false negatives are extremely costly. It is also known as the sensitivity, hit rate, or true positive rate (TPR). Recall =
TP × 100% (TP + FN)
In the formula, the denominator represents the true reality cases where, in reality, the mail was spam but the model either predicted it correctly or it did not. The numerator only represents the cases where the model correctly predicted the mail to be spam.
Remember The formula for both precision and recall is almost identical; they have the same numerator: True Positives. But in the denominator, precision counts the False Positives while recall takes False Negatives into account.
True Positive: The model predicted spam mail, and in reality, too, the mail was spam. False Negative: The model predicted mail to be not a spam, but in reality, the mail was spam.
Which Metric is Important?
Choosing between precision and recall depends on the specific context in which the model is being used.
240
Part B_AI Grade 10.indb 240
4/12/2025 4:05:02 PM
Consider the following examples: 1. If the model consistently predicts that an email is spam (even when it is not), people may neglect checking their mails and eventually might lose important information. Here, a false positive condition (predicting the mail as spam while the mail is not spam) would have a high cost. 2. Imagine a scenario where no alert is given even when there is a forest fire. In such cases, false negatives (predicting no fire when in reality there is fire) can be extremely costly. The lack of an alarm could lead to extensive forest damage. 3. Suppose a highly dangerous virus begins to spread, and the model designed to predict outbreaks fails to detect it. As a result, the virus could spread extensively, infecting a large population. In this case also, false negative will be extremely dangerous. 4. There are situations where a false positive can be more costly than a false negative. Imagine a model that predicts the presence of treasure at a certain location, prompting extensive digging, only to find out it was a false alarm. In this scenario, the false positive (predicting the presence of treasure when there is none) can be costly. Cases with high FN cost
Cases with high FP cost
Forest fire
Spam
Viral
Mining
Which one is more important? Recall or Precision? According to the definitions of precision and recall, recall determines a classifier’s performance in terms of false negatives, whereas precision provides information on a classifier’s performance in terms of false positives. Accordingly, recall should be as close to 100% as feasible if we want to limit false negatives, and precision should be as close to 100% as possible if we want to avoid false positives. In simple words, if we maximise precision, it will minimise the FP errors, and if we maximise recall, it will minimise the FN errors. We must remark that if we want to know if our model’s performance is good, we must consider two metrics: recall and precision. In some circumstances, you may have high precision but low recall, or low precision but high recall. However, because both metrics are significant, there is a need for a parameter that considers both precision and recall.
F1 Score
It is used to evaluate the overall performance of a classification model. The F1 score can be defined as the measure of balance between precision and recall.
Precision × Recall Precision + Recall When the F1 Score is 1 (or 100%), it indicates a perfect score. For this to happen, both precision and recall must also be 1 (or 100%). As the values of both precision and recall range from 0 to 1, the F1 score also ranges from 0 to 1. F1 Score = 2 ×
There can be a lot of variations in the F1 score, as given in the following table: Precision
Recall
F1 Score
Low
Low
Low
Low
High
Low
High
Low
Low
High
High
High
Chapter 13 • Evaluation Metrics for Classification
Part B_AI Grade 10.indb 241
241
4/12/2025 4:05:02 PM
Did You Know?
Think and Tell
The F1 score is the harmonic mean
Which of the following evaluation methods is better: precision or recall? Why?
between precision and recall.
Activity Objective: To calculate the accuracy, precision, recall and F1 Score of the classifier model. Suppose you have a model that predicts whether an animal is a dog or a cat. You test it on a set of 10, where 6 are dogs and 4
are cats. Calculate accuracy, precision, recall, and F1 score. Consider ‘predicting a dog’ as the positive class and ‘predicting a cat’ as the negative class. S.No.
1
2
3
4
5
6
7
8
9
10
Actual
Dog
Dog
Dog
Cat
Dog
Cat
Dog
Dog
Cat
Cat
Predicted
Dog
Cat
Dog
Cat
Dog
Dog
Dog
Dog
Dog
Cat
Result
TP
FN
TP
TN
TP
FP
TP
TP
FP
TN
Reality
The Confusion Matrix
Prediction
Yes
No
Yes
5 (TP)
2 (FP)
No
1 (FN)
2 (TN)
Solution: From this confusion matrix: •
TP (True Positive): 5 Dogs correctly predicted as dogs.
•
FP (False Positive): 2 cats incorrectly predicted as dogs.
•
TN (True Negative): 2 cats correctly predicted as cats.
•
FN (False Negative): 1 dog incorrectly predicted as a cat.
(TP + TN) × 100% (TP + TN + FP + FN) Here, TP + TN + FP + FN = Total Cases = 10
Accuracy =
Accuracy = [(5 + 2)/(10)] × 100
Recall =
TP × 100% TP + FP = [5/(5 + 2)] × 100
Precision =
= (5/7) × 100
= (7/10) × 100
= 0.7143 × 100
= 70%
= 71.43%
TP × 100% TP + FN
= [5/(5 + 1)] × 100 = (5/6) × 100 = 0.8333 × 100 = 83.33%
F1 Score = 2 ×
Precision × Recall Precision + Recall
= 2 × (71.43 × 83.33)/(71.43 + 83.33) = 2 × (5952.26)/(154.76) = 2 × 38.46 = 76.92%
242
Part B_AI Grade 10.indb 242
4/12/2025 4:05:02 PM
Activity Objective: To decide the appropriate metric to evaluate an AI model. Scenario: Predicting a Good Weather Day for Satellite Launch •
You have designed an AI model to predict whether the weather conditions are suitable for launching a satellite.
•
Let us assume that a favourable weather day is considered the Positive class and a non-favourable weather day is considered the Negative class.
Choosing the Right Metric •
Missing out on predicting a good weather day (False Negative since predicting that it is a bad weather day when in fact it is a good weather day) is not critical—the launch can be rescheduled.
•
However, predicting a bad weather day as good (False Positive) can be disastrous, leading to a failed launch and financial loss.
•
In this case, we need to reduce False Positives (FP) as much as possible, which means Precision is the most important metric.
Task
Given the test data, construct the confusion matrix and calculate the precision based on the predicted and actual values. Day
Actual Condition
Predicted Condition
1
Favourable
Favourable
2
Non-Favourable
Favourable
3
Non-Favourable
Non-Favourable
4
Favourable
Favourable
5
Favourable
Non-Favourable
6
Favourable
Favourable
7
Non-Favourable
Non-Favourable
8
Favourable
Favourable
9
Non-Favourable
Favourable
10
Favourable
Non-Favourable
Think and Tell
You have designed an AI model for detecting fraudulent credit card transactions. Which evaluation metric should be prioritised to minimise undetected fraud?
Step 1: Construct Confusion Matrix Reality
The Confusion Matrix
Prediction
Favourable
Non-Favourable
Favourable
4 (TP)
2 (FP)
Non-Favourable
2 (FN)
2 (TN)
Chapter 13 • Evaluation Metrics for Classification
Part B_AI Grade 10.indb 243
243
4/12/2025 4:05:05 PM
Step 2: Calculate Precision Precision = TP/(TP + FP) × 100% = 4/(4 + 2) × 100% = 2/3 × 100% = 66.7% A precision of 66.7% means that when the model predicts a favourable weather day for a satellite launch, it is correct 66.7% of the time. Since False Positives (FP) are costly in this scenario (predicting bad weather as good), improving precision would make the model more reliable in real-world applications.
Ethical Concerns Around Model Evaluation
Ethical AI development means ensuring that decisions made by the model remain justifiable and fair. While evaluating an AI model, the following ethical concerns need to be kept in mind—Bias, Transparency and Accountability.
Bias
Bias means the act of unfairly supporting or opposing a specific person or thing. Bias in AI evaluation occurs when the chosen metrics disproportionately favour or disadvantage certain groups. For example, if a fraud detection model is trained on data that includes biases against specific demographics, it may lead to unfair outcomes. To mitigate this, diverse and representative datasets should be used. Regular audits and bias detection techniques can help ensure that the evaluation process is equitable.
Transparency
Transparency means openly explaining how the chosen evaluation metrics work and why they are used. Users and stakeholders should understand what the model prioritises, such as whether it focuses more on accuracy, precision, or recall. Providing detailed documentation and insights into the model’s evaluation process can help make the decision-making process clearer. Keeping stakeholders informed ensures trust and prevents misunderstandings about the model’s capabilities and limitations.
Accountability
Accountability involves taking responsibility for the consequences of the evaluation methodology and the selected metrics. If a model leads to unfair treatment of users—such as wrongfully denying a loan or misidentifying fraudulent transactions—developers must address and rectify the issue. This includes monitoring the model’s real-world impact, being open to feedback, and continuously improving the evaluation methods to prevent harm.
244
Part B_AI Grade 10.indb 244
4/12/2025 4:05:05 PM
Activity Time Activity 1: Identify Model Predictions
(Group Activity)
Instruct students to consider the case study of an assignment plagiarism detection system. Students need to identify the
cases when the system will predict true positive, false positive, true negative, and false negative. Ask students to create a confusion matrix for evaluating the system’s performance.
(Pair Activity)
Activity 2: Form Pairs and Design a 2 x 2 Confusion Matrix
Sudden rainfall can disrupt people’s plans. People wash their clothes and hang them to dry, but unexpected rain can ruin
their efforts. As a result, an artificially intelligent model has been developed to forecast whether or not rain will fall. Design a confusion matrix for this rainfall prediction model.
(Group Activity)
Activity 3: Find Out the Accuracy, Precision, Recall, and F1 Score for the Given Problems Scenario 1: In some parts of the country, the flood situation has
gotten worse recently. It not only devastates the entire area but also drives people from their houses and into other places. To solve this issue, an AI model has been created that can predict if there is a
chance of floods or not. Refer to the confusion matrix to evaluate the model using various evaluation methods.
Scenario 2: Many times, there is no water available in rural areas. In a few villages, water shortages are quite common and problematic.
To solve this issue, an AI model is created which can predict if there is going to be a water shortage in the rural areas in the near future or
not. Refer to the confusion matrix to evaluate the model using various
The Confusion Matrix
Actual: 1
Actual: 0
Predicted: 1
50
50
Predicted: 0
0
0
The Confusion Matrix
Reality: 1
Reality: 0
Predicted: 1
22
12
Predicted: 0
47
118
evaluation methods.
Chapter Checkup A Select the correct option. 1 What does the true positive represent in the context of model evaluation? a Instances incorrectly predicted as positive
c Instances incorrectly predicted as negative
b Instances correctly predicted as positive
d Instances correctly predicted as negative
2 Which of the following best describes about the confusion matrix? a It only provides the accuracy of the model.
b It is used to evaluate regression models.
c It visualises the performance of a model by showing actual vs predicted classifications.
d It provides information about True Positive and False Negative only. 3 The confusion matrix is used to evaluate the performance of a a KNN
c classification
b regression
d None of these
4 When both the predictive value and the actual value are negative, it is called a True positive
c False positive
Chapter 13 • Evaluation Metrics for Classification
Part B_AI Grade 10.indb 245
model.
b True negative
.
d False negative
245
4/12/2025 4:05:06 PM
5 In which of the following cases is the F1 score the highest? a When both precision and recall are low
b When precision is high and recall is low
c When both precision and recall are high
d When precision is low and recall is high
6 The accuracy of a model evaluates:
a The ratio of true positive predictions to the total number of positive observations.
b The ratio of true negative predictions to the total number of negative observations. c The ratio of total accurate predictions to total observations.
d The difference between the predicted values and the actual values. B Fill in the blanks with the most suitable words.
1 In a confusion matrix, instances that in reality are Negative (FN). 2
is termed as False
in a confusion matrix indicates instances that are predicted as positive but are actually negative.
3
4 A
is the output given by the machine.
condition of the confusion matrix is also known as a type I error.
5 If the prediction matches the 6
, then the prediction is true else it is false.
is also known as the true positive rate (TPR).
7 If we maximise precision, it will minimise the C
but predicted as
errors.
State whether the following statements are True or False. Correct the statements that are false. 1 TP and TN represent correct predictions.
2 Each cell in a confusion matrix represents the count of instances that belong to a specific combination of actual and predicted classes. 3 The F1 score can be defined as the measure of balance between precision and accuracy. 4 Recall is beneficial, especially when false positives are extremely costly. 5 The F1 score is the harmonic mean between precision and recall. D Answer the following questions.
Q1. Explain the various conditions associated with a confusion matrix. A1. The various conditions associated with the confusion matrix are:
True positives (TP): It happens when a positive data point is correctly predicted by the model.
True negatives (TN): It happens when a negative data point is correctly predicted by the model. False positives (FP): It happens when a negative data point is wrongly predicted by the model. False negatives (FN): It happens when a positive data point is mis-predicted by the model.
Q2. Suppose you have developed a spam email classifier. After training your model and testing it on a dataset of 100 emails (50 spam and 50 non-spam), you obtain the following results:
• The model correctly identified 40 spam emails as spam. • The model correctly identified 45 non-spam emails as non-spam. • The model incorrectly classified 5 non-spam emails as spam. • The model incorrectly classified 10 spam emails as non-spam.
A2.
Based on the above results, construct the confusion matrix for your spam email classifier considering ‘spam’ as a positive class and ‘non-spam’ as a negative class. Reality: Spam
Reality: Not spam
Predicted: Spam
40 (TP)
5 (FP)
Predicted: Not spam
10 (FN)
45 (TN)
246
Part B_AI Grade 10.indb 246
4/12/2025 4:05:06 PM
Q3. We have a dataset of ten students with their actual genders and the predicted genders from our classification method. Design a confusion matrix to determine the accuracy of predicting whether a student is classified as a boy or not.
A3. S.No.
S.No.
Actual
Predicted
1
Boy
Boy
2
Boy
Girl
3
Boy
Boy
4
Girl
Girl
5
Boy
Boy
6
Girl
Boy
7
Boy
Boy
8
Boy
Boy
9
Girl
Boy
10
Boy
Boy
1
2
3
4
5
6
7
8
9
10
Actual
Boy
Boy
Boy
Girl
Boy
Girl
Boy
Boy
Girl
Boy
Predicted
Boy
Girl
Boy
Girl
Boy
Boy
Boy
Boy
Boy
Boy
Result
TP
FN
TP
TN
TP
FP
TP
TP
FP
TP
Reality
The Confusion Matrix Prediction
Yes
No
Yes
6 (TP)
2 (FP)
No
1 (FN)
1 (TN)
Q4. For each of the following cases, determine whether the scenario has a high cost associated with false positives (FP) or false negatives (FN). Provide a justification for your answer. a. A forest fire detection system that fails to alert authorities when there is an actual fire. b. A viral outbreak prediction model that does not detect the presence of a deadly virus. c. A spam filter that consistently misclassifies legitimate emails as spam.
d. A mining prediction model that incorrectly identifies a location as having a treasure.
A4. a. A case of a forest fire has a high cost associated with a false negative (predicting no fire when in reality there is fire). Imagine no alert being given even when there is a forest fire. This might burn the whole forest because of no alarm. b. A case of a viral outbreak has a high cost associated with a false negative (predicting no viral outbreak when in reality there is an outbreak). If the model designed to predict this outbreak fails to detect it, the virus could spread extensively, infecting a large population.
c. A case of a spam filter has a high cost associated with a false positive (predicting that the mail is spam even when it is not). In such a scenario, people would not check their mails and eventually might lose important information. d. A case of mining has a high cost associated with a false positive (predicting the presence of treasure when there is none). If the model predicts a treasure at a certain location, prompting extensive digging, only to find out it was a false alarm, this can result in significant expenses.
Chapter 13 • Evaluation Metrics for Classification
Part B_AI Grade 10.indb 247
247
4/12/2025 4:05:07 PM
Q5. Given the confusion matrix for an AI model below, compute all the evaluation metrics for the model. Reality
The Confusion Matrix Prediction A5.
Accuracy =
Yes
No
Yes
60 (TP)
20 (FP)
No
20 (FN)
100 (TN)
(TP + TN) × 100% (TP + TN + FP + FN)
Precision =
= [60/(60 + 20)] × 100
Here, TP + TN + FP + FN = Total Cases = 200
= [60/80] × 100
Accuracy = [(60 + 100)/(200)] × 100
= 0.75 × 100
= [160/200] × 100
= 75%
= 80% Recall =
TP × 100% TP + FP
TP × 100% TP + FN
F1 Score = 2 ×
Precision × Recall Precision + Recall
= [60/(60 + 20)] × 100
= 2 × (75 × 75)/(75 + 75)
= 0.75 × 100
= 2 × 375
= 2 × (5625)/(150)
= [60/80] × 100
= 75%
= 75%
AI Activities 1 Visit the link: https://www.dataschool.io/simple-guide-to-confusion-matrix-terminology/ to learn more about the evaluation methods.
2 Visit the link: https://www.shiksha.com/online-courses/articles/confusion-matrix-in-machine-learning/ and understand the different scenarios of confusion matrix. 3 Visit this link: https://www.youtube.com/watch?v=AOIkPnKu0YA and explore the topic: ‘Confusion Matrix—Model Building and Validation’. 4 Visit the link: https://studio.code.org/s/coursef-2023/lessons/14 to learn about model evaluation.
Answer Key A
1. b
B
1. positive, negative
C
2. c
3. c
4. b
5. c
2. False Positive (FP)
6. c 3. Prediction
4. False positive
5. reality
6. Recall
7. FP (False Positive) 1. True
2. True
3. False. The F1 score can be defined as the measure of balance between precision and recall. 4. False. Recall is beneficial especially when false negatives are extremely costly. 5. True
248
Part B_AI Grade 10.indb 248
4/12/2025 4:05:07 PM
Unit Reflection
Key Terms • Model Evaluation: It is a technique that uses various metrics to analyse how well a machine learning model performs, helping to determine if the model makes accurate predictions. • Train-Test Split: This is a method of dividing a dataset into two parts: training data, which is used to teach the model patterns and relationships, and test data, which is used to evaluate how well the model performs on unseen data. • Overfitting: Overfitting occurs when a machine learning model performs exceptionally well on training data but struggles to make accurate predictions on new, unseen data because it has memorised the training set instead of learning general patterns. • Hyperparameters: These are the adjustable settings in a machine learning model that influence how the model learns from data, impacting factors like accuracy, training speed, and complexity. • Offline Evaluation: It is the process of testing a trained AI model using a predefined dataset before deploying it in a real-world environment to ensure its reliability and accuracy. • Accuracy: Accuracy is defined as a key metric in AI that measures how often a model makes correct predictions compared to the actual values in the dataset. • Error: Error refers to the difference between the predicted value generated by an AI model and the actual value, helping to determine how far off the model’s predictions are. • Error Analysis: This is the process of identifying and understanding mistakes in an AI model’s predictions to improve its accuracy and performance. • Training Data: This is the dataset used to help an AI model learn patterns, relationships, and rules before it is tested on new data. • Evaluation: It is the process of assessing an AI model’s performance before it is deployed to ensure it functions correctly and meets the required accuracy standards. • Chatbot: Chatbot is a computer program designed to simulate conversation with human users, often used on websites and messaging platforms to provide automated responses and assistance. • Pattern Recognition: This refers to the ability of an AI system to identify recurring patterns and regularities in data, allowing it to make predictions or classifications based on learned trends. • Automation: Automation is the use of technology, including AI, to perform tasks with minimal human intervention, improving efficiency and reducing manual effort.
Things to Remember • Model evaluation is essential to ensure AI models make accurate predictions and meet user requirements. • Overfitting occurs when a model memorises training data instead of learning patterns, making it unreliable for new data. • A train-test split helps evaluate how well a model generalises to new data by keeping training and testing datasets separate. Unit Reflection
Part B_AI Grade 10.indb 249
249
4/12/2025 4:05:08 PM
• Online evaluation monitors a model’s real-time performance and allows for necessary adjustments based on changing data patterns. • Hyperparameters like learning rate and network depth can be tuned to improve model performance. • Accuracy is directly proportional to the performance of an AI model—higher accuracy means better performance. • Error represents the deviation of an AI model’s predictions from the actual values. • AI models should be evaluated before deployment to ensure reliability. • Error analysis helps identify weaknesses in a model and improves its accuracy. • Even high-performing AI models can make mistakes due to poor-quality data or incorrect assumptions. • Voice assistants like Siri and Alexa are examples of AI applications in daily life. • AI can analyse large amounts of data quickly to make predictions and decisions.
250
Part B_AI Grade 10.indb 250
4/12/2025 4:05:08 PM
Test Your Knowledge A. Select the correct option. 1. What is the purpose of online evaluation? a. To test a model before deployment b. To track model performance in real-time c. To delete unnecessary data from the dataset b. To train the model on real-world data 2. What does a validation set help with? a. Training the model more efficiently
b. Tuning hyperparameters before final testing
c. Increasing the dataset size
d. Removing bias from the model
3. What does error analysis help in AI models? a. Increase accuracy
b. Identify and reduce errors
c. Ignore incorrect predictions
d. Stop model training
4. Which factor can cause AI models to make incorrect predictions? a. High-quality training data
b. Proper error analysis
c. Poor-quality data
d. 100% accuracy
5. Which of the following is an example of AI? a. Washing Machine
b. Calculator
c. Chatbot
d. Both b and c
6. What is the purpose of Machine Learning in AI? a. To wash clothes b. To allow machines to learn from data and improve performance c. To replace all human jobs d. To create new video games
B. Fill in the blanks with the most suitable words. 1.
occurs when a model memorises patterns from training data but fails to generalise to new data.
2.
tuning helps improve a model’s accuracy by optimising its settings like learning rate and number of layers.
3.
is the process of assessing a model’s mistakes to improve its performance.
4. The proportion of correct predictions made by an AI model is called 5. AI enables machines to 6. A
Unit Reflection
Part B_AI Grade 10.indb 251
.
human intelligence.
is a computer program that can converse with humans.
251
4/12/2025 4:05:08 PM
C. State whether the following statements are True or False. Correct the statements that are false. 1. A train-test split ensures that a model is trained and tested on the same data. 2. Online evaluation is necessary for models that operate in dynamic environments. 3. Error analysis is not necessary for improving AI models. 4. A model with 100% accuracy makes no errors. 5. AI can only be used in computers and not in mobile devices. 6. AI helps machines make decisions based on data.
D. Short-answer type questions. 1. What is the difference between offline and online evaluation? 2. Why is preventing data leakage important in model evaluation? 3. What is the significance of error in AI models? 4. How does error analysis help in machine learning? 5. What is Artificial Intelligence? 6. How do AI-powered voice assistants help us?
E. Long-answer type questions. 1. Explain the importance of model evaluation and the role of train-test split in it. 2. How does overfitting affect model performance, and what steps can be taken to avoid it? 3. Explain the relationship between accuracy and performance in AI models. 4. What factors contribute to errors in AI models, and how can they be minimised? 5. Explain the role of AI in daily life with examples. 6. What is Machine Learning, and how does it help AI?
F. Competency-based questions. 1. A hospital uses an AI model to detect lung diseases from X-rays. The model achieves 98% accuracy on training data but performs poorly when tested on real patient scans. What might be the issue, and how can it be fixed?
2. A company develops a recommendation system for an online store. Initially, the system suggests relevant products, but over time, customers complain that recommendations are becoming less accurate. What evaluation method should the company use to improve the model?
3. A company uses an AI model to predict customer preferences, but many customers receive irrelevant recommendations. How can error analysis help improve the model?
4. A hospital AI model predicts whether a patient has a disease. If the AI incorrectly predicts a healthy patient as sick, what impact can this have? How can accuracy be improved.
5. A school wants to implement an AI-based chatbot to answer students’ queries regarding homework and school activities. What benefits will this chatbot provide?
6. Imagine you are using an AI-powered voice assistant like Alexa. What tasks can you ask it to perform?
252
Part B_AI Grade 10.indb 252
4/12/2025 4:05:08 PM
Unit 4 • Statistical Data
14 Data Science and Its Applications
I
magine you have a huge collection of jigsaw puzzle pieces. Each piece contains a part of a picture on it, but you can’t see the entire picture until you fit all the pieces together. Just like gathering puzzle pieces, data science involves collecting lots of different pieces of information, figuring out how they fit together, and using them to understand the complete picture or make decisions.
Introduction
Artificial Intelligence (AI) depends on data for its effectiveness. The quality and type of data fed into AI systems determine how smart they become. We can categorise the three main domains of AI based on the type of data they use: DATA
Data Science
•
Data is foundational to data science.
•
Works with numeric and alpha-numeric data. CV
Computer Vision
Works with image and visual data. NLP
Natural Language Processing
Works with textual and audio/speech based data.
Data Science
Every domain of AI uses a specific type of data that acts as input to the machine and requires a specific method to handle and utilise it. Similarly, data science focuses on extracting insights from diverse datasets, and applying various analytical techniques to interpret and manage this data effectively.
Activity Rock, Paper, Scissors
Let us perform the following experiment to understand how the domain of AI, data, acts as an input to the machine and how the machine interprets and learns from this data. ‘Rock, Paper, Scissors’ is an interactive game based on data for AI where the machine tries to predict the next move of the participant. It is a digital translation of the basic rock, paper, and scissors game where the machine tries to win by learning from the participant’s previous moves.
253
Part B_AI Grade 10.indb 253
4/12/2025 4:05:08 PM
Objective: The objective of this interactive AI-based game is for students to build their understanding of the AI domain, particularly focusing on how AI can analyse data to make predictions. Follow the given steps to explore how this application works. 1. Visit the given link: https://next.rockpaperscissors.ai/ 2. The following window appears.
3. Make a paper (palm), scissors (index and big fingers), and rock (fist) in front of the camera, as shown.
4. Now, start playing the AI game. Make your moves (rock, paper, or scissors) and see how the machine reacts if you make moves in a specific order or randomly.
What is Data Science?
Data science has become an essential field in today’s data-driven world. The increasing volume, velocity, and variety of data generated by various sources necessitate some methods and tools for data processing, analysis, and interpretation. Data science is the domain of computer science where we extract insights from available data with the help of scientific methods, algorithms, and statistics. Data science combines concepts and methods from statistics, mathematics, data analysis, machine learning, and computer science to extract valuable insights from large amounts of data collected over time. It helps study vast arrays of structured and unstructured data and their conversion into a format which can be easily interpreted by humans.
254
Part B_AI Grade 10.indb 254
4/12/2025 4:05:09 PM
In simple terms, data science is the study of data. It involves: •
Collecting the data
•
Analysing the data
•
Using data to solve problems or make data-driven decisions
The problem can be anything from predicting the weather, recommending films on Netflix, finding the fastest route home or even understanding trends on social media. So, data science encompasses various disciplines that focus on data analysis and finding the best possible solution.
Let us take a simple example: Suppose your school wants to find out which sports games students like the most. Here are the steps they could follow. Collect Data: The school distribute a survey to every student, asking about their favourite sports games.
Remember Data science and data analytics are closely related fields,
Analyse Data: After collecting responses, they examine the survey results to identify the most popular sports games.
but they serve different purposes. Data science is a broader term that consists of various techniques and methods, including data analytics, to extract valuable insights from
Make Data-Driven Decisions: With this information, the school can decide which sports games to organise more frequently.
large sets of data. Data analytics specifically focuses on analysing past data to gather insights and inform decisionmaking, while data science covers the entire process of data handling, from collection to advanced analysis.
This process ensures that decisions are based on data, leading to better outcomes that align with students’ preferences.
Components of Data Science
There are different components of data science, which include: •
working with statistics and analytical methods
•
machine learning
•
visualisation of data
•
deep learning
Statistics
Visualisation
The science of collecting and analysing numerical
A tool used to interpret large amounts of data
data in large quantities in order to gain helpful insights.
easily through visual representations.
Components of Data Machine Learning
Science
Deep Learninng
The study and development of algorithms that
A subset of machine learning focused on algorithms
based on data.
models for data analysis and prediction.
enable machines to make predictions or decisions
Chapter 14 • Data Science and Its Applications
Part B_AI Grade 10.indb 255
that automatically learn and determine the best
255
4/12/2025 4:05:09 PM
Why is Data Science Important?
Data science is everywhere in our daily lives. Here are a few reasons why it is important: 1. Making Informed Decisions: Whether it is a business deciding which products to sell, a doctor determining
the best treatment for a patient, or a school planning a new curriculum, data plays a crucial role. It helps people make smart, evidence-based decisions.
2. Solving Problems: Data science helps us find solutions to complex problems. For example, by analysing weather
data, scientists can predict hurricanes and help people prepare for them.
3. Creating New Opportunities: Companies like Google, Amazon, and Facebook use data science to develop new
technologies and services that make enhance our lives, making things easier and more enjoyable.
Error Alert! Data quality issues, such as incomplete, inconsistent, or inaccurate data, can result in unreliable results and poor decision-making. Also, handling sensitive information requires strict measures to prevent breaches and follow rules and regulations.
Did You Know? In data science, various data formats, such as CSV (Comma-Separated Values), JSON (JavaScript Object Notation), Excel (XLSX) , XML (Extensible Markup Language), SQL (Structured Query Language), are used to represent and store different types of data.
Applications of Data Science
As we have learnt in the previous chapter, data science is the study of data to extract meaningful patterns and trends, which can help us make better decisions. Data science is used in many fields and impacts our daily lives in various ways. In this chapter, you will learn about the applications of data science.
Data Science in Education
Data science plays an important role in education. It enables personalised learning for students, which improves student outcomes. In the education sector, the data science uses different types of data for personalised learning, such as student performance data like test scores and assignment grades, behavioural data like time spent on tasks and learning habits, and demographic data like age, gender, and background. Additionally, data science algorithms use feedback from students and teachers to enhance personalised learning experience. Data science is also used in other aspects of education, such as designing curriculum based on student performance and optimising administrative tasks. For example, identifying students struggling in certain subjects can inform school administration to hire additional tutors, get more learning resources, etc.
Data Science in Healthcare
Data science is revolutionising healthcare by making diagnosis, treatment, and hospital management more efficient. With advanced algorithms, doctors can detect diseases early by analysing medical images with high accuracy. Patient data, like medical history, helps predict the risk of chronic illnesses and suggests preventive
256
Part B_AI Grade 10.indb 256
4/12/2025 4:05:11 PM
steps. Wearable devices track real-time health data, helping to monitor conditions like heart disease. Hospitals also benefit from data science, as it helps manage resources, predict patient admissions, and reduce wait times, improving overall patient care. Data Science in Genetics and Genomics
Genetics focuses on individual genes—how they are passed down, influence traits, and contribute to diseases— while genomics looks at the bigger picture, studying how all genes work together. In the field of genetics and genomics, data science is unlocking new possibilities for personalised medicine. By combining different types of data with genetic information, researchers can better understand how our genes influence diseases and how we respond to certain medicines. As we gain more knowledge about personal genomes, doctors will be able to offer treatments tailored to an individual’s unique genetic makeup, leading to more precise and effective healthcare.
Data Science in Entertainment
Data science makes the entertainment sector more personalised by analysing data to understand what people like or dislike. For example, streaming services like Netflix use data on what films or shows you watch to recommend new films and shows you might enjoy. Music apps like Spotify create personalised playlists by analysing what you listen to more frequently. Video games also use data science to tailor game experiences to your preferences.
Data Science in Sports
Data science has transformed the sports industry by enhancing performance analysis, strategy development, and fan engagement for players. Data science helps study players’ performances in terms of various parameters, like speed and technique, to optimise training and game strategies. For example, data on batting patterns and defensive moves in cricket helps coaches develop better game plans. Smart wearable devices help to track athletes’ health and fitness data in real time to personalise training needs and prevent injuries. Data science helps recruit talented players by analysing their past performance. Data science enhances fans’ experiences by delivering personalised content and predicting ticket prices ahead of sports events. Personalised content includes replays and breaking news about fans’ favourite teams and players, tailored based on their preferred sports, teams, and players.
Data Science in Internet Searches
Data science has significantly enhanced the speed and relevance of our internet searches. Search engines, like Google, Bing, Yahoo, etc., use different machine learning techniques to analyse large amount of web data and then rank these search results based on relevance to the user’s query and the credibility of a web page. For example, when you write a query in a search engine, data science helps by offering autocomplete suggestions, correct spellings, and predicts relevant content. These search results are based on past searches, ensuring you find what you seek more efficiently.
Search...
Did You Know? Considering the fact that Google processes more than 20 petabytes of data every day, had there been no data science, Google wouldn’t have been the ‘Google’ we know today.
Chapter 14 • Data Science and Its Applications
Part B_AI Grade 10.indb 257
257
4/12/2025 4:05:12 PM
Data Science in Environment Protection
Data science helps analyse extensive environmental data to understand patterns, make predictions, and policy decisions. For example, data scientists use satellite images and sensor data to monitor deforestation, detect illegal fishing activities, and track wildlife populations. Climate scientists analyse historical weather data to predict climate change impacts and help policymakers plan to decrease its effects. The air quality data collected from sensors helps to identify pollution sources and develop strategies to improve air quality. Data science helps optimise resource management by predicting water demand and managing renewable energy sources like wind and solar power, contributing to more sustainable environmental practices.
Data Science in Retail
Data science plays an important role in helping stores understand customer preferences and how to improve their shopping experience. For example, When you shop online, have you noticed how websites suggest other items might like? It is possible through data science. The website uses data science analyse what you have bought before and suggest similar things. Data science helps stores maintain stock so they do not run out of items. It also helps to manage prices based on data on what people are willing to pay.
you to also fix
Data Science in Targeted Advertising
Ever wondered why the ads you see online seem oddly relevant to your recent searches or interests? That is because data science plays a huge role in targeted advertising. By analysing user behaviour—what you click on, the websites you visit, and even how long you spend looking at certain products—data-driven algorithms help companies show ads that truly resonate with you. Instead of bombarding everyone with random advertisements, businesses can now reach the right audience with personalised promotions, making marketing more efficient and less intrusive. Whether it is a discount on sneakers you were eyeing or a travel deal to a destination you researched, data science ensures ads feel more like helpful suggestions rather than distractions.
Ads.
Data Science in Finance
Data science is used in banks and financial institutions to detect fraud and make smarter money decisions. Banks use data science to analyse transaction patterns or financial data to detect fraud. For example, when using a credit card, data science looks for unusual spending patterns that could indicate fraud. Data science helps predict how much money a company might make in the future based on its past sales data, which helps investors decide whether to invest or not. Data science also helps banks decide whether to lend money or not by analysing a person’s credit history and money-spending habits. This ensures that the bank is lending money to a person who is likely to pay it back.
258
Part B_AI Grade 10.indb 258
4/12/2025 4:05:20 PM
Data Science in Transport
Data science helps make travel safer, more efficient, and more convenient. For example, when we use a navigation app, like Google Maps, data science helps us calculate the fastest route by analysing traffic data from many drivers. Data science also predicts jams and suggests alternate routes to avoid delays in reaching the destination. Data science helps transport companies optimise their routes and schedules by analysing passenger demand and vehicle availability data. For example, airlines use data science to forecast flight demand and adjust ticket prices accordingly. Data science improves safety by analysing data from vehicle sensors to prevent accidents.
Error Alert! People generally think data science is useful only for analysing big data. But in reality, it is also valuable for providing insights and solutions to problems using small datasets.
Data Science in Social Media
Data science helps to make our experiences more personalised and engaging on social media platforms like Facebook, Instagram, YouTube, etc. For example, when you use Facebook or Instagram, data science analyses your previous likes, comments, and shares to show you new posts from friends and pages you are interested in. Data science helps detect fake social media accounts and harmful content to make social media safer. Data science helps social media platforms target advertisements to specific groups of people based on their online activities.
Did You Know? Data science is used by social media platforms, like Facebook and Instagram, to tag people automatically in your photos by recognising their faces.
Remember
Accurate and relevant data is important to get better results in data science.
Data Science in Website Recommendations
Have you ever noticed how streaming platforms, shopping websites, or even news portals seem to “know” exactly what you like? That is data science at work! By analysing your browsing history, past interactions, and preferences, data science helps websites recommend content, products, or articles that match your interests. Whether it is a movie suggestion on Netflix, a book recommendation on Amazon, or a playlist on Spotify, data science ensures you get a personalised experience without having to search endlessly. Behind the scenes, powerful algorithms study patterns, compare them with millions of other users, and predict what you might enjoy next. This not only makes browsing more convenient but also keeps users engaged by offering relevant and exciting content tailored just for them. Chapter 14 • Data Science and Its Applications
Part B_AI Grade 10.indb 259
259
4/12/2025 4:05:22 PM
ActivityTime Time Activity Activity 1: Analyse Sports Data to Improve Team Performance
(Individual Activity)
Ask students to collect data on players’ physical attributes, performance metrics, tactical insights, and psychological
factors in addition to scores from their favourite sports. They should use this comprehensive data to identify the strengths and weaknesses of the players, and then propose a game strategy based on their analysis. Activity 2: Analyse Local Traffic Data to Suggest Improvements
(Group Activity)
Form groups of 2 to 3 students and collect local traffic data near the school. Then, analyse the data to find patterns like the peak time of heavy traffic, the type of vehicles that travel near school, etc. Create presentations for your proposed solutions to improve traffic flow and the safety of school-going students based on data analysis. Activity 3: Predict Exam Scores
(Group Activity)
Ask a group of 2–3 students to gather data from their classmates on their previous exam scores, as well as their
historical study hours, leisure time, and sleep hours. Instruct students to analyse the relationships between these
factors and exam scores. Based on their analysis, students will discuss strategies to enhance study habits for improved exam performance.
Chapter Checkup A Select the correct option. 1
What is data science?
a The study of data visualisation c The study of analysing past data
b The study of extracting valuable insights from available data d The study of sources of data
2 Which of the following is an application of data science in genetics and genomics? a Identifying genes linked to diseases
b Personalising medical treatments based on genetic data
c Predicting weather patterns
d Enhancing cybersecurity systems
3 In which industry is data science used to optimise training and game strategy? a Fashion b Sports
c Entertainment d Education
B Fill in the blanks with the most suitable words. 1 In education, data sciences enables preferences. 2 Social media uses data sciences to detect
learning experiences tailored to individuals’ needs and accounts and harmful content.
3 Data sciences help detect fraudulent transactions in banks through the analysis of 4 C
data.
tool is used to easily interpret large amounts of data through visual representations.
State whether the following statements are True or False. Correct the statements that are false.
1 Data science is a multidisciplinary field that combines concepts and methods from statistics, mathematics, data analysis, and machine learning. 2 Data science enables personalised recommendations on streaming platforms like Netflix by analysing users’ past viewing history.
260
Part B_AI Grade 10.indb 260
4/12/2025 4:05:22 PM
3 Data science is not required in healthcare to predict diseases and improve diagnostics. 4 Data science is used in sports to develop game strategies and enhance players’ performance. D Answer the following questions. (Solved) Q1. Define data science.
A1. Data science is the domain of computer science where we extract insights from available data with the help of scientific methods, algorithms, and statistics.
Q2. How does data science help in targeted advertising?
A2. Data science in targeted advertising analyses user behaviour, such as clicks and browsing history, to display relevant ads. This helps businesses reach the right audience with personalised promotions, making marketing more effective and less intrusive.
Q3. Imagine you are the owner of a new social media app called BuddyChat. Your app allows users to post updates, share photos, and comment on others’ posts. You want to ensure your users have the best experience possible and stay safe while using your app. Explain how data science can help you achieve this. A3. Data science can help show each user the most interesting posts and updates on their feed. It can also help recognise harmful content, such as offensive language, and flag such content for removal from the app. Data science can help develop strategies for increasing user engagement, such as sending personalised notifications and suggesting new friends and groups.
AI Activities 1 Visit this link: https://www.youtube.com/watch?v=1n7iJ5CdX3U to explore more about the applications of data science.
2 V isit this link: https://climatekids.nasa.gov/ to learn how NASA provides scientific data to help us understand climate change.
3 Visit this link: https://github.com/academic/awesome-datascience/blob/live/README.md to learn more about data science.
Answer Key A
1. b
B
1. personalised
C
1. True
2. a and b 2. fake
3. b 3. financial
4. Visualisation
2. True
3. False. Data science is used in healthcare to predict diseases and improve diagnostics. 4. True
Chapter 14 • Data Science and Its Applications
Part B_AI Grade 10.indb 261
261
4/12/2025 4:05:23 PM
Unit 4 • Statistical Data
15 No-Code AI for Statistical Data Introduction
The term “No-Code AI for Statistical Data Analysis” refers to AI solutions that enable users to easily explore, visualise, and understand statistical data without needing any coding or programming skills. With simple drag-anddrop interfaces and automated tools, users can generate insights, identify trends, and make data-driven decisions. It is especially helpful for business professionals, students, and researchers who want to analyse data quickly without relying on technical experts.
Difference between High Code, Low Code, and No Code AI Tools High Code AI Tools
Low Code AI Tools
No Code AI Tools
High-Code AI refers to AI solutions that are built using traditional programming languages. It requires advanced coding and AI expertise.
Low code development is the practice of developing applications more quickly by utilising platforms or technologies that offer pre-built components and visual interfaces using minimal coding.
No code development extends low code principles by allowing users to build applications without any coding or scripting experience including drag and drop features.
Lengthy programs need to be written using programming languages.
Programmers must manually write some code in low code AI.
Since coding skills are not necessary, anyone can create the product.
Development cost for high code AI is very high.
It is less expensive compared to high code.
It is less expensive compared to low code.
The programs developed using high code AI are very flexible. You can make any modifications in the code as per your need. For example, Python, Java, JavaScript.
Only coding will allow you to modify your product to a particular level. For example, custom chatbot.
Drag-and-drop functionality is used rather than coding. For example, Orange data mining tool.
Need of No Code AI
No code AI is important because it makes artificial intelligence available to those who may lack technical knowledge in coding or machine learning. No code AI is essential for the following reasons: •
It enables non-technical consumers to take advantage of AI without having to study data science or programming.
262
Part B_AI Grade 10.indb 262
4/12/2025 4:05:23 PM
•
No code AI is simple to use; even middle schoolers can utilise No code tools to construct AI.
•
Businesses can save money by using no code AI because fully written AI systems are expensive to install.
• •
Did You Know?
AI can be used by teams from many departments (marketing, sales, HR, etc.) without depending on IT teams.
More than 70% of AI models
Experts in AI and machine learning are in short supply. Businesses can implement AI without hiring specialised experts.
technologies by 2025!
will be developed with no code
Who Can Use No Code AI?
Financial analysts, physicians, architects, singers, and content creators are examples of non-technical individuals who can easily create precise AI models without knowing any code. For Example: Richa manages a retail store that sells apparel and accessories. Especially during seasonal sales, she wants to forecast future sales patterns in order to effectively manage inventory and prevent overstock or stockouts. Solution: Richa finds a No code AI tool online that can help her build an AI model to collect past sales data and imports it into Orange using the File widget. Regression modelling was chosen for Richa’s retail store as it predicts continuous values like sales figures using past data, making it simple, interpretable, and ideal for forecasting with no code tools like Orange data mining. Finally, she efficiently manages inventory, reduces waste, and boosts profits using No code AI with Orange data mining tool.
Benefits of No Code AI Tools
Accessibility for All: No code AI tools are easy to use, even for people with no technical background. They allow business owners, students, and professionals to build AI models without writing a single line of code. Faster Development and Implementation: With simple drag-and-drop features and pre-built templates, no code AI speeds up the process of creating and deploying AI solutions. What once took weeks can now be done in hours or days. Cost-effective: Hiring data scientists and developers can be expensive. No code AI tools reduce these costs by enabling non-technical users to create AI models on their own, saving both time and money. Enhanced Efficiency and Productivity: By automating repetitive tasks and analysing large datasets quickly, no code AI increases productivity. Teams can focus on decision-making and strategy instead of manual data processing. Lowers Errors and Boosts Accuracy: Built-in algorithms and automated processes minimise human errors. No code AI ensures more accurate results by following standardised data analysis procedures.
Disadvantages of No Code AI Tools
Lack of Flexibility: Drag-and-drop components can be very useful. However, you can only use those fixed elements. Therefore, no-code platforms do not grant you the full authority and flexibility you may require, and you are limited in your ability to customise your application. Security Issues: Platforms with no code basically do not make you think about security first or even assess security best practices. As a result, since these platforms typically provide no control over sensitive data, these apps are only appropriate for businesses that do not handle it. Scalability Issues: Large-scale applications with heavy traffic or complex workflows are difficult for many No code technologies to manage.
Chapter 15 • No-Code AI for Statistical Data
Part B_AI Grade 10.indb 263
263
4/12/2025 4:05:23 PM
Higher Long-Term Costs: No code tools lower development costs at first, but over time, membership fees might add up. Not Suitable for Complex Applications: No code technologies are excellent for small apps, but traditional code is frequently needed for big applications that need sophisticated algorithms, artificial intelligence, or unique database.
Think and Tell
Why is no code AI important?
No Code AI Tools
Some of the following no code AI tools are as follows:
Azure Machine Learning
Azure Machine Learning is a cloud solution that helps accelerate and manage the machine learning (ML) project lifecycle. It can be used by engineers, data scientists, and machine learning experts in their daily workflows to manage machine learning operations (MLOps) as they develop and implement models.
Google Cloud AutoML
Azure Machine Learning
Google Cloud AutoML is a no code AI tool. It is a collection of machine learning (ML) tools that let data scientists and developers create and implement unique ML models with little knowledge or effort. It automates operations such as training, tuning, and implementing ML models, making AI more accessible to non-developers.
Orange Data Mining
Cloud AutoML Vision
Orange is an open-source data mining and machine learning tool that provides data visualisation capabilities. With this tool, you do not need to write any code. This platform is easy to use, has lovely graphics, and may be utilised for analysis. It was developed by The University of Ljubljana under the GPLv3 license. Orange Data Mining
Activity Purpose: To build an AI model to predict the presence of cancer based on various features. The dataset is structured to provide a realistic challenge for predictive modelling in the medical domain using Orange Data mining AI tool. This dataset contains medical and lifestyle information for 1500 patients. Solution: Step 1: Download the dataset from https://www.kaggle.com/datasets/rabieelkharoua/cancer-prediction-dataset Step 2: To open Orange Data Mining application, double click on the Orange icon and open the tool.
264
Part B_AI Grade 10.indb 264
4/12/2025 4:05:23 PM
Step 3: To upload the dataset, click on the File widget under the Data menu. The File widget will appear on the canvas. Click on it and browse to the folder to upload the dataset. Set “CancerHistory” (Yes/No) as the Target variable.
Step 4: To view the dataset, click on the Data Table widget under Data menu. The Data Table widget will appear on the canvas then connect the File widget to the Data Table widget.
Step 5: Select the model for prediction. Click on the KNN widget under Model menu.
Chapter 15 • No-Code AI for Statistical Data
Part B_AI Grade 10.indb 265
265
4/12/2025 4:05:24 PM
The KNN widget will appear on the canvas. Connect the File widget to the KNN widget.
Step 6: To evaluate the model, click on the Test and Score widget under Evaluate menu. The Test and Score widget will appear on the canvas. Connect the File widget and the KNN widget to the Test and Score widget to check the performance parameters. Click on the Test and Score widget to view the parameters as shown in figure.
Step 7: Click on the Prediction widget under the Evaluate menu. The Prediction widget will appear on the canvas.
266
Part B_AI Grade 10.indb 266
4/12/2025 4:05:24 PM
Connect the Test and Score widget to the Prediction widget to check the prediction made by KNN. Click on the Prediction widget to view the cancer prediction.
Lobe
Lobe is a free, user-friendly AI application created by Microsoft that allows users to train machine learning models without requiring any coding skills. It uses an image classification system that accepts a collection of labelled images and automatically determines the best model to categorise them. It automatically trains a custom machinelearning model that can be shipped in your app.
Teachable Machine
Teachable Machine is an online platform that enables anyone to quickly, easily, and easily create machine learning models. A computer can be trained to identify your own images, sounds, and poses using this technique. This tool does not require any coding knowledge or skill. It is easy to use and ideal for researchers, developers, instructors, and students.
Activity Time Activity 1
(Group Activity)
Encourage students to analyse customer behaviour, forecast purchasing trends, and enhance advertisements using Orange data mining tool. Activity 2
(Pair Activity)
Use Orange data mining tool to build a machine learning model that predicts diabetes based on patient data.
Chapter 15 • No-Code AI for Statistical Data
Part B_AI Grade 10.indb 267
267
4/12/2025 4:05:25 PM
Chapter Checkup A Select the correct option.
1 In what ways does Lobe assist non-technical users?
a Requires complex coding skills c Provides a drag-and-drop interface
2 What is the purpose of Azure ML Studio?
a A cloud-based game development platform c A database management system
3 Orange data mining is an example of:
b Needs a cloud server to function d Only works with Python scripts
b A drag-and-drop tool for building ML models d A tool for web hosting
a High code b Low code
c No code d None of these
4 Select which of the following is not a feature of no-code approach.
a visual b highly expensive c code free d drag and drop
B Fill in the blanks with the most suitable words. 1
is a cloud solution that helps accelerate and manage the machine learning project lifecycle.
2
was developed by The University of Ljubljana.
3 Lobe is developed by
.
4 A computer can be trained to identify your own images, sounds, and poses using C
technique.
State whether the following statements are True or False. Correct the statements that are false. 1 Azure Machine Learning is used for building websites.
2 No code AI typically provide no control over sensitive data.
3 Programmers must manually write some code in No code AI. 4 No code AI is less expensive compared low code AI. D Answer the following questions. (Solved)
Q1. Write two benefits of using no code AI tools. A1. Benefits of no code AI:
Accessibility for All: No code AI tools are easy to use, even for people with no technical background. They allow business owners, students, and professionals to build AI models without writing a single line of code. Faster Development and Implementation: With simple drag-and-drop features and pre-built templates, no code AI speeds up the process of creating and deploying AI solutions. What once took weeks can now be done in hours or days.
Q2. Differentiate between low code and no code AI with examples. A2.
Low Code AI
No-Code AI
Low code development is the practice of developing applications more quickly by utilising platforms or technologies that offer pre-built components and visual interfaces using minimal coding.
No code development extends low code principles by allowing users to build applications without any coding or scripting experience including drag and drop features.
Programmers must manually write some code in LowCode AI.
Since coding skills are not necessary, anyone can create the product.
It is less expensive compared to high code.
It is less expensive compared to low code.
Only coding will allow you to modify your product to a particular level. For example, custom chatbot.
Drag-and-drop functionality is used rather than coding, For example, Orange data mining tool.
268
Part B_AI Grade 10.indb 268
4/12/2025 4:05:26 PM
Q3. Explain no code AI tools in detail.
A3. 1. Azure Machine Learning: Azure Machine Learning is a cloud solution that helps accelerate and manage the machine learning (ML) project lifecycle. It can be used by engineers, data scientists, and machine learning experts in their daily workflows to manage machine learning operations (MLOps) as they develop and implement models. 2. Google Cloud AutoML: Google Cloud AutoML is a no code AI tool. It is a collection of machine learning (ML) tools that let data scientists and developers create and implement unique ML models with little knowledge or effort. It automates operations such as training, tuning, and implementing ML models, making AI more accessible to non-developers. 3. Orange Data Mining: Orange is an open-source data mining and machine learning tool that provides data visualisation capabilities. With this tool, you do not need to write any code. This platform is easy to use, has lovely graphics, and may be utilised for analysis. It was developed by The University of Ljubljana under the GPLv3 license.
4. Lobe: Lobe is a free, user-friendly AI application created by Microsoft that allows users to train machine learning models without requiring any coding skills. It uses an image classification system that accepts a collection of labelled images and automatically determines the best model to categorise them. It automatically trains a custom machinelearning model that can be shipped in your app. 5. Teachable Machine: Teachable Machine is an online platform that enables anyone to quickly, easily, and easily create machine learning models. A computer can be trained to identify your own images, sounds, and poses using this technique. This tool does not require any coding knowledge or skill. It is easy to use and ideal for researchers, developers, instructors, and students.
AI Activities 1 Visit the link: Introducing Cloud AutoML and explore this topic.
2 Visit the link: https://teachablemachine.withgoogle.com/ and understand how to use it. 3 Visit the link: https://orangedatamining.com/ and explore the topic.
Answer Key A
1. c
B
1. Azure Machine Learning
C
1. False. Azure Machine Learning is used for training and deploying AI models.
2. b
3. c
4. b 2. Orange data mining tool
3. Microsoft
4. Teachable Machine
2. True
3. False. Programmers need to manually write some code in Low-code AI. 4. True
Chapter 15 • No-Code AI for Statistical Data
Part B_AI Grade 10.indb 269
269
4/12/2025 4:05:26 PM
Unit 4 • Statistical Data
16 Important Concepts in Statistics
S
tatistics is a mathematical discipline concerned with the collection, organisation, analysis, interpretation, and presentation of data. It assists us in making well-informed choices by using data rather than our intuition. It can be applied to social, industrial, and scientific challenges. Statistics is a large subject with numerous essential concepts. These are a few important ones:
Descriptive Statistics
It helps us to describe the data and enables us to understand the underlying characteristics. It describes the most important features of a dataset rather than attempting to draw conclusions or predictions. Mean: The sum of data values divided by the total number of data values is called the mean. It is also defined as the average value of a given data set. For example: For data [2, 4, 6], mean = (2 + 4 + 6)/3 = 4. Median: The middle value is known as the median. Before calculating the median, the data must be sorted in ascending order. For example: For [1, 3, 9], median = 3 (middle value). Note: If the number of data values is odd, it will return the exact middle value. If the number of data values is even, it takes the average of the two middle values. Mode: The value that appears the most frequently in the data set is the mode. If the frequencies of all data values are the same, the data collection may not have a mode.
Distributions
In statistics, a distribution explains how data points are distributed among various values. It facilitates the application of probability concepts, pattern recognition, and prediction-making.
Types of Data Distributions
Following are the types of the data distributions: Normal Distribution: Normal Distribution is bell-shaped and symmetric around the mean. Mean = Median = Mode. The peak occurs at the mean (centre).
270
Part B_AI Grade 10.indb 270
4/12/2025 4:05:26 PM
Uniform Distribution: In Uniform Distribution all values have equal probability. The graph is a flat, horizontal line in this distribution. Skewed Distributions: When data is not evenly distributed around the mean, it is referred to as a skewed probability distribution. •
Right-skewed (Positive Skew): Tail is longer on the right (e.g., income distribution).
•
Left-skewed (Negative Skew): Tail is longer on the left (e.g., scores on an easy test (most score high)).
Mode
Mode Median Mean
Mode
Median
Median
Mean
Mean
Left Skew
Normal Distribution
Right Skew
Standard Deviation
Standard deviation measures the spread of data around the mean. It is calculated as the square root of the variance. It is determined by first calculating the mean, then subtracting each number from the mean (also known as the average), and finally squaring the result. After summing all values, divide by the number of data points, and then take the square root. It is calculated by taking the square root of the variance. Variance: Variance is defined as the average of the squared differences from the mean. It is used to compute the variance from a sample of data. Probability Theory: Probability can be defined as the possibility that an event will occur. An event refers to the outcome of an experiment. Events can be: •
Mutually Exclusive: Events that cannot occur at the same time.
•
Complementary: Events where one outcome is the exact opposite of the other.
Additionally, events can be classified into two main types: •
Independent Events: The outcome of one event does not affect the outcome of another.
•
Dependent Events: The outcome of one event influences the outcome of another.
The Operation of Statistics
Following are the various operations performed in statistics: Data Collection: Creating surveys and experiments is a key component of statistics. Data Organisation: Statistics involves arranging data into presentations and summaries that are helpful. Data Analysis: In statistics, data is analysed and conclusions are drawn using scientific procedures. Data Interpretation: In order to make decisions, statistics requires the interpretation of data. Applications of Mean, Median, and Mode in Mind Map Structure Following are the applications of the various concepts of statistics in different fields: Chapter 16 • Important Concepts in Statistics
Part B_AI Grade 10.indb 271
271
4/12/2025 4:05:26 PM
Mean •
Education: Determining the mean test scores of students.
•
Health: Finding a patient’s average blood pressure or heart rate.
•
Business: Calculating average monthly sales revenue.
Median •
Income Analysis: Determining the country’s median household income.
•
Medical Research: Clinical trial median survival rate.
•
Salary Comparisons: Removing the impact of extreme values.
Mode •
Fashion Industry: Determining the most common garment size.
•
Marketing: Identifying a store’s best-selling item.
•
Education: The most common exam results in a class.
Activity Creating Mind Map Purpose: Use any mind map tool offline/online to craft a mind map detailing the various contexts where mean, mode, and median are applied in real life. Solution: A mind map is an excellent tool for visualising the practical applications of descriptive statistics, such as mean, median, and mode. To create your mind map, you can use online tools like MindMeister or Canva, or offline tools like FreeMind or Microsoft Visio.
MS Excel for Statistical Data Activity: Excel for Statistical Analysis
Purpose: To perform simple linear regression in Excel to analyse the relationship between years of experience and salary. Solution: Step 1: Download the dataset from https://www.kaggle.com/datasets/abhishek14398/salary-dataset-simple-linearregression. Step 2: Enable Analysis ToolPak •
Go to File > Options > Add-ins.
•
Select Analysis ToolPak under Inactive Application Add-ins.
•
Click Manage > Excel Add-ins > Go.
•
The Add-ins dialog box appears. Check the Analysis ToolPak check box.
•
Click OK.
272
Part B_AI Grade 10.indb 272
4/12/2025 4:05:27 PM
Step 3: Upload Data •
Once all steps are complete, the Get Data option will appear inside the Data menu. Upload the dataset.
Step 4: View Data •
Analyse the YearsExperience vs. Salary data in the Excel sheet.
Step 5: Identify Independent and Dependent Features Independent Feature (X): YearsExperience Dependent Feature (Y): Salary
Chapter 16 • Important Concepts in Statistics
Part B_AI Grade 10.indb 273
273
4/12/2025 4:05:27 PM
Step 6: Visualise the Data using Scatter Plot •
Select both columns - YearsExperience and Salary
•
Go to Insert > Charts > Scatter
•
The scatter plot will appear.
•
Go to Chart Elements > Edit Chart Title > YearsExperience vs Salary
Step 7: Plot the Regression Line •
Click on the Scatter Plot.
•
Go to Chart Design.
•
Select Add Chart Element.
•
Go to Trendline.
•
Click on More Trendline Options.
•
Select Linear.
•
Check the options: Display Equation on chart - Display R-squared value on chart
Step 8: Find the Salary using the Linear Equation •
Use the equation: Y = mX + b
•
Given: X = 6
•
Example Equation: Y = 9450X + 24848
•
Calculate: Y = 9450 * 6 + 24848 = 81948
Thus, for YearsExperience = 6, the estimated Salary is 81,948.
274
Part B_AI Grade 10.indb 274
4/12/2025 4:05:27 PM
Orange Data Mining
Orange is an open-source data mining and machine learning tool that provides data visualisation capabilities. With this tool, you do not need to write any code. This platform is user-friendly, features intuitive graphics, and can be used for data analysis. It was developed by the University of Ljubljana under the GPLv3 license. The graphical user interface (GUI) allows users to create interactive data analysis workflows using various widgets. Each widget serves a specific purpose in the data analysis process. We will learn more about these widgets in the upcoming sections.
Getting Started with Orange Data Mining
Orange Data Mining tool enables users to analyse, display, and create machine learning models without the need to write code. It is commonly used for corporate analytics, research, and teaching. You can download the latest version of Orange app from its official website https://orangedatamining.com/ for Windows or macOS.
When you launch Orange, you will see the Canvas, where you may create workflows with widgets as shown in the figure. You can start a new project here or open a project that has already been created.
Chapter 16 • Important Concepts in Statistics
Part B_AI Grade 10.indb 275
275
4/12/2025 4:05:27 PM
Common Orange Data Mining Widgets
Orange data mining tool comes with a lot of widgets like Data, Transform, Visualize, Model, Evaluate, Unsupervised, and so on. Data Widget: This widget is used to load, explore, and preprocess datasets. Transform Widget: This widget is used to perform mathematical changes on numerical features in a dataset. Visualize Widget: This widget enables you to use various graphs and plots to analyse and understand your data. These widgets assist in finding trends, patterns, and connections between variables. Model Widget: With the help of these widgets, one may create prediction models utilising various algorithms without knowing any code. Evaluate Widget: This widget is used to evaluate model performance. Unsupervised Widget: These widgets are used to apply unsupervised learning models to our data and visualise it.
AI Project Cycle
You have already studied about the AI project cycle that it is an organised method for creating AI models that guarantees accuracy and effectiveness. It has multiple important phases: 1. Problem Scoping: In this stage, the problem is identified. 2. Data Acquisition: In this stage, dataset is created for the research and experimental purposes. 3. Data Exploration: To increase model performance, data is summarised, visualised, and trends are detected in this phase. 4. Modelling: Labelled or unlabelled data can be used to train the model in this phase. To improve accuracy, you can adjust the hyperparameters. 5. Evaluation: In this phase, cross-validation is performed to check model robustness. 6. Deployment: In this phase, a system or application that incorporates the learned model is provided. The model is then evaluated for performance in real-world circumstances. Let us use the various phases of AI project cycle to perform the following activity. Activity: Palmer Penguins Model using Orange tool. Purpose: To analyse the Palmer Penguins dataset and build a machine learning model for species classification.
276
Part B_AI Grade 10.indb 276
4/12/2025 4:05:28 PM
Solution: We will incorporate the various stages of AI project cycle to perform this activity. Step 1: Problem Scoping Step 2: Data Acquisition (Upload Dataset) Step 3: Data Exploration (Clean missing data, select target label, create data sample) Step 4: Modelling (Train Model) Step 5: Evaluation (Evaluate model) Step 6: Deployment (Predictions) Step 1: Problem Scoping Three penguin species’ biological measures, gathered from three Antarctic islands, are available in the Palmer Penguins dataset. The objective is to create a machine learning model that will categorise penguin species according to their physical attributes. Step 2: Data Acquisition •
Download dataset from https://www.kaggle.com/datasets/parulpandey/palmer-archipelago-antarctica-penguin-data. Dataset will be in two parts i.e., train dataset and test dataset.
•
Open the Orange Data Mining application.
•
To upload the dataset, click on the File widget under Data menu. The File widget will appear on the canvas. Click on it and browse to the folder to upload the train dataset.
•
Right-click on the File widget and click on Rename to rename the File widget to “train data” to avoid confusion with testing data.
Chapter 16 • Important Concepts in Statistics
Part B_AI Grade 10.indb 277
277
4/12/2025 4:05:28 PM
Did You Know? Palmer Penguins Model dataset is freely available and can be accessed through various libraries like palmerpenguins in R.
•
Repeat the same steps as for test data.
278
Part B_AI Grade 10.indb 278
4/12/2025 4:05:28 PM
Clean Missing Data •
This step is performed to check if there are some missing values in the dataset.
•
Insert Feature Statistics widget from Data menu onto the canvas and connect it to train data. Double click on Feature Statistics to see the result.
Chapter 16 • Important Concepts in Statistics
Part B_AI Grade 10.indb 279
279
4/12/2025 4:05:28 PM
•
Insert the Impute widget from the Transform menu on to the canvas and connect it to the train data widget. The Impute widget is used to detect missing values in the dataset.
•
Double-click on the Impute widget to open the properties and select the Remove instances with unknown values option. Now, the data is clean and without any missing values.
280
Part B_AI Grade 10.indb 280
4/12/2025 4:05:29 PM
Select Target Label •
Connect the output of Impute to the input of the existing Feature Statistics (Note that the previous connection between train data and Feature Statistics has been removed because it only accepts one input).
•
Insert the Select Columns widget onto the canvas and connect it with the Impute widget. Double-click on the Select Columns widget to show all the features.
•
Drag the ‘species’ feature to the ‘Target’ box as shown in figure.
Chapter 16 • Important Concepts in Statistics
Part B_AI Grade 10.indb 281
281
4/12/2025 4:05:29 PM
•
Now, species is the Target label.
Data Sampler •
After choosing a target label, we need to split the data. Insert the Data Sampler widget onto the canvas. Connect the Select Columns widget to the Data Sampler widget and double-click on it to open the Properties tab.
•
Set slider to 80%. Click on Sample Data to make the changes and close the pop-up window.
•
Now, add the Data Info widget onto the canvas. Connect the Data Sampler widget to the Data Info widget and double-click on it to open the Properties tab.
282
Part B_AI Grade 10.indb 282
4/12/2025 4:05:29 PM
•
Connect the Data Sampler widget to the second Data Info widget. We can do that by dragging the output from Data Sampler to the input of the second Data Info.
•
Notice that the connection is between the Data Sample from the Data Sampler widget with the Data from the Data Info widget. Remove the existing connection by clicking on the connection once and deleting it. Once the connection is deleted, create a connection between Remaining Data from the Data Sampler widget and Data from the Data Info widget and click on OK.
•
To open the Properties tab, double-click on Data Info and Data Info (1) and observe the output of both the widgets.
Train Model •
Insert the Test and Score widget onto the canvas. Connect the Data Sampler widget to the Test and Score widget and make sure the connection is created between Data Sample > Data. Remove the existing connection by clicking on the connection and deleting it. Also, create a connection between Remaining Data and Test Data and click on OK.
Chapter 16 • Important Concepts in Statistics
Part B_AI Grade 10.indb 283
283
4/12/2025 4:05:30 PM
•
Add the Tree widget onto the canvas and place it to the left of the Test and Score widget. Connect both. Double-click on the Test and Score widget to check the score for the model. You can observe the different scores for the model.
•
Let us try a couple of other classification algorithms to observe the score of the model. Insert the Random Forest widget onto the canvas and connect it to the Test and Score widget. Now, double-click on the Test and Score widget to observe the individual scores for each algorithm.
284
Part B_AI Grade 10.indb 284
4/12/2025 4:05:30 PM
i. Now, we can choose the methods for evaluation from the above pop up.
ii. Double-click on the algorithm widgets, i.e., Tree and Random Forest to optimise the hyperparameters for better evaluation scores.
Now that we have found which model gives us the best results, we can use that one!
Chapter 16 • Important Concepts in Statistics
Part B_AI Grade 10.indb 285
285
4/12/2025 4:05:30 PM
Predictions •
Insert the Predictions widget into the canvas and connect the Test Data widget to the Predictions widget.
•
Now, connect the Random Forest algorithm widget to the Predictions widget and observe that the connection line is dotted because we are not feeding in the data yet. Connect the Data Sampler widget to the Random Forest algorithm widget. Now, observe that the connection line has now become solid as shown in figure.
286
Part B_AI Grade 10.indb 286
4/12/2025 4:05:31 PM
•
Double-click on the Predictions widget to check the result. Observe that some of the predictions made for Chinstrap by Random Forest are false. Random Forest is classifying Chinstrap as Adelie. The Random Forest algorithm is not working well with one of the species.
•
Now, we are using multiple models at the same time. Connect the Data Sampler widget to the Tree widget.
Observe that prediction made for Chinstrap by the Tree model are correct. This means some models can give better result than others.
Remember
AI is now available to everyone, not just programmers!
Chapter 16 • Important Concepts in Statistics
Part B_AI Grade 10.indb 287
Think and Tell
Why is no-code AI important?
287
4/12/2025 4:05:31 PM
Activity Time (Group Activity)
Activity 1
Encourage students to perform a Simple Linear Regression in Excel using car speed and stopping distance data.
(Pair Activity)
Activity 2: Building a Regression Model in Orange
Make a pair of students in the class and guide them to predict car prices based on engine size, mileage, and age.
Chapter Checkup A Select the correct option. 1 What is the main purpose of Orange data mining tool? a Image generation
b Data mining and visualisation
c Video editing d Game development 2 What is variance in statistics?
a The sum of all data points in a dataset.
b The average of the squared differences from the mean. c The difference between the highest and lowest values. d The median value of a dataset. 3 You can find
widget under Data menu.
a File b Data Sampler c SQL Table d Data table
4 If a histogram is symmetric and bell-shaped, what type of distribution does it represent? a Uniform distribution
b Skewed distribution
c Normal distribution
d Bimodal distribution
B Fill in the blanks with the most suitable words. 1 In statistics, a 2 3
explains how data points are distributed among various values.
can be defined as the possibility that an event will occur. widget is used to detect missing values in the dataset.
4 Labelled or unlabelled data can be used to train the model in C
phase.
State whether the following statements are True or False. Correct the statements that are false. 1 You first need to calculate the mean before calculating the standard deviation. 2 The value that appears the most frequently in the data set is the median.
3 Evaluation phase is used to perform cross-validation to check model robustness.
4 To increase model performance, data is summarised, visualised, and trends are detected in the data acquisition phase. D Answer the following questions. (Solved) Q1. Explain types of data distributions.
A1. Following are the types of the data distributions:
Normal Distribution: Normal Distribution is bell-shaped and symmetric around the mean.
288
Part B_AI Grade 10.indb 288
4/12/2025 4:05:32 PM
Mean = Median = Mode. The peak occurs at the mean (centre).
Uniform Distribution: In Uniform Distribution all values have equal probability. The graph is a flat, horizontal line in this distribution.
Skewed Distributions: When data is not evenly distributed around the mean, it is referred to as a skewed probability distribution.
• Right-skewed (Positive Skew): Tail is longer on the right (e.g., income distribution). • Left-skewed (Negative Skew): Tail is longer on the left (e.g., age at death). Mode Median Mean
Mode
Mode
Median
Median
Mean
Mean
Left Skew
Normal Distribution
Q2. Differentiate between standard deviation and variance.
Right Skew
A2. Standard deviation measures the spread of data around the mean. It is calculated as the square root of the variance. It is determined by first calculating the mean, then subtracting each number from the mean (also known as the average), and finally squaring the result. After summing all values, divide by the number of data points, and then take the square root. It is calculated by taking the square root of the variance. On the other hand, variance is defined as the average of the squared differences from the mean. It is used to compute the variance from a sample of data.
Q3. Explain the various operations performed in data science using statistics concepts. A3. Following are the various operations performed in statistics:
Data collection: Creating surveys and experiments is a key component of statistics.
Data organisation: Statistics involves arranging data into presentations and summaries that are helpful. Data analysis: In statistics, data is analysed and conclusions are drawn using scientific procedures. Data interpretation: In order to make decisions, statistics requires the interpretation of data.
AI Activities 1 Visit the link: https://bit.ly/orange_computer_vision and explore more about Orange data mining.
2 Visit the link: https://www.youtube.com/watch?v=wZ06IMIja6Q and construct your own data using Orange data mining tool. 3 Visit the link: https://www.geeksforgeeks.org/7-basic-statistics-concepts-for-data-science/ and explore the topic.
Answer Key A
1. b
B
1. distribution
2. b
3. b
4. c
2. Probability
3. Impute
4. Modelling
C 1. True
2. False. The value that appears the most frequently in the data set is the mode. 3. True
4. False. To increase model performance, data is summarised, visualised, and trends are detected in the data exploration phase.
Chapter 16 • Important Concepts in Statistics
Part B_AI Grade 10.indb 289
289
4/12/2025 4:05:32 PM
Unit Reflection
Key Terms • Data Science: The study of data to extract meaningful patterns and trends. • Machine Learning: The study and development of algorithms that enable machines to make predictions or decisions based on data. • Statistics: The science of collecting and analysing numerical data in large quantities. • Data Visualisation: A tool used to interpret large amounts of data easily through visual representations. • Deep Learning: A subset of machine learning focused on algorithms that automatically learn and determine the best models for data analysis and prediction. • No-Code AI: AI solutions that enable users to explore and analyse data without coding. • Orange Data Mining: An open-source data mining tool that provides visualisation and machine learning capabilities. • Google Cloud AutoML: A no-code AI tool that automates machine learning model development. • Drag-and-Drop Interface: A feature of no-code AI tools that allows users to build applications without coding. • Azure Machine Learning: A cloud-based platform that helps in building and managing machine learning models. • Descriptive Statistics: Helps describe the data and understand its underlying characteristics. • Mean: The average value of a dataset. • Median: The middle value in a sorted dataset. • Mode: The most frequently occurring value in a dataset. • Standard Deviation: Measures the spread of data around the mean.
Things to Remember • Data science combines concepts from statistics, mathematics, data analysis, machine learning, and computer science. • Machine learning is a key component of data science that helps machines make predictions. • Data visualisation is crucial for interpreting complex data sets. • Deep learning is used for advanced data analysis and prediction tasks. • Data science is essential for making informed decisions across various industries. • No-Code AI allows users without technical expertise to create and implement AI models. • It reduces the cost of development by eliminating the need for programmers. • No-Code AI tools use drag-and-drop functionality for ease of use. • These tools are ideal for small-scale AI applications but may not be suitable for complex projects.
290
Part B_AI Grade 10.indb 290
4/12/2025 4:05:33 PM
• No-Code AI enhances efficiency by automating repetitive tasks and reducing human errors. • Descriptive statistics is used to summarise and describe data. • The mean is sensitive to extreme values. • The median is useful for skewed distributions. • The mode can be absent if all values occur equally. • Standard deviation is calculated as the square root of variance.
Unit Reflection
Part B_AI Grade 10.indb 291
291
4/12/2025 4:05:33 PM
Test Your Knowledge A. Select the correct option. 1. What is the primary role of data science in decision-making? a. To predict future outcomes b. To summarise past data c. To make informed, evidence-based decisions d. To analyse only visual data 2. Which of the following is a key application of data science in healthcare? a. Predicting weather patterns b. Detecting diseases early through medical image analysis c. Enhancing video game experiences d. Optimising retail inventory 3. What is one major limitation of No-Code AI tools? a. They require extensive coding knowledge
b. They lack flexibility for customisation
c. They are only used in gaming applications
d. They are extremely expensive
4. Which of the following is an example of a No-Code AI tool? a. Python
b. JavaScript
c. Orange Data Mining
d. TensorFlow
5. What is the primary purpose of descriptive statistics? a. To predict future outcomes
b. To summarise and describe data
c. To analyse data for patterns
d. To create visualisations
6. Which measure of central tendency is most affected by outliers? a. Median
b. Mode
c. Mean
d. Standard Deviation
B. Fill in the blanks with the most suitable words. 1. Data science involves collecting, analysing, and using data to solve problems or make
decisions.
2. Machine learning is a subset of artificial intelligence that focuses on developing algorithms to enable machines to make or decisions based on data.
3.
is a cloud-based AI tool that helps in automating the machine learning process.
4.
is an AI application developed by Microsoft that allows users to train machine learning models without coding.
5. The
is the value that appears most frequently in a dataset.
6. The
measures how spread out the data is from the mean.
292
Part B_AI Grade 10.indb 292
4/12/2025 4:05:33 PM
C. State whether the following statements are True or False. Correct the statements that are False. 1. Data science is only used in the healthcare sector. 2. Machine learning is a part of data science that helps analyse past data to inform future decisions. 3. No-Code AI tools require extensive programming knowledge. 4. Teachable Machine allows users to create machine learning models without coding. 5. The mean and median are always the same in a normal distribution. 6. The mode is always present in every dataset.
D. Short-answer type questions. 1. Explain the role of data visualisation in data science. 2. What is the significance of machine learning in data science? 3. What are two advantages of using No-Code AI. 4. Name two No-Code AI tools and their uses. 5. Explain the difference between mean and median. 6. What is the role of standard deviation in statistics?
E. Long-answer type questions. 1. Describe the applications of data science in the entertainment sector. 2. Explain how data science contributes to environmental protection. 3. Explain why businesses prefer No-Code AI over traditional AI development. 4. Discuss the challenges of No-Code AI and suggest possible solutions. 5. Describe the types of data distributions and provide examples for each. 6. Explain the applications of mean, median, and mode in real-life scenarios.
F. Competency-based questions. 1. Design a scenario where data science is used to improve customer experience in retail. Explain how data analysis and machine learning contribute to this improvement.
2. Create a project proposal for using data science in education to enhance student outcomes. How would you collect data, analyse it, and use the insights to inform educational strategies?
3. Rohan is a sales manager who wants to predict future sales trends but has no programming knowledge. Suggest a NoCode AI tool for him and explain how it will help.
4. A hospital wants to use AI to predict disease risks for patients based on medical history. Which No-Code AI tool can be used, and what would be the process?
5. Create a scenario where you would use the mean, median, and mode to analyse a dataset. Explain why each measure is appropriate for your scenario.
6. Design a simple experiment to demonstrate the concept of standard deviation. How would you interpret the results?
Unit Reflection
Part B_AI Grade 10.indb 293
293
4/12/2025 4:05:33 PM
Unit 5 • Computer Vision
17 Computer Vision and Its Applications
I
n the previous chapters, we have explored the exciting world of artificial intelligence, learning how it works and where it is used. Now, let us dive into another interesting topic, Computer Vision, in this chapter. You might have used a smartphone with a face lock feature. Have you ever wondered how your phone effortlessly recognises your face every time it opens the phone lock? This is because of computer vision. Let us now learn what computer vision is and how it is useful.
Computer Vision
Computer vision is a domain of artificial intelligence that enables computers and systems to extract meaningful information from digital images, videos, and other visual inputs, enabling them to act or recommend based on that information. If AI enables computers to ‘think’ then computer vision enables them to ‘see’, observe, and recognise. Apart from face locks in smartphones, Google Lens and self-driving cars are some popular examples of computer vision.
294
Part B_AI Grade 10.indb 294
4/12/2025 4:05:33 PM
How Do Computers See?
Computer vision is a way for computers to ‘see’ and ‘understand’ the world around them. This is how it works: •
Computers use cameras to take pictures or videos of the world around them.
•
Softwares are used to analyse the images or videos to identify objects and patterns.
•
AI is used to make sense of the data collected and understand the information that the computer is ‘seeing’.
DOG DOG Computer Vision vs. Artificial Intelligence
Computer vision and artificial intelligence (ai) are closely related, but they are not the same. AI is the broader field that enables machines to think and learn, while computer vision specifically helps machines interpret and understand images and videos. Artificial Intelligence
Computer Vision
Deep Learning
Machine Learning
Let us understand the differences in the following table: Feature
Computer Vision
Artificial Intelligence
Main Purpose
Helps machines understand visual data.
Helps machines think, learn, and decide.
Scope
A specialised field within AI.
A broad field covering learning, reasoning, and problem-solving.
Techniques Used
Image recognition, deep learning, and pattern detection.
Machine learning, neural networks, and natural language processing.
Real-Life Uses
Face recognition, self-driving cars, medical imaging.
Chatbots, virtual assistants, recommendation systems.
Examples
Google Lens, Snapchat filters, security cameras.
ChatGPT, Alexa, Netflix recommendations.
Computer Vision vs. Image Processing
Computer vision and image processing may seem similar, but they serve different purposes. While computer vision helps machines “see” and understand images, image processing focuses on enhancing or modifying them. Let us understand their differences in the following table: Chapter 17 • Computer Vision and Its Applications
Part B_AI Grade 10.indb 295
295
4/12/2025 4:05:38 PM
Feature
Computer Vision
Image Processing
Purpose
Helps machines “see” and understand images like humans do.
Enhances or modifies images without understanding their content.
Goal
Recognising objects, faces, and scenes to make decisions.
Improving image quality (brightness, contrast, noise removal, etc.).
How it Works
Uses AI, deep learning, and pattern recognition to analyse images.
Uses mathematical techniques to edit and transform images.
Real-Life Uses
Face recognition (e.g., unlocking phones), self-driving cars, medical diagnosis.
Photo filters, resizing images, sharpening blurry pictures.
Example Apps
Google Photos (object search), Snapchat (face filters), Tesla (autonomous driving).
Photoshop (image editing), Instagram (brightness/contrast adjustments), Scanners (text sharpening).
Activity Emoji Scavenger Hunt: An AI Game The Emoji Scavenger Hunt uses your phone’s camera and Google’s machine learning to identify real-world objects that match given emojis. The game presents an emoji, and you have to find and point your camera at a corresponding object within a time limit. The neural network running on your device attempts to recognise the object in real-time. The more emojis you match with real objects, the higher your score. This experiment demonstrates how machine learning and computer vision can be used for object recognition in a playful and interactive way. Follow the given steps to play the Emoji Scavenger Hunt: 1. Go to emojiscavengerhunt.withgoogle.com on your phone. You will be directed to a web page, as shown.
2. Click on the LET’S PLAY button to begin. 3. An emoji will be displayed, and you must locate a real-world object that matches it.
296
Part B_AI Grade 10.indb 296
4/12/2025 4:05:38 PM
4. Point your camera at the object. The AI will attempt to recognise it and tell it what it is seeing.
5. Continue finding objects for each emoji until the timer runs out.
Chapter 17 • Computer Vision and Its Applications
Part B_AI Grade 10.indb 297
297
4/12/2025 4:05:38 PM
Applications of Computer Vision
Computer vision algorithms can be trained with a lot of visual data to process visuals at incredible speed and accuracy. These applications are available to everyone easily today and they are on the priority list of many industries. Let us explore some major applications of computer vision:
Facial Recognition
When you set up a face lock on your smartphone, you are teaching the device to recognise your unique facial features. Computer vision technology analyses the distinct details of your face, such as the arrangement of your eyes, nose, and mouth. It then saves these features as digital signatures and refers to them whenever required. So, every time you look at your phone, the computer vision technology compares what it ‘sees’ with the stored facial signature. If the match is successful, the phone unlocks, granting you access. This is how computer vision makes our devices smarter and more user-friendly.
Face Filters
Social media apps like Instagram and Snapchat have made face filters a fun and popular feature, all thanks to computer vision. Ever wondered how these filters work? When you open the camera, the app scans your face, recognising key features like your eyes, nose, and mouth. Then, it applies the chosen filter—whether it’s a cute animal face, makeup effect, or even a funny transformation. These filters are not just for fun; they are also used for virtual makeup try-ons and creative content, making social media more interactive and engaging.
Document Verification
Industries such as banking and finance, travel, property and real estate, law and legal services, and vehicle registration and verification are major areas where computer vision capabilities can be applied for accurate validation of the documents as quickly as possible. It helps in fraud detection, authenticating individuals, verifying ownership of property, identifying forfeited currency and documents.
Healthcare Services
Devices and sensors equipped with computer vision technology help with faster and more accurate diagnosis of diseases and health conditions. Real-time blood loss monitoring in patients during operations, locating tumours, internal infections, cardiovascular ailments, etc., can all be scanned to minimise the death rate.
Retail Industry
The shopping cart’s sensors can easily perform object identification of the items in the cart and match the details in the database using computer vision. Computer vision can help in taking inventory of items in stock for reorders and tracking the status of those items. Quicker checkouts at the mall exit, locating misplaced items, checking shoplifting, minimising billing errors, and identifying regular buyers and their preferences are the major benefits that can be harvested with the help of computer vision.
298
Part B_AI Grade 10.indb 298
4/12/2025 4:05:39 PM
Image-Based Search
Taking a picture of an item and locating it on the internet is a common practice today. Finding items, people, and places can be highly efficient with computer vision technology. They also help in product comparison for variety, finding similar products, classifying items on physical features and people for agespecific or gender-specific services, consolidating product catalogues, etc.
Digital Audio-Visual Marketing The new trending innovation in digital marketing using computer vision, helps users create realistic visual content for the intended audience and customers. Companies like Lenskart and Zara use computer vision for virtual try-on experiences, allowing users to visualise how the items would look on them before making a purchase. This interactive application demonstrates the versatility and widespread adoption of computer vision across different industries.
Education and Training
Augmented reality (AR) and virtual reality (VR) learning experiences heavily rely on computer vision algorithms. These algorithms play a pivotal role in transforming static educational content into dynamic and interactive formats. For instance, computer vision is instrumental in generating 3D visuals from 2D images, enabling online classes, and enhancing virtual tour excursions. In essence, computer vision acts as a foundational tool for creators, allowing them to craft immersive educational content that fosters engaging and effective online learning environments.
Autonomous Vehicles
Computer vision plays a critical role in the development of autonomous vehicles. It allows these vehicles to ‘see’ and understand their surroundings, enabling them to navigate safely and efficiently. Self-driven cars, driverless trucks, pilotless planes, and hands-free driving assistance are some examples of CV applications. This involves the process of identifying the objects, finding their navigational routes, and at the same time monitoring the environment. However, adverse weather and unexpected events challenge accurate object detection. Also, ethical dilemmas and complex road situations require advanced decision-making.
Character, Sign, and Symbol Recognition
CV applications can recognise various scientific icons and optical codes. This enhances visual communication in tasks like interpreting traffic signs for self-driving vehicles, enabling Google Translate to convert text from images, and extracting information from images through pixel-based scanning.
Chapter 17 • Computer Vision and Its Applications
Part B_AI Grade 10.indb 299
299
4/12/2025 4:05:40 PM
Smart Homes and Cities
Computer vision in smart homes enables features like facial recognition for security, gesture-based controls for managing devices such as lighting, entertainment systems, and appliances, as well as monitoring for energy efficiency. In smart cities, CV aids in traffic management, public safety surveillance, and infrastructure monitoring to optimise urban planning and resource allocation.
Activity Time (Individual Activity)
Activity 1: Traffic Sign Detection Game
Present students with various traffic signs. They have to identify and classify the traffic signs. They can then speak about the importance of traffic sign recognition in autonomous vehicles. (Group Activity)
Activity 2: Design a Futuristic City
Students can brainstorm and sketch ideas for a futuristic city that utilises computer vision for various purposes (e.g., smart traffic lights, self-regulating pedestrian crossings, automated waste management). They can create a presentation showcasing their ideas on how computer vision can contribute to a safer, more efficient future city. They can discuss potential challenges and solutions.
Chapter Checkup A Select the correct option. 1 If AI enables computers to think, then computer vision enables computers to ....................... a Smell
b See
c Listen
d Speak
2 What does CV stand for in the context of digital audio-visual marketing? a Computer Vision
b Consumer Vision
c Comprehension Vision
d Consequences Vision
3 In the application of computer vision in the retail industry, what can sensors in the shopping cart easily perform? a Employee attendance
b Identification of items
c Temperature of products
d Social media engagement
B Fill in the blanks with the most suitable words. 1 Computer vision enables computers to derive meaningful information from 2
recognition is commonly used as a security feature in handheld digital communication devices.
3 The application of computer vision in the the shopping cart. 4 Computer vision enables C
and videos.
industry includes performing object identification of items in
application to convert text from images.
State whether the following statements are True or False. Correct the statements that are false. 1 Computer vision is a domain of artificial intelligence.
2 The application of computer vision in the retail industry does not involve tracking the status of items.
300
Part B_AI Grade 10.indb 300
4/12/2025 4:05:41 PM
3 Autonomous vehicle routing-and-parking assistance is not an example of computer vision applications. 4 Computer vision is not applicable in the education sector. D Answer the following questions. Q1. Explain one major benefit of using computer vision in the healthcare industry. A1. In the healthcare industry, devices and sensors equipped with computer vision technology help with faster and more accurate diagnosis of diseases and health conditions. Real-time blood loss monitoring in patients during operations, locating tumours, internal infections, cardiovascular ailments, etc., can all be scanned to minimise the death rate. Q2. Explore the applications of computer vision in autonomous vehicles, detailing its benefits and challenges. A2. Computer vision plays a critical role in the development of autonomous vehicles. It allows these vehicles to ‘see’ and understand their surroundings, enabling them to navigate safely and efficiently. Self-driven cars, driver-less trucks, pilot-less planes, and hands-free driving assistance are some examples of CV applications. This involves the process of identifying the objects, finding their navigational routes, and at the same time monitoring the environment. However, adverse weather and unexpected events challenge accurate object detection. Also, ethical dilemmas and complex road situations require advanced decision-making. Q3. Imagine you are designing a new application for the retail industry. How can adding computer vision to the application improve the shopping experience for customers? A3. Computer vision can improve the shopping experience of customers in many ways. Using computer vision, the shopping cart’s sensors can easily perform object identification of the items in the cart and match the details in the database. Computer vision can also help in taking inventory of items in stock for reorders and tracking the status of items. Quick checkout at the mall exit, locating misplaced items, checking shoplifting, minimising billing errors, and identifying regular buyers and their preferences are the major benefits to be harvested with the help of CV technology.
AI Activities Visit the link: https://quickdraw.withgoogle.com and let AI identify your drawing.
Answer Key A
1. b
B
1. Images
C
1. True
2. a
3. b
2. Facial
3. Retail
4. Google Translate
2. False. The application of computer vision in the retail industry involves tracking the status of items.
3. False. Autonomous vehicles routing-and-parking assistance is an example of computer vision applications. 4. False. Computer vision is applicable in the education sector.
Chapter 17 • Computer Vision and Its Applications
Part B_AI Grade 10.indb 301
301
4/12/2025 4:05:41 PM
Unit 5 • Computer Vision
18 Understanding CV Concepts C
omputer vision is a domain of AI that enables devices to interpret and understand visual information from the environment, such as images and videos. It plays a crucial role in many applications, including autonomous driving, medical imaging, facial recognition, and more. In computer vision, understanding pixels, resolution, and pixel values is crucial, as these concepts form the foundation for various image processing and analysis techniques. Grasping these basics helps effectively apply and develop methods for interpreting visual data.
Computer Vision Tasks
Computer vision encompasses a wide range of tasks that are essential for extracting meaningful information from images or videos. These tasks can either directly support predictions or provide foundational data for more complex analyses. Below are key tasks typically performed in computer vision applications: For Single Object
Classification
For Multiple Objects
Object Detection
Classification + Localisation
Instance Segmentation
Image Classification
Image classification is the process of assigning an input image a label from a predetermined list of categories. Although it seems simple, this task is central to computer vision and forms the core of many real-world applications. The common applications of image classification include medical imaging, where it helps recognise diseases from scans, and online communities, where it can be used to categorise photographs according to their content.
Classification with Localisation
This task involves identifying both the object present in an image and its location within that image. It is specifically used for single objects. In applications such as robotics, where a robot must locate an object before interacting with it, or in surveillance systems, where locating individuals or objects is crucial, this process is essential for ensuring precise object positioning.
302
U26AI1018.indd 302
4/15/2025 12:20:27 PM
Object Detection
Object detection is the process of finding instances of real-world objects such as faces, cars, or animals in images or videos. Object detection algorithms typically use extracted features and learning algorithms to recognise instances of an object category. Object detection algorithms are helpful for many applications, such as self-driving vehicles, where it is important to recognise pedestrians and other cars, or the retail sector, where it can be used to track items on racks. These methods are used to identify and categorise every object in an image.
Instance Segmentation
A more detailed operation known as instance segmentation assigns labels to each pixel in an image corresponding to the object to which it relates, in addition to detecting and classifying objects. This leads to an accurate drawing of the boundaries of objects. When precise knowledge of the dimension and structure of each object is required, like in medical imaging for segmenting tumours or monitoring the environment for imagery from satellite analysis, instance segmentation plays a crucial role. Classification
Classification + Localisation
Object Detection
Instance Segmentaion
Basics of Image
An image is a graphical representation of data that can be used to portray a certain scene, idea, or concept or to capture a moment in time. Images are essential to many digital domains, such as website development, artificial intelligence, graphics design, and cinematography. Some important concepts of image are pixel, resolution, and pixel value. Let us discuss these concepts one-by-one.
Pixel
The smallest unit of a digital image is called a “picture element”, which is what the name “pixel” refers to. A digital photograph is made up of thousands or even millions of these pixels. Pixels are usually square but occasionally round and are carefully organised in a two-dimensional grid to form the entire image.
The example that follows shows how a portion of an image can be greatly magnified to show the individual pixels that make it up. Together, these pixels approximate the original image. The more pixels you have, the more closely the image resembles the original.
Chapter 18 • Understanding CV Concepts
Part B_AI Grade 10.indb 303
303
4/12/2025 4:05:42 PM
Resolution
Resolution refers to the total number of pixels contained within an image. Resolution determines the image’s clarity and detail. The image resolution increases with pixel count, making it possible to more accurately capture the minute details of the original scene. For this reason, compared to lower-resolution photographs, where each pixel can become more obvious and the image less polished, high-resolution images, with their more tightly packed pixels, look sharper and more detailed. The different ways to describe resolution are as follows: •
Resolution by Dimensions: One common way to describe resolution is by specifying the number of pixels along the width and height of an image, such as 1280 × 1024. Here, “1280” represents the number of pixels across the width, while “1024” represents the pixels from top to bottom. This method provides a clear understanding of the image’s structure and is often used when discussing display resolutions, such as on monitors, TVs, or smartphone screens.
•
Resolution by Pixel Count: Another approach to describing resolution is by using a single figure to represent the total pixel count. For example, consider a 12-megapixel camera. This camera captures images containing approximately 12 million pixels, which is determined by multiplying the image’s pixels along the width by its height. For example, an image with a resolution of 4000 × 3000 pixels has a total of 12 million pixels (4000 multiplied by 3000 equals 12,000,000 pixels), which is why it is referred to as a 12-megapixel image.
Higher resolution generally equates to finer detail and sharper images. The idea of pixel density—which is commonly expressed in pixels per inch, or PPI—is essential for assessing a digital image’s quality. A higher pixel density guarantees finer detail and smoother transitions, giving the image a more realistic appearance. Comprehending the function of pixels in digital imaging is crucial in domains such as graphic design, computer vision, photography, medical imaging, video production, etc., where precise and high-quality images are required. Did You Know? In photography, a higher megapixel count allows for larger The first digital image ever created was of a prints and more detailed zooming without losing clarity. In baby, captured in 1957. It was just 176 × 176 digital displays, higher resolution contributes to better image pixels. quality, making it possible to view more detailed content without noticeable pixelation.
Pixel Value
In digital imaging, every pixel that constitutes an image stored on a computer has an associated pixel value. This value determines the brightness and the specific colour of the pixel. The most common format for storing these pixel values is the byte image, where each pixel’s value is represented as an 8-bit integer. This format allows each pixel to have a value ranging from 0 to 255. In this context, a pixel value of 0 typically represents no colour or black, while a value of 255 represents full colour or white. Understanding the 255 Pixel Value Range The reason behind the maximum value of 255 lies in the way computers store and process data. Computers store data using a binary system, which is a base-2 number system comprising only two digits: 0 and 1. Each binary digit is known as a bit. When we talk about an 8-bit system, we mean that each pixel’s value is stored using 8 bits. Since each bit can have two possible values (0 or 1), an 8-bit sequence can represent 28 or 256 different values, ranging from 0 to 255. This gives us a total of 256 possible pixel values, providing a detailed spectrum of brightness or colour intensity in images. In practice, this 8-bit format is widely used because it offers a good balance between image quality and file size, making it suitable for various applications, from basic image storage to complex computer vision tasks.
304
Part B_AI Grade 10.indb 304
4/12/2025 4:05:42 PM
Number of Bits
Different Patterns
No. of Pattems
No. of Patterns
1
01
2^1
2
2
00 01 10 11
2^2
4
3
000 001 010 100 011 101 110 111
2^3
8
2^8 = 256
Did You Know? By using more bits per pixel, such as 16-bit or 32-bit formats, images can represent even finer gradations of colour and brightness, which is often necessary in professional imaging and scientific applications where precision is critical.
Grayscale Images
Grayscale images are a type of digital image that contains varying shades of grey without any visible colour. These shades range from black, the darkest possible shade which represents the complete absence of light and colour, to white, the lightest shade which represents the full presence of light and colour. The black shade is typically assigned a pixel value of 0, while white is assigned a pixel value of 255. The shades of grey in between are achieved by combining equal intensities of the three primary colours (red, green, and blue).
Think and Tell
What do you think would happen if a pixel in an image had a value outside the 0–255 range? How would it affect the image?
A grayscale image is defined by its individual pixels, which are each saved as a single byte. These pixels combine to form a 2D array, or a single plane. The size of a grayscale image is defined as the height × width of that image.
Take a look at this sample to get a better understanding of grayscale images. You can see that the image’s pixel values span from 0 to 255. The computer stores such images in the form of these numbers.
Grayscale images are foundational in various fields, particularly in image processing and computer vision. Since these images are simpler than colour images, they require less computational power and memory for processing. This simplicity makes them ideal for tasks such as edge detection, and object recognition. For instance, in medical imaging, grayscale images are commonly used in X-rays and MRIs, where the focus is on the structure and density of tissues rather than their colour.
Chapter 18 • Understanding CV Concepts
Part B_AI Grade 10.indb 305
305
4/12/2025 4:05:42 PM
RGB Images
We look at various coloured images in our daily lives. These coloured images are composed of three primary colours: red, green, and blue, collectively known as RGB. In an RGB image, each pixel is essentially a mix of red, green, and blue components. By adjusting the intensity of these components, a wide range of colours can be created. For instance, when all three colours are combined at their maximum intensity, the result is white. Conversely, when they are all at zero intensity, the result is black. By fine-tuning the individual levels of red, green, and blue, virtually any colour can be achieved, enabling the rich and varied visual experiences that digital images provide.
RGB
Every RGB image is stored in the form of three different channels called the R channel, the G channel, and the B channel. In the image below, if we separate the image into its three channels, each channel will display varying intensities for the individual pixels. When viewed independently, these channels appear as grayscale images, reflecting the intensity values for each pixel within that channel. We already know that these intensities range from 0 to 255, where 0 represents the absence of colour (black) and 255 represents the full presence of colour (white). In other words, we can say that all three planes, when combined form a colour image. This means that in a RGB image, each pixel has a set of three different values which together give colour to that particular pixel.
R
G
B
RGB colour representation is foundational in various fields such as digital imaging, computer graphics, and visual media. Understanding how these colours interact is crucial for tasks like image processing, colour correction, and even designing user interfaces where colour plays a vital role in the user experience. By mastering the principles of RGB, one can gain deeper insights into how digital devices render the vibrant world we see on screens.
Activity RGB Calculator
The RGB calculator helps you convert colours between different formats, such as RGB, HEX, and HSL. It also allows you to adjust the individual red, green, and blue (RGB) components of colour to see how they combine to create different colours. Let us perform the following steps to demonstrate the use of the RGB calculator:
1. Visit the https://www.w3schools.com/colors/colors_rgb.asp web link. You will be directed to a web page, as shown.
306
Part B_AI Grade 10.indb 306
4/12/2025 4:05:43 PM
2. Drag the sliders for red, green, and blue to adjust their levels and mix these colours. The resultant colour will be displayed in real-time as you move the sliders, allowing you to see how different combinations affect the final colour.
3. To display black, set all colour parameters to 0: rgb (0, 0, 0).
4. To display white, set all colour parameters to 255: rgb (255, 255, 255). 5. To display grey, set all colour parameters as equal.
Activity Creating Pixel Art Piskel is a free online pixel art and animated sprite editor. Artists and game developers often use it to create sprites and animations for games. It is popular for its user-friendly interface and ease of use.
Error Alert! Misconception: RGB images are always better than grayscale images for computer vision tasks. Solution: The choice between RGB and grayscale depends on the specific task; grayscale is often more efficient for tasks that don’t require colour information.
Follow the give steps to create a pixel art:
1. Visit the www.piskelapp.com link. You will be directed to a web page, as shown.
Chapter 18 • Understanding CV Concepts
Part B_AI Grade 10.indb 307
307
4/12/2025 4:05:43 PM
2. Click on the Create Sprite button.
3. Create a new sprite in the frame using the various tools available in the toolbar on the left. For example, you can use the Dithering tool to draw your sprite and then apply the Paint bucket tool to fill it with colours.
3. Click on the EXPORT button located on the right-hand side of the bar.
4. From the GIF tab, click on the Download button to download the created sprite as an animated GIF.
The sprite is downloaded. You can then use the created sprite. Image Features
In the field of computer vision and image processing, a ‘feature’ refers to a distinct piece of information within an image. These features plays a crucial role in addressing specific computational tasks or solving problems associated with particular applications. They can manifest as various structural elements in an image, such as points, edges, textures, or even larger entities like objects. Identifying and analysing features within an image is foundational to various computer vision applications. For instance, in facial recognition systems, key facial features like the eyes, nose, and mouth are extracted and compared against a database to verify identity. Similarly, in autonomous driving, features such as road signs, lane markings, and obstacles are detected to guide the vehicle’s decisions. The importance of features extends beyond simple detection; they also enable more complex tasks such as image segmentation, where an image is divided into different regions based on feature similarities, and image classification, where features are used to categorise images into predefined classes. Understanding how to extract and utilise these features effectively is crucial for developing robust computer vision systems that can perform reliably in diverse real-world scenarios.
308
Part B_AI Grade 10.indb 308
4/12/2025 4:05:43 PM
Example: Locating Image Patches Let us consider a scenario where a security camera captures an image. At the top of this image, you are presented with six small image patches—each containing a distinct visual pattern. Your objective is to accurately identify and pinpoint the exact location of each of these patches within the larger image. For this, take a pencil and carefully mark the precise locations where these patches appear in the image.
A
C
E
B
D
F
Now, answer the following questions: •
Were you able to locate all the patches precisely?
•
Which patch was the most challenging to locate?
•
Which patch was the easiest to locate?
Let us examine each patch individually and then determine their exact locations. •
For Patches A and B: These patches cover flat surfaces in the image and occupy a large area. However, their location within this area can vary, making it difficult to pinpoint their exact position. The expansive nature of these patches contributes to the challenge, as there are numerous potential locations where they could be found.
•
For Patches C and D: These patches represent the edges of a building and are simpler to identify compared to A and B. While it is possible to approximate their locations due to the linear nature of the edges, finding the exact location still remains challenging. This difficulty arises because the pattern along the edge is consistent, making it hard to distinguish one part of the edge from another.
•
For Patches E and F: These patches are the easiest to locate within the image. They represent the corners of the building, which are distinctive because the visual pattern changes sharply at these points. Unlike the edges, where the pattern remains consistent, the corners offer unique visual cues that make it easier to identify the precise location of these patches.
The difficulty in locating these patches can be linked to the inherent properties of the image features they represent. Flat surfaces (Patches A and B) offer fewer unique identifiers, resulting in ambiguity. Edges (Patches C and D), while more defined, still present challenges due to repetitive patterns. Corners (Patches E and F), on the other hand, serve as natural anchors in an image, offering the most distinctive features for precise identification.
Chapter 18 • Understanding CV Concepts
Part B_AI Grade 10.indb 309
309
4/12/2025 4:05:43 PM
Activity Time (Group Work)
Activity 1: Computer Vision Tasks
Form groups of 3 or 4 students. Assign each group a computer vision task: image classification, classification with
localisation, object detection, or instance segmentation. Ask them to discuss how these tasks are applied in real-world scenarios. Encourage the students to share any personal experiences or knowledge related to these tasks, such as
interactions with facial recognition technology or autonomous driving systems. Each group will present their discussions to the class.
(Individual Work)
Activity 2: Hands-On Task
Provide students with an image containing several small patches, each representing different features like edges, corners,
or flat surfaces. Students will attempt to locate and mark the exact positions of these patches within the larger image. After completing the task, have students reflect on which patches were easier or more difficult to locate and discuss how these features play a role in computer vision tasks such as object detection and image matching.
(Individual Work)
Activity 3: Research Work
Students will conduct research on the applications of AI and computer vision in their local community. They should explore areas such as security surveillance, healthcare imaging, or retail automation. Students will write a report detailing their findings, focusing on how these technologies are used, their benefits, and any ethical concerns that might arise. Each student will present a summary of their report to the class.
Chapter Checkup A Select the correct option. 1 In the context of pixel values in a grayscale image, what does a pixel value of 0 typically represent? a White b Grey
c Black d Transparent
2 Which method in computer vision assigns tags to each pixel in an image corresponding to the object it relates to? a Image Classification
b Classification with Localisation
c Object Detection
d Instance Segmentation
3 What is the primary purpose of resolution in an image? a To determine the colour intensity
b To specify the pixel values
c To measure the brightness
d To indicate the image’s clarity and detail
4 In RGB images, combining all three colours at their maximum intensity results in which colour? a Black b Grey c White d Red
B Fill in the blanks with the most suitable words. 1 The simplest unit of a digital image is known as 2 In an 8-bit image, pixel values range from 0 to 3
. .
refers to the total number of pixels in an image, influencing its clarity and detail.
4 In computer vision,
involves recognising and locating multiple objects within an image.
310
Part B_AI Grade 10.indb 310
4/12/2025 4:05:44 PM
C
State whether the following statements are True or False. Correct the statements that are false. 1 Higher resolution results in more pixelation and less clarity in an image. 2 Image classification involves both identifying the object and pinpointing its location within the image. 3 Emoji Scavenger Hunt uses your phone’s camera to identify real-world objects that match given emojis. 4 The RGB colour model is used primarily for grayscale images.
D Answer the following questions. (Solved) Q1. What is the significance of pixel density in digital images? A1. Pixel density, often measured in pixels per inch (PPI), is crucial for determining the sharpness and detail of an image. Higher pixel density results in finer detail and smoother transitions in an image, making it appear more realistic. Q2. Explain the role of resolution in digital imagery and how it affects the quality of images in different applications. A2. Resolution refers to the total number of pixels contained within an image. Resolution determines the image’s clarity and detail. The concept of resolution is essential not only in digital imagery but also in fields like photography, printing, and display technology. Higher resolution generally equates to finer detail and sharper images, which is crucial for applications like digital photography, medical imaging, and graphic design. In photography, a higher megapixel count allows for larger prints and more detailed zooming without losing clarity. In digital displays, higher resolution contributes to better image quality, making it possible to view more detailed content without noticeable pixelation. Q3. You are implementing a facial recognition system in a crowded environment. Which computer vision task would you use to detect and identify faces? A3. Object detection
AI Activities 1 V isit the link: https://www.youtube.com/watch?v=taC5pMCm70U to learn about image classification vs object detection vs instance segmentation. 2 Visit the link: https://www.youtube.com/watch?v=wsFROq2jVSQ to learn about the concept of pixel.
Answer Key A
1. c
2. d
3. d
4. c
B
1. pixel
2. 255
3. Resolution
4. Object Detection
C
1. False. Higher resolution results in less pixelation and more clarity in an image. 2. False. Image classification involves only identifying the object, not its location. 3. True
4. False. The RGB colour model is used primarily for colour images.
Chapter 18 • Understanding CV Concepts
Part B_AI Grade 10.indb 311
311
4/12/2025 4:05:44 PM
Unit 5 • Computer Vision
19 No Code AI Tools** Introduction to Lobe
Lobe is a free, user-friendly AI application created by Microsoft that allows users to train machine learning models without requiring any coding skills. It uses an image classification system that accepts a collection of labelled images and automatically determines the best model to categorise them.
Features of Lobe
Following are the features of Lobe: •
Lobe has simplified the process of machine learning.
•
It has all the necessary components to realise your machine learning concepts.
•
Lobe provides a free and user-friendly tool to assist you in training models.
•
It automatically develops a unique machine-learning model that your app can use.
Getting Started with Lobe AI
Lobe AI is easy to use as no coding knowledge is required. To develop your own AI model, take the following actions: Step 1 Download the latest version of Lobe app from Lobe’s official website i.e. lobe.ai for Windows or macOS. Step 2 •
Double-click on the icon to open Lobe and create a new project.
•
Drag and drop or import pictures into Lobe.
•
Give a category name to every collection of pictures.
Step 3 •
As soon as the pictures are labelled, Lobe begins training automatically.
•
Allow the training to finish; it runs locally on your PC.
•
To determine whether the model makes accurate predictions, test it with fresh pictures.
Step 4 •
To improve accuracy, include more pictures.
•
Verify that there are sufficient examples in each category.
•
Retrain and retest.
** Note: This chapter is to be assessed through practicals.
312
Part B_AI Grade 10.indb 312
4/12/2025 4:05:45 PM
Step 5 •
Export your trained model by clicking the “Use” button.
•
Select an export format:
•
TensorFlow (for mobile and web applications)
Raspberry Pi (for embedded devices)
ONNX (for Windows apps)
Use JavaScript, Python, or another platform to include it into your project.
Applications of Lobe AI
Lobe AI is useful in many different sectors and is excellent for classifying images. Here are a few real-world examples: Agriculture and Farming: In farming and agriculture, Lobe can be used to recognise crops, identifying plant diseases from leaf images and sorting fruits and vegetables based on quality. Healthcare and Medical: In healthcare and medical, Lobe can be used to identify skin conditions from images, detecting X-ray or MRI abnormalities and assisting visually impaired individuals. Security and Surveillance: In security and surveillance, Lobe can be used to recognise faces for security access, detecting intruders or suspicious activity and identifying licence plates for automated parking systems. Retail and Inventory: In retail and inventory, Lobe can be used to recognise products on shelves for stock management, identifying counterfeit products and automating checkout in stores. Manufacturing and Quality Control: In manufacturing and quality control, Lobe can be used to detect defects in products, sorting items on a production line, monitoring worker safety using AI-powered cameras.
Teachable Machine
This is another web-based tool that helps to create machine learning models in an easy and quick manner. You do not need to be a coding expert to use the application. This application helps train a computer to recognise images, sounds, and poses, making it a practical application of computer vision by enabling machines to accurately interpret and classify visual data. Let us learn about this tool with the help of the following activity.
Activity Follow the given steps to learn how the teachable machine application works: 1. Visit the following link: https://teachablemachine.withgoogle.com/ 2. The following window will appear.
Chapter 19 • No Code AI Tools
Part B_AI Grade 10.indb 313
313
4/12/2025 4:05:45 PM
3. Click on the Get Started button. You will be directed to a web page, as shown.
From the window that appears, you can use any of the following options to teach your machines: •
Image Project: To teach a model to classify images using files on your system or your webcam.
•
Audio Project: To teach a model to classify audio by recording short sound samples.
•
Pose Project: To teach a model to classify body positions or poses using image files on your system or striking poses on your webcam.
314
Part B_AI Grade 10.indb 314
4/12/2025 4:05:45 PM
5. Let us create an image project. For this, click on the Image Project option. 6. Collect images of different leaves and flowers, as shown. Here is the training data, in the form of images, of leaves and flowers, for your reference.
Training Data for Leaves
Training Data for Flowers
7. Click on the Upload button to upload various images.
8. The results of any machine learning model depend on the examples or the sample data you give it. So, if it’s not working as you had intended, then add more samples to the training data that was provided to your machine. 9. After uploading the training data, click on the Train Model button. 10. Now, select the File option from the drop-down of the Preview window. 11. Test your machine learning model by choosing images (leaves or flowers) from your files and see what Output (Leaf or Flower) it displays in the Preview window.
Chapter 19 • No Code AI Tools
Part B_AI Grade 10.indb 315
315
4/12/2025 4:05:48 PM
Orange Data Mining
Orange is an open-source data mining and machine learning tool that provides data visualisation capabilities. This tool is also a no code AI tool, and you do not need to write any code. This platform is easy to use, has lovely graphics, and may be utilised for analysis. It was developed by The University of Ljubljana under the GPLv3 license. It provides a graphical user interface (GUI) that enables users to create data analysis workflows interactively by utilising various widgets. Each and every widget plays a particular role in the process of data analysis. It is an effective tool for data analysis and mining jobs as users can integrate various widgets to construct unique workflows for tasks like data preprocessing, modelling, assessment, and visualisation. Below is a brief overview of some of the most often used Orange data mining widgets.
Data Loading Widgets
These widgets assist you in importing data from files or the internet into Orange. File: It allows you to import data from files in a variety of formats, including CSV, Excel, and SQL. URL: Data is loaded from a URL. Data Table: It is used to present loaded data in tabular form.
Data Exploration Widgets
With the help of these widgets, you may view your data in various formats, such as scatter plots or histograms, to identify trends or patterns. Scatter Plot: It illustrates the connection between two data variables. Data Table: It enables for manual inspection and data investigation. Distributions: It is used to show histograms and other statistical distributions for variables.
Preprocessing Widgets
These widgets assist you with cleaning up your data, such as filling in missing numbers or ensuring that all of your data is scaled consistently. Impute: It is used to handle missing values in the dataset. Normalise: It is used to standardise data to a common scale. Select Columns: It enables you to choose particular dataset columns.
Feature Selection Widgets
You can use these widgets to determine which aspects of your data are most crucial for your research. Select Columns: It gives you the option to select relevant dataset columns and features. Select Best Features: It is used to choose the best characteristics automatically by using criteria like correlation or mutual information.
Modelling Widgets
These widgets generate models, like decision trees or clustering algorithms, using your data to help you better understand it. Classification Tree: It builds a classifier based on a decision tree.
316
Part B_AI Grade 10.indb 316
4/12/2025 4:05:48 PM
k-Means: It clusters the data using k-means. Support Vector Machine: A classifier for support vector machines is trained by it. Logistic Regression: It constructs a logistic regression model.
Evaluation Widgets
By using these widgets, you can check how well your models are functioning and make any necessary improvements. Test and Score: It analyses how well a prediction model performs on a test dataset. Cross Validation: It applies cross-validation to evaluate model performance. ROC Curve: The receiver operating characteristic curve for binary classifiers is plotted.
Visualisation Widgets
To make your data accessible, these widgets assist you in transforming it into visual representations such as charts or graphs. Bar Chart: It is used to show data in the form of a bar chart. Heat Map: It uses a heatmap to visualise data. Scatter Plot: It is used to show how two variables relate to one another.
Getting Started with Orange Data Mining
Orange data mining tool enables users to analyse, display, and create machine learning models without the need to write code. It is commonly used for corporate analytics, research, and teaching. 1. Download the latest version of Orange data mining app from Orange’s official website i.e., https:// orangedatamining.com/ for Windows or macOS.
Chapter 19 • No Code AI Tools
Part B_AI Grade 10.indb 317
317
4/12/2025 4:05:48 PM
2. When you launch Orange, you will see the Canvas, where you may create workflows with widgets as shown in the given figure. We can start a new project here or open a project that has already been made.
3. Orange comes with a lot of widgets like Data, Transform, Visualise, Model, Evaluate, Unsupervised, etc.
Data Widget
This widget is used to load, explore, and preprocess datasets. There are many options under this widget, such as: File: File widget is used to read data from input file. CSV File Import: CSV File widget is used to read data from input csv file. Data Sets: It is used to load dataset from online storage. Data Table: Data table is used to store data in table format. Data Info: It is used to display information on a selected dataset. SQL Data: It is used to load dataset from SQL. Save Data: It is used to save data.
Transform Widget
This widget is used to perform mathematical changes on numerical features in a dataset. The options under this widget are as follows: Data Sampler: It is used to create a subset of data points. Select Columns: It selects data attributes manually. Impute: Impute widget is used to replace unknown data values in the data. Apply Domain: It applies template domain on data table. Discretise: It discretised continuous attributes.
318
Part B_AI Grade 10.indb 318
4/12/2025 4:05:48 PM
Visualise Widget
This widget enables you to use various graphs and plots to analyse and understand your data. These widgets assist in finding trends, patterns, and connections between variables. The options under this widget are as follows: Tree Viewer: This is a versatile widget with 2-D visualisation of classification and regression trees. The user can select a node, instructing the widget to output the data associated with the node, thus enabling explorative data analysis. Box Plot: This widget visualises distribution of feature values in a box plot. Scatter Plot: This widget helps in identifying correlations, clusters, and outliers in the dataset. It is also used to visualise relationships between two numerical features. Sieve Diagram: It is used to visualised the observed and expected frequencies for a combination of values.
Model Widget
With the help of these widgets, one may create prediction models utilising various algorithms without knowing any code. The options under this widget are as follows: Constant: Predict the most frequent class or mean value from the training set. Tree: Trees are helpful for determining the significance of features and producing forecasts that can be understood. Random Forest Widget: This widget is used for classification and regression tasks. SVM: It supports vector machines map input to higher dimensional feature spaces.
Evaluate Widget
This widget is used to evaluate model performance. The options under this widget are as follows: Test and Score: It tests learning algorithm and cross validation accuracy estimation. Predictions: It is used to display predictions of models for an input data set. Confusion Matrix: It displays a confusion matrix constructed from the results of classifier evaluations. Performance Curve: It is used to construct and display a performance curve from the evaluation of classifiers.
Chapter 19 • No Code AI Tools
Part B_AI Grade 10.indb 319
319
4/12/2025 4:05:48 PM
Unsupervised Widget
These widgets are used to apply unsupervised learning models to our data and visualise it. The options under this widget are as follows: Distance File: This widget is used to read distance from file. Correlations: This widget is used compute all pairwise attribute correlations. Hierarchical Clustering: It displays a dendrogram of a hierarchical clustering constructed from the input distance matrix.
AI Project Cycle
The AI Project Cycle is an organised method for creating AI models that guarantees accuracy and effectiveness. It has multiple important phases: 1. Problem Scoping: In this stage, identify the problem. 2. Data Acquisition: In this step, dataset is created for the research and experimental purposes of a manuscript titled. 3. Data Exploration: To increase model performance, data is summarised, visualised, and trends are detected in this phase. 4. Modelling: Labelled or unlabelled data can be used to train the model in this phase. To improve accuracy, adjust the hyperparameters. 5. Evaluation: Perform cross-validation to check model robustness. 6. Deployment: Provide a system or application that incorporates the learned model in this phase. Evaluate model performance in real-world circumstances.
Orange Data Mining Tool-Use Case Walkthrough Activity: Build a classification model Purpose: To develop a classification model for early identification of coral bleaching to safeguard marine ecosystems.
Problem Scoping
Coral bleaching is the process by which corals become white and lose their vibrant colour. Climate change is the main factor causing coral bleaching. Addressing coral bleaching problem is important because, once dead, these corals rarely regrow; when they do, they have difficulty reproducing, and entire reef ecosystems—which support wildlife and people—deteriorate. Climate change, particularly rising sea temperatures, is the main factor causing coral bleaching. Other factors, such as pollution and overfishing, can also contribute. Early detection of coral bleaching can help protect marine ecosystems and biodiversity.
Data Acquisition
This dataset was produced for the research and experimental goals of the publication “Bag of Features (BoF) Based Deep Learning Framework for Bleached Corals Detection”. For this follow given steps: •
Click on Import Images option under the Image Analytics widget.
•
Rename Import Image to “train data”.
320
Part B_AI Grade 10.indb 320
4/12/2025 4:05:49 PM
•
Double-click on the train data icon and select the folder containing the training dataset.
•
The “2 categories” field indicates the two classes (Bleached and Unbleached) as shown in given figure.
Data Exploration
To explore the dataset, follow the given steps: •
Click on the Image Viewer option. The Image Viewer icon will appear on the canvas.
•
Double-click on Image Viewer icon to view the dataset through the application as shown in given figure.
Chapter 19 • No Code AI Tools
Part B_AI Grade 10.indb 321
321
4/12/2025 4:05:49 PM
•
Next, click on Image Embedding option.
•
Connect train data with Image Embedding as shown in figure.
•
Now, click on the Data Table option under the Data widget.
•
Connect Image Embedding with Data Table as shown in given figure.
•
Double-click on the Data Table icon to view the details as shown in given figure.
322
Part B_AI Grade 10.indb 322
4/12/2025 4:05:49 PM
Building Model •
Click on Test and Score option under the Evaluate widget.
•
Connect Image Embedding with Test and Score as shown in given figure.
•
Select different algorithms for classification likei. KNN
ii. Random Forest
iii. SVM
•
Connect these 3 algorithms to Test and Score to check which performs better as shown in figure.
•
Double-click on Test and Score to view the evaluation metric like Accuracy, F1 Score, Precision, and Recall for all 3 algorithms as shown in figure.
•
By carefully observing the following result, it can be concluded that the Logistic Regression gives the best accuracy in this case.
Chapter 19 • No Code AI Tools
Part B_AI Grade 10.indb 323
323
4/12/2025 4:05:49 PM
Evaluation •
Click on Confusion Matrix.
•
Connect Test and Score to Confusion Matrix.
•
Double-click on Confusion Matrix to view the distribution of correct and incorrect predictions as shown in the given figure.
•
Given figure shows the correct and incorrect predictions based on KNN.
•
Given figure shows the correct and incorrect predictions based on Random Forest.
324
Part B_AI Grade 10.indb 324
4/12/2025 4:05:50 PM
•
Given figure shows the correct and incorrect predictions based on SVM.
Prediction •
Click on Import Image.
•
Right-click and rename it to Test Data.
•
Double-click and select the folder containing training dataset.
Chapter 19 • No Code AI Tools
Part B_AI Grade 10.indb 325
325
4/12/2025 4:05:50 PM
•
The Image Viewer shows the test dataset as shown in figure.
•
Click on Image Embedding.
•
Connect test data to Image Embedding as shown in figure.
326
Part B_AI Grade 10.indb 326
4/12/2025 4:05:50 PM
•
Click on Predictions.
•
Connect Image Embedding to Predictions as shown in figure.
•
Now, select KNN from the Model widget and connect it to Image Embedding (of train data) as shown in figure.
Chapter 19 • No Code AI Tools
Part B_AI Grade 10.indb 327
327
4/12/2025 4:05:51 PM
•
The given table shows the prediction of test data based on KNN.
Think and Tell
Remember
Does the model make correct
In Orange data mining data flows from one widget to another. Tip: Start with the File widget, then connect to Data Table for exploration.
predictions in Lobe AI?
Did You Know? Word Cloud is used to analyse Twitter sentiment.
Activity Time Activity 1
(Individual Work)
Download the latest version of Orange app from Orange’s official website i.e. https://orangedatamining.com/ Activity 2
(Group Activity)
Train a model to predict an outcome for survival on Titanic
Purpose: Form groups of 4 students and train a model to predict an outcome for survival on Titanic in Orange data mining.
Chapter Checkup A Select the correct option. 1 What is the main purpose of Lobe AI?
a Data visualisation b Image classification c Web development d Text mining
328
Part B_AI Grade 10.indb 328
4/12/2025 4:05:51 PM
2 What is the main purpose of Orange?
a Image generation b Data mining and visualisation c Video editing
d Game development
3 Can Lobe AI be used without an internet connection? a No, it requires an internet connection
b Only for training models c Only for exporting models d Yes, it runs offline 4 Which widget shows the connections between two numerical features? a Box Plot b Heatmap
c Scatter Plot d Word Cloud B Fill in the blanks with the most suitable words. 1
is the main building block in Orange?
3
widget is used to detect missing values in the dataset.
2
widget is used to load dataset from SQL.
4 Labelled or unlabelled data can be used to train the model in C
phase.
State whether the following statements are True or False. Correct the statements that are false. 1 Unsupervised widget is used to evaluate model performance. 2 Lobe can be used to identifying skin conditions from images.
3 In modelling phase labelled or unlabelled data can be used to train the model in this phase.
4 Box plot is used to visualised the observed and expected frequencies for a combination of values. D Answer the following questions. (Solved)
Q1. What is Lobe? Explain some features of it.
A1. Lobe is a free, user-friendly AI application created by Microsoft that allows users to train machine learning models without requiring any coding skills. It uses an image classification system that accepts a collection of labelled images and automatically determines the best model to categorise them. Features of Lobe
• Lobe has simplified the process of machine learning. • It has all the necessary components to realise your machine learning concepts. • Lobe provides a free and user-friendly tool to assist you in training models. • It automatically develops a unique machine-learning model that your app can use.
Q2. What do you know about Teachable Machine?
A2. Teachable machine is another web-based tool that helps to create machine learning models in an easy and quick manner. You do not need to be a coding expert to use the application. This application helps train a computer to recognise images, sounds, and poses, making it a practical application of computer vision by enabling machines to accurately interpret and classify visual data. Q3. Describe the various phases of AI project cycle.
A3. The AI Project Cycle is an organised method for creating AI models that guarantees accuracy and effectiveness. It has multiple important phases:
• • •
Problem scoping: In this stage, identify the problem.
Data Acquisition: In this stage, dataset was created for the research and experimental purposes of a manuscript titled. Data Exploration: To increase model performance, data is summarised, visualised, and trends are detected in this phase.
Chapter 19 • No Code AI Tools
Part B_AI Grade 10.indb 329
329
4/12/2025 4:05:52 PM
•
Modelling: Labelled or unlabelled data can be used to train the model in this phase. To improve accuracy, adjust the hyperparameters.
•
Evaluation: Perform cross-validation to check model robustness.
•
Deployment: Provide a system or application that incorporates the learned model in this phase. Evaluate model performance in real-world circumstances.
AI Activities 1 Visit the link: https://bit.ly/orange_computer_vision and start exploring about Orange data mining.
2 Visit the link: https://www.youtube.com/watch?v=wZ06IMIja6Q and construct your own data using orange data mining.
Answer Key A
1. b
2. b
3. d
4. c
B
1. Widgets
2. SQL data
3. Impute
4. Modelling
C
1. False. Evaluate widget is used to evaluate model performance. 2. True. 3. True.
4. False. Sieve Diagram is used to visualised the observed and expected frequencies for a combination of values.
330
Part B_AI Grade 10.indb 330
4/12/2025 4:05:52 PM
Unit 5 • Computer Vision
20 Image Features**
I
n today’s digital world, computers are becoming increasingly capable of understanding and interpreting visual information, much like humans do. This ability is made possible through computer vision. At the core of computer vision lies the concept of features, which are distinctive patterns or structures within an image that help computers recognise and interpret visual data. From unlocking smartphones using facial recognition to enabling self-driving cars to navigate safely, feature extraction plays a fundamental role in various real-world applications. Features can range from simple elements like edges and textures to more complex structures such as objects and motion patterns. By learning how to identify, extract, and analyse these features, we can develop intelligent systems that can efficiently perform tasks like image classification, object detection, and image segmentation. In this chapter, we will explore the significance of features in image processing and understand their different types.
What is an Image Feature?
In the field of computer vision and image processing, a ‘feature’ refers to a distinct piece of information within an image. These features plays a crucial role in addressing specific computational tasks or solving problems associated with particular applications. They can manifest as various structural elements in an image, such as points, edges, textures, or even larger entities like objects. Identifying and analysing features within an image is foundational to various computer vision applications. For instance, in facial recognition systems, key facial features like the eyes, nose, and mouth are extracted and compared against a database to verify identity. Similarly, in autonomous driving, features such as road signs, lane markings, and obstacles are detected to guide the vehicle’s decisions. The importance of features extends beyond simple detection; they also enable more complex tasks such as image segmentation, where an image is divided into different regions based on feature similarities, and image classification, where features are used to categorise images into predefined classes. Understanding how to extract and utilise these features effectively is crucial for developing robust computer vision systems that can perform reliably in diverse real-world scenarios.
Example: Locating Image Patches
Let us consider a scenario where a security camera captures an image. At the top of this image, you are presented with six small image patches—each containing a distinct visual pattern. Your objective is to accurately identify and pinpoint the exact location of each of these patches within the larger image. For this, take a pencil and carefully mark the precise locations where these patches appear in the image. ** Note: This chapter is to be assessed through practicals.
331
Part B_AI Grade 10.indb 331
4/12/2025 4:05:53 PM
A
C
E
B
D
F
Now, answer the following questions: •
Were you able to locate all the patches precisely?
•
Which patch was the most challenging to locate?
•
Which patch was the easiest to locate?
Let us examine each patch individually and then determine their exact locations. •
For Patches A and B: These patches cover flat surfaces in the image and occupy a large area. However, their location within this area can vary, making it difficult to pinpoint their exact position. The expansive nature of these patches contributes to the challenge, as there are numerous potential locations where they could be found.
•
For Patches C and D: These patches represent the edges of a building and are simpler to identify compared to A and B. While it is possible to approximate their locations due to the linear nature of the edges, finding the exact location still remains challenging. This difficulty arises because the pattern along the edge is consistent, making it hard to distinguish one part of the edge from another.
•
For Patches E and F: These patches are the easiest to locate within the image. They represent the corners of the building, which are distinctive because the visual pattern changes sharply at these points. Unlike the edges, where the pattern remains consistent, the corners offer unique visual cues that make it easier to identify the precise location of these patches.
The difficulty in locating these patches can be linked to the inherent properties of the image features they represent. Flat surfaces (Patches A and B) offer fewer unique identifiers, resulting in ambiguity. Edges (Patches C and D), while more defined, still present challenges due to repetitive patterns. Corners (Patches E and F), on the other hand, serve as natural anchors in an image, offering the most distinctive features for precise identification. In image processing, various features can be extracted from an image to aid in analysis and decision-making. These features can include blobs, edges, and corners, each serving a specific purpose in different applications. But the key question is: which features are most effective for analysis? From previous observations, corners are generally considered better features compared to edges and flat areas. This is because corners are unique to specific locations in an image, whereas edges extend along a line, making them less distinct.
Example: Identifying Good Features
To illustrate this, consider an image with different patches: •
Blue Patch (Flat Area): A flat region is challenging to detect and track because it looks the same regardless of movement.
•
Black Patch (Edge): While edges provide more information than flat areas, they remain consistent along their direction, making them harder to pinpoint.
332
Part B_AI Grade 10.indb 332
4/12/2025 4:05:53 PM
•
Red Patch (Corner): Corners are distinct and retain their uniqueness no matter where they are moved, making them highly valuable for feature extraction.
Thus, corners are regarded as strong features in image processing, followed by edges. They enable precise tracking and recognition, forming the foundation of many computer vision applications such as object detection and image matching.
Think and Tell
How do different types of features impact real-world applications like facial recognition or autonomous vehicles?
Error Alert! Improper feature selection can reduce the accuracy of computer vision models. For example, relying on flat regions for feature extraction may result in tracking failures, as they lack distinctiveness.
Activity Time Activity 1: Hands-On Task
(Individual Work)
Provide students with an image containing several small patches, each representing different features like edges, corners,
or flat surfaces. Students will attempt to locate and mark the exact positions of these patches within the larger image. After completing the task, have students reflect on which patches were easier or more difficult to locate and discuss how these features play a role in computer vision tasks such as object detection and image matching. Activity 2: Spot the Best Features
(Group Work)
Look at an image of a city view and identify different types of features—flat areas, edges, and corners. Move a small patch
(cut-out or digital selection) over different regions and observe how its appearance changes. Discuss which features (corners, edges, or flat areas) are easiest to track and why. Try applying this concept to real-life applications like face detection or selfdriving cars. Share your findings with the class and explain why certain features are more useful in image processing.
Chapter Checkup A Select the correct option. 1 Which of the following is a type of image feature?
a Corner b Edge
c Flat surface d All of these
2 Why are corners considered good features in an image? a They appear different when moved c They are spread across a large area
b They are difficult to detect
d They remain unchanged when shifted
3 Which feature is the most challenging to track in an image?
a Corners b Edges
c Flat regions d All of these
4 When an edge is moved along its direction, what happens? a It looks different in each position
b It remains unchanged
c It disappears d It becomes a corner
5 Which type of image feature provides the most reliable reference point for object detection? a Flat regions b Edges
c Corners d Shadows
Chapter 20 • Image Features
Part B_AI Grade 10.indb 333
333
4/12/2025 4:05:54 PM
B Fill in the blanks with the most suitable words. 1 In image processing, a
is an essential part of analysing objects in an image.
2 The three main types of features in an image are
C
,
, and
3
are considered the best features because they are unique and easy to detect.
4
extend along a line and appear similar when moved in their direction.
5
regions are difficult to track because they lack distinguishing patterns.
.
State whether the following statements are True or False. Correct the statements that are false. 1 A corner feature looks the same when moved in any direction. 2 Edges are more distinctive than corners for object tracking. 3 Flat regions are difficult to track because they lack unique patterns. 4 Corners are useful for identifying objects in an image. 5 An edge feature changes appearance when moved along its direction.
D Answer the following questions. (Solved) Q1. What are the three main types of image features? A1. The three main types of image features are corners, edges, and flat regions. Q2. Why are flat areas difficult to track in an image? A2. Flat areas appear uniform and look the same in different parts of the image, making them hard to distinguish and track. Q3. Explain why corners are considered strong features in image processing. A3. Corners are unique points that look different when moved in any direction, making them easily identifiable for tasks like object recognition and tracking. Q4. Why is identifying and analysing features within an image important in computer vision applications? Provide examples to support your answer. A4. Identifying and analysing features within an image is crucial in computer vision because it enables systems to recognise and interpret visual information. For example, in facial recognition systems, key facial features like the eyes, nose, and mouth are extracted and matched against a database to verify identity. Similarly, in autonomous driving, features such as road signs, lane markings, and obstacles are detected to assist the vehicle in making informed decisions. These applications demonstrate how feature analysis helps improve accuracy and automation in various fields. Q5. Give one real-world application where corners are used as key features. A5. Corners are widely used in facial recognition systems, where key facial points (like the corners of eyes and lips) help in accurate identification.
AI Activities Visit the link: https://www.youtube.com/watch?v=AIj8M5flZIw to learn about image features.
Answer Key A
1. d
B
1. feature
C
1. False. A corner looks different when moved.
2. a
3. c
4. b
2. corners, edges, flat regions
5. c 3. corners
4. edges
5. Flat
2. False. Corners are more distinct because edges look the same along their length. 3. True 4. True
5. False. An edge looks the same when moved along its direction.
334
Part B_AI Grade 10.indb 334
4/12/2025 4:05:54 PM
Unit 5 • Computer Vision
21 Understanding Convolution Operator**
C
omputers store images as numbers. Each image is made up of tiny squares called pixels. The arrangement of these pixels creates the picture we see. Each pixel can have a value from 0 to 255, which determines its colour. When we change these numbers, we change the image. This is how image editing works. By altering the pixel values, we can modify the image. Many of us use image editing software like Photoshop. We also use apps like Instagram and Snapchat, which have filters to improve the look of our pictures. These filters work by changing the pixel values to make the image look better. Additionally, image editing can include cropping, resizing, and adjusting brightness or contrast. More advanced techniques involve adding special effects, removing unwanted elements, or combining multiple images. All these processes rely on manipulating the pixel values to achieve the desired results.
Original Image
Brightness
Contrast
Warmth
Solarise
Posterise
Noise
Grayscale
Pixelate
** Note: This chapter is to be assessed through practicals.
335
Part B_AI Grade 10.indb 335
4/12/2025 4:05:55 PM
Convolution
A fundamental mathematical action called convolution is essential to many common image processing methods. It involves the multiplication of two numerical arrays, usually of the same dimensionality but different sizes, to generate another array with the same dimensionality. Convolution is the process of multiplying an image array element-by-element with another array called the kernel and then adding up the results. To put it simply, imagine you have a grid of numbers representing an image and another smaller grid (the kernel) representing a filter. You place the kernel array over the image array, multiply the overlapping numbers, add them up, and record the result. You then move the kernel to the next position and repeat the process until the entire image has been processed. This creates a new grid of numbers (the output image) where each value reflects the combined effect of the original image array and the kernel array. Weighted sum for the pixel value in the output image
1 1×1 0×0 0×1
0
1
0
0
0
0
0 1×1 1×0 1×1
= 1+0+0+0+1+0+1+0+1
0
0
0
1
1
0
0
=4
0
0
1
1
0
0
0
0
1
1
0
0
0
0
1
1
0
0
0
0
0
= (1×1) + (0×0) + (0×1) + (1×0) + (1×1) + (0×0) + (1×1) + (1×0) + (1×1)
Where I is the image array, K is the kernel array, and I*K is the resulting array.
0 1×0 1×1 0×0
I Convolution is used in various applications, such as sharpening or blurring images, edge detection, and applying artistic effects. By changing the values in the kernel, you can achieve different results and enhance specific features of the image. Experimenting with different kernels helps in understanding how convolution affects an image and why it is a crucial tool in image processing.
*
1
0
1
0
1
0
1
0
1
K
=
1
4
3
4
1
1
2
4
3
3
1
2
3
4
1
1
3
3
1
1
3
3
1
1
0
I*K
Think and Tell
Why is convolution important in image processing and computer vision?
Kernel
The kernel plays a crucial role in convolution by determining how each pixel in an image is transformed, thereby influencing the overall appearance of the image. A kernel is a small grid that we move over an image, multiplying its values with the image’s pixels to change it in a specific way. Different effects, such as sharpening or blurring, are achieved by adjusting the values within the kernel. When we modify the values of the kernel, we alter the outcome of the convolution process. This means that changing the kernel’s values can produce varied visual effects on the image. For example, increasing the intensity of the sharpening kernel will enhance the clarity of the edges, making the image appear more defined. Conversely, adjusting a blurring kernel will soften details, resulting in a smoother and more diffused appearance across the image. In image processing, we use convolution to extract features from images, which is especially important in Convolutional Neural Networks (CNNs). You will study about CNNs in the next chapter. To perform convolution, we align the centre of the kernel with each pixel in the image. This process can make the output image smaller than the original because the edges aren’t fully covered. To keep the output image the same size as the input, we add padding around the edges of the input image, usually with zeros. By padding the image, we ensure that the convolution operation covers the entire image, maintaining the same dimensions for both the input and output images. This technique is crucial for preserving the size of the image during various processing stages, particularly in CNNs.
336
Part B_AI Grade 10.indb 336
4/12/2025 4:05:56 PM
Let us try an example to get the resultant array when the image array and kernel array are as follows: 0
1
1
0
1
0
1
1
0
1
1
0
1
1
1
1
0
1
1
0
Output:
0
0
1
0
1
1
1
1
0
Image Array
0
0
0
0
1
Kernel Array
The resultant array is:
Activity Image Kernels Explained Visually The “Image Kernels Explained Visually” by Setosa.io offers an interactive explanation of image kernels. It provides visual demonstrations of how different kernels affect an image and allows users to experiment with various kernels, upload their own images, or use live video to see the effects in real-time. Follow the given steps to perform this activity: 1. Visit the following link: https://setosa.io/ev/image-kernels/. It directs you to a web page with the heading ‘Image Kernels’. 2. You can apply a 3 x 3 kernel to an image of a face provided on the web page in an interactive manner. For this, you need to hover your mouse over the different pixels of the 'input image' on the web page and select different values for the kernel from the drop-down menu. These computations will result in different kernel values ultimately producing a new 'output image'.
Chapter 21 • Understanding Convolution Operator
Part B_AI Grade 10.indb 337
337
4/12/2025 4:05:56 PM
3. Now, scroll down the web page and click on the Choose File tab.
4. The Open dialog box opens. Navigate to the location and select an input image file that you want to upload. 5. Click on the Open button.
6. The image will be uploaded to the website. Select the effect that you want to apply to the image from the drop-down list. Here, we have selected the blur effect.
338
Part B_AI Grade 10.indb 338
4/12/2025 4:05:56 PM
7. The blur effect is applied to the image. Also, notice that the value of the kernel is changed according to the selected effect.
Activity Time (Group Work)
Activity 1: Group Discussion
Divide participants into groups. Assign each group a specific kernel (e.g., sharpening, blurring). Have them upload different images on the site https://setosa.io/ev/image-kernels/ and apply convolution using different kernel values. Discuss the results and how different kernel values impact image appearance.
(Individual Work)
Activity 2: Prepare presentation
Assign students the task of creating a presentation. The presentation should explain the fundamentals of image processing
techniques with a focus on convolution operations. Discuss the applications of convulation in editing and enhancing images.
(Individual Work)
Activity 3: Research Work
Assign students to research advanced applications of convolution in image processing. Explore scholarly articles and technical papers on the evolution of convolution techniques. Emphasise recent developments and future trends.
Chapter Checkup A Select the correct option. 1 What is each tiny square in a digital image called? a Bit
b Byte
c Pixel
d Kernel
2 What range of values can each pixel have in a digital image? a 0 to 100
b 0 to 255
c 1 to 256
d 0 to 1023
3 What does convolution in image processing help us with? a Changing file names
b File compression
c Sharpening or blurring images
d None of these
Chapter 21 • Understanding Convolution Operator
Part B_AI Grade 10.indb 339
339
4/12/2025 4:05:57 PM
B Fill in the blanks with the most suitable words. 1 Apps like Instagram and Snapchat, have
to improve the look of pictures.
2 The process of placing a kernel over an image and multiplying overlapping numbers and then adding up results is called . 3 Padding is often added around the edges of an input image to maintain the same output images during convolution. 4 CNN stands for C
for both the input and
.
State whether the following statements are True or False. Correct the statements that are false. 1 Image editing can include cropping, resizing, and adjusting brightness or contrast. 2 Convolution is only used for applying artistic effects to images. 3 Changing the kernel’s values during convolution can produce different visual effects on the image. 4 To perform convolution, we align the centre of the kernel with each pixel in the image.
D Answer the following questions. (Solved) Q1. What is convolution? A1. Convolution is the process of multiplying an image array element-by-element with another array called the kernel and then adding up the results. Q2. How does the kernel play a crucial role in convolution? A2. The kernel plays a crucial role in convolution by determining how each pixel in an image is transformed, thereby influencing the overall appearance of the image. A kernel is a small grid that we move over an image, multiplying its values with the image’s pixels to change it in a specific way. Different effects, such as sharpening or blurring, are achieved by adjusting the values within the kernel. When we modify the values of the kernel, we alter the outcome of the convolution process. This means that changing the kernel’s values can produce varied visual effects on the image. Q3. Emma wants to enhance a recent photo using Instagram filters. She notices that the filter she chooses significantly alters the colours and lighting of her picture. Describe how Instagram filters work to improve the appearance of photos. A3. Instagram has filters to improve the look of pictures. These filters work by changing the pixel values to make the image look better. Convolution allows for the manipulation of pixel values to achieve various effects and enhancements in the image, improving the overall image quality.
AI Activities 1 Visit the link: https://www.youtube.com/watch?v=Etksi-F5ug8 to learn more about convolution.
2 Visit the link: https://www.youtube.com/watch?v=YgtModJ-4cw to learn how convolution works.
Answer Key A
1. c
2. b
3. c
B
1. filters
2. convolution
3. dimensions/size
C
1. True
4. Convolutional Neural Networks
2. F alse. Convolution is used for various applications, such as sharpening or blurring images, edge detection, and applying artistic effects. 3. True 4. True
340
Part B_AI Grade 10.indb 340
4/12/2025 4:05:57 PM
Unit 5 • Computer Vision
22 Introduction to CNN**
A
neural network is a computational model inspired by the human brain, consisting of interconnected nodes (neurons) that process and transmit information. A type of neural network particularly effective for image processing tasks is Convolutional Neural Networks (CNNs).
Let’s say you want an AI model to be able to distinguish between the images of a dog and a cat. CNNs are useful in situations like these. Before CNNs, recognising objects in images required a lot of manual effort to define the features to look for. CNNs automate this process, making it faster and more accurate.
Convolution Neural Network
Convolutional Neural Network (CNN), also known as ConvNet, is a technique of deep learning algorithms created especially for processing and analysing visual data. CNNs are excellent at identifying patterns as well as structures in images, which sets them apart from standard neural networks. A CNN can take an input image, analyse various elements within it, and assign importance to different features. CNNs work by automatically learning important features from images, such as edges, textures, patterns, colour, etc., without needing to be explicitly programmed to recognise these features. This ability allows the CNN to distinguish between different objects or aspects within the image, making it an essential tool for tasks like image classification and object recognition.
CNN
CAR TRUCK VAN
BICYCLE INPUT CONVOLUTION POOLING CONVOLUTION POOLING + ReLU
+ ReLU
HIDDEN LAYERS
Input an Image
Process Image
FLATTEN
FULLY
CONNECTED
Car
80%
Bus
15%
Motor-Cycle
5%
SOFTMAX
CLASSIFICATION
Output Values
In the diagram above, an input image is provided, which is then processed through CNN. The CNN analyses the image and makes a prediction based on the labels provided in the specific dataset. This process involves the CNN learning and identifying features within the image to accurately classify it according to the given labels. ** Note: This chapter is to be assessed through practicals.
341
Part B_AI Grade 10.indb 341
4/12/2025 4:05:58 PM
Did You Know? The concept of CNNs was first introduced in the 1980s, but they gained prominence with the advent of deep learning.
Different Layers of CNN
A convolutional neural network consists of the following layers: Fully Connected Convolution + ReLU
Pooling
Input
Output
Feature Extraction
Classification
Layers of CNN architecture These layers are as follows: 1. Input layer
2. Convolution layer
3. Rectified linear Unit (ReLU) 4. Pooling layer
5. Fully Connected layer 6. Output layer
Input Layer
The input layer of a CNN serves as the entry point for raw data, typically images. Understanding the structure and characteristics of the input data is crucial as it determines the design of subsequent layers and the overall network architecture. In CNN, input data is represented as a 3D matrix (height x width x channels). For example, a coloured image might have dimensions 32 × 32 × 3 (32 pixels height, 32 pixels width, and 3 colour channels: Red, Green, and Blue).
Convolution Layer
This layer of a CNN is intended to extract significant features from an input image. We refer to this procedure as the convolution operation. CNNs typically have multiple convolutional layers. Basic features including edges, colours,
342
Part B_AI Grade 10.indb 342
4/12/2025 4:05:58 PM
gradient orientation, etc., are captured in this layer. With added layers, the architecture adapts to the high-level features as well, giving us a network which has a better understanding of images in the dataset. The convolution layer performs the following operations: •
Apply filters through kernels: Kernels are tiny grids or matrices that glide across the input image. To generate a single value in the output feature map, each kernel value multiplies an element-by-element portion of the input and adds the results. In the convolution layer, several kernels are used to produce several features. The output of this layer is called a feature map or an activation map.
•
Produce feature maps: Several feature maps produced by various kernels make up a convolutional layer’s output. These maps represent various features of the input data, including textures, edges, and more elaborate patterns.
Feature maps have the following uses: Feature maps expedite image processing and enhance focus on important features of the image. { {
It reduces the image size so that it can be processed more efficiently.
The entire focus goes on the features of the image that can help us in processing the image further.
For example, to identify a specific car, you might only need to see its unique bumper sticker, the shape of its headlights, and its license plate. You don’t necessarily need to see the entire car.
Input Data
Feature Map
ReLU (Rectified Linear Unit)
After we get the feature map, it is subsequently sent to the ReLU layer. This layer preserves the positive value in the feature map by simply eliminating all of the negative values. The ReLU function works by outputting the input directly if it is positive, and zero if the input is negative. This can be expressed mathematically as: ReLU(x)=max(0,x), where, x is the input data. To illustrate this concept graphically, consider two graphs side by side.
Chapter 22 • Introduction to CNN
Part B_AI Grade 10.indb 343
Think and Tell
When identifying different types of flowers, which specific features might be crucial for identifying them, and why are these features important for image processing?
343
4/12/2025 4:05:59 PM
5 4
10
3
8
2
–10 –8 –6 –4 –2 0 –1 ×1 –2
Only positive values of the input are taken, negative values are removed
6
1 2 4 6
4
8 10
2 –10
–3
5
–5
Output = Max(Zero, Input)
10
–4
Graph 1
Graph 2
The Graph 1 represents a linear graph before ReLU activation. After passing through the ReLU layer, the resulting Graph 2 demonstrates how ReLU converts negative values to zero and leaves positive values unchanged, creating a non-linear effect. The primary reason for applying ReLU is to accentuate significant changes in the feature map. By zeroing out negative values and preserving positive values, ReLU amplifies transitions between different features, thereby enhancing the perceptibility of colour changes or feature distinctions in the data.
ReLU
Black = Negative, White = Positive
Only non-negative values
Pooling Layer
Pooling layers systematically reduce the spatial dimensions (width and height) of the input feature maps, decreasing computational complexity and controlling overfitting by retaining the most relevant features. There are two types of pooling, which are: •
Max Pooling: Selects the maximum value from each window of the feature map covered by the kernel.
•
Average Pooling: Selects the average value from each window of the feature map covered by the kernel. Max Pooling 30
25
45
56
16
37
102
69
56
85
76
106
89
94
71
95
37
102
94
106
27
68
81
87
Average Pooling
344
Part B_AI Grade 10.indb 344
4/12/2025 4:05:59 PM
The pooling layer plays a crucial role in CNNs by executing several essential functions: •
It reduces the size of the input image, making subsequent computations more efficient and manageable.
•
By summarising local features, the pooling layer enhances the network’s resistance to small variations such as distortions, translations, and minor transformations within the input image. This robustness helps in improving the overall performance of the network by focusing on essential features and reducing sensitivity to irrelevant details.
•
It extracts important features from the input data, consolidating information from neighbouring pixels or regions. This process aids in capturing essential patterns that contribute to the network’s ability to recognise complex patterns and objects.
Fully Connected Layer
Fully connected layers integrate the features learnt by the previous layers and perform classification based on these features. Before being fed into a fully connected layer, the output obtained from the last convolutional or pooling layer is flattened into a 1D vector. Each value in the 1D vector represents a probability that a certain feature belongs to a label. For example, if the image is of a car, features like wheels or headlights should have high probability of being associated with the label “car”. Each neuron in a fully connected layer is connected to every neuron in the preceding layer, forming a dense matrix of weights. 1 2 1
2
3
4
5
6
7
8
9
3 4 5 6 7 8 9
Pooled Feature Map
Flattened Pooled Feature Map
FCP Layer
The number of neurons in the fully connected layers is typically determined based on the complexity of the task (classification or regression) and the size of the input data.
Output Layer
The output layer generates the final predictions depending on the specific task being performed (e.g., classification, regression) and learnt by the preceding layers.
Let’s Summarise
Overall, the different layers in the CNN function as shown here.
Chapter 22 • Introduction to CNN
Part B_AI Grade 10.indb 345
345
4/12/2025 4:05:59 PM
Convolutional Layer
Rectified linear unit (ReLU)
Fully Connected Layer
Pooling Layer
Max (1, 1, 5, 6) = 6
1 ×1 1 ×0 1 ×1
0
0
0 ×0 1 ×1 1 ×0
1
0
0 ×1 0 ×0 1 ×1
1
1
0
1
0 0
0
0
1
1 1
0
Image
10
1
1
2
4
5
6
7
8
4
3
2
1
0
2
1
2
3
4
8
4
x
6
Convolved Feature
−10
−5 5 10 Output = Max(Zero, Input)
max pool with 2 × 2 filters and stride 2
6
8
3
4
Y Rectified Feature Map
Car
70%
Truck
20%
Bicycle 10%
Reduce size, improve feature, give probability value
Applications of CNN
CNN plays an important role in computer vision and image recognition. Some of the applications of CNN are as follows:
Error Alert!
Image classification: CNNs assign labels to images based on learnt features.
Data preprocessing is crucial for CNN
•
Object detection: CNNs localise and classify objects within images.
augmentation, and noise reduction.
•
Image segmentation: CNNs partition images into meaningful segments.
•
Face recognition: CNNs identify individuals based on facial features.
•
Image generation: CNNs create new images based on learnt patterns.
•
Image super-resolution: CNNs enhance image resolution from low-resolution inputs.
•
Image captioning: CNNs generate natural language descriptions for images.
•
Video analysis: CNNs interpret actions and activities within video sequences.
•
Medical image analysis: CNNs assist in the diagnosis and analysis of medical images.
•
Autonomous vehicles: CNNs enable vehicles to perceive and navigate roads based on visual input.
•
performance, including normalisation,
Activity Time Activity 1: Case Study Analysis
(Group Work)
Form groups of 3–4 participants. Have each group study a specific case where CNNs were successfully implemented in an application (e.g., medical imaging, autonomous vehicles). Each group should analyse the challenges faced and the solutions provided by CNNs. Activity 2: Debate
(Group Work)
Divide students into two groups. One group will argue the advantages of using CNNs over traditional image processing techniques, while the other group will argue the potential disadvantages and limitations of CNNs. Encourage critical thinking and evidence-based arguments.
346
Part B_AI Grade 10.indb 346
4/12/2025 4:05:59 PM
Chapter Checkup A Select the correct option. 1 What is the primary function of the convolutional layer in a CNN? a Extracting features from the input image c Reducing the size of the input image
2 What does the pooling layer in a CNN primarily do?
a Increase the number of feature maps
b Introducing non-linearity d Classifying the image
b Reduce the spatial dimensions of the feature maps
c Add non-linearity d Perform classification
3 Which layer in a CNN reduces the number of parameters and computations in the network? a Convolution Layer b ReLU Layer
c Pooling Layer d Fully Connected Layer
4 Which of the following is not an application of CNNs?
a Image classification b Object detection c Medical diagnosis through textual data
d Image segmentation
B Fill in the blanks with the most suitable words. 1 The
layer of a CNN typically handles visual data.
2 The
layer in a CNN introduces non-linearity by zeroing out negative values.
3 The convolution layer applies filters to input images through 4 The C
.
layer is responsible for the final classification in a CNN.
State whether the following statements are True or False. Correct the statements that are False. 1 CNNs are used for processing and analysing text data. 2 The input layer of a CNN is always 2-dimensional. 3 Max pooling is used to compute the average value from each window of the feature map. 4 The output layer of a CNN produces the final predictions.
D Answer the following questions. (Solved) Q1. Explain the different types of pooling: A1. There are two types of pooling, which are as follows: • •
Max Pooling: Selects the maximum value from each window of the feature map covered by the kernel.
Average Pooling: Selects the average value from each window of the feature map covered by the kernel.
Q2. Explain the role of different layers in a Convolutional Neural Network (CNN). A2. A Convolutional Neural Network (CNN) consists of several layers, each serving a specific purpose in processing and analysing visual data. • Input layer: The input layer of a CNN serves as the entry point for raw data, typically images. In CNN, input data is represented as a 3D matrix (height × width × channels). • Convolution layer: This layer of a CNN is intended to extract significant features from an input image. We refer to this procedure as the convolution operation. CNNs typically have multiple convolutional layers. Basic features including edges, colours, gradient orientation, etc., are captured in this layer. • ReLU: After we get the feature map, it is subsequently sent to the ReLU layer. This layer preserves the positive value in the feature map by simply eliminating all of the negative values.
Chapter 22 • Introduction to CNN
Part B_AI Grade 10.indb 347
347
4/12/2025 4:06:00 PM
• Pooling layer: Pooling layers systematically reduce the spatial dimensions (width and height) of the input feature maps, decreasing computational complexity and controlling overfitting by retaining the most relevant features. • Fully connected layer: Fully connected layers integrate the features learnt by the previous layers and performs classification based on these features.
Output layer: The output layer generates the final predictions depending on the specific task being performed (e.g., classification, regression) and learnt by the preceding layers.
•
Q3. In this 4X4 feature map, apply max pooling and average pooling to obtain the down sampled feature map.
3
13
17
11
5
3
1
23
7
1
2
3
11
17
3
4
3
13
17
11
5
3
1
23
7
1
2
3
A3.
11
17
3
x
Ma Ave
rag e
4
ling
o Po
Poo
ling
13
23
17
4
6
13
9
3
AI Activities 1 Visit the link: https://www.youtube.com/watch?v=YRhxdVk_sIs to learn about Convolutional Neural Networks. 2 Visit the link: https://www.youtube.com/watch?v=Q6YHaadg3MI to visualise the feature maps in Convolutional Neural Networks (CNN).
Answer Key A
1. a
2. b
B
1. Input
2. ReLU
C
1. False. CNNs are used for processing and analysing visual data.
3. c
4. c 3. kernels
4. fully connected
2. F alse. The input layer of a CNN can handle 3-dimensional data (height, width, and channels). 3. False. Max pooling selects the maximum value from each window of the feature map. 4. True
348
Part B_AI Grade 10.indb 348
4/12/2025 4:06:01 PM
Unit Reflection
Key Terms • Computer vision: Computer vision is a domain of artificial intelligence that enables computers and systems to extract meaningful information from digital images, videos, and other visual inputs, enabling them to act or recommend based on that information. • Image: An image is a graphical representation of data that can be used to portray a certain scene, idea, or concept or to capture a moment in time. • Pixel: The smallest unit of a digital image is called a “picture element,” which is what the name “pixel” refers to. • Resolution: It refers to the total number of pixels contained within an image. Resolution determines the image’s clarity and detail. • OpenCV: OpenCV is a powerful library for computer vision tasks in Python and various other programming languages. • Convolution: Convolution is the process of multiplying an image array element-by-element with another array called the kernel and then adding up the results. • Kernel: A kernel is a small grid that we move over an image, multiplying its values with the image’s pixels to change it in a specific way. • CNN: Convolutional Neural Network (CNN), also known as ConvNet, is a technique of deep learning algorithms created especially for processing and analysing visual data. • Image classification: It is an AI system that categorises images based on their visual content. • Machine learning model: It is a machine learning algorithm trained to recognise patterns and make predictions from data. • No-code AI: AI tools and platforms that allow users to build and deploy AI models without writing any code are called no-code AI tools. • Widgets (in Orange): These are the individual components in Orange data mining tool that perform specific tasks in a data analysis workflow.
Things to Remember • There are various applications of computer vision such as facial recognition, document verification, healthcare services, retail industry, image-based search, digital audio-visual marketing, education and training, etc. • Image classification is the process of assigning an input image a label from a predetermined list of categories. • Classification with localisation involves identifying both the object present in an image and its location within that image. • Object detection is the process of finding instances of real-world objects such as faces, cars, or animals in images or videos. • Instance segmentation assigns labels to each pixel in an image corresponding to the object to which it relates, in addition to detecting and classifying objects.
Unit Reflection
Part B_AI Grade 10.indb 349
349
4/12/2025 4:06:01 PM
• The Emoji Scavenger Hunt uses your phone’s camera and Google’s machine learning to identify real-world objects that match given emojis. • Grayscale images are a type of digital image that contains varying shades of grey without any visible colour. • Coloured images are composed of three primary colours: red, green, and blue, collectively known as RGB. • The RGB calculator helps you convert colours between different formats, such as RGB, HEX, and HSL. It also allows you to adjust the individual red, green, and blue (RGB) components of a colour to see how they combine to create different colours. • Piskel is a free online pixel art and animated sprite editor. Artists and game developers often use it to create sprites and animations for games. • In the field of computer vision and image processing, a ‘feature’ refers to a distinct piece of information within an image. They can manifest as various structural elements in an image, such as points, edges, textures, or even larger entities like objects. • The imread() function of cv2 reads an image from the specified file path into a NumPy array. • The cv2.cvtColor() function in OpenCV is used to convert an image from one colour space to another. • Splitting a colour image into its individual colour channels (Red, Green, and Blue) can be done easily using OpenCV in Python. • The cv2.split function is used to split the image into its three colour channels. • In image processing, changing pixel values is essential for various tasks such as filtering, enhancement, and analysis. • The resize() function of OpenCV is used to resize an image. • The imwrite function in OpenCV is used to save an image to a specified file. • Convolution is used in various applications, such as sharpening or blurring images, edge detection, and applying artistic effects. • Different effects, such as sharpening or blurring, are achieved by adjusting the values within the kernel. • The different layers of CNN are the Input Layer, convolution layer, rectified linear unit (ReLU), pooling layer, fully connected layer, and output layer. • Some of the applications of CNN are image classification, object detection, image segmentation, face recognition, image generation, image super-resolution, image captioning, etc. • Lobe AI simplifies the process of machine learning and requires no coding skills. • Orange data mining provides a graphical user interface for creating data analysis workflows. • Teachable machine allows users to train computers to recognise images, sounds, and poses. • Training data quality is crucial for the accuracy of machine learning models.
350
Part B_AI Grade 10.indb 350
4/12/2025 4:06:01 PM
Test Your Knowledge A. Select the correct option. 1. Which layer of a Convolutional Neural Network (CNN) is responsible for reducing the spatial dimensions of the input feature maps?
a. Input Layer
b. Convolution Layer
c. Pooling Layer
d. Fully Connected Layer
2. In a grayscale image, a pixel value of 255 typically represents: a. Black
b. White
c. Red
d. Green
3. Which of the following algorithms is specifically used for feature extraction in images? a. K-nearest Neighbours (KNN)
b. Convolutional Neural Networks (CNNs)
c. Decision Trees
d. Support Vector Machines (SVMs)
4. In computer vision, what is the purpose of the ReLU layer? a. To apply filters to images b. To perform pooling operations c. To eliminate negative values and preserve positive values d. To classify objects 5. In an RGB image, which combination of pixel values results in the colour black? a. (255, 0, 0)
b. (0, 255, 0)
c. (0, 0, 255)
d. (0, 0, 0)
6. Which of the following tools allows users to train machine learning models without coding? a. Python
b. Lobe AI
c. Java
d. C++
7. Which widget in Orange is used to import data from various file formats? a. Scatter Plot
b. File
c. Classification Tree
d. Test and Score
B. Fill in the blanks with the most suitable words. 1. In computer vision, the process of identifying objects in images is known as
.
2. A Convolutional Neural Network (CNN) layer that preserves only positive values is called
.
3. A method used in image processing to sharpen or blur images by multiplying pixel values with a filter is called 4. In RGB images, the combination of maximum intensity for red, green, and blue results in the colour 5. The library used for computer vision tasks in Python is called 6. With Lobe AI, as soon as the pictures are 7.
Unit Reflection
Part B_AI Grade 10.indb 351
. .
.
, Lobe begins training automatically.
is an open-source data mining and machine learning tool that provides data visualisation capabilities.
351
4/12/2025 4:06:01 PM
C. State whether the following statements are True or False. Correct the statements that are false. 1. In a grayscale image, pixel values range from 0 to 255. 2. The fully connected layer in a CNN is responsible for extracting features from images. 3. ReLU stands for Rectified Linear Unit. 4. No-code AI tools cannot be used for computer vision tasks. 5. The input layer of a CNN receives the final processed output data. 6. Lobe AI requires extensive coding knowledge to develop AI models. 7. The AI Project Cycle includes a phase for deploying the model in real-world circumstances.
D. Short-answer type questions. 1. Explain the role of pixel values in a grayscale image. 2. What is the significance of the pooling layer in a CNN? 3. What is the main advantage of using Convolutional Neural Networks (CNNs) for image classification? 4. What are the main features of Lobe AI? 5. How does Orange data mining tool enable users to create machine learning models?
E. Long-answer type questions. 1. Describe the process of convolution in image processing and explain how it is used in Convolutional Neural Networks (CNNs). 2. Explain the role and importance of the fully connected layer in a Convolutional Neural Network (CNN). 3. Explain how the RGB colour model is used to create different colours in digital images. How does adjusting the intensity of red, green, and blue components affect the resulting colour?
4. Explain any three applications of computer vision. 5. Describe the applications of Lobe AI in various sectors. 6. Describe any three widget categories of Orange data mining tool.
F. Competency-based questions. 1. Nina is analysing medical scans using CNNs. How can she leverage instance segmentation to accurately identify and measure tumours?
2. Raj is implementing a computer vision system for document verification. What key features should the system identify to prevent fraud?
3. In image processing, we can get a lot of features from the image. It can be either a
blob, an edge or a corner. In the following image, identify the patches that form good features and bad features. Justify your answer.
4. Arjun wants to analyse student performance data using the Orange data mining tool. How can he use its features to visualise trends and make predictions?
5. Neha is training an image classification model using Lobe AI. How can she use its nocode interface to label images and improve model accuracy?
352
Part B_AI Grade 10.indb 352
4/12/2025 4:06:02 PM
Unit 6 • Natural Language Processing
23 Features of Natural Languages
H
ave you ever wondered how your smartphone understands your voice commands so easily? Or how search engines like Google understand your queries and help you find the information you need with just a few keystrokes? Or how do virtual assistants like Siri and Alexa respond to your inquiries? All of this is possible with the help of Natural Language Processing (NLP).
What is NLP?
NLP is the domain of AI that deals with the language-based interactions between a machine and a human, as well as between two machines. The objective of NLP is to enable computers to understand, comprehend, and generate human language in a way that is both meaningful and contextually appropriate. NLP enables humans to interact with computers more naturally, using spoken or written language rather than highly developed programming languages. NLP involves a variety of algorithms that process and analyse large amounts of natural language data from users’ interactions, including text and speech. NLP algorithms are trained on vast amounts of text data, learning patterns, structures, and the meaning of words and sentences. It also involves understanding the context, sentiment, and intent behind those words. This enables computers to perform a wide range of tasks, from recognising voice commands to translating languages and generating human-like responses in chatbots.
Features of Natural Languages
Natural languages, such as English, Hindi, and Spanish, are the languages humans use to communicate. Unlike artificial languages (such as programming languages), natural languages have evolved over time and are rich in complexity. Here are some key features of natural languages: Ambiguity: Words and sentences can have multiple meanings based on context. For example, the word “bank” can refer to a financial institution or the side of a river.
353
Part B_AI Grade 10.indb 353
4/12/2025 4:06:02 PM
Grammar and Syntax: Each language follows specific rules for sentence formation, including word order and structure. For instance, in English, the basic sentence structure is Subject-Verb-Object (e.g., She eats an apple). Context Sensitivity: The meaning of words and phrases often depends on the surrounding words and situation. For example, “Can you pass the salt?” is not just a question but a polite request. Evolution and Variation: Natural languages change over time and vary across regions. New words and phrases emerge, and different dialects develop (e.g., American vs. British English). Redundancy and Flexibility: Unlike programming languages, natural languages allow for redundancy (extra words for clarity) and flexibility in expression. For example, “I saw a big, huge dog” still conveys the same meaning as “I saw a huge dog”.
Human Language vs. Computer Language
Humans communicate through language, which our brains process continuously and intuitively. Our brains constantly interpret the sounds around us, making sense of them in real-time. Imagine you are at home watching TV while your family is talking in the background. Your brain processes both the dialogue on the TV and the conversations happening around you. If someone suddenly calls your name, your brain quickly shifts focus from the TV to the person calling you. This ability to process and prioritise different sounds at the same time is a unique feature of human cognition. When someone speaks, the sound waves travel to the listener’s eardrum, where they are converted into neural impulses and sent to the brain for interpretation. The brain processes these signals to understand their meaning. If the message is clear, it’s stored; otherwise, the listener may ask for clarification. In contrast, computers understand only numbers, so any information sent to a machine must be converted into numerical data. If a mistake is made while typing, the computer generates an error and cannot process that part. While machines can process data faster than the human brain, they cannot match the brain’s intelligence or the diversity in how it processes information. Human language has a vast vocabulary, whereas computer language is limited. Although AI enables machines to grasp the tone and emotions of a context, they still lack the nuanced understanding that comes naturally to humans. The human brain, through lifelong learning, can comprehend the meaning of a sentence even if it is grammatically incorrect, while a machine typically prioritises correct grammar over overall sense.
Language Structure and Part-of-Speech Tagging
Human language operates according to specific rules. Within a sentence, we find nouns, verbs, adverbs, and adjectives—all essential for effective communication. These rules establish the structure of a language, a concept known as syntax, which involves the grammatical arrangement of words in a sentence. Understanding this structure allows us to interpret the meaning of a message. To enable computers to handle this effectively, part-ofspeech tagging is used. This technique helps the computer identify various parts of speech. For example, you are an iPhone customer and posted a comment on Facebook, “I Just received my new iPhone! It’s amazing! #happy #excited”. This sentence would be tokenised into the following list of words: [“I’, “Just”, “received”, “my”, “new”, “iPhone”, “!”, “It’s”, “amazing”, “!”, “#happy”, “#excited”]. These tokens are then tagged with their parts of speech. Part-of-speech tagging involves assigning a tag to each token based on its grammatical function in the sentence. For example, the word “received” would be tagged as a verb, “amazing” would be tagged as an adjective, and “iPhone” would be tagged as a noun. Besides syntax, the semantics, or meaning, of a sentence is equally important. Human communication is complex and has many details that are easy for people to understand but hard for computers to understand.
354
Part B_AI Grade 10.indb 354
4/12/2025 4:06:02 PM
Analogy with Programming Language •
Different syntax, same semantics: {
{
•
“5 – 3” and “3 subtracted from 5” Both expressions mean the same thing, and both result in 2.
“The keys are on the desk.” and “On the desk are the keys.” Both sentences indicate that the keys are located on the desk, but they are phrased differently.
Think and Tell
Think of some other examples of different syntax and same semantics and vice-versa.
Different semantics, same syntax: {
“8 / 4” (in Python 2) and “8 / 4” (in Python 3) In Python 2, this results in 2 (integer division), while in Python 3, it results in 2.0 (float division).
Multiple Meanings of a Word
Let us consider three sentences where the word “light” is used in different contexts: •
“The room was filled with bright light from the lamp.” Here, “light” refers to the brightness or illumination.
•
“She carried a light backpack for the hike.” In this context, “light” means not heavy.
•
“He turned on the light to read a book.” Here, “light” refers to an electrical device that produces illumination.
Context plays a crucial role in our understanding of language. We instinctively grasp the meaning of a sentence based on our experience with the language and our accumulated knowledge. In the three sentences provided, the word “light” is used in different ways, each carrying a distinct meaning depending on the context. This demonstrates that in natural language, a single word can have multiple meanings, and its significance changes according to the surrounding context.
Think and Tell
Think of some other words which can have multiple meanings, and we use them in sentences.
Activity Google Translate Let us perform the following experiment to understand how AI uses NLP to translate text from one language to another. Objective: Experience real-time translation between different languages using the Google Translate app thereby leveraging the power of NLP. Google Translate is an AI-powered translation app that allows users to translate text into different languages. It can translate texts entered by typing, handwritten text, spoken words, and text scanned through the camera or captured in images. Follow the given steps to explore how this application works. Download the Google Translate app from the Google Play 1. Store in your smartphone or your device’s app store. 2. Open the Google Translate app. The following screen appears. Chapter 23 • Features of Natural Languages
Part B_AI Grade 10.indb 355
355
4/12/2025 4:06:02 PM
3. Click on the Camera option in the bottom-right corner. 4. Select your preferred language, for example, ‘Hindi’. 5. Let us translate these three sentences using Google Translate. •
The room was filled with bright light from the lamp.
•
She carried a light backpack for the hike.
•
He turned on the light to read a book.
Note that in all three sentences, the word ‘light’ has the same spelling but different meanings and contexts. In the first sentence, “light” refers to the brightness or illumination. In the second sentence, “light” means not heavy. In the third sentence, “light” refers to an electrical device that produces illumination. 6. Take a picture of these sentences to translate using your smartphone’s camera. 7. The translated text appears as follows.
NLP Applications
NLP has numerous applications in our daily lives. Let us learn about some of them.
Chatbots
Chatbots are computer programs designed to imitate human-like conversation using text or speech interfaces. NLP is essential for chatbots to comprehend the user’s input, generate appropriate responses, and engage in meaningful conversations. Here is how NLP plays a pivotal role in enhancing chatbot capabilities: Customer Support Chatbots are widely used by organisations to provide customer services on websites and social media platforms. These chatbots can address frequently asked questions, assist with troubleshooting, and transfer complex issues to the right team member when needed. For example, chatbots assist customers with tasks, such as requesting personal loans, and obtaining information on money transfers or if you want to report a lost card, a chatbot is there to assist you anytime, offering 24 × 7 assistance. E-commerce Product Recommendations NLP is used by chatbots to engage in conversations with users, to understand their preferences and provide personalised product recommendations. For example, a chatbot for a clothing store would enquire about a customer’s size, budget, and preferred styles to suggest items that fit their tastes.
356
Part B_AI Grade 10.indb 356
4/12/2025 4:06:02 PM
Educational Assistance Chatbots are used in the educational field to provide academic support, such as helping students with homework, providing conceptual explanations, quizzing students, offering study tips, etc. For example, ChatGPT provides personalised learning experiences and adaptive tutoring, catering to individual learning styles.
Virtual Assistants
This is one of the most common applications of NLP. A virtual assistant is an AI tool that understands and responds to voice commands or text inputs, such as questions and requests, or performs tasks for you. Virtual assistants come in the form of applications, or combinations of devices loaded with applications. Siri on the iPhone, Alexa on the Amazon Echo device, and Google Assistant on the Android phone are some of the popular virtual assistants. You can ask a virtual assistant to set alarms, check the weather, play your favourite songs, or even tell you jokes.
Sentiment Analysis
Sentiment analysis is an NLP technique used to analyse and interpret the sentiment expressed in text data. By comprehending human language, NLP enables computers to detect whether the sentiment conveyed in text is positive, negative, or neutral. Let us learn about some applications of NLP in sentiment analysis. Social Media Monitoring Businesses use sentiment analysis to track their brand’s presence on social media platforms like Twitter, Facebook, and Instagram. Companies gain insights into public opinion and engage customers more effectively by recognising sentiment or emotion from customers’ comments, posts, likes, shares, emojis, etc. Product Reviews Analysis E-commerce giants like Amazon and Myntra use sentiment analysis to evaluate product reviews and ratings. This enables businesses to identify top-selling products, discover product flaws, and make data-driven decisions regarding product development and marketing strategies. Political Opinion Analysis Sentiment analysis is used to analyse public sentiment towards political candidates, parties, and policies. It is used in political campaigns to determine the opinions of voters. It also helps to determine whether their messaging strategies are resonating positively with voters. Film and Entertainment Reviews Film and entertainment industry players use sentiment analysis to analyse audience reactions to films, series, TV shows, etc. By assessing sentiment expressed by audiences in reviews and social media discussions, companies can gauge audience preferences, predict box office or streaming platform success, and customise promotional campaigns to achieve commercial success.
Automatic Summarisation
NLP can be used to auto-generate short and clear summaries of longer texts or documents through AI algorithms and techniques. Let us look at some of the applications of NLP in automatic summarisation.
Chapter 23 • Features of Natural Languages
Part B_AI Grade 10.indb 357
357
4/12/2025 4:06:03 PM
News Platforms Websites and apps like Google News, Apple News, and Flipboard use NLP algorithms to automatically produce summaries of news articles from diverse sources. This allows users to stay informed about the latest news topics without the need to read through entire articles. Document Summarisation Tools Google Docs offers a feature that allows you to use NLP to create content summaries for lengthy documents, research papers, or reports. These tools can be used by professionals and students to extract key information and insights from large volumes of text. YouTube Video Summarisation NLP algorithms convert the spoken content of YouTube videos into text through automatic transcription, producing a text-based representation known as a transcript. Once the transcript is analysed, the algorithms identify key points, topics, and important moments within the video. Based on this analysis, the algorithms generate summaries, capturing the relevant information in the video clip.
Did You Know? NLP is also used to classify text. Text classification makes it possible to assign predefined categories to a document and organise it to help you find the information you need or simplify some activities. For example, an application of text categorisation is spam filtering in email.
Language Translation
Imagine being able to communicate with someone from a different part of the world without any barriers. That is NLP at work! Language translation powered by NLP helps convert text from one language to another, making communication easier across the globe. These tools analyse sentence structures and context to provide accurate translations. Advanced models, like neural machine translation (NMT), improve fluency by considering entire sentences instead of just individual words. While translations have become much better, challenges like idioms and cultural differences still make perfect accuracy a work in progress.
Text Classification
Have you ever wondered how your email app filters spam or how Netflix recommends movies based on genres? That is text classification in action! NLP helps automatically sort text into categories, whether it is identifying spam emails, analysing customer reviews for sentiment, or tagging news articles by topic. By recognising word patterns and context, NLP-powered models can accurately label text, making it useful for businesses, social media platforms, and even cybersecurity.
Keyword Extraction
Imagine you have a huge stack of documents to read, but you only need to know the main points—this is where keyword extraction comes in handy! NLP helps pull out the most important words or phrases from a text, making it easier to summarise content, improve search results, and analyse trends. Search engines, digital marketing teams, and businesses use this technique to find relevant information quickly. Whether it is for SEO, customer insights, or document processing, keyword extraction helps make sense of large amounts of text in no time.
Activity Keyword Extraction Objective: To understand and implement keyword extraction using an API to automatically identify and extract the most relevant words or phrases from a piece of text, enabling efficient document summarisation, information retrieval, and content analysis.
358
Part B_AI Grade 10.indb 358
4/12/2025 4:06:03 PM
Follow the given steps: 1. Visit the following link: https://cloud.google.com/natural-language. 2. The following web page will appear.
3. Scroll down the web page to click the ANALYZE button.
4. The following web page appears.
Chapter 23 • Features of Natural Languages
Part B_AI Grade 10.indb 359
359
4/12/2025 4:06:03 PM
Entity analysis processes the default text in the text box, automatically identifying and highlighting key terms such as “Google”, “Mountain View”, “Android”, “phone”, etc., in distinct colours. Keywords associated with the same entity type share the same colour. For example, different entities such as Price ($799), Person (Sundar Pichai, users), Organisation (Google), Location (Mountain View, 1600 Amphitheatre Pkwy, Mountain View, CA), Number (940430, 1600, 799), etc., are each highlighted in a uniform colour, making it easier to differentiate between categories. 5. You may also click on other tabs such as Sentiment, Moderation, and Categories to see different analysis for the same default text. 6. You may also type your own text in the text box to get its insightful text analysis.
Activity Time (Group Work)
Activity 1: Real-world Applications of NLP
Divide the class into small groups of 4–5 students. Each group should research a specific application of NLP, such as search engines, spam detection, autocorrection, or voice recognition. Instruct each group to discuss their findings, focusing on how NLP is used in their chosen application, its benefits, and potential challenges.
(Individual Work)
Activity 2: NLP Innovations
Ask each student to select a recent innovation or advancement in NLP (e.g., GPT models or advances in sentiment analysis). Students should conduct individual research to understand the innovation’s purpose, how it works, and its significance in the field of NLP.
Chapter Checkup A Select the correct option. 1 Which of the following domains of AI deals with language-based interactions between a machine and a human? a NLP b Computer Vision c Machine Learning
d None of these
2 Which of the following is an application of NLP? a Chatbots b Sentiment analysis c Automatic summarisation
d All of these
3 Why do e-commerce giants use sentiment analysis? a Evaluate product reviews
b Identify top-selling products
c Uncover product flaws
d All of these
4 What is the term for the grammatical arrangement of words in a sentence? a Semantics b Syntax
c Tokenisation d Part-of-Speech Tagging
5 Which of the following sentences uses the word “bank” to refer to a financial institution? a “He sat by the bank of the river, enjoying the view.”
b “She deposited money into her savings account at the bank.”
c “The children played on the grassy bank near the playground.”
d None of these.
360
Part B_AI Grade 10.indb 360
4/12/2025 4:06:04 PM
B Fill in the blanks with the most suitable words. 1
tagging involves assigning a tag to each token based on its grammatical function in the sentence.
2
are computer programs engineered to imitate human-like conversation using text or speech interfaces.
3 Converting the spoken content of YouTube videos to text-based representation is known as 4 Professionals can use 5 C
.
to create content summaries for lengthy documents, research papers, or reports.
is an NLP technique used to analyse and interpret the emotion expressed in text data.
State whether the following statements are True or False. Correct the statements that are false. 1 Political campaigns use sentiment analysis to gauge voter sentiment. 2 ChatGPT uses NLP to provide a personalised learning experience. 3 NLP algorithms are trained on vast amounts of text data. 4 Google Translate allows users to translate text into different languages. 5 Virtual assistants come in the form of applications only.
D Answer the following questions. (Solved) Q1. Define NLP. A1. NLP, short for Natural Language Processing, is the domain of AI that deals with the language-based interactions between a machine and a human, as well as between two machines. Q2. How does NLP contribute to educational support? A2. Chatbots are used in the educational field to provide academic support, such as helping students with homework, providing conceptual explanations, quizzing students, offering study tips, etc. For example, ChatGPT provides personalised learning experiences and adaptive tutoring, catering to individual learning styles. Q3. What is a virtual assistant? Give examples. A3. Virtual assistant is one of the most common applications of NLP. A virtual assistant is an AI tool that understands and responds to voice commands or text inputs, such as questions and requests, or performs tasks for you. Siri on the iPhone, Alexa on the Amazon Echo device, and Google Assistant on the Android phone are some of the popular virtual assistants. You can ask a virtual assistant to set alarms, check the weather, play your favourite songs, or even tell you jokes. Q4. Aradhya visits her school’s website, where she encounters a robot that asks her questions like, ‘How may I help you?’. It then assists her with searching for study resources. What is this robot commonly referred to as, and why does it engage Aradhya with questions? A4. The robot is commonly referred to as a chatbot. It engages Aradhya with questions to understand what specific help she needs on the school website. By asking questions, the chatbot can guide her to the relevant study resources efficiently.
AI Activities Explore the following link and observe how NLP analyses your text: https://www.ibm.com/demos/live/natural-language-understanding/self-service
Answer Key A
1. a
B
1. Part-of-Speech
C
1. True
2. d
3. d
4. b
2. Chatbots
5. b 3. Transcript
4. Google Docs
5. Sentiment Analysis
2. True 3. True 4. True
5. False. Virtual assistants come in various forms, including applications, devices, and integrated systems.
Chapter 23 • Features of Natural Languages
Part B_AI Grade 10.indb 361
361
4/12/2025 4:06:04 PM
Unit 6 • Natural Language Processing
24 Stages of NLP
I
n the previous chapter, we learned that Natural Language Processing (NLP) is a branch of Artificial Intelligence (AI) that enables computers to interpret, understand, and generate human language. NLP is widely used in applications such as voice assistants, chatbots, machine translation, and sentiment analysis, making human-computer interactions more natural and efficient. NLP involves various stages to process and understand human language. Each stage plays an important role in transforming raw text into meaningful information. The stages of NLP typically involve the following: Lexical
Syntactic
Analysis
Semantic
Analysis
Discourse
Analysis
Integration
NLP
Pragmatic Analysis
Let us discuss each of them in detail.
Lexical Analysis
Lexical analysis is the first stage of NLP. Lexical refers to vocabulary or the collection of words and phrases used in a language. In this stage, the text is divided into smaller meaningful units such as sentences, phrases, words, symbols, or tokens etc. Tokens are the smallest meaningful units into which a sentence or text is broken during lexical analysis. In simple words, tokens can be words, numbers, punctuation marks or symbols. This helps computers understand the structure of language by analysing individual words.
Examples of Lexical Analysis 1. The cat is sleeping. The
cat
is
sleeping
ran
to
2. She quickly ran to the park. She
quickly
the
park
Hence, the lengthy text is broken down into chunks.
Did You Know? The word ‘Lexical’ comes from the Greek word ‘lexis’, which means word!
362
Part B_AI Grade 10.indb 362
4/12/2025 4:06:05 PM
Syntactic Analysis/Parsing
Syntactic analysis, also known as parsing, is a fundamental stage in NLP that focuses on analysing the grammatical structure of sentences. This process involves examining how words are arranged and related to each other. By constructing a parse tree or syntax tree, syntactic analysis helps in understanding the hierarchical structure of sentences, which is essential for accurate language comprehension and further NLP tasks. Syntactic analysis helps eliminate logically incorrect sentences.
Examples of Syntactic Analysis
1. Wrong: The hungry ate boy the sandwich. Right: The hungry boy ate the sandwich. 2. Wrong: On the table book is the. Right: The book is on the table. Hence, the grammar is correct!
Semantic Analysis
Semantic analysis is a crucial stage in NLP that focuses on interpreting the meaning of words, phrases, and sentences within their intended context. It enables machines to comprehend human language by resolving ambiguities and ensuring meaningful understanding. By analysing context, semantic analysis allows computers to interpret the correct sense of words, which is important for the accuracy of text-based NLP applications.
Examples of Semantic Analysis
1. Wrong: I enjoyed eating hot ice cream.
(This sentence is wrong because ice cream is always served cold, and the word hot creates a semantic contradiction.) Right: I enjoyed eating ice cream.
2. Wrong: The sun rises at midnight. Right: The sun rises at dawn. These examples show how semantic analysis detects meaning-related errors.
Discourse Integration
Discourse integration is a vital stage in Natural Language Processing. It is the process of forming the story of the sentence. Every sentence should have a relationship with its preceding and succeeding sentences. It helps in understanding the context, resolve ambiguities, and maintain consistency throughout a discourse.
Examples of Discourse Integration
1. Wrong: I borrowed a book from the library. It was very old. (It is unclear—Is the book old or the library?)
Right: I borrowed a book from the library. The book was very old. 2. Wrong: The quick brown fox jumped over it. Then it went into the thick bushes. (Here, ‘it’ is unknown) Right: The quick brown fox jumped over the lazy dog. Then it went into the thick bushes. (Here it refers to the fox) Chapter 24 • Stages of NLP
Part B_AI Grade 10.indb 363
363
4/12/2025 4:06:05 PM
Discourse integration ensures a coherent understanding of the text by maintaining proper references.
Pragmatic Analysis
Pragmatic analysis is a critical stage in NLP. Pragmatic means practical or logical, i.e., this step requires knowledge of the intent in a sentence. It goes beyond the actual meanings of words to consider factors such as speaker intent, situational context, and cultural nuances. It enable machines to comprehend language as humans do.
Examples of Pragmatic Analysis 1. She spilled the beans!
Means: She revealed a secret. (Metaphorical meaning) Does not mean: She literally dropped some beans. (Literal meaning) 2. Break a leg! Means: Good luck! (Figurative meaning) Does not mean: Actually breaking a leg. (Literal meaning)
Think and Tell
What is the intended meaning of the sentence ‘Relax! I am just pulling your leg.’?
Activity Time Activity: Analyse this sentence through the five stages of NLP
(Individual Work)
Sentence: Rohit saw the bat and picked it up.
•
Lexical Analysis: Break the sentence into individual words or tokens.
•
Syntactic Analysis (Parsing): Check if the sentence follows proper grammar.
•
Semantic Analysis: Determine if the sentence makes sense and if all words are used correctly.
•
Discourse Integration: Identify what “it” refers to in this sentence.
•
Pragmatic Analysis: Consider the context: Does “bat” mean an animal or a sports equipment? Or check if the intended meaning is same as the literal meaning of the sentence.
Chapter Checkup A Select the correct option. 1 Which stage of NLP involves breaking down text into tokens?
a Semantic Analysis b Lexical Analysis
c Pragmatic Analysis d Discourse Integration
2 Identifying the grammatical structure of a sentence is part of which NLP stage?
a Lexical Analysis b Semantic Analysis
c Syntactic Analysis d Discourse Integration
3 What does discourse integration help with in NLP?
a Resolving ambiguities and maintaining consistency in context
b Checking if a sentence follows grammatical rules
364
Part B_AI Grade 10.indb 364
4/12/2025 4:06:06 PM
c Converting text into smaller tokens
d Translating text into multiple languages 4 Which stage of NLP focuses on understanding the context and intent behind language? a Lexical Analysis b Syntactic Analysis
c Semantic Analysis d Pragmatic Analysis
5 Which of the following sentences contains a semantic error? a The sun rises in the east. c The cat is sleeping on the sofa.
b She drank the laptop.
d They are going to the market.
B Fill in the blanks with the most suitable words. 1
refers to the collection of words and phrases used in a language.
2
analysis helps in understanding the hierarchical structure of sentences.
3
C
context.
analysis focuses on interpreting the meaning of words, phrases, and sentences within their intended
4
ensures a coherent understanding of the text by maintaining proper references.
5
analysis consider factors such as speaker intent, situational context, and cultural nuances.
State whether the following statements are True or False. Correct the statements that are False. 1 Lexical analysis is the process of analysing the grammatical structure of a sentence. 2 Discourse integration is the process of forming the story of the sentence. 3 Pragmatic analysis only considers the direct meaning of words without looking at context. 4 Syntactic analysis helps in constructing a parse tree to understand the grammatical structure of a sentence. 5 Semantic analysis only checks if a sentence is grammatically correct.
D Answer the following questions. (Solved) Q1. Define Semantic Analysis. A1. Semantic analysis is a crucial stage in NLP that focuses on interpreting the meaning of words, phrases, and sentences within their intended context. Q2. What is Pragmatic analysis? Give an example. A2. Pragmatic analysis is a critical stage in NLP. Pragmatic means practical or logical, i.e., this step requires knowledge of the intent in a sentence. It goes beyond the actual meanings of words to consider factors such as speaker intent, situational context, and cultural nuances. For example, Sentence: She spilled the beans! Means: She revealed a secret. (Metaphorical meaning) Does not mean: She dropped some beans. (Literal meaning) Q3. Give an example of lexical analysis. A3. Following is an example of lexical analysis. Sentence: She quickly ran to the park. She
quickly
ran
to
the
park
Q4. How does syntactic analysis contribute to understanding sentence structure? A4. Syntactic analysis, or parsing, examines how words are arranged in a sentence and checks whether the grammar follows the rules of a language. It constructs a parse tree or syntax tree to represent the sentence’s hierarchical structure, which is essential for accurate language comprehension.
Chapter 24 • Stages of NLP
Part B_AI Grade 10.indb 365
365
4/12/2025 4:06:06 PM
Q5. In the sentence, “Aman gave Rohan a pen because he needed it.”, which NLP stage identifies that “he” refers to “Rohan”? A5. Discourse integration
AI Activities Let’s revise the NLP stages: https://youtu.be/HeWmkJk3yQI?si=69QNIYcmHTti9pXI
Answer Key A
1. b
B
1. Lexical
C
1. False. Lexical analysis is the process of dividing text into meaningful units such as words, phrases, and symbols.
2. c
3. a 2. Syntactic
4. d 3. Semantic
5. b 4. Discourse integration
5. Pragmatic
2. True
3. False. Pragmatic analysis considers speaker intent, context, and cultural nuances. 4. True
5. False. Semantic analysis focuses on interpreting the meaning of sentences within their intended context.
366
Part B_AI Grade 10.indb 366
4/12/2025 4:06:07 PM
Unit 6 • Natural Language Processing
25 Chatbots
I
magine visiting a website with a small chat window popping up, asking, “How can I help you today?” You type a question, and within seconds, you get a response. Have you ever wondered how this happens? The system behind these automated conversations is called a chatbot. So far, we have explored Natural Language Processing (NLP)—a branch of AI that enables computers to understand, interpret, and respond to human language. NLP powers various applications like language translation, sentiment analysis, and text summarisation. Now, we will see how it plays a crucial role in developing chatbots—AI-driven programs designed to simulate human-like conversations. In this chapter, we will learn what a chatbot is, its applications, different types, and explore various real-world chatbots.
Chatbots
A chatbot is a computer program designed to simulate human conversation. Chatbots can communicate through text, voice commands, or both. They are commonly used for customer service, automating responses, and answering queries. Some chatbots operate based on predefined rules, while others use machine learning and NLP to generate more natural responses. Examples include customer service bots on websites, virtual banking assistants, and messaging app chatbots like those on WhatsApp or Facebook Messenger.
Applications of Chatbots
Chatbots are widely used across various industries, enhancing customer service, streamlining business operations, and improving user interactions through automation and AI-driven conversations. Here are some of the applications of chatbots: •
Customer Support: Chatbots automate responses to common inquiries, reducing customer wait times and providing instant assistance. They can handle multiple queries simultaneously, ensuring 24/7 support without human intervention.
•
E-commerce: Some chatbots use AI to analyse customer behaviour and suggest products, improving the shopping experience. They also help with order tracking, payment assistance, and resolving customer complaints.
•
Healthcare: Chatbots help schedule appointments, provide medication reminders, and offer basic health advice. They can also assist in symptom checking, guiding patients on whether they need medical attention. In mental health, AI-driven chatbots provide emotional support and therapy-like interactions for users.
•
Banking and Finance: Chatbots help customers check balances, apply for loans, and make payments securely. They also assist fraud detection through automated alerts. Many financial institutions use chatbots to provide investment advice and analyse spending patterns for better financial planning.
367
Part B_AI Grade 10.indb 367
4/12/2025 4:06:07 PM
•
Education: Chatbots act as virtual tutors, answering questions, providing study materials, and assisting with project ideas and assignments. They offer interactive quizzes, track student progress, and provide personalised learning recommendations.
•
Travel and Hospitality: Chatbots assist customers with bookings, create personalised itineraries, and answer general travel inquiries. They provide real-time updates on flight status, hotel availability, and weather conditions. Some travel chatbots also recommend destinations based on user preferences and budget.
Activity Play with Chatbots Objective: To identify and interact with different chatbots. There are a lot of chatbots available. Let us try some of the chatbots and see how they work. 1. ELIZA Follow the given steps to explore the ELIZA chatbot: a. Visit the link https://www.masswerk.at/elizabot/. This will direct you to a webpage as shown.
b. Ask your question to ELIZA, and it will talk to you.
368
Part B_AI Grade 10.indb 368
4/12/2025 4:06:07 PM
2. Mitsuki Follow the given steps to explore the Mitsuki chatbot: a. Visit the link https://www.kuki.ai/. This will direct you to a webpage as shown.
b. Click on the Chat option to start a conversation with the bot. Ask questions and explore how it responds in real time.
3. Cleverbot Follow the given steps to explore the Cleverbot: a. Visit the link https://www.cleverbot.com/. This will direct you to a webpage as shown.
Chapter 25 • Chatbots
Part B_AI Grade 10.indb 369
369
4/12/2025 4:06:08 PM
b. Start chatting with Cleverbot and see how it responds to your questions in real time.
4. Singtel Follow the given steps to explore the Singtel chatbot: a. Visit the link https://www.singtel.com/personal/support. This will direct you to a webpage as shown.
b. Similarly, you can start chatting with Singtel and see how it responds to your questions. As you interact with different chatbots, you will notice that some follow predefined scripts, making them traditional chatbots, while others use AI to provide more dynamic and intelligent responses. This experience helps us recognise the two main types of chatbots: Script-bots and Smart-bots. Let us explore each of them in detail.
370
Part B_AI Grade 10.indb 370
4/12/2025 4:06:09 PM
Types of Chatbots
There are mainly two types of chatbots: •
Rule-Based Chatbots or Script Bots
•
AI-Powered Chatbots or Smart Bots
Script Bots
Script-bots operate based on predefined rules and respond to specific keywords, patterns, or commands set by developers. They follow an if-then logic, meaning they can only provide programmed responses and do not learn from conversations. Examples of Script Bots: •
FAQ chatbots on websites that provide predefined answers.
•
Automated customer service bots that handle common inquiries.
•
Banking bots that guide users through fixed menu options for transactions and support.
Advantages of Script Bots •
Provide consistent and reliable responses.
•
Easy to develop, deploy, and maintain.
•
Cost-effective compared to AI-powered bots.
Did You Know? Mitsuku, an AI chatbot has won the Loebner Prize multiple times for its human-like conversational abilities.
Disadvantages of Script Bots •
Cannot handle complex or dynamic conversations.
•
Limited flexibility in understanding user intent beyond predefined inputs.
•
Require manual updates to accommodate new queries.
Smart Bots
Smart bots make use of AI to understand, process, and respond to user inputs in a more natural and intelligent way. They analyse queries, consider context, and generate relevant responses. Unlike script bots, they continuously learn from interactions, improving their accuracy and adaptability over time. Examples of Smart Bots: •
ChatGPT – AI-powered conversational chatbot.
•
Google Bard – AI-driven chatbot for search and information retrieval.
•
Replika – AI chatbot designed for companionship and conversation.
Advantages of Smart Bots •
Capable of handling complex and dynamic conversations.
•
Continuously learn and improve through interactions.
•
Support multiple languages and understand contextual nuances.
Chapter 25 • Chatbots
Part B_AI Grade 10.indb 371
371
4/12/2025 4:06:10 PM
Disadvantages of Smart Bots •
Require significant computing power and large datasets.
•
May generate inaccurate or biased responses.
•
More expensive to develop, deploy, and maintain.
Differences between Script Bots and Smart Bots
Let us explore the key differences between Script bots and Smart bots. Script Bot
Smart Bot
Script bots are simple to develop.
Smart bots are complex to build as they require AI models and large datasets.
Script bots work based on predefined scripts.
Smart bots use AI to understand, learn, and generate responses dynamically.
Script bots have no or little language processing skills.
Smart bots leverage AI and NLP to understand and respond more naturally.
Script bots have limited functionality.
Smart bots offer wide functionality.
Script bots cannot handle complex conversations.
Smart bots can handle complex and dynamic conversations.
Script bots are limited to predefined languages and responses.
Smart bots support multiple languages and contexts.
Script bots are mostly free and easily integrated into messaging platforms.
Smart bots often require paid services and advanced integration due to their AI capabilities.
Activity Time (Group Work)
Activity: Script bots v/s Smart bots
Divide the students into small groups of 4–5 members each. Ask each group to discuss the key differences between Scriptbots and Smart-bots. Encourage them to consider aspects such as ease of creation, language processing capabilities,
and overall functionality. After the discussion, have each group present their findings to the class, highlighting the most significant differences they identified.
Chapter Checkup A Select the correct option. 1 What is the main purpose of NLP? a Image processing b Understanding and responding to human language c Playing video games d Editing videos 2 What is a disadvantage of script based chatbots? a They are expensive to develop
b They require internet access
c They cannot handle complex conversations
d They learn from user interactions
372
Part B_AI Grade 10.indb 372
4/12/2025 4:06:10 PM
3 What is a key advantage of AI-powered chatbots? a They can learn and improve over time
b They require no training
c They are free to develop
d They only work with predefined inputs
4 Which application of chatbots is used in education? a Sending promotional emails
b Managing hotel bookings
c Detecting bank frauds
d Provide personalised learning recommendations
5 Rule-based chatbots work using
.
a Deep learning b Predefined rules c Genetic algorithms d Neural networks B Fill in the blanks with the most suitable words. 1
is an AI field that helps machines understand and process human language.
3
is an example of an AI-powered conversational chatbot.
2 A chatbot used in healthcare can help with 4 One advantage of 5 A chatbot in C
and medication reminders.
is that they support multiple languages.
helps customers find products based on their preferences.
State whether the following statements are True or False. Correct the statements that are False. 1 Script bots can handle highly complex conversations. 2 Chatbots can only be used in customer service.
3 Rule-based chatbots rely on predefined responses.
4 AI-powered chatbots require no computing power to function. 5 Google Bard is a smart bot.
D Answer the following questions. (Solved) Q1. Define the term chatbot. A1. A chatbot is a computer program designed to simulate human conversation. Q2. Describe any three applications of chatbots. A2. Three applications of chatbots are as follows: E-commerce: Some chatbots use AI to analyse customer behaviour and suggest products, improving the shopping experience. They also help with order tracking, payment assistance, and resolving customer complaints. Healthcare: Chatbots help schedule appointments, provide medication reminders, and offer basic health advice. They can also assist in symptom checking, guiding patients on whether they need medical attention. In mental health, AIdriven chatbots provide emotional support and therapy-like interactions for users. Banking and Finance: Chatbots help customers check balances, apply for loans, and make payments securely. They also assist fraud detection through automated alerts. Many financial institutions use chatbots to provide investment advice and analyse spending patterns for better financial planning. Q3. What are the differences between script bots and smart bots? A3. Following are the differences between script bots and smart bots: Script Bot Script bots are simple to develop.
Smart bots are complex to build as they require AI models and large datasets.
Script bots work based on predefined scripts.
Smart bots use AI to understand, learn, and generate responses dynamically.
Script bots have no or little language processing skills.
Smart bots leverage AI and NLP to understand and respond more naturally.
Chapter 25 • Chatbots
Part B_AI Grade 10.indb 373
Smart Bot
373
4/12/2025 4:06:11 PM
Script Bot
Smart Bot
Script bots have limited functionality.
Smart bots offer wide functionality.
Script bots cannot handle complex conversations.
Smart bots can handle complex and dynamic conversations.
Script bots are limited to predefined languages and responses.
Smart bots support multiple languages and contexts.
Script bots are mostly free and easily integrated into messaging platforms.
Smart bots often require paid services and advanced integration due to their AI capabilities.
Q4. What are the disadvantages of script bots? A4. Following are the disadvantages of script bots:
• Cannot handle complex or dynamic conversations. • Limited flexibility in understanding user intent beyond predefined inputs. • Require manual updates to accommodate new queries. Q5. Sakshi wants to create a chatbot to assist users in brainstorming and organising ideas for writing an essay. How can the chatbot help Sakshi? A5. The chatbot can guide users through brainstorming by asking targeted questions and providing prompts to generate ideas. It can also help organise these ideas into a coherent structure, offering suggestions for an essay outline and ensuring a logical flow.
AI Activities 1 Let’s revise the concept of AI chatbots https://youtu.be/gmUHEvrpYoU?si=Q4nYFPP_iWIeN05W 2 Visit the link https://my.aiclub.world/chai-bot to explore the Chai bot.
Answer Key A
1. b
B
1. Natural Language Processing/NLP
C
1. False. Script-bots cannot handle highly complex conversations as they follow predefined rules and responses.
2. c
3. a
4. d
5. b 2. Appointment scheduling
3. ChatGPT
4. Smart bots
5. e-commerce
2. False. Chatbots are used in multiple fields like healthcare, banking, education, and travel.
3. True
4. False. AI-powered chatbots require significant computing power.
5. True
374
Part B_AI Grade 10.indb 374
4/12/2025 4:06:11 PM
Unit 6 • Natural Language Processing
26 Text Processing
H
umans naturally communicate with each other with ease. Our languages are convenient, allowing us to speak and understand them effortlessly. However, for computers, human languages are very complex. Natural Language Processing (NLP) enables machines to understand and communicate in natural languages, much like humans do. As computers work with numerical data, translating human language into numbers is the initial stage in NLP. Text normalisation is the initial step in the conversion process. Human languages are complex; therefore, to make them easier for computers to understand, we must simplify them. By streamlining and standardising the textual data, text normalisation lowers its complexity and makes it easier for machines to comprehend.
Text Normalisation
Text normalisation is a crucial step in NLP that involves cleaning and standardising text data. This process ensures that the text is in a consistent format, making it easier for machines to process and understand. We will be working with a collection of written text from various documents, collectively known as a corpus. The steps of text normalisation will be applied to this corpus. The term used for the whole textual data from all the documents is known as ‘corpus’. The following are the key steps involved in text normalisation: Sentence Segmentation
Tokenisation
Removing Stopwords, Special Characters, and Numbers
Lemmatisation
Stemming
Converting Text to a Common Case
Sentence Segmentation
In sentence segmentation, we break down a large text (corpus) into individual sentences. Each sentence is then treated as a separate piece of data. This makes it easier to work with the text by focusing on smaller, more manageable parts.
375
Part B_AI Grade 10.indb 375
4/12/2025 4:06:11 PM
For example: During the summer, we love going to the beach, swimming, and building sandcastles. It is fun to relax, enjoy the sun, and have picnics. What are your plans for the weekend? Maybe we can all hang out together!
1. During the summer, we love going to the beach, swimming, and building sandcastles. 2. It is fun to relax, enjoy the sun, and have picnics.
3. What are your plans for the weekend? 4. Maybe we can all hang out together!
Tokenisation
After segmenting the text into sentences, the next step is to divide each sentence into tokens. Tokens refer to individual elements of the sentence, such as words, numbers, and special characters. All these elements are handled independently throughout the tokenisation process, so each one becomes a different token. As it enables a more detailed comprehension of the text, this stage is crucial for additional analysis and processing in natural language tasks. For example: During During the summer, we love going to the beach, swimming, and building sandcastles.
love
the
summer
swimming
,
the
to
going and
building
, beach
we ,
sandcastles
.
Removing Stopwords, Special Characters, and Numbers
In the process of data preprocessing, we aim to retain only the most relevant tokens, removing those that do not contribute meaningfully to the analysis. This involves identifying and removing stopwords, special characters, and numbers when they are deemed unnecessary. Stopwords, such as “the”, “is”, “in”, “and”, etc., are words that appear frequently in a text but do not provide substantial value to it. These words are crucial for human readability and grammatical structure but often add little value in computational text analysis. By removing stopwords, we can streamline our data, focusing on the words that carry the most semantic weight. The examples of stopword are as follows: a
an it
on
and is
or
are into
such
as in
the
for if
there
to
Special characters (e.g., !, @, #, ?) and numbers may also be present in the corpus. The decision to remove these elements depends on the specific use case. For example, when analysing emails, special characters and numbers are essential (e.g., email addresses like john.doe123@example.com) and should be retained.
376
Part B_AI Grade 10.indb 376
4/12/2025 4:06:12 PM
In contrast, for general data processing tasks where special characters and numbers do not add value, removing them along with the stopword can simplify the data and improve analysis accuracy.
Error Alert!
Did You Know?
Misconception: Removing stopword is always beneficial. Correction: In some contexts, stopword may carry significant meaning and should not be removed.
Stopwords can make up 50% or more of a text but add very little value in text analysis.
Converting Text to a Common Case
After stopword removal, we convert all characters to a standard case, typically lowercase. This ensures that the machine does not treat the same words as different due to variations in letter case. Welcome
WELCOME
WeLCoMe
WELcome
welcome
weLComE
welcome Here, we can see that all six forms of “welcome” would be converted to lowercase and would be treated as the same word by the machine. This is especially important in text processing tasks such as keyword matching or natural language processing, where variations in the text case can lead to inaccuracies. Another instance can be seen in email processing, where “Support@Company.com” and “support@company. com” would be treated as the same address, eliminating potential mismatches and improving data consistency.
Think and Tell
In what scenarios is converting text to a common case, especially useful?
Stemming
In NLP, stemming is a method for refining words to their most basic or root form. Words are stripped of their prefixes and suffixes in order to create a fundamental form called the root word. This guarantees that varied word forms are handled as a single item, which enhances the effectiveness and accuracy of numerous NLP tasks, including text mining, information retrieval, and search engines. For example: Word
Affixes
Stem
jumps
-s
jump
jumped
-ed
jump
jumping
-ing
jump
studies
-es
studi
studied
-ed
studi
studying
-ing
study
Chapter 26 • Text Processing
Part B_AI Grade 10.indb 377
377
4/12/2025 4:06:12 PM
In stemming, the resulting stemmed words, which are created by removing affixes, might not always be meaningful. For example, “jumps”, “jumped”, and “jumping” are all reduced to “jump”, which is a meaningful word. However, “studies” and “studied” are reduced to “studi”, which is not a meaningful word. Stemming focuses solely on removing affixes without considering the semantic validity of the resulting stems, thus prioritising speed over contextual accuracy. This characteristic of stemming makes it particularly useful for applications where processing speed is crucial, such as search engines and real-time data analysis. Simplifying words to their stems allows for faster and more efficient searching and indexing.
Lemmatisation
Lemmatisation is a NLP technique that involves reducing words to their base or root form. Unlike stemming, which simply cuts off prefixes or suffixes to achieve the root form, lemmatisation considers the meaning of the word. Lemmatisation ensures that the word we get after affix removal (also known as lemma) has a meaning, and hence it takes a longer time to execute than stemming. For example: Word
Affixes
Lemma
jumps
-s
jump
jumped
-ed
jump
jumping
-ing
jump
studies
-es
study
studied
-ed
study
studying
-ing
study
As shown in the example, after removing the affixes, the words “studies” and “studied” have been correctly transformed to “study” rather than “studi”. The following table shows the differences between stemming and lemmatisation: Feature Definition
Stemming Reduces a word to its base or root form by removing prefixes and suffixes.
Uses heuristic algorithms to strip affixes. This Method
involves applying a set of predefined rules to
remove prefixes and suffixes, often using trial and error.
Speed Accuracy
Use Case
Example
Typically, faster and more straightforward. Less accurate; may produce stems that are
not meaningful words (e.g., “studies” becomes “studi”).
Lemmatisation Reduces a word to its base or dictionary form (lemma), considering its meaning.
Uses vocabulary and morphological (word structure) analysis, including parts of speech and context. Typically, slower and more complex. More accurate; produces meaningful words (e.g., “studies” becomes “study”).
Useful in applications where speed is more
Useful in applications requiring high accuracy and
analysis.
information retrieval.
important than accuracy, such as real-time data
context understanding, such as text analysis and
“caring” → “car”
“caring” → “care”
“studies” → “studi”
“studies” → “study”
We have now normalised our text into tokens, which represent the most basic form of the word in the corpus. The next step is to convert these tokens into numerical values using the bag-of-words algorithm.
378
Part B_AI Grade 10.indb 378
4/12/2025 4:06:12 PM
Bag of Words
The Bag of Words (BoW) is a NLP model which helps in extracting features from the text, which can be helpful in machine learning algorithms. In this model, text (like a sentence or document) is shown as a collection of words without worrying about grammar or the order of the words. In this model, we count how often each word appears in the provided text and create a vocabulary for the entire text collection, or corpus. The following figure gives a simple explanation of how the bag of words works. In this figure, the text on the left side is a collection of words that we have processed and cleaned up. When we run this normalised corpus through the bag of words algorithm, it picks out all the unique words and counts how often each word appears. The list on the right shows these unique words and the number of times each word shows up in the text. in - 2
the - 2
field - 1 of - 2
computer - 3 science - 1
In the field of computer science, the development of computer systems is crucial. Computer systems play a significant role in processing data and performing tasks efficiently.
development - 1 systems - 2 is - 1
crucial - 1 play - 1 a-1
significant - 1 role - 1
processing - 1 data -1 and - 1
performing - 1 tasks - 1
efficiently - 1
So, the bag of words method gives us: 1. A list of all the unique words (vocabulary) in the text. 2. The number of times each word appears (frequency). The steps in the process of implementation of the bag of words algorithm are as follows: 1. Normalise the text: Collect data and pre-process it. 2. Create a dictionary: Next, you make a list of all the unique words in the corpus. This is called vocabulary. 3. Create document vectors: For each document in the corpus, find out how many times the word from the unique list of words has occurred. 4. Repeat: Create document vectors for all the documents. Let us understand the concept of the bag of words algorithm with the help of an example. Suppose there are three documents with one sentence each. 1. Document 1: I love to play football. 2. Document 2: Football is a great game. 3. Document 3: I love to watch football games.
Chapter 26 • Text Processing
Part B_AI Grade 10.indb 379
379
4/12/2025 4:06:12 PM
Now, apply the bag-of-words algorithm to these sentences. Step 1: Normalise the text •
Document 1: [i, love, to, play, football]
•
Document 2: [football, is, a, great, game]
•
Document 3: [i, love, to, watch, football, games]
It is important to note that no tokens were removed during the stopword removal step. This is because we have a small dataset, and since the frequency of all words is nearly identical, no word can be considered less valuable than another. Step 2: Create a dictionary Our vocabulary (list of unique words) for the corpus is: i
love
to
play
football
is
a
great
game
watch
games
Step 3: Create document vectors In this step, we count how many times each word from our vocabulary appears: For Document 1: i
love
to
play
football
is
a
great
game
watch
games
1
1
1
1
1
0
0
0
0
0
0
Since in the first document, we have words: “i”, “love”, “to”, “play”, and “football”. So, all these words get a value of 1, and the rest of the words get a value of 0. Step 4: Create document vectors for all the documents For Document 2: i
love
to
play
football
is
a
great
game
watch
games
0
0
0
0
1
1
1
1
1
0
0
For Document 3: i
love
to
play
football
is
a
great
game
watch
games
1
1
1
0
1
0
0
0
0
1
1
Now, combine the count of words for all the three documents i
love
to
play
football
is
a
great
game
watch
games
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
0
0
1
1
1
0
1
0
0
0
0
1
1
In this table, the top row lists all the words in the collection of documents, and the next three rows represent three different documents. Look at the table to see where the 0s and 1s are placed. This creates a document vector table for our corpus, but the words have not been converted to numbers yet. The next step in the process is to apply TFIDF (Term Frequency and Inverse Document Frequency), which is a statistical measure used to evaluate the importance of a word in a collection of documents.
380
Part B_AI Grade 10.indb 380
4/12/2025 4:06:12 PM
TFIDF: Term Frequency and Inverse Document Frequency**
The bag-of-words technique helps us determine how often a word appears in a document within a corpus, highlighting its significance. For example, in a document discussing artificial intelligence, words like “artificial” and “intelligence” would appear frequently. This technique helps identify the main themes, allowing readers to quickly grasp essential key points and topics. Imagine we have twenty documents, each on different topics such as women’s empowerment, unemployment, environmental preservation, healthcare, education, and so forth. In this case, words like “artificial” and “intelligence” would not appear often across all documents. However, common words like “and,” “this,”, “the”, etc., would be frequent, as they are essential for sentence structure. Although these common words are necessary for human comprehension, they don’t provide meaningful information about the topics of the documents. Machines see these words as irrelevant for analysis, so during preprocessing, they are typically removed as stopwords. Removing these stopwords makes the analysis more focused and relevant, improving the machine’s ability to accurately evaluate and classify documents based on their actual content. Stop words
Occurrence
The given graph represents a plot of the occurrence of words versus their value. Words that appear the most often in all the documents are called stopwords. They have little value and provide little meaningful contribution to the analysis. These stopwords are usually removed during the pre-processing stage. As we move past the stop words, the frequency of words drops sharply. Words that appear often enough but not excessively are called frequent words. These words usually indicate the main topic of the document. As the frequency of words continues to drop, the value of these words increases. These are called rare or valuable words. They appear the least but add the most value to the corpus. Therefore, when analysing text, we focus on frequent and rare words.
Frequent words
Rare / Valuable words
So, the bag-of-words technique lays the groundwork for understanding Value word frequency in documents. On the other hand, TFIDF builds upon that foundation to incorporate the importance of those words across a larger context, enhancing the overall analysis and information retrieval processes. The TFIDF algorithm is widely used in information retrieval and text mining. Here is a brief breakdown of its two terms: TF (Term Frequency): Measures how frequently a term appears in a document. IDF (Inverse Document Frequency): Measures how important a term is across the entire corpus by assessing how rare or common the term is. Let us understand this in more detail.
Term Frequency
Term frequency measures how often a word appears in a single document. You can easily find this using the document vector table, which lists how many times each word from the vocabulary appears in each document. i
love
to
play
football
is
a
great
game
watch
games
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
0
0
1
1
1
0
1
0
0
0
0
1
1
These numbers in the table are nothing but the term frequencies. ** Note: This topic is optional as per the CBSE syllabus and may not be covered in assessments.
Chapter 26 • Text Processing
Part B_AI Grade 10.indb 381
381
4/12/2025 4:06:12 PM
Inverse Document Frequency
Now, let us examine the second part of TFIDF, known as Inverse Document Frequency. Document frequency refers to the number of different documents that contain a particular word, regardless of how often the word appears in each document. The example vocabulary’s document frequency would be as follows: i
love
to
play
football
is
a
great
game
watch
games
2
2
2
1
3
1
1
1
1
1
1
As you can see, the term “football” has three document frequencies because they appear in three different documents, and the terms “i”, “love”, and “to” have two document frequencies because they appear in two different documents. The remaining ones happened in a single document; therefore, their document frequency is one. For inverse document frequency, we need to put the document frequency in the denominator, and the total number of documents should be in the numerator. Since there are three documents in total in this case, the inverse document frequency is as follows: i
love
to
play
football
is
a
great
game
watch
games
3/2
3/2
3/2
3/1
3/3
3/1
3/1
3/1
3/1
3/1
3/1
In the end, the TFIDF formula for any word W is as follows: TFIDF(W) = TF(W) * log(IDF(W)) Log is to the base of 10 in this case. The IDF values will now be multiplied by the TF values. Keep in mind that the IDF values apply to the corpus, whereas the TF values are specific to each document. As a result, we must multiply each row in the document vector table by the IDF values. i
love
to
play
football
is
a
great
game
watch
games
1*log(3/2)
1*log(3/2)
1*log(3/2)
1*log(3)
1*log(3/3)
0*log(3)
0*log(3) 0*log(3) 0*log(3)
0*log(3) 0*log(3)
0*log(3/2)
0*log(3/2)
0*log(3/2)
0*log(3)
1*log(3/3)
1*log(3)
1*log(3) 1*log(3) 1*log(3)
0*log(3) 0*log(3)
1*log(3/2)
1*log(3/2)
1*log(3/2)
0*log(3)
1*log(3/3)
0*log(3)
0*log(3) 0*log(3) 0*log(3)
1*log(3) 1*log(3)
It is evident from this that all of the vocabulary terms follow a similar pattern, with IDF values being the same in every row. Once every value has been computed, we obtain: i
love
to
play
football
is
a
great
game
watch
games
0.176
0.176
0.176
0.477
0
0
0
0
0
0
0
0
0
0
0
0
0.477
0.477
0.477
0.477
0
0
0.176
0.176
0.176
0
0
0
0
0
0
0.477
0.477
The words have now been converted into numerical values, representing their significance in each document. Since we have a small dataset, even common words like ‘is’ and ‘a’ have relatively high values. However, as the IDF increases, the value of such words decreases. For example: Total number of documents: 10 Number of documents containing ‘is’: 10 IDF(‘is’) = 10/10 = 1
382
Part B_AI Grade 10.indb 382
4/12/2025 4:06:13 PM
Since log(1) = 0, so the value of ‘is’ becomes 0. Number of documents containing ‘pollution’ word: 3 IDF(‘pollution’) = 10/3 = 3.3333... Since log(3.3333)≈0.522, indicating that ‘pollution’ has significant value in the corpus. Let us summarise: 1. Words that appear in all documents with high term frequencies have the lowest values and are typically considered stopwords. 2. A word with a high TFIDF value needs to have a high term frequency but a low document frequency, indicating its importance in a specific document rather than across all documents. 3. These values help the computer determine which words are important during natural language processing. The higher the value, the more critical the word is for the corpus.
Applications of TFIDF
TFIDF is a widely used technique in the field of NLP. Its applications include: •
Document Classification: TFIDF assists in categorising documents by type and genre. By analysing the significance of words within a document, it can help identify whether a document belongs to categories such as news, sports, or technology.
•
Topic Modelling: TFIDF aids in predicting the main topics of a corpus. It helps uncover the themes and subjects discussed in a collection of documents by identifying and ranking the most important words.
•
Information Retrieval Systems: TFIDF is crucial in extracting valuable information from a corpus. It enhances search engines and information retrieval systems by highlighting the most relevant documents based on the query terms.
•
Stopword Filtering: TFIDF helps remove unnecessary words from a text body. By identifying common but insignificant words, it ensures that only meaningful words are analysed, improving the efficiency and accuracy of NLP tasks.
•
Sentiment Analysis: TFIDF can be used to identify key terms that contribute to the sentiment of a document, helping in the analysis of opinions and emotions expressed in texts.
•
Content Recommendation: By understanding the importance of terms within documents, TFIDF can enhance recommendation systems, suggesting relevant articles or documents to users based on their reading history and preferences.
•
Text Summarisation: TFIDF helps in generating concise summaries of documents by identifying and retaining the most informative sentences.
•
Spam Detection: TFIDF can assist in distinguishing between spam and legitimate content by analysing the frequency and importance of terms commonly found in spam messages.
Try It Yourself
Consider the following corpus: Document 1: She enjoys hiking in the mountains. Document 2: The mountains are beautiful and peaceful. Document 3: Hiking is a great way to explore nature. Now, let us perform the following tasks in the given corpus using the following links: 1. Sentence Segmentation: https://tinyurl.com/y36hd92n 2. Tokenisation: https://text-processing.com/demo/tokenize/ Chapter 26 • Text Processing
Part B_AI Grade 10.indb 383
383
4/12/2025 4:06:13 PM
3. Stopwords removal: https://demos.datasciencedojo.com/demo/stopwords/ 4. Lowercase conversion: https://caseconverter.com/ 5. Stemming: http://textanalysisonline.com/nltk-porter-stemmer 6. Lemmatisation: http://textanalysisonline.com/spacy-word-lemmatize 7. Bag of Words: Create a document vector table for all documents. 8. Generate TFIDF values for all the words. 9. Find the words having the highest value. 10. Find the words having the least value.
Activity Time Activity 1: Case Study Analysis
(Group Work)
Divide the class into groups of 3–4 participants. Each group will select a specific case where NLP techniques were
successfully implemented (e.g., sentiment analysis in social media, spam detection in emails, and language translation services). Each group should analyse the following aspects of their chosen case: •
The challenges faced before implementing NLP techniques.
•
The specific NLP techniques used (e.g., tokenisation, stemming, lemmatisation).
•
The solutions provided by these techniques and how they addressed the challenges.
•
The impact and effectiveness of the NLP implementation.
Each group will present their findings to the class, highlighting the key points of their analysis. Activity 2: Research Work
(Individual Work)
Research advanced applications of text normalisation and NLP techniques in various domains. Review scholarly articles
and case studies to analyse recent developments and technological trends. Write a comprehensive report and present your findings, highlighting their significance and future directions.
Chapter Checkup A Select the correct option. 1 What does sentence segmentation involve? a Combining multiple sentences into one b Breaking down a large text into individual sentences c Translating sentences into different languages d Removing punctuation from sentences 2 What are tokens in the context of NLP? a Individual elements of a sentence, such as words, numbers, and special characters b Entire paragraphs of text
384
Part B_AI Grade 10.indb 384
4/12/2025 4:06:13 PM
c Synonyms of words in a sentence d Annotations are added to the text for clarity 3 How does lemmatisation differ from stemming? a Lemmatisation ignores the context of the word b Lemmatisation only works with nouns c Lemmatisation increases the complexity of words d Lemmatisation considers the meaning of the word 4 What is the Natural Language Toolkit (NLTK)? a A software for voice recognition b A library in Python for natural language processing c A hardware tool for processing text d A programming language for web development 5 Which of the following words is considered a stopword in the sentence: “She went to the store after the meeting”? a Store b Meeting c Went d The B Fill in the blanks with the most suitable words. 1 Text normalisation is a crucial step in
that involves cleaning and standardising text data.
2 Stemming reduces words to their most basic or 3
form.
considers the context and meaning of the word.
4 NLTK provides tools and resources for working with human C
data.
State whether the following statements are True or False. Correct the statements that are False. 1 Tokens include entire paragraphs of text. 2 Stemming increases the length of words. 3 The Bag of Words model maintains the order of words in a text. 4 Term frequency measures how often a word appears in a single document.
D Answer the following questions. (Solved) Q1. Why is sentence segmentation important? A1. Sentence segmentation is important because it breaks down a large text into individual sentences, making it easier to work with the text by focusing on smaller, more manageable parts. Q2. Discuss the significance of the Bag of Words (BoW) model in text representation and analysis. A2. The Bag-of-Words (BoW) model is significant in text representation and analysis as it simplifies the representation of text by treating it as a collection of words without considering grammar or word order. This model focuses on the frequency of words in the text, allowing for easy identification of important terms. The BoW model is widely used in various NLP tasks, including text classification, sentiment analysis, and information retrieval, where understanding the significance of words is crucial. By creating a vocabulary and counting word occurrences, the BoW model helps in converting textual data into a numerical form, making it suitable for machine learning algorithms and improving the accuracy and relevance of text analysis.
Chapter 26 • Text Processing
Part B_AI Grade 10.indb 385
385
4/12/2025 4:06:14 PM
Q3. What are the key steps involved in text normalisation? A3. The following are the key steps involved in text normalisation: Sentence Segmentation
Tokenisation
Removing Stopwords, Special Characters, and Numbers
Lemmatisation
Stemming
Converting Text to a Common Case
Q4. You are working on a sentiment analysis project involving customer reviews. Explain how sentence segmentation and tokenisation would be applied in this project and why they are important. A4. Sentence segmentation would be used to break down customer reviews into individual sentences, making the text easier to analyse. Tokenisation would then break these sentences into individual words or tokens. These steps are important because they help in focusing on smaller, more manageable parts of the text, allowing for a more detailed analysis of the sentiments expressed in the reviews.
AI Activities 1 Visit the link: https://www.youtube.com/watch?v=jnB-BVtucEY to learn more about text normalisation. 2 Visit the link: https://www.youtube.com/watch?v=ATK6fm3cYfI to learn more about text representation using TFIDF.
Answer Key 4. b
5. d
A
1. b
2. a
3. d
B
1. NLP
2. Root
3. Lemmatisation
C
1. False. Tokens refer to individual elements of a sentence, such as words, numbers, and special characters.
4. Language
2. False. Stemming reduces words to their most basic or root form.
3. False. Bag of Words algorithm represents text as a collection of words without worrying about grammar or order.
4. True
386
Part B_AI Grade 10.indb 386
4/12/2025 4:06:14 PM
Unit 6 • Natural Language Processing
27 Code and No-Code NLP Tools**
D
o you know that there are special tools that help NLP work better? These tools support NLP in understanding and responding just like humans do. Just like we use a calculator for math or a compass for geometry, NLP also has its own set of tools. These tools are of two types: code-based NLP tools and no-code NLP tools. Various tools have been developed to facilitate NLP tasks, categorised into code-based and no-code tools. While code-based NLP tools require programming knowledge, no-code tools allow users to perform NLP tasks using graphical interfaces with minimal or no coding. Let’s explore how they work and why they are important. NLP Tools
No-Code NLP Tools
Monkey Learn
Code NLP Tools
Orange Data
SpaCy
Mining
NLTK Package
Examples of Code and No-Code NLP Tools
Let’s take a closer look at both kinds and learn about their subcategories.
Code NLP Tools
Code-based NLP tools require programming expertise. These tools allow developers and researchers to implement text processing tasks by writing scripts in languages like Python. They are widely used in AI applications where complex and scalable NLP solutions are required. Key Characteristics: •
Require programming knowledge
•
Provide high flexibility and customisation
** Note: This chapter is to be assessed through practicals.
387
Part B_AI Grade 10.indb 387
4/12/2025 4:06:15 PM
•
Suitable for developers, data scientists, and AI engineers
•
Offer extensive libraries and APIs for advanced NLP tasks
NLTK (Natural Language Toolkit)
NLTK is a widely used Python package for text processing and natural language tasks. It provides a comprehensive suite of tools to perform operations such as tokenisation, stemming, lemmatisation, part-of-speech tagging, parsing, and sentiment analysis. Features: •
Various algorithms for text classification and analysis
•
Support for tokenisation and stemming
•
Named Entity Recognition (NER) capabilities
Applications: •
Text preprocessing in AI models
•
Language modelling and text classification
•
Academic research in linguistics
Remember
Named Entity Recognition (NER) in NLP is used in finance, healthcare, and legal industries to extract important information from documents.
SpaCy
SpaCy is a fast and efficient open-source NLP library for Python. It is designed to handle large-scale NLP tasks efficiently and is widely used in the industry for building AI applications. Features: •
Efficient text tokenisation and word lemmatisation
•
Pre-trained language models for various NLP tasks
•
Named Entity Recognition (NER)
•
Dependency parsing and part-of-speech tagging for syntactic analysis
Applications: •
Chatbots and virtual assistants
•
Information extraction and text summarisation
•
Sentiment analysis and text classification
Did You Know? Dependency parsing in SpaCy helps analyse sentence structure and can even detect subject-verb relationships in text.
No-Code NLP Tools
No-code NLP tools enable users to perform NLP tasks without writing any code. They provide a graphical user interface (GUI) where users can drag and drop components to build NLP workflows. These tools are ideal for business analysts, marketers, and professionals who need NLP capabilities without technical expertise. Key Characteristics: •
No programming required
•
Easy-to-use interface
•
Suitable for non-programmers and business users
•
Predefined models and workflows for quick implementation
388
Part B_AI Grade 10.indb 388
4/12/2025 4:06:15 PM
Orange Data Mining
Orange is a powerful, open-source machine learning and data visualisation tool that enables users to perform NLP tasks using a drag-and-drop interface. It supports Python scripting for advanced functionality but is primarily designed for no-code users. Features: •
Visual programming with drag-and-drop components
•
Built-in NLP workflows for text processing
•
Integration with external Python scripts for advanced customisation
Applications: •
Text mining and sentiment analysis
•
Document classification
•
Data visualisation for NLP results
Think and Tell
What are some industries that can benefit the most from no-code NLP tools?
MonkeyLearn
MonkeyLearn is a cloud-based, no-code NLP tool that provides a user-friendly interface for performing NLP tasks such as text classification, sentiment analysis, and entity recognition. Features: •
Custom model creation without coding
•
Pre-trained NLP models for classification and analysis
•
API integration for automated workflows
Applications:
Error Alert! Be careful when using pre-trained models in no-code NLP tools. They may not always fit your specific dataset,
•
Customer feedback analysis
•
Social media sentiment tracking
•
Email and survey response classification
leading to inaccurate results. Always validate output before making decisions.
Code vs. No-Code NLP Tools Feature
Code-Based NLP Tools
No-Code NLP Tools
Ease of Use
Requires programming skills
No coding required, drag-and-drop interface
Flexibility
Highly customisable
Limited to predefined workflows
Performance
High performance with optimised libraries
Suitable for small to medium datasets
Use Case Suitability
Developers, researchers, and AI engineers
Business analysts, non-programmers
Examples
NLTK and SpaCy
Orange and MonkeyLearn
Both code-based and no-code NLP tools play a significant role in advancing text analysis and AI applications. NLTK and SpaCy provide extensive features for developers seeking complete control over NLP workflows, while Orange Data Mining and MonkeyLearn empower users with limited programming experience to perform NLP tasks efficiently. Choosing the right tool depends on the complexity of the task and the technical proficiency of the user.
Chapter 27 • Code and No-Code NLP Tools
Part B_AI Grade 10.indb 389
389
4/12/2025 4:06:15 PM
Activity Time Activity 1: Exploring Sentiment Analysis with No-Code NLP Tools
(Group Activity)
Analyse text sentiment using a no-code NLP tool (MonkeyLearn or Orange Data Mining) and compare findings with a peer.
Enter a short passage (e.g., a customer review or a news headline) and analyse its sentiment (positive, neutral, or negative) and write down your observations.
(Group Activity)
Activity 2: Identify Named Entities
Give students a paragraph and ask them to manually underline possible named entities (e.g., people, places, dates).
Compare their answers with the NLP tool’s output. Discuss any differences—why did the tool miss or misclassify something?
Chapter Checkup A Select the correct option. 1 Which of the following is a code-based NLP tool?
a MonkeyLearn b Orange Data Mining c NLTK d Google Docs
2 What is the primary advantage of no-code NLP tools? a They provide full customisation c They have a graphical user interface
b They require programming skills d They cannot analyse text
3 Which feature is common to both NLTK and SpaCy?
a Drag-and-drop interface b Named Entity Recognition (NER) c No programming required
4 Which application is best suited for MonkeyLearn?
a Writing Python scripts
d Pre-trained models are unavailable b Sentiment analysis on customer feedback
c Image processing d Solving mathematical equations
5 In the comparison of code vs. no-code NLP tools, which of the following is not true? a Code-based NLP tools require programming knowledge
b No-code NLP tools have limited flexibility
c Code-based NLP tools are suitable for business analysts
d No-code NLP tools use predefined workflows B Fill in the blanks with the most suitable words. 1 NLTK and SpaCy are examples of 2 No-code NLP tools use a 3 4
5 In SpaCy, C
NLP tools.
interface, allowing users to perform NLP tasks without programming.
is a machine learning tool that enables users to perform NLP tasks with visual programming. is used to extract important entities from text, such as names and dates.
helps analyse sentence structure and detect subject-verb relationships.
State whether the following statements are True or False. Correct the statements that are false. 1 MonkeyLearn is a code-based NLP tool that requires Python programming. 2 No-code NLP tools are primarily designed for developers and AI engineers. 3 NLTK provides various algorithms for text classification and analysis. 4 SpaCy does not support Named Entity Recognition (NER).
5 Orange Data Mining allows users to perform NLP tasks without writing any code.
390
Part B_AI Grade 10.indb 390
4/12/2025 4:06:16 PM
D Answer the following questions. (Solved) Q1. List two key characteristics of NLTK.
A1. Two key characteristics of NLTK are: • Provides various algorithms for text classification and analysis. • Supports tokenisation and stemming for text processing.
Q2. What is the difference between code-based and no-code NLP tools? A2. Differences between code-based and no-code NLP tools are: Feature
Code-Based NLP Tools
No-Code NLP Tools
Ease of Use
Requires programming skills
No coding required, drag-and-drop interface
Flexibility
Highly customisable
Limited to predefined workflows
Performance
High performance with optimised libraries
Suitable for small to medium datasets
Use Case Suitability
Developers, researchers, and AI engineers
Business analysts, non-programmers
Examples
NLTK and SpaCy
Orange and MonkeyLearn
Q3. How does MonkeyLearn help in sentiment analysis?
A3. MonkeyLearn allows users to analyse text sentiment (positive, neutral, or negative) without writing code by using pretrained NLP models. Q4. Give an example of an application where SpaCy is commonly used.
A4. SpaCy is used in chatbots and virtual assistants for natural language processing. Q5. Why might a business analyst prefer using a no-code NLP tool?
A5. A business analyst may prefer a no-code NLP tool because it requires no programming knowledge and provides an easyto-use interface for analysing text data. Q6. A company wants to analyse customer feedback to improve its services. They receive thousands of reviews every day and need a quick way to determine whether the feedback is positive or negative. Which type of NLP tool (code-based or no-code) would be more suitable for this company? Justify your answer. A6. A no-code NLP tool like MonkeyLearn would be more suitable because:
• It allows business users to analyse customer sentiment without programming knowledge. • It provides pre-trained models that can classify feedback as positive, neutral, or negative automatically. • The company can quickly process data without needing a dedicated developer team.
AI Activities 1 Visit the link https://youtu.be/lXWeKhKSOFs to learn about sentiment analysis using MonkeyLearn.
2 Visit the link spaCy 101: Everything you need to know · spaCy Usage Documentation to know more about SpaCy.
Answer Key A
1. c
B
1. Code-based
C
1. False. MonkeyLearn is a no-code NLP tool.
2. c
3. b
4. b
2. Graphical user
5. Dependency parsing
5. c 3. Orange Data Mining
4. Named Entity Recognition (NER)
2. No-code NLP tools are designed for non-programmers like business analysts. 3. True
4. False. SpaCy supports Named Entity Recognition (NER). 5. True
Chapter 27 • Code and No-Code NLP Tools
Part B_AI Grade 10.indb 391
391
4/12/2025 4:06:16 PM
Unit 6 • Natural Language Processing
28 Sentiment Analysis**
N
LP (Natural Language Processing) is a branch of artificial intelligence designed to enable computers understand, interpret, and generate human language. It processes text and speech using linguistics, machine learning, and deep learning.
NLP Tools
An NLP tool is a software program or platform that uses Natural Language Processing (NLP) techniques to process, analyse, and understand human language. There are two types of NLP tools: •
No-code NLP tools (for non-technical users)
•
Code-based NLP tools (for developers)
Think and Tell
What is the primary challenge faced by computers in understanding human languages?
No-Code NLP Tools
No-Code NLP tools are simple to use, with drag-and-drop capabilities. They are commonly used for automation, text classification, and sentiment analysis. Some of the examples include the following: 1. Orange Data Mining: It is a machine learning tool that uses Python and visual programming to analyse data. We can use basic drag-and-drop steps to perform operations on data. 2. MonkeyLearn: MonkeyLearn is a text analysis platform that provides NLP tools and machine learning models for text analysis, including classification, sentiment analysis, and entity recognition. For example, users can build custom models or use pre-trained ones. It is widely used in social media monitoring and customer feedback analysis.
Code-Based NLP
Code-based NLP tools require programming skills, such as Python, Java, and others. Examples are: 1. NLTK package: Natural Language Tool Kit is a popular Python library for text processing. It includes modules and functions for various NLP tasks such as tokenisation, stemming, and parsing. 2. SpaCy: SpaCy is an open-source NLP library designed for high-performance processing. It supports tasks such as dependency parsing, named entity recognition, tokenisation, and part-of-speech (POS) tagging. ** Note: This chapter is to be assessed through practicals.
392
Part B_AI Grade 10.indb 392
4/12/2025 4:06:17 PM
Applications of NLP
Natural Language Processing (NLP) has a variety of applications across industries, like: •
Machine Translation
•
Speech Recognition
•
Chatbots and Virtual Assistants
•
Text-to-Speech (TTS) and Speech-to-Text (STT)
•
Sentiment Analysis
In this chapter, we will focus on Sentiment Analysis.
Sentiment Analysis
Sentiment analysis is an NLP technique of examining digital text to find out whether the message’s emotional tone is neutral, negative, or positive.
Applications of Sentiment Analysis
1. Customer Feedback Analysis: Analyses consumer satisfaction by examining surveys, product reviews, and support tickets.
2. Social Media Monitoring: Evaluates brand sentiment on social media sites like Facebook, Instagram, and Twitter.
Chapter 28 • Sentiment Analysis
Part B_AI Grade 10.indb 393
393
4/12/2025 4:06:17 PM
3. Healthcare and Patient Feedback: Assesses patient evaluations of medical professionals, hospitals, and therapies.
4. Chatbots and Customer Support: Detects urgency and irritation to improve AI-driven customer service.
5. Employee Sentiment Analysis: Evaluates employee opinions workplace reviews to measure job satisfaction.
Introduction to Lexicon or Rule-Based Learning
Lexicon or rule-based learning is a simple way for computers to understand language using a set of pre-defined rules and word lists. It reads words to guess how someone feels. This simple rule-based analysis is often used for quick sentiment detection, especially in customer reviews or feedback. This method is often used for tasks like checking customer reviews, analysing comments on social media, or understanding feedback.
394
Part B_AI Grade 10.indb 394
4/12/2025 4:06:18 PM
Let us understand this with the help of an example sentence: “The book was absolutely fantastic.” Step 1: Tokenisation
The sentence is broken down into individual words (tokens). •
The
•
book
•
was
•
absolutely
•
fantastic
Remember
The Lexicon-Based Approach is a rule-based approach that evaluates sentiment by comparing words to a predetermined sentiment dictionary (lexicon).
Step 2: Preprocessing
Stop words like “The”, “was”, and “absolutely” are removed. Punctuation (the full stop) is also removed. •
book → Neutral
•
fantastic → Positive
Step 3: Sentiment Analysis Using Lexicon
The system checks each remaining word against a pre-defined dictionary (lexicon). •
“Fantastic” is a positive word, leading to an overall positive sentiment.
Final Sentiment: Positive
Sentiment Analysis Methods
There are some more different techniques used to determine the emotional tone of a text, whether it is positive, negative, or neutral. These methods help computers understand human language and are often used for analysing reviews, feedback, and social media comments. Let us know more about them in the following table. Methods
Supported Languages
Description
Liu Hu
English and Slovenian
Lexicon-based sentiment analysis using a predefined dictionary of positive and negative words.
VADER (Valence Aware Dictionary and Sentiment Reasoner)
English
A lexicon- and rule-based method designed for analysing sentiment in social media and short texts.
Multilingual Sentiment
Supports multiple languages
A lexicon-based sentiment analysis approach that supports multiple languages.
SentiArt
English and German
Uses vector space models to determine text valence (positivity or negativity).
Custom Dictionary
User-defined
Allows the addition of custom sentiment dictionaries; the final sentiment score is calculated similarly to Liu Hu.
IMDb Dataset
The IMDb dataset is a collection of movie-related data from the Internet Movie Database (IMDb). It contains information like movie titles, genres, cast, crew, and most importantly, user reviews and ratings. In the world of AI and machine learning, this dataset is often used for sentiment analysis. Since it contains thousands of movie reviews labelled as positive or negative, it helps train AI models to figure out whether a new
Chapter 28 • Sentiment Analysis
Part B_AI Grade 10.indb 395
395
4/12/2025 4:06:18 PM
review is expressing a happy or unhappy opinion. It is a favourite choice for beginners exploring Natural Language Processing (NLP). The story of IMDb started in 1990 when a British movie lover named Col Needham created a small database of movie credits. It began as a fun project shared with other film enthusiasts on the Usenet forum. As more people contributed, it grew into a massive collection of movie information. In 1998, Amazon saw its potential and acquired IMDb to expand its media business. Today, IMDb is one of the most popular go-to sources for entertainment content, serving millions of movie fans, industry experts, and researchers around the world.
Recalling AI Project Cycle
The AI Project Cycle is a step-by-step guide that helps turn ideas into real AI solutions, making it easier to tackle problems and find useful insights. Now, let us consider a dataset of IMDb and use the AI project cycle steps to predict the sentiments given in the dataset. First, let us discuss what is the IMDb dataset.
Defining the Problem
The first step is understanding the goal. In this case, we want to predict whether a movie review is positive, negative, or neutral based on user feedback from the IMDb dataset. Clearly defining the problem helps set the direction for the entire project.
Data Acquisition
Next, we gather the right data. For sentiment analysis, we use a dataset containing IMDb movie reviews and their corresponding sentiments. Quality data is essential for building an accurate model.
Data Exploration
Here, we explore the dataset to understand its structure. We check for missing values, detect inconsistencies, and visualise data patterns. This helps in deciding how to clean and prepare the data for better results.
Modelling
Using the cleaned data, we build a sentiment analysis model. By applying Natural Language Processing (NLP) techniques, the model learns to identify sentiment patterns from text. Tools like Orange Data Mining make this process easier with visual workflows.
Prediction
Finally, we use the trained model to predict sentiment for new reviews. Based on the analysis, it classifies reviews as positive, negative, or neutral. This insight can be used to understand audience opinions and make informed decisions.
Activity Build an AI model to predict sentiment using Orange Data Mining. Scenario: Orange workflow for Sentiment Analysis using the IMDb dataset.
396
Part B_AI Grade 10.indb 396
4/12/2025 4:06:19 PM
Solution: Step 1: Problem Scoping Emotions are generally divided into three categories in sentiment analysis: neutral, negative, and positive. Sentiments
Meanings
Examples
Positive Sentiments
Express happiness, approval, or optimism
happy, love, superb, excellent, amazing, fantastic, wonderful, and satisfied
Negative Sentiments
Indicate dissatisfaction, anger, sadness, or criticism
unpleasant, awful, horrible, hateful, bad, disappointed, and terrible
Neutral Sentiments
Express balanced opinions means neither strong positivity nor negativity
okay, average, respectable, fine, moderate, alright and decent
Step 2: Data Acquisition In sentiment analysis, the IMDb dataset is frequently used, particularly when examining movie reviews to identify viewer sentiment. Uploading Datasets When you launch Orange, you will see the Canvas interface where you can create workflows using Widgets as shown in given figure. •
Click on New to start a new project.
•
Click on File from the Data widget.
Chapter 28 • Sentiment Analysis
Part B_AI Grade 10.indb 397
397
4/12/2025 4:06:19 PM
•
Load the dataset in XLS format.
Prepare the Corpus •
Drag the Corpus from the Text Mining widget and load the dataset in XLS format into the corpus.
•
Join the File widget to the Corpus widget as shown in given figure.
•
Now, drag Data Table from the Data widget and connect with Corpus.
398
Part B_AI Grade 10.indb 398
4/12/2025 4:06:19 PM
•
Click on Data Table to see the information about the dataset as shown in given figure.
•
Drag Corpus Viewer from the Text Mining widget and connect with corpus.
•
Click on Corpus Viewer to see the information about the dataset.
Chapter 28 • Sentiment Analysis
Part B_AI Grade 10.indb 399
399
4/12/2025 4:06:20 PM
Step 3: Data Exploration •
Click on Data Table to see the missing values in the dataset.
•
Drag Preprocess Text from the Text Mining widget and connect with corpus to clean the data.
Step 4: Building Model •
Drag Sentiment Analysis from Text Mining widget and connect to the Preprocess Text to predict the sentiment.
400
Part B_AI Grade 10.indb 400
4/12/2025 4:06:20 PM
Step 5: Prediction •
Drag Data Table from Data widget and join the Sentiment Analysis to the Data Table to see the outcome of the Data Table.
•
Click on Data Table to see the outcome as shown in figure.
•
Select the Corpus Viewer from the Text Mining widget and join the Sentiment Analysis to the Corpus Viewer to review the sentiments based on features selected.
Chapter 28 • Sentiment Analysis
Part B_AI Grade 10.indb 401
401
4/12/2025 4:06:21 PM
•
Predicted sentiment analysis is as given below.
•
Final result of Orange workflow for Sentiment Analysis using the IMDb dataset is given below.
Or you can click on given icon to see the result.
Did You Know? Sentiment analysis can predict stock market
sentiment.ows
trends also.
402
Part B_AI Grade 10.indb 402
4/12/2025 4:06:21 PM
Activity Time (Group Activity)
Activity 1: Data Collection & Preparation
Purpose: Encourage students to collect text data from social media (e.g., IMDb, Amazon) and predict the outcome.
(Pair Activity)
Activity 2: Data Collection & Preparation Purpose: Encourage students to collect text data from survey and predict the outcome.
Chapter Checkup A Select the correct option. 1 Sentiment Analysis is:
a A technique to analyse numerical data
b A method to determine the sentiment (positive, negative, neutral) from text c A process for encrypting text
d All of these
2 Which of the following is not an example of negative sentiments? a Sadness b Stress
c Happy d Terrible
3 Which of the following is not an NLP application? a Sentiment analysis c Speech recognition
b Chatbot
d Image classification
4 What is the meaning of POS tagging in NLP? a Primary Object Sorting c Primary Object Sorting
b Predictive Output Selection d Part of Speech tagging
B Fill in the blanks with the most suitable words.
1 Natural Language Tool Kit is a popular Python package for 2
evaluates employee opinions and reviews to determine job satisfaction.
3 NLP processes text and speech using language 4 In reviews of films, C
. and
.
dataset is most frequently utilised for sentiment analysis.
State whether the following statements are True or False. Correct the statements that are false.
1 Liu Hu is a lexicon-based sentiment analysis using a predefined dictionary of positive and negative words. 2 Negative sentiments express balanced opinions means neither strong positivity nor negativity. 3 Data Table is a part of the Text Mining Widget. 4 SpaCy supports tasks such as dependency parsing, named entity recognition, tokenisation, and part-of-speech (POS) tagging.
D Answer the following questions. (Solved) Q1. What is NLP Tool?
A1. An NLP tool is a software program or platform that uses Natural Language Processing (NLP) techniques to process, analyse, and understand human language.
Chapter 28 • Sentiment Analysis
Part B_AI Grade 10.indb 403
403
4/12/2025 4:06:22 PM
There are two types of NLP tools: • No-code NLP tools (for non-technical users) • Code-based NLP tools (for developers) Q2. Differentiate between Code based NLP tools and No-code NLP tools with examples. A2.
Code NLP
No-Code NLP
Code-based NLP tools require programming skills, such as Python, Java, and others.
No-Code NLP tools are simple to use, with drag-anddrop capabilities.
NLTK package: Natural Language Tool Kit or NLTK is a package readily available for text processing in Python. The package contains functions and modules which can be used for Natural Language Processing.
Orange Data Mining: It is a machine learning tool for data analysis through Python and visual programming. We can perform operations on data through simple drag-and-drop steps.
SpaCy: SpaCy is an open-source natural language processing (NLP) library designed to build NLP applications. It offers various features such as tokenisation, part-of-speech tagging, named entity recognition, dependency parsing, and more.
MonkeyLearn: MonkeyLearn is a text analysis platform that offers NLP tools and machine learning models for text analysis, supporting tasks such as classification, sentiment analysis, and entity recognition. Users can create custom models or use pre-trained ones for tasks like social media monitoring and customer feedback analysis.
Q3. Explain sentiment analysis methods in detail. A3.
Methods
Supported Languages
Description
Liu Hu
English and Slovenian
Lexicon-based sentiment analysis using a predefined dictionary of positive and negative words.
VADER (Valence Aware Dictionary and Sentiment Reasoner)
English
A lexicon- and rule-based method designed for analysing sentiment in social media and short texts.
Multilingual Sentiment
Supports multiple languages
A lexicon-based sentiment analysis approach that supports multiple languages.
SentiArt
English and German
Uses vector space models to determine text valence (positivity or negativity).
Custom Dictionary
User-defined
Allows the addition of custom sentiment dictionaries; the final sentiment score is calculated similarly to Liu Hu.
AI Activities 1 Visit the link: https://www.geeksforgeeks.org/what-is-sentiment-analysis/ and explore this topic.
2 Visit the link: https://www.youtube.com/watch?v=7Fnli0wc11g and learn sentiment analysis using Orange data mining tool. 3 Visit the link: https://levity.ai/blog/11-nlp-real-life-examples and find out real life examples of NLP.
Answer Key A
1. b
B
1. text processing
C
1. True
2. c
3. d
4. d
2. Employee Sentiment Analysis
3. machine learning, deep learning
4. IMDb
2. F alse. Neutral sentiments express balanced opinions means neither strong positivity nor negativity.
3. False. Data Table is the part of Data Widget. 4. True
404
Part B_AI Grade 10.indb 404
4/12/2025 4:06:22 PM
Unit Reflection
Key Terms • NLP: NLP is the domain of AI that deals with the language-based interactions between a machine and a human, as well as between two machines. • Chatbots: Chatbots are computer programs designed to imitate human-like conversation using text or speech interfaces. • Virtual Assistant: A virtual assistant is an AI tool that understands and responds to voice commands or text inputs, such as questions and requests, or performs tasks for you. • Syntax: Syntax refers to the rules that establish the structure of a language, involving the grammatical arrangement of words in a sentence. • Text normalisation: Text normalisation is a crucial step in NLP that involves cleaning and standardising text data. • Corpus: The term used for the whole textual data from all the documents is known as corpus. • Tokens: Tokens refer to individual elements of the sentence, such as words, numbers, and special characters. • Lemmatisation: Lemmatisation is an NLP technique that involves reducing words to their base or root form. • Bag of Words: The Bag of Words (BoW) is an NLP model that helps in extracting features from text, which can be useful for machine learning algorithms. • Script Bots: These are the chatbots that operate based on predefined rules and respond to specific keywords or commands. • Smart Bots: These are the chatbots that use AI to understand, process, and respond to user inputs in a more natural and intelligent way.
Things to Remember • NLP enables computers to understand, comprehend, and generate human language in a way that is both meaningful and contextually appropriate. • Chatbots, virtual assistants, sentiment analysis, automatic summarisation, etc. are some of the numerous applications of NLP in our daily lives. • Part-of-speech tagging involves assigning a tag to each token based on its grammatical function in the sentence. • In natural language, a single word can have multiple meanings, and its significance changes according to the surrounding context. • Google Translate is an AI-powered translation app that allows users to translate text into different languages. • The various stages of an AI project cycle are problem scoping, data acquisition, data exploration, modelling, and evaluation. • Text normalisation is a process that ensures that the text is in a consistent format, making it easier for machines to process and understand. • In sentence segmentation, we break down a large text (corpus) into individual sentences. Each sentence is then treated as a separate piece of data. Unit Reflection
Part B_AI Grade 10.indb 405
405
4/12/2025 4:06:23 PM
• After segmenting the text into sentences, the next step is to divide each sentence into tokens. • In the process of data preprocessing, we aim to retain only the most relevant tokens, removing those that do not contribute meaningfully to the analysis. This involves identifying and removing stopwords, special characters, and numbers when they are deemed unnecessary. • Stopwords, such as “the”, “is”, “in”, “and”, etc., are words that appear frequently in a text but do not provide substantial value to it. • After stopword removal, we convert all characters to a standard case, commonly lowercase. • In the process of stemming, words are stripped of their prefixes and suffixes in order to create a fundamental form called the root word. These root words might not always be meaningful. • Lemmatisation reduces words to their base or root form. Unlike stemming, lemmatisation considers the meaning of the word. • In the Bag of Words (BoW) model, text (like a sentence or document) is shown as a collection of words without worrying about grammar or the order of the words. • The steps in the process of implementation of the bag of words algorithm are normalising the text, creating a dictionary, and creating document vectors for all the documents. • Term frequency measures how often a word appears in a single document. • Document frequency refers to the number of different documents that contain a particular word, regardless of how often the word appears in each document. • Script bots work around a script which is programmed into them. • Smart bots operate on larger databases and other resources directly. • NLP can be used to auto-generate short and clear summaries of longer texts or documents through AI algorithms and techniques. • Human language operates according to specific rules. Within a sentence, we find nouns, verbs, adverbs, and adjectives—all essential for effective communication. • Sentiment analysis is an NLP technique used to analyse and interpret the sentiment expressed in text data. By comprehending human language, NLP enables computers to detect whether the sentiment conveyed in text is positive, negative, or neutral.
406
Part B_AI Grade 10.indb 406
4/12/2025 4:06:23 PM
Test Your Knowledge A. Select the correct option. 1. What is the primary goal of Natural Language Processing (NLP)? a. To develop new programming languages. b. To enable computers to understand and generate human language. c. To create faster computer processors. d. To replace human language with computer code. 2. Which of the following applications heavily relies on NLP? a. Word processing software
b. Social media platforms
c. Virtual assistants like Siri and Alexa
d. Computer graphics design tools
3. How does sentiment analysis in NLP help businesses? a. By improving website design. b. By tracking user emotions in social media posts. c. By generating email content. d. By enhancing computer speed. 4. In the context of NLP, what is ’tokenisation’? a. Assigning grammatical tags to words. b. Analysing the emotional tone of a sentence. c. Translating text from one language to another. d. Splitting a sentence into individual words or tokens. 5. Which among the following is a chatbot? a. ELIZA
b. Kuki Bot
c. CleverBot
d. All of these
6. Which type of chatbot is best suited for handling complex and dynamic conversations? a. Script Bot
b. Smart Bot
c. FAQ Bot
d. Banking Bot
7. What is the primary function of a chatbot? a. Image Processing
b. Simulating Human Conversation
c. Playing Video Games
d. Editing Videos
Unit Reflection
Part B_AI Grade 10.indb 407
407
4/12/2025 4:06:23 PM
B. Fill in the blanks with the most suitable words. 1. Chatbots use 2.
to comprehend user input and generate appropriate responses. analysis is an NLP technique used to determine the emotion or opinion in a text.
3. In NLP,
refers to the grammatical arrangement of words in a sentence.
4. The full form of NLTK is
.
5. Natural languages, such as English and Hindi, have evolved over time and are rich in different from artificial languages.
, making them
6.
are commonly used for customer service, automating responses, and answering queries.
7.
follow an if-then logic and can only provide programmed responses.
C. State whether the following statements are True or False. Correct the statements that are false. 1. NLP is a domain of AI that only deals with spoken language interactions between humans and machines. 2. Human language and computer language follow the same set of grammar rules. 3. Chatbots can communicate using text, voice commands, or both. 4. Part-of-speech tagging is a technique used to assign grammatical functions to tokens in a sentence. 5. The bag-of-words technique helps us determine how often a word appears in a document within a corpus. 6. Smart bots require manual updates to accommodate new queries.
D. Short-answer type questions. 1. How does part-of-speech tagging assist NLP algorithms in understanding a sentence? 2. Name any four applications of NLP. 3. Define lemmatisation. 4. What is one key advantage and one key disadvantage of Smart Bots?
E. Long-answer type questions. 1. Through a step-by-step process, calculate TFIDF for the given corpus and mention the word(s) having the highest value. Document 1: We are going to Mumbai Document 2: Mumbai is a famous place. Document 3: We are going to a famous place. Document 4: I am famous in Mumbai. 2. What are the steps of text normalisation? Explain them in brief. 3. Explain how NLP plays a pivotal role in enhancing chatbot capabilities. 4. Describe the process of how a Smart Bot learns and improves over time. 5. Explain the role of chatbots in enhancing customer service across different industries.
408
Part B_AI Grade 10.indb 408
4/12/2025 4:06:23 PM
F. Competency-based questions. 1. Ankita is working on an NLP project and encounters words with the same spelling but different meanings. Explain why context is important for determining the correct meaning by giving a suitable example.
2. Shalini needs an AI-powered tool that can translate text typed on a computer, handwritten notes, spoken words, and text captured in images. What application can she use for these translation needs?
3. The word “bark” has multiple meanings depending on the context. Consider the following examples: i. The dog barked loudly at the strangers. ii. The tree’s bark was rough to the touch. iii. The captain gave a command from the bark, a small sailing vessel. How does the meaning of “bark” change in each of the sentences above? 4. Imagine you are a business owner. How would you decide whether to implement a Script Bot or a Smart Bot for your customer service needs? What factors would you consider?
5. Propose a new application of chatbots in the field of environmental conservation. Describe how a chatbot could assist in this area and what type of chatbot (Script Bot or Smart Bot) would be most suitable.
Unit Reflection
Part B_AI Grade 10.indb 409
409
4/12/2025 4:06:23 PM
Unit 7 • Advance Python
29 Jupyter Notebook I
n businesses and organisations everywhere, Jupyter Notebooks have become a must-have tool for data science. They help data scientists analyse data, explore new ideas, and share their results easily. Jupyter Notebooks are powerful because they enable users to perform multiple tasks within a single environment. Let us learn more about why Jupyter Notebooks are so important and how they are used in data science today.
Introduction to Anaconda The simplest method to install and use Jupyter Notebook is by using Anaconda. Anaconda is a free and opensource environment for writing and executing Python programs. It offers a significant benefit because it includes numerous pre-installed packages often used in machine learning and data science. This saves a significant amount of effort and time because each package does not need to be installed separately. With Anaconda, you can easily manage conda packages, environments, and channels using the desktop graphical user interface (GUI) called Anaconda Navigator. This eliminates the need for command line instructions when launching applications.
Installing Anaconda The Anaconda distribution is open source and available for Windows, Linux, and Mac OS. These are the instructions for downloading and installing Anaconda for Windows. 1. Download the latest version of Anaconda from: https://www.anaconda.com/download/success 2. Click on “Download” for the Windows operating system. 3. Double-click on the downloaded .exe file and follow the steps in the installation.
410
Part B_AI Grade 10.indb 410
4/12/2025 4:06:24 PM
4. Click on “Next”.
5. Read the license agreement and click on “I Agree”.
6. Select the option install for “Just Me” unless you are installing for all users (which requires Windows Administrator privileges) and click “Next”.
Chapter 29 • Jupyter Notebook
Part B_AI Grade 10.indb 411
411
4/12/2025 4:06:24 PM
7. Select the destination folder. Do not change anything in the path options and click on “Next”.
8. Wait for the installation to complete and click “Next”.
9. Click on “Finish”. Your Anaconda setup is complete.
412
Part B_AI Grade 10.indb 412
4/12/2025 4:06:24 PM
What is Jupyter Notebook?
The Jupyter Notebook is an extremely effective tool for building and presenting AI projects in an interactive manner. The Jupyter project replaces the older IPython Notebook, which was released as a prototype in 2010. Although many different programming languages may be used in Jupyter Notebooks, Python is still the most popular. Jupyter Notebook is an open-source web-based application that allows you to create and share documents with live code, equations, visualisations, and text. Jupyter Notebook is widely used in a variety of applications. 1. Data cleansing and transformation 2. Numerical simulation 3. Statistical modelling 4. Data visualisation
Did You Know? A notebook integrates code and its output into a single document that combines visualisations, narrative text, mathematical equations, and other rich media.
5. Machine learning
Installing Jupyter Notebook
The simplest method to install and use Jupyter Notebook is using Anaconda. Anaconda is a command-line interface (CLI) tool, hence, it can only be used from the command line. Anaconda suggests that you work with conda on Windows using the Anaconda Prompt CLI. Users of MacOS and Linux can utilise the built-in command line programs. If you want a distribution with a large number of data science tools, you may install Anaconda, which contains Jupyter Notebook by default.
Kernels in Jupyter Notebook
Kernels are programs that execute interactive code written in a certain programming language and provide the user with output. A Jupyter Notebook’s code is run by computational engines called kernels. These kernels operate independently and are language-specific processes. Each kernel represents a certain programming language. For Python programming, IPython is the most widely used kernel; however, Jupyter supports a wide range of other languages via several kernels. Some common kernels in Jupyter Notebook are IPython, R, and Julia. It is thus necessary to install a kernel inside the environment where Jupyter Notebook will operate before we can use it in a virtual environment.
Virtual Environments
A virtual environment is a tool that allows you to have different dependencies and libraries for each project, preventing conflicts. This is one of the most useful tools for Python coders. For example: Suppose you are working on two web-based Python projects, one of which uses Python 2.6 and the other uses Python 3.9. To keep the dependencies between the two projects consistent in these situations, we need to develop a Python virtual environment.
Why is a Virtual Environment Necessary?
By default, every project on your system will store and fetch site packages in the same folders. As you can see, there are two versions of Python in the two projects given in the above example. Python is unable to distinguish between versions, which is a significant issue. To resolve this issue, we just need to construct two different virtual environments for each project. When working on any Python-based project, you should always use a virtual environment. It is often best to create a fresh virtual environment for each Python-based project you work on. As a result, each project’s dependencies are kept separate from the system and one another. The use of the Anaconda distribution makes virtual environment creation simple. Chapter 29 • Jupyter Notebook
Part B_AI Grade 10.indb 413
413
4/12/2025 4:06:24 PM
How to Create Virtual Environment using Anaconda? 1. Open the Anaconda Prompt from the start menu.
2. When we open the Anaconda prompt, we can see the term ‘base’ is written at the beginning of the prompt. This is Anaconda’s default environment, as shown in figure.
3. To determine which version of Python will be installed, type python --version, as shown in figure.
4. We can now create our own virtual environment and use it without affecting the base. Let’s create a virtual environment called env. To create the environment, write ‘conda create -n env python=3.11.7’ as shown in figure.
414
Part B_AI Grade 10.indb 414
4/12/2025 4:06:25 PM
5. This code will establish an environment called env and install some basic packages inside it, as shown in figure.
6. Following some processing, the prompt will ask whether we would want to continue with the installs or not. Type Y and press Enter. After we press Enter, the packages will begin to install in the environment.
Chapter 29 • Jupyter Notebook
Part B_AI Grade 10.indb 415
415
4/12/2025 4:06:26 PM
7. After downloading and installing each package, we’ll see a message to activate or deactivate the environment, as shown in figure.
8. This indicates that our environment, env, was successfully built. When an environment is successfully built, we may access it by writing the following command: conda activate env
When the virtual environment is activated, as we can see, the phrase in brackets has changed from base to (env). Our virtual environment is now prepared for usage.
Working with Jupyter Notebook
1. To get started with a Jupyter Notebook, open the Anaconda prompt and type jupyter notebook, as shown in figure.
416
Part B_AI Grade 10.indb 416
4/12/2025 4:06:26 PM
2. The Jupyter Notebook opens in the default browser at http://localhost:8888/tree. This will bring up a new tab in your web browser where you can create and manage notebooks.
3. Click on the “New” button. This will open a new tab in your web browser where you can write and execute code.
4. To choose a cell, simply click on it. Enter text or code into the cell. To execute a cell, click on the Run button or press Shift + Enter or Alt + Enter and go to the next cell.
5. The extension “.ipynb” is used for saving notebooks. You may use the File menu or Ctrl + S to save your notebook.
Notebook Interface
Jupyter Notebook is a Graphical User Interface (GUI), which implies that the Notebook interface provides a wide range of easily-accessible tools for making work simpler, many of which are a click away. Let us have a look at the Notebook’s features. Chapter 29 • Jupyter Notebook
Part B_AI Grade 10.indb 417
417
4/12/2025 4:06:27 PM
Menu Bar
Jupyter Notebook includes its menu bar, with the following options—like File, Edit, View, Run, Kernel, Settings, and Help. 1. File Menu: You may open an existing Notebook or create a new one from the File menu. You may also click here to rename a Notebook. The Save and Checkpoint menu item is also available here. This enables you to create checkpoints from which you may roll back if necessary.
2. Edit Menu: You can use commands to cut, copy, and paste cells from the Edit menu. You may also use this menu to remove, split, or merge a cell.
418
Part B_AI Grade 10.indb 418
4/12/2025 4:06:30 PM
3. View Menu: The View menu is helpful for changing the visibility of the header and toolbar. You can also toggle Line Numbers within cells on or off. You can also use the commands to work around with the cell’s toolbar.
4. Run Menu: This menu allows you to run selected cell or all the cells. The output will show immediately below the cell. You may also modify the type of a cell from here.
Chapter 29 • Jupyter Notebook
Part B_AI Grade 10.indb 419
419
4/12/2025 4:06:34 PM
5. Kernel: The Kernel menu is used to interact with the kernel that is operating in the background. You may restart the kernel, reconnect to it, shut it off, or even change the kernel that your Notebook is now running.
6. Settings Menu: The Settings menu allows you to change the theme of Jupyter Notebook. User can also increase or decrease the font size of the terminal.
420
Part B_AI Grade 10.indb 420
4/12/2025 4:06:34 PM
7. Help Menu: The Help menu allows you to learn about the Notebook’s keyboard shortcuts, take an overview of the user interface, and check lots of reference material.
In addition to the menu bar, the Notebook interface has a toolbar. Let us learn about each of the tools.
Chapter 29 • Jupyter Notebook
Part B_AI Grade 10.indb 421
421
4/12/2025 4:06:34 PM
Let us now use the Jupyter Notebook to write a very simple Python program. Example: Write a Python code to multiply two given numbers.
Think and Tell
Remember
Which command is used to install Jupyter Notebook?
Keyboard Shortcuts: •
Esc + A: Insert a new cell above.
•
Esc + B: Insert a new cell below.
•
Esc + D: Delete the current cell.
•
Esc + Z: Undo cell deletion.
Did You Know? The name “Jupyter” comes from the three main programming languages it supports: Julia, Python, and R.
Activity Time (Group Activity)
Activity 1: Create your virtual environment
Form groups of 4 students and create your virtual environment in the anaconda prompt and use it without affecting the base.
(Individual Work)
Activity 2: Add two numbers using Python Open Jupyter Notebook using the Anaconda prompt and write a Python code to add two numbers.
Chapter Checkup A Select the correct option. 1 In a Jupyter Notebook, how do you run a code cell? a
Ctrl + C
b Ctrl + V
c Shift + Enter
d Ctrl + Shift + Enter
422
Part B_AI Grade 10.indb 422
4/12/2025 4:06:35 PM
2 In Jupyter Notebook files, what is the default file extension? a .txt 3
c .ipynb
d .docx
Which menu enables you to save a Jupyter Notebook? a File
4
b .pdf b Run
c Edit d View
Which of the following statements accurately describes Jupyter Notebook? a Jupyter Notebook is a command-line interface. b Jupyter Notebook is a Graphical User Interface (GUI). c Jupyter Notebook is a programming language. d Jupyter Notebook is a database management system.
B Fill in the blanks with the most suitable words. 1 CLI stands for
.
2 To determine which version of Python will be installed, type
C
.
3 A Jupyter Notebook’s code is run by computational engines called
.
4 The simplest method to install and use Jupyter Notebook is using
.
State whether the following statements are True or False. Correct the statements that are false. 1 Users of MacOS and Linux can utilise the built-in command line programs. 2 The Anaconda distribution is open source. 3 Julia is not a kernel in Jupyter Notebook. 4 When working on any Python-based project, you should always use a virtual environment.
D Answer the following questions. (Solved) Q1. What is a virtual environment? Explain with an example. A1. A virtual environment is a tool that allows you to have different dependencies and libraries for each project, preventing conflicts. This is one of the most useful tools for Python coders. For example: Suppose you are working on two web-based Python projects, one of which uses Python 2.6 and the other Python 3.9. To keep the dependencies between the two projects consistent in these situations, we need to develop a Python virtual environment. Q2. What is a Jupyter Notebook? Also write its applications. A2. The Jupyter Notebook is an extremely effective tool for building and presenting AI projects in an interactive manner. The Jupyter project replaces the older IPython Notebook, which was released as a prototype in 2010. Although many different programming languages may be used in Jupyter Note-books, Python is still the most popular. Jupyter Notebook is an open source web-based application that allows you to create and share documents with live code, equations, visualisations, and text. Jupyter Notebook is widely used in a variety of applications.
• Data cleansing and transformation. • Numerical simulation • Statistical modelling • Data visualisation • Machine learning.
Chapter 29 • Jupyter Notebook
Part B_AI Grade 10.indb 423
423
4/12/2025 4:06:35 PM
Q3. Explain kernel.
A3. Kernels are programs that execute interactive code written in a certain programming language and provide the user with output. A Jupyter Notebook’s code is run by computational engines called kernels. These kernels operate independently and are language-specific processes. Each kernel represents a certain programming language. For Python programming, IPython is the most widely used kernel. Q4. What are the advantages of using Anaconda to install Jupyter Notebook?
A4. The simplest method to install and use Jupyter Notebook is by using Anaconda. Anaconda is a free and open-source environment for writing and executing Python programs. It offers a significant benefit because it includes numerous pre-installed packages often used in machine learning and data science. This saves a significant amount of effort and time because each package does not need to be installed separately. Q5. How to activate and deactivate a virtual environment? A5. To activate virtual environment type conda activate env
To deactivate virtual environment type conda deactivate
AI Activities 1 Visit the link: https://docs.anaconda.com/ae-notebooks/user-guide/basic-tasks/apps/jupyter/ and start exploring the Jupyter Notebook. 2 Visit the link: https://realpython.com/jupyter-notebook-introduction/ and learn about Jupyter Notebook. 3 Visit the link: https://docs.jupyter.org/en/latest/projects/kernels.html and start learning about kernels.
Answer Key A
1. c
B
1. Command line interface
C
1. True
2. c
3. a
4. b 2. python --version
3. Kernels
4. Anaconda
2. T rue
3. False. Julia is a kernel in Jupyter Notebook. 4. True
424
Part B_AI Grade 10.indb 424
4/12/2025 4:06:36 PM
Unit 7 • Advance Python
30 Introduction to Python L
et us revisit some of the key Python concepts we learned in grade IX, such as variables, data types, operators, and control structures. We will also explore how these fundamental ideas lay the groundwork for more advanced Python programming concepts in grade X. Python is a high-level programming language that is easy to learn and simple to use. It comes with a lot of pre-installed features. Python stands out from other programming languages due to its simplicity and readability, making it an ideal choice for beginners. It was created by Guido van Rossum and first released in 1991.
Features of Python
Here are some of the features of Python: 1. Easy to read: Python code is easy to read, just like English. 2. Quick to learn: Python has few keywords, a simple structure, and a clearly defined syntax. This makes it easier to learn and understand, even for beginners.
Did You Know? Python is named after a famous British comedy group called Monty Python.
3. Easy to maintain: Python source code is easy to maintain and update. 4. Dynamic typing: Python defines data type dynamically for the objects according to the value assigned. It also supports dynamic data type checking. 5. Portable: Python is a portable language because it can be used on a variety of hardware platforms. 6. Large database support: Python provides interfaces to all major commercial databases. 7. GUI application creation: Python also supports the creation of Graphical User Interface (GUI) applications.
Syntax
Like any language, programming languages have their own sets of rules for writing programs. These rules, called syntax rules, tell us how to write programs in that language. Python is not different; it has its own rules that we must follow when writing code. If we don’t follow the naming conventions or any syntax of a language, we may get syntax errors when executing our code.
425
Part B_AI Grade 10.indb 425
4/12/2025 4:06:36 PM
Syntax errors are mistakes that happen when we don’t write our code correctly, such as using incorrect function names or missing quotes and brackets.
Data Types
In Python, every value has a data type. Data types define the type of data that a variable can store. There are two categories of data types in Python: Immutable and Mutable. •
Immutable data types are those whose values cannot be changed once declared.
•
Mutable data types are those whose values can be changed at any time. Python Data Types
Immutable
Mutable
Numbers 4, 7, 10.5
Strings ‘python@123’
Tuples (4,3.5, ‘b’)
Integer 4, 7, 10
Float 34.5
Complex 1+4j
Lists [4, ‘b’, 6.5]
Sets {2, 5, 7}
Dictionaries {1: ‘a’, 2: ‘b’}
Boolean (True, False) Look at the table. It shows the different data types and their descriptions. Look at the table. It shows the different data types and their descriptions. Name Name
TypeType
Description Description
Integer Integer
int
int
Whole numbers, both positive negative, like 15, -200, 0, etc. Whole numbers, like 15,and 200, and 275.
Floating point
Floating point
float
Numbers with a decimal point, like 4.3, 7.6, and 340.0.
String List
String
str
float
list
str
List
list
Dictionary
dict
Tuple
tuple
Dictionary
dict
Numbers with a decimal point, like 4.3, 7.6, and 340.0.
Ordered sequences of characters, like "Python", "hello", "1495", and "SV".
Ordered sequences of characters, like "Python", "hello", "1495", and "SV".
Ordered sequences of objects, like ["hello123", 40, 107.5].
Ordered sequences of objects, like ["hello123", 40, 107.5].
Unordered key-value pairs, like {"key": "value", "language": "Python"}.
Unordered key-value pairs, like {"key": "value", "language": "Python"}.
Ordered immutable sequences of objects, like (50, "python", 208.7).
Set Tuple
set tuple
Ordered immutable sequences objects, like (50, "python", 208.7). Unordered collections of unique objects,of like {"apple", "bird"}.
Set Boolean
bool set
Unordered collections ofFalse. unique objects, like {"apple", "bird"}. Logical value indicating True or
Boolean
bool
Logical value indicating True or False.
Variables
426A variable is a reference name given to a location in the computer’s
memory. It allows you to store a value in that location and refer to it as needed. Variables can be used to store numbers, strings, lists, and other data types. They are just like a label that can be Part B_AI Gradechanged. 10.indb 426
num 5 4/12/2025 4:06:37 PM
Variables
A variable is a reference name given to a location in the computer’s memory. It allows you to store a value in that location and refer to it as needed. Variables can be used to store numbers, strings, lists, and other data types. They are just like a label that can be changed.
Creating a Variable
In Python, unlike some other programming languages, variable declaration and initialisation occur in a single step. You can simply assign a value to a variable’s name, and it will be automatically created. Syntax: variable_name = value The name of the variable is written to the left of the ‘=’ operator, and the value is written to the right. Code word = "Hi"
Output Hi 5
number = 5
print(word, number)
We can also initialise multiple variables in one line. Syntax: var1, var2 = value1, value2 Code word, number = "Hi", 5 print(word, number)
Output Hi 5
Rules of Naming a Variable
There are certain rules we need to follow while naming a variable. Some rules are:
Think and Tell
Will a syntax error prevent the program from running?
•
A variable name starts with a letter or the underscore character. It cannot start with a number or any special character like $, (, *, %, etc.
•
A variable name can only contain alpha-numeric characters.
•
Python variable names are case-sensitive, which means str1 and STR1 are two different variables in Python.
•
Python keywords cannot be used as variable names.
Variable Naming Styles in Python
As we have case styles for words in English, we have some case styles for naming variables. Below are the case styles you can follow to name variables in Python: Camel Case •
The first letter of the variable is lowercase.
•
Each subsequent word’s first letter is capitalised.
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 427
first word lowercase
Capitalise All Following Words
camelCase
427
4/12/2025 4:06:37 PM
•
No spaces or underscores.
•
Often used for variable and function names.
Example: “Nameofthecompany” can be written as “nameOfTheCompany”. As this represents the camel’s hump we call it Camel-Case. Code camelCaseExample = "Hello Camel" print(camelCaseExample)
Output Hello Camel
Snake Case •
All letters are lowercase.
•
Words are separated by underscores (_).
•
Often used for variable and function names.
Example: "name of the company" in snake-case is written as "name_of_ the_company". Code snake_case_example = "Hello Python" print(snake_case_example)
Output Hello Python
Creating a Variable with User Input
In Python, we can even create a variable with user input. To do so, we use a built-in function named input(). The input() Function The input() function in Python is used to allow input from the user. It is a built-in function. Syntax: name = input(“<message to be displayed>“) Code user_input = input("Enter your favourite colour: ")
Output Enter your favourite colour: blue
Solved Examples Example 1.1 The side of a square is 80. Use camel case to name a variable for the area of the square. Calculate the area. Print the result. Answer: Code side = 80
areaOfSquare = side * side
Output The area is: 6400
print("The area is: ", areaOfSquare)
428
Part B_AI Grade 10.indb 428
4/12/2025 4:06:37 PM
Example 1.2 Given below are the average temperatures of different places. Store them in different variables. The temperature has increased by 0.5 in the afternoon. Display the updated temperature of all the places. Average Temperatures of Places Place
Temperature
Zo Hills
20
Met Town
25
Bay Area
26
Code
Output
Answer:
Zo_Hills=20
Updated Temperatures of Places
Met_Town=25
Zo Hills 20.5
Bay_Area=26
Met Town 25.5
print("Updated Temperatures of Places")
Bay Area 26.5
print("Zo Hills", Zo_Hills+0.5) print("Met Town",Met_Town+0.5) print("Bay Area",Bay_Area+0.5)
Simple Calculator
Let’s build a simple calculator project while learning the concepts in the chapter. We will be building this project by dividing it into various sub-tasks. Task 1: Take two numbers and an operator as input from the user. Let’s create three variables and use the input() function to allow input from the user. Code num1 = input("Enter first number: ") operator = input("Enter operator (+, -, *, /): ") num2 = input("Enter second number: ")
Now, before we execute the project, let us learn about dynamic typing.
Dynamic Typing
Dynamic typing is a feature of Python where the data type of a variable is not determined until runtime. This means that you can assign a variable to a value of any type, and the variable will automatically take on that type. The type() Function In Python, we use the type() function to check the dynamic data type assigned to a variable. It is a built-in function that returns the type of an object. The object can be a variable, a value, or an expression. Syntax: type(object_name)
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 429
429
4/12/2025 4:06:37 PM
Simple Calculator Task 2: Check the data type of user input. Code
Output
num1 = input("Enter first number: ")
Enter first number: 4
operator = input("Enter operator (+, -, *, /): ")
Enter operator (+, -, *, /): +
num2 = input("Enter second number: ")
Enter second number: 6
print(type(num1))
<class ‘str’>
print(type(num2))
<class ‘str’>
print(type(operator))
<class ‘str’>
The input() function always returns a string value, even if it takes a number, operator, or any other value as input. Since we have created variables with user input, all three variables are of string type.
Typecasting
Typecasting is the conversion of the data type of a value into another data type. We can typecast a data type using typecasting functions: 1. int()
2. float()
3. str()
4. bool()
The int() Function The int() function is used to typecast the value of a variable into an integer. It converts the following data type into an integer: 1. Float by removing the decimal point and everything after it. 2. String only if string represents a number.
Did You Know? If you try to convert a string type variable to int type, you will get an error.
3. Boolean by converting True to 1 and False to 0. Syntax: int(variable_name) Code
Output
str_to_int = int("8")
8 <class ‘int’>
bool_to_int = int(True)
1 <class ‘int’>
print(str_to_int, type(str_to_int)) print(bool_to_int, type(bool_to_int))
Code number=int("Hello")
Output ValueError: invalid literal for int() with base 10: ‘Hello’
430
Part B_AI Grade 10.indb 430
4/12/2025 4:06:38 PM
The float() Function The float() function is used to typecast the value of a variable into float. It converts the following data type into float: 1. Integer by adding a decimal followed by a zero. 2. String only if the string represents a float or an integer. Syntax: float(variable_name) Code
Output
a=float(10)
10.0
b=float("10.2")
10.2
print(a) print(b)
Code c=float("Hello")
Output ValueError: could not convert string to float: ‘Hello’
print(c)
The str() Function The str() function is used to typecast the value of a variable into a string. It converts all the data types including float, integer, and boolean into a string. Syntax: str(variable_name) Code
Output
num_1 = str(5)
5 <class ‘str’>
num_2 = str(7.2)
7.2 <class ‘str’>
print(num_1, type(num_1)) print(num_2, type(num_2))
The bool() Function The bool() function is used to typecast the value of a variable into boolean. It converts the following data type into boolean: 1. Integer and prints False if the value of the variable is 0, otherwise prints True. 2. String and prints False if the string is empty, otherwise prints True. Syntax: bool(variable_name)
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 431
431
4/12/2025 4:06:38 PM
Code
Output
a=bool(0)
False True False True
b=bool(1)
c=bool("")
d=bool("Python") print(a,b,c,d)
Simple Calculator Task 3: Typecast the numbers that the user inputs into float. Code num1 = float(input("Enter first number: ")) num2 = float(input("Enter second number: "))
Next, we need to learn about operators we can use for various mathematical operations on numbers that the user inputs.
Arithmetic Operators
Arithmetic operators are the operators used with the integer or float values to perform mathematical operations on them. There are 7 arithmetic operators in Python: Operator
Name
Description
Example
Result
+
Addition
Adds two values together
4+2
6
-
Subtraction
Subtracts one value from another
7-5
2
*
Multiplication
Multiplies two values
5*2
10
/
Division
Divides one value by another
7/2
3.5
%
Modulus
Returns the remainder in a division operation
5%2
1
**
Exponent
Returns the exponent of a number
3**2
9
//
Floor Division
Returns floor value of the division
7//2
3
Example 1.3 Write a program to get the right answers to the questions given below. a = 23 b = 13 a. Addition of a and b.
Think and Tell
Can we multiply a string by a float value in Python?
b. Multiplication of a and b. c. Division of a and b. d. Base a to the power b. e. Modulus of a%b
432
Part B_AI Grade 10.indb 432
4/12/2025 4:06:38 PM
Answer: Code
Output
a,b=23,13
Addition of a and b is: 36
print("Addition of a and b is:",a+b)
Multiplication of a and b is: 299
print("Multiplication of a and b is:",a*b)
a divided by b is: 1.7692307692307692
print("a divided by b is:",a/b)
Base a to the power b is: 504036361936467383
print("Base a to the power b is:",a**b)
Remainder, when a is divided by b, is: 10
print("Remainder, when a is divided by b, is:",a%b)
PEDMAS Rule
Python follows the PEDMAS rule, which stands for: 1. Parentheses (P)
2. Exponents (E)
5. Addition (A)
6. Subtraction (S)
3. Division (D)
4. Multiplication (M)
This rule tells us the order in which operations are performed in an expression. Operations within parentheses are performed first, followed by exponents, division and then multiplication from left to right, and finally addition and subtraction from left to right. Example: 9 + 7 * (8 - 4) / 2 - 3**2
(First, the brackets are solved.)
= 9 + 7 * 4 / 2 - 3**2
(Then, the exponent is solved.)
=9+7*4/2-9
(Then, division is solved.)
=9+7*2-9
(Then, multiplication is solved.)
= 9 + 14 - 9
(Then, addition is solved.)
= 23 - 9
(Finally, subtraction is solved.)
= 14 Simple Calculator Task 4: Apply all four basic arithmetic operations ( +, - , *, / ) to the numbers the user inputs. Code num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
Output Enter first number: 6 Enter second number: 8
add = num1+num2
Addition: 14.0
mul = num1*num2
Multiplication: 48.0
sub = num1-num2 div = num1/num2
Subtraction: -2.0 Division: 0.75
print("Addition: ", add)
print("Subtraction: ", sub)
print("Multiplication: ", mul) print("Division: ", div)
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 433
433
4/12/2025 4:06:38 PM
Control Statements
Control statements in Python are used to control the flow of execution of the program. They allow you to make decisions, repeat code, and skip code. There are three main types of control statements in Python: •
Conditional Statements
•
Loops
•
Jump Statements
Let us learn about these statements in detail.
Conditional Statements
Suppose you are going on a 3-day, 2-night school trip to Shimla during your summer holiday. What type of clothes will you pack? You will check the weather in Shimla and pack your clothes accordingly. Since you are visiting Shimla during the summer, you should pack light woollen clothes, as it will be pleasant during the day and a little cold at night. Similarly, we often find ourselves in situations where we need to make some decisions according to the given conditions. This skill we have is called decision-making ability. However, computers are machines. They cannot make decisions on their own. We need to make programs for them so that they can give the appropriate results according to the given conditions. This can be achieved with the help of conditional statements in Python. Conditional statements allow us to instruct the computer to check for a specific situation and make it do something if that situation occurs. A condition is set to establish criteria that require some form of comparison to be performed. Therefore, to define a condition, one must also understand the comparison operators.
Comparison Operators
Comparison operators are the symbols or expressions that allow us to compare two values or variables. They compare the value on the left-hand side with the value on the right-hand side and return either ‘True’ or ‘False’ as the result of the comparison. These operators are also known as Relational Operators. Below are the six comparison operators in Python. Operator
Name
Purpose
Example
==
Equal to
Returns True if both operands are equal
x==y
!=
Not Equal to
Returns True if operands are not equal
x!=y
>
Greater than
Returns True if the left operand is greater than the right
x>y
<
Less than
Returns True if the left operand is less than the right
x<y
>=
Greater than or equal to
Returns True if the left operand is greater than or equal to the right
x>=y
<=
Less than or equal to
Returns True if the left operand is less than or equal to the right
x<=y
434
Part B_AI Grade 10.indb 434
4/12/2025 4:06:38 PM
Let us look at the following example to understand the usage of comparison operators. Johnny needs to determine whether the number of balls in box A is equal to, less than, or greater than the number of balls in box B. Box A contains 453 balls, and box B contains 454 balls. Using comparison operators, print whether the situations are ‘True’ or ‘False’.
Think and Tell
What is the difference between the greater than operator (>) and the greater than or equal to operator (>=)?
Answer: Code
Output
box_A=453
Are balls in box A equal to box B? False
box_B=454
Are balls in box A less than box B? True
cond1=box_A==box_B
Are balls in box A more than box B? False
print("Are balls in box A equal to box B? ", cond1) cond2=box_A<box_B print("Are balls in box A less than box B? ", cond2) cond3=box_A>box_B print("Are balls in box A more than box B?", cond3)
Indentation and Code Blocks
Indentation refers to a fixed number of spaces (or sometimes tabs) added at the beginning of each line of code. These spaces create a visual hierarchy in your program, just like paragraphs in a story or chapters in a book. Indentation helps Python understand which lines of code belong together and should be executed as a single unit. Although indentation in code is just for readability in other programming languages, it is crucial in Python. Interpreter view of Code Code block 1 begins Statement 1 Code block 2 begins Statement 2 Statement 3
Did You Know? What happens if you don’t indent your code properly?
Code block 2 ends Code block 1 ends
Types of Conditional Statements
In Python, we have three types of conditional statements that allow us to make decisions in our programs. These include: •
if Statement
•
if… else Statement
•
if… elif… else Ladder
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 435
435
4/12/2025 4:06:38 PM
• if Statement • if… else Statement • if… elif… else Ladder The if Statement The if Statement
TheThe ‘if’ statement is used to check a specific condition. If the condition following thethe ‘if’ ‘if’ keyword evaluates to to True, ‘if’ statement is used to check a specific condition. If the condition following keyword evaluates True, the the code block after the ‘if’ condition will be executed; otherwise, the code block will be skipped. code block after the ‘if’ condition will be executed; otherwise, the code block will be skipped. Syntax: if condition1: Syntax: if condition1: ##Statement condition1isistrue true Statement to to execute execute ififcondition1
Flowchart
TheThe colon (:) sign is used after after the condition with the if the if colon (:) sign is used the condition with statement. The statements inside the if statement should be statement. The statements inside the if statement should properly indented. be properly indented. Code age = 21
True
False
Output
Code
if age >= 18:
If (condition)
Statement (s)
Eligible to vote.
Output
age = 21 if age >= 18: print("Eligible to vote.")
Eligible to vote.
print("Eligible to vote.")
rest of code
The if… else Statement
TheThe ‘if… else’ checks a condition, allowing us to instruct the computer on what to do in both cases, if… statement else Statement whether the statement is true or false. The ‘if… else’ statement checks a condition, allowing us to instruct the computer on what to do in both cases, If the condition ‘if’ keyword whether the following statementthe is true or false.evaluates to True, the code block after the if condition will be executed; otherwise, the codefollowing block after keyword will be If the condition thethe ‘if’ ‘else’ keyword evaluates toexecuted. True, the code block after the if condition will be executed; Syntax: otherwise, the code block after the ‘else’ keyword will be executed. Syntax: if condition_1: 18 if condition_1: #Statements to execute if condition_1 is True #Statements to execute if condition_1 is True else: else: #Statements to execute if condition_1 is False #Statements to execute if condition_1 is False
Test Expression False True
CO24CB0701.indb 18
Code
Code
age = 21
age>= = 21 if age 18:
if age >= 18: print("Eligible to vote.") print("Eligible to vote.") else: else: print("Too young to vote!") print("Too young to vote!")
Body of else
Body of if
Output Eligible to vote.
Flowchart
8/13/2024 11:47:29 AM
Output
Eligible to vote. Statement just below if
The elif Statement
The elif Statement
Sometimes, we need to evaluate multiple conditions. In such cases, we use the ‘elif’ statement, which stands for ‘else needmultiple to evaluate multipleinconditions. such cases, we use thecondition ‘elif’ statement, which stands ‘else if’. ItSometimes, allows us towe check conditions sequence, In and Python checks each until one of them is for True. if’. It allows us to check multiple conditions in sequence, and Python checks each condition until one of them is True. Syntax: Syntax: Flowchart if condition_1: if condition_1: Statement_1 if condition1 is True Statement_1 if condition1 is True elif condition_2:
436
..
False
Statement_2 if condition2 is True
If cond_1?
..
else:
Part B_AI Grade 10.indb 436
True
code block 1
Final_Statement if no condition is True
elif cond_2?
True
code block 2 4/12/2025 4:06:39 PM
print("Too young to vote!")
The elif Statement Sometimes, we need to evaluate multiple conditions. In such cases, we use the ‘elif’ statement, which stands for ‘else condition_2: if’. Itelif allows us to check multiple conditions in sequence, and Python checks each condition until one of them is True. Syntax:
Statement_2 if condition2 is True
Flowchart
if condition_1:
..
Statement_1 if condition1 is True
..
elif condition_2: else: Statement_2 if condition2 is True Final_Statement if no condition is True .. ..Code
x = 10
else:
if x > 0:
If cond_1?
Output x is positive
Final_Statement if no condition is True
print("x is positive")
elif x == 0:
False
x = 10
else:if x > 0:
code block 1
elif cond_2?
True
code block 2
False
Code
print("x is zero")
True
Output x is positive
else code block
print("x is negative") print("x is positive")
elif x == 0: print("xbecomes is zero") True, Statement_1 will be executed, otherwise, the interpreter moves on to condition_2 and If condition_1 else: if it becomes true then it will execute Statement_2. print("x is negative") This process continues until a True condition is found, otherwise the Final_Statement inside ‘else’ statement will be executed if none of the conditions are True. If condition_1 becomes True, Statement_1 will be executed, otherwise, the interpreter moves on to condition_2 Let us update the project we created in the previous section using comparison operators and conditionals. and if it becomes true then it will execute Statement_2. Simple This Calculator process continues until a True condition is found, otherwise the Final_Statement inside ‘else’ statement will be executed if none of the conditions are True. Code
Output
num1 = float(input("Enter first number: "))
Enter first number: 6
num2 = float(input("Enter second number: ")) Chapter == 2 • "+": Control Statements in Python if operator
Enter second number: 8
operator = input("Enter operator (+, -, *, /): ")
result = num1 + num2
Enter operator (+, -, *, /): / Result: 0.75
19
elif operator == "-":
result = num1 - num2
CO24CB0702_P1.indd 19 elif operator == "*":
8/13/2024 1:22:49 PM
result = num1 * num2
elif operator == "/": if num2 == 0:
result = "Division by zero is not allowed."
else:
result = num1 / num2
else:
result = "Invalid operator."
print("Result:",result)
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 437
437
4/12/2025 4:06:39 PM
Logical Operators
Logical operators allow us to combine multiple conditions in one. There are three important logical operators in Python: ‘and’, ‘or’ and ‘not.’
The and Operator
The ‘and’ operator allows us to combine two conditional statements and returns True only if both statements are true. In all other cases, it returns False. If Statement 1 is True and Statement 2 is True, then the result is True. If either Statement 1 or Statement 2 (or both) is False, then the result is False. Syntax: Statement 1 and Statement 2 Following is the truth table for the and operator: Condition 1
Operator
True True
and
False False
Condition 2
Result
True
True
False
False
True
False
False
False
Code
Output
print(3<7 and 8==8)
True
print(6>2 and 9==8)
False
The or Operator
The ‘or’ operator allows us to combine two conditional statements and returns True if either of the statements is true. It returns False only if both statements are false. If Statement 1 is True or Statement 2 is True (or both), then the result is True. If both Statement 1 and Statement 2 are False, then the result is False. Syntax: Statement 1 or Statement 2 Following is the truth table for the or operator: Condition 1
Operator
True True
or
False False Code print(4+5>8 or 9!=7) print(6>7 or 8==9.0)
Output True
False
Condition 2
Result
True
True
False
True
True
True
False
False
Did You Know? What is the difference between the ‘and’ and the ‘or’ operator?
438
Part B_AI Grade 10.indb 438
4/12/2025 4:06:39 PM
Multiple and/or Operators
In Python, we have the flexibility to create complex conditional statements by using multiple ‘and’ and ‘or’ operators. When dealing with multiple conditional statements involving both ‘and’ and ‘or’, it is important to know that ‘and’ takes precedence over ‘or’. This means that conditions with ‘and’ are evaluated first, followed by the conditions with ‘or’. Syntax: Statement 1 or Statement 2 and Statement 3 #First we solve the ‘and’ operator, and then the ‘or’ Code
Output
print(2>3 or 3==3 and 1>0)
True
Let us look at how we got the output for the given code: 2 > 3 or 3 == 3 and 1 > 0 False or True and True
#Solve and first
False or True
#Solve or
True Solved Example Write a program to help David pick students for his project. He has two rules: 1. Students must have at least 60% in their school grades. 2. They need a score of at least 7 in their analytical tests.
Run the program to check if Ray and Joe meet David’s conditions. Ray has 65% in school and 8.5 in analytical tests. Joe has 55% in school and 8 in analytical tests. Answer: Code
Output
ray_academics=65
Ray’s scores:
print("Ray’s scores:")
Analytical test: 8.5
ray_analytical=8.5
print("Academics:", ray_academics)
print("Analytical test:", ray_analytical)
ray_condition = ray_academics>=60 and ray_analytical>=7 print("Does Ray meet David’s criteria?-", ray_condition) joe_academics=55 joe_analytical=8
Academics: 65
Does Ray meet David’s criteria?- True Joe’s scores:
Academics: 55
Analytical test: 8
Does Joe meet David’s criteria?- False
print("Joe’s scores:")
print("Academics:", joe_academics)
print("Analytical test:", joe_analytical)
joe_condition = joe_academics>=60 and joe_analytical>=7 print("Does Joe meet David’s criteria?-", joe_condition)
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 439
439
4/12/2025 4:06:39 PM
The not Operator
The not operator reverses the result of the condition. True will be reversed to False, and vice versa. The not Operator For example, The not operator reverses the result of the condition. True will be reversed to False, and vice versa. not (True)For example,
(True) will returnnot False. will return False.
LoopsLoops
When weWhen write computer programs,programs, there are there timesare when we when need to same the piece of code andagain and we write computer times weexecute need tothe execute same pieceagain of code again. In that case, we have samethe code again andagain again. This is not an efficient way of programming. again. In that case,to wewrite havethe to write same code and again. This can be improved by using ‘loops’. This is not an efficient way of programming. This can be improved by using ‘loops’.
Loops allow us toallow execute a set of instructions as long as aascertain condition True. Onceisthat becomes False, the False, Loops us to execute a set of instructions long as a certainiscondition True.condition Once that condition becomes loop stops.the This process alsoprocess known as iteration. loop stops.isThis is also known as iteration. Python provides mainly two types of loops, the while loop and the for loop. Python provides mainly two types of loops, the while loop and the for loop.
The forThe Loop for Loop
A ‘for’ loop a way to do something over and over It can be used tobe repeat of a block A is ‘for’ loopofistelling a way aofcomputer telling a computer to do something overagain. and over again. It can usedatoblock repeat code a certain number of times, or to go through a list of things one by one. of code a certain number of times, or to go through a list of things one by one. A ‘for’ loop also known asknown a counting loop. We use variable create to thecreate ‘for’ loop thecalled loop variable. A is ‘for’ loop is also as a counting loop.a We use ato variable the called ‘for’ loop the loop variable. Syntax: Syntax:
forinvariable in sequence: for variable sequence:
Flowchart
# Statements # Statements to be executedto be executed for item in sequence:
item in sequence?
If no more item to iterate
Next item from sequence Code to be executed
There are two ways to create a ‘for’ loop:
are two ways to create a ‘for’ loop: 1. Using There the range() function. 1 in Using the range() function. 2. Using the operator.
2 Using the in operator. Using range() Function
The range() function in Python returns a sequence of numbers, starting from 0 by default, and increments by 1 by default, Using range() Function and stops before a specified number. The range() function in Python returns a sequence of numbers, starting from 0 by default, and increments by 1 by default, and stops before a specified number.
440
Chapter 2 • Control Statements in Python
Part B_AI Grade 10.indb 440
23
4/12/2025 4:06:40 PM
The range() function can be used in a ‘for’ loop to iterate over a sequence of numbers. Syntax: for loop_variable in range(start, stop, step): <statements> #the loop runs from start to stop-1 where: start is the starting number (optional, default is 0) stop is the ending number (not inclusive) step is the increment (optional, default is 1) Code for num in range(0, 5):
Output 0
print(num)
1 2 3 4
Here, the ‘for’ loop starts at 0 and counts up to 4, increasing by 1 each time. Note that if the increment is by 1, there is no need to specify it. Using the ‘in’ Operator The ‘in’ operator is a membership operator that checks if an item is a member of a sequence or not. It can be used in a ‘for’ loop to iterate over the items of a string, list, tuple, or dictionary. Syntax: for loop_variable in string_variable: <statements> Code word = 'bumfuzzle' for letter in word: print(letter)
Output b
u
m f
u z z l
e
Here, the loop iterates over the letters of the string word, starting with the first letter ‘b’ and ending with the last letter ‘e’.
The while Loop
The ‘while’ loop repeats a set of instructions as long as a condition is True. It is also known as a conditional loop. It verifies the condition before executing the loop.
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 441
441
4/12/2025 4:06:40 PM
Syntax: Syntax:
Flowchart
while condition: while condition:
Statement 1 Statement 1 Statement 2 Statement 2 ... ... … … Increment/decrement loop variable Increment/decrement loop variable Code
Output
i = 1Code while i < 6:
i=1
while i < 6: print(i) i
print(i) i += 1
+= 1
1 Output 1 2 3 4 5
2 3
while
Condition
False
True
Code to be executed
4 5
Here, the ‘while’ loop starts value i being As long aslong i is less 6, than the loop willloop continue. In each In each Here, the ‘while’ loop with startsthe with theof value of i1. being 1. As as ithan is less 6, the will continue. iteration of the of loop, value i is printed and then by 1. The loop stop is equal 6. to 6. iteration thethe loop, the of value of i is printed andincremented then incremented by 1. Thewill loop willwhen stop iwhen i is to equal
The for versus while Loop The for versus while Loop
The ‘for’and loop and the loop ‘while’ loop are both control flow statements in that Python used toarepeat a code. block of The ‘for’ loop the ‘while’ are both control flow statements in Python arethat usedare to repeat block of code. However, they have different usage scenarios. However, they have different usage scenarios. The ‘for’ loop is used to iterate over a sequence of items, such as a list, tuple, or string, when the number of times The ‘for’ loop is used to iterate over a sequence of items, such as a list, tuple, or string, when the number of times you want to iterate is known. you want to iterate is known. The ‘while’ loop is used to repeat a block of code when the number of times you want to iterate is not known or The ‘while’ loop is used to repeat a block of code when the number of times you want to iterate is not known or when the number of iterations depends on the results of the loop. when the number of iterations depends on the results of the condition being evaluated within the loop.
Jump Statements
Jump Statements Loops run the same set of code for a defined number of times or until the test condition becomes False. However, Loops sometimes run the same of code a defined number timesthe or until the test condition False. weset might wishfor to stop the loop evenof before test condition becomesbecomes False or skip anHowever, iteration. sometimes we might wish to stop the loop even before the test condition becomes False or skip an iteration. This is where we need Jump statements. This isJump where we need jump statements allowstatements. you to skip code or terminate a loop. We have two jump statements in Python:
•
Jump statements allow you to skip code or terminate a loop. We have two jump statements in Python: break statement • •
break statement statement • continue continue statement
The break Statement
The ‘break’ statement is used to terminate the loop. The break Statement Syntax: The ‘break’ statement is used to terminate the loop. while expression: Syntax: if condition: while expression: break #breaks out of the loop if condition: #executes statement outside the loop
442
Chapter 2 • Control Statements in Python
Part CO24CB0701.indb B_AI Grade 10.indb 25 442
25
8/13/2024 11:47:30 4/12/2025 4:06:40 PM AM
break #breaks out of the loop #executes statement outside the loop Code word = input('Enter a word: ') for letter in word:
if letter in 'aeiou':
Output Enter a word: apple Vowel found!
print('Vowel found!') break
Here, the loop checks for all the letters in the word entered by a user for vowels. If the letter is a vowel, the ‘break’ statement will run, and the loop will terminate. Otherwise, the loop will continue to run until it reaches the end of the word. The continue Statement The ‘continue’ statement skips the current iteration of the loop and continues with the next iteration. Syntax:
while expression: Statement_1 if condition:
continue
#skips current set of statements and starts with next loop iteration Statement_2 Code
for num in range(1, 11):
if num == 4 or num== 6 or num==8: continue
print(num)
Output 1 2 3 5 7 9
10
Here, the loop starts counting from 1 and increments the value of num by 1 in each iteration. When the value of num is equal to 4, 6, or 8, the ‘continue’ statement is executed, which skips the printing of the number and goes to the next iteration of the loop.
Infinite Loop
In a program, if a loop is executed over and over again without stopping, it is called an ‘infinite’ loop. This can happen if the condition that controls the loop is always true, or if the loop is never terminated by a ‘break’ statement. Code while True:
print("This is an infinite loop!")
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 443
Did You Know? Infinite loops can be useful when you want to create a program that runs continuously, such as a server or a chatbot.
443
4/12/2025 4:06:40 PM
Here, the loop will print the message “This is an infinite loop!” repeatedly, until the program is terminated by the user. An ‘infinite’ loop can lead to the program becoming unresponsive.
How to Prevent an Infinite Loop?
To prevent an ‘infinite’ loop, it is important to carefully consider the condition that controls the loop. Make sure that the condition is only true under the circumstances you want. You should also use ‘break’ statements to terminate loops when you no longer need them to run. Code counter = 0
while counter < 5: # This loop will run 5 times. print("Loop iteration:", counter) counter += 1
Output Loop iteration: 0 Loop iteration: 1 Loop iteration: 2 Loop iteration: 3 Loop iteration: 4
Here, the loop will run five times because the counter variable starts at 0 and increments by 1 each time the loop runs. The loop will continue as long as the counter is less than 5. Once the counter reaches 5, the condition is no longer true, and the loop exits.
Strings
A string is a data type that represents a sequence of characters. In Python, single, double, or even triple quotes can be used to create strings. These values can be words, symbols, characters, numbers, or a combination of all these. A string cannot be changed once it has been created because it is an immutable data type. Strings are commonly used for storing and manipulating text data, as well as representing names, addresses, and other types of information that can be represented as text. There are two types of strings in Python: • Single-line string •
Multi-line string
Single-line String
A single-line string can be enclosed in either single quotes or double quotes. Code name1="Mohit" name2='Mohit' print(name1)
Output Mohit Mohit
print(name2)
Multi-line String
Multi-line strings or strings that contain both single and double quotes without needing to escape them are typically defined using triple quotes in Python. In other words, a multi-line string can be enclosed in either three single quotes (‘‘‘ ’’’) or three double quotes (""" """).
444
Part B_AI Grade 10.indb 444
4/12/2025 4:06:40 PM
Code
Output
proverb_1= '''Don't judge
Don’t judge
by its cover. '''
by its cover.
a book
a book
proverb_2= """
Beauty is
in the eye of
the beholder.
Beauty is
in the eye of
the beholder. """
"Actions speak louder than words." A common saying we all know.
proverb_3 = """"Actions speak louder than words."
A common saying we all know.""" print(proverb_1) print(proverb_2) print(proverb_3)
The eval() Function The eval() function evaluates a string expression and returns the result. Syntax: result = eval(expression) Code expression = "2 * 3 + 4 / 2" result = eval(expression) print(result)
Output 8.0 8
Did You Know? A single character in Python
x=5
is just a string of length 1,
expression = "x + y"
as a character data type.
y=3
since there is no such thing
result = eval(expression) print(result)
String Manipulation in Python
You have covered most of this in grade 9, but let’s revisit and explore some important string manipulation techniques. String manipulation in Python involves various operations to process and modify string data. Python provides a set of string methods to perform these operations. Let us learn about some of the important string operations.
Concatenation
Concatenation means to join two or more strings together to form a single string. Two strings can be concatenated or joined with the plus ‘+’ symbol, which is known as the concatenation operator. Let’s understand it with the help of an example:
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 445
445
4/12/2025 4:06:41 PM
Code # concat strings with +
Output Welcome to World of Python
str1 = "Welcome to"
str2 = "World of Python"
sentence = str1 + ' ' + str2 print(sentence)
Replication
Replication of strings means to repeat a certain string a specified number of times. The replication operation can be performed with the help of the asterisk symbol '*', which is known as the replication operator. Look at the given example: Code str1='hello'
Output hello
str2='hello'*3
hellohellohello
print(str1) print(str2)
Replacing a String
If you wish to replace a string, just call the replace() function on any string and specify the string you want to replace it with. Look at the following example: Code sentence = "Welcome to World of Python" print(sentence)
print(sentence.replace("Python","Disneyland"))
Output Welcome to World of Python Welcome to World of Disneyland
Finding the Length of a String
To find the length of a string, the len() function is used. The len() function returns the number of characters in a string, including spaces, punctuation, and special characters. Code str = "Python, World!" length = len(str)
Output The length of the string is: 14
print("The length of the string is:", length)
Accessing Characters in Python String
The indexing method in Python can be used to access specific characters within a string. •
hrough indexing, characters at the beginning of the string can be accessed using positive address references, T starting from 0 for the first character, 1 for the next character, 2 for the next to the next character (as shown in the image), and so on.
446
Part B_AI Grade 10.indb 446
4/12/2025 4:06:41 PM
•
Through indexing, characters at the end of the string can be accessed using negative address references, such as –1 for the last character, –2 for the next-to-last character, and so on. 0
1
2 t
h
−12
−11
−10
−9
P
y
3
4
o
5
n
6
−8
−7
−6
7
w
8
o
9
10
11
−5
−4
−3
−2
−1
r
l
d
Let us understand it with the help of an example: In this example, we will define a string in Python and access its characters using positive and negative indexing. The 0th element will be the first character of the string, whereas the –1th element is the last character of the string. Code String1 = "Python World" print("Initial String: ") print(String1)
Output Initial String:
Python World
# Printing First character
First character of String is:
print(String1[0])
P
print("\nFirst character of String is: ") print(String1[-12])
P
# Printing Last character
Last character of String is:
print(String1[-1])
d
print("\nLast character of String is: ") print(String1[11])
d
# Printing Fifth character
Fifth character of String is:
print(String1[4])
o
print("\nFifth character of String is: ") print(String1[-8])
o
String Slicing
The string slicing function in Python is used to gain access to a selection of characters in the string. A colon (:), known as a "slicing operator", is used to access a part of the string. •
he string provided after slicing includes the character at the start index but not the character at the last index, T so keep that in mind while using this method.
•
ubsets of strings can be taken using the slice operators ([ ] and [:]) with indexes starting at 0 at the beginning S of the string and working their way from -1 at the end.
Let us understand it with the help of an example: In the following example, we will slice the original string to extract a substring. The expression [4:12] indicates that the string will be divided into segments starting at index 4 and continuing through index 11. In string slicing, negative indexing is another option.
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 447
447
4/12/2025 4:06:41 PM
Code # Creating a String
Output Initial String:
String1 = "Python World"
Python World
print("Initial String: ") print(String1)
# Printing 4th to 12th character
print("\nSlicing characters from 4-12: ") print(String1[4:12])
# Printing characters between 4th and 3rd last character print("\nSlicing characters between 4th and 3rd last character: ") print(String1[4:-3])
Slicing characters from 4-12: on World
Slicing characters between 4th and 3rd last character: on Wo
Using In-built String Methods
Python provides several in-built methods to change the case of strings. These methods help format and standardise text. Here are some main functions for changing the case of Python strings: 1. upper() The upper() method converts all lowercase letters in a string to uppercase. Code str = "python world"
Output PYTHON WORLD
result = str.upper() print(result)
2. lower() The lower() method converts all uppercase letters in a string to lowercase. Code str = "PYTHON WORLD"
Output python world
result = str.lower() print(result)
3. capitalize() The capitalize() method converts the first character of a string to uppercase and the rest to lowercase. Code str = "python world"
result = str.capitalize()
Output Python world
print(result)
4. title() he title() method converts the first character of each word to uppercase and the rest to lowercase. Words in a T string should be separated by whitespace or punctuation marks.
448
Part B_AI Grade 10.indb 448
4/12/2025 4:06:41 PM
Code str = "welcome to the world of python" result = str.title()
Output Welcome To The World Of Python
print(result)
5. swapcase() The swapcase() method converts uppercase characters to lowercase and lowercase characters to uppercase. Code str = "Python World"
Output pYTHON wORLD
result = str.swapcase() print(result)
Decision-making Using String Methods
Apart from these text formatting methods in Python, there are some more methods that are used for decision making using strings. These methods can determine whether a string or character is in uppercase, lowercase, title case, or whether it contains digits or alphanumeric characters. Here are some of the main functions for checking the properties of strings: 1. isupper() he isupper() method returns True if all the alphabetic characters in a string are uppercase. If the string contains T no alphabetic characters, the method returns False. Code str = "PYTHON WORLD"
Output True
result = str.isupper()
False
print(result)
str = "Python World" result = str.isupper() print(result)
2. islower() he islower() method returns True if all the alphabetic characters in a string are lowercase. If the string contains T no alphabetic characters, the method returns False. Code str = "python world" result = str.islower() print(result)
Output True
False
str = "Python World" result = str.islower() print(result)
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 449
449
4/12/2025 4:06:41 PM
3. istitle() he istitle() method returns True if a string is title-cased, which means the first character of each word is T uppercase and the rest are lowercase. Code str = "Python World"
Output True
result = str.istitle()
False
print(result)
str = "python world" result = str.istitle() print(result)
4. isdigit() The isdigit() method returns True if all the characters in a string are digits. Code str = "987654321"
Output True
result = str.isdigit()
False
print(result)
str = "python98765" result = str.isdigit() print(result)
5. isalpha() The isalpha() method returns True if all the characters in a string are alphabets. Code str = "Hello"
Output True
result = str.isalpha()
False
print(result)
str = "987654321"
result = str.isalpha() print(result)
6. isalnum() The isalnum() method returns True if all the characters in a string are alphanumeric (letters and numbers). Code str = "987654321"
result = str.isalnum() print(result)
Output True True
str = "python98765"
result = str.isalnum() print(result)
450
Part B_AI Grade 10.indb 450
4/12/2025 4:06:41 PM
Solved Examples Example 2.1 #Python program to perform String operations Code
Output
str2 = 'Hello Sunita'
Hello Sunita
print (str2) # Prints complete string
H
print (str2[0]) # Prints first character of the string
llo
print (str2[2:5]) # Prints characters starting from 3rd to 5th
llo Sunita
print (str2[2:]) # Prints string starting from 3rd character
Hello SunitaHello Sunita
print (str2 * 2) # Prints string two times
Hello SunitaTEST
print (str2 + "TEST") # Prints concatenated string
Example 2.2 #Python program to count the number of vowels in a string Code
Output
string=input("Enter string:")
Enter string:ritu
vowels=0
Number of vowels are: 2
for i in string: if(i=='a' or i=='e' or i=='i' or i=='o' or i=='u' or i=='A' or i=='E' or i=='I' or i=='O' or i=='U'): vowels=vowels+1 print("Number of vowels are:", vowels)
Example 2.3 #Python program to count number of lowercase characters in a string Code
Output
string=input("Enter string:")
Enter string:Ritu Singh
count=0
The number of lowercase characters is: 7
for i in string: if(i.islower()): count=count+1 print("The number of lowercase characters is:", count)
Example 2.4 #Python program to count the number of words and characters in a string
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 451
451
4/12/2025 4:06:41 PM
Code
Output
string=input("Enter string: ")
Enter string: Ritu is a good girl
char=0
Number of words in the string: 5
word=1
Number of characters in the string: 19
for i in string: char=char+1 if(i==' '): word=word+1 print("Number of words in the string:", word) print("Number of characters in the string:", char)
Lists
Lists are a fundamental data type in Python. It is a collection of various kinds of values. It can hold multiple values in a single variable. In Python, lists are used to store multiple values simultaneously. Python includes a built-in list type named "list". In lists, items are written within square brackets [ ]. A list can: • Store different types (integer, float, string, etc.) of elements. • Store duplicate elements. • Store the elements in an ordered manner. Example: mylist = [2, 4, 6, 8, "Python", 10, 10]
Characteristics of Lists
The characteristics of the lists are given below: • Ordered: In a list, the values or items have a defined order, and this order does not change. If you add new values to a list, they are placed at the end of the list. • Accessed via the Index: You can access list elements using an index, which starts at 0. Hence, the first element of a list is present at index 0, not 1. • Allows Duplicate Values: A list can contain duplicate values. Since values are indexed in a list, it can have items with the same value but a different index. • Mutable: The meaning of mutable is "liable to change". In Python, list items are mutable. It means elements of the list can be modified, individual elements can be replaced, and the order of elements can be changed even after the list has been created. • Variable Size: Lists can store a variable number of elements, allowing you to store and manage different quantities of data.
Creating a List in Python
In Python, you can create a list by enclosing the values or elements within square brackets [ ], separated by commas. There is no need for a built-in function to create a list.
452
Part B_AI Grade 10.indb 452
4/12/2025 4:06:41 PM
Syntax: list_name = [element_1, element_2, … , element_n] Example: Example: Suppose you need to record the percentage of marks for six students. For this, you can simply create a list. Suppose you need to record the ages of five people. For this, you can simply create a list. Code Output markslist = [70, 88, 90.2,Code 75, 68, 59.5]
[70, 88, 90.2, 75, 68, 59.5]Output
agelist = [25, 32, 47, 19, 54] print(markslist)
[25, 32, 47, 19, 54]
print(agelist)
Creating a List with Duplicate Elements Creating a List with Duplicate Elements A list can have duplicate values. Let us see the following example: A list can have duplicate values. Let us see the following example: Code
Output
Code
list = [3, 4, 9, 3, 8, 9]
Output
[3, 4, 9, 3, 8, 9]
list = [3, 4, 9, 3, 8, 9]
[3, 4, 9, 3, 8, 9]
print(list) print(list)
Creating a List with Mixed Types ofof Elements Creating a List with Mixed Types Elements
You can have elements ofof different data types inin aa list. You can have elements different data types list.They Theycan canbe beofofnumeric numerictype, type,string stringtype, type,Boolean Booleantype, type,etc. etc. Example: Example: Code
Code
Output
Output
list1 = ["Sunita", 27,34, True, 42.7,55.5, "Ravi"] list1 = ["Ankit", False, "Mala"]
['Sunita', 27, False, True, 42.7, [‘Ankit’, 34, 55.5,'Ravi'] ‘Mala’]
print(list1)
print(list1)
AccessingElements Elementsof of aa List List Accessing
Indexing is used in Python to access listlist elements. Suppose there areare n number of elements in ain list. Therefore, Indexing is used in Python to access elements. Suppose there n number of elements a list. Therefore, the list indexing will start at 0 for the first element and n-1 for the last element. You can use these index values toto the list indexing will start at 0 for the first element and n-1 for the last element. You can use these index values access the items in in thethe list. The index must bebe anan integer. LetLet us us seesee how to access elements in ainlist. Look at the access the items list. The index must integer. how to access elements a list. Look at the following image to understand the concept of indexing: following image to understand the concept of indexing: length = 6
index
‘p’ ‘y’
‘t’
‘h’ ‘o’ ‘n’
0
2
3
1
4
5
Example: Example: Print the third and fifth item of the list.list. Print the second fourth items of the [Hint: thirdelement elementhas hasan anindex index12and andthe thefourth fifth 4.]has an index 3. Hint: TheThe second Code
Code
markslist [70, agelist = [25, =32, 47,88, 19, 90.2, 54] 75, 68, 59.5] print(agelist[1]) print(markslist[2]) print(agelist[3])
Output
Output
90.2 32 19 68
print(markslist[4])
30 30 • Introduction to Python Chapter
Part B_AIGrade Grade8.indb 10.indb30453 CS_Coding
453
4/12/20251:07:21 4:06:42 8/13/2024 PMPM
List Methods
Python has a set of built-in methods that you can use on lists. append(): This method is used to add an element at the end of the list. An element can be of any type (string, number, object, etc.). Syntax: list.append(element) For example, add the item "eggs" to the shopping_list = ["bread", "butter", "milk", "apples"]. Code shopping_list = ["bread", "butter", "milk", "apples"] shopping_list.append("eggs")
Output [‘bread’, ‘butter’, ‘milk’, ‘apples’, ‘eggs’]
print(shopping_list)
Consider another example: Code my_list = [1, 2, 3]
Output [1, 2, 3, [4, 5]]
my_list.append([4, 5]) print(my_list)
The append() adds its argument as a single element at the end of the list. extend(): This method is used to extend the list by adding each element from another collection such as a list, individually to the end of the list. Syntax: list.extend(collection) Code my_list = [1, 2, 3]
Output [1, 2, 3, 4, 5]
my_list.extend([4, 5]) print(my_list)
Error Alert! Unlike append, which adds its argument as a single element, extend goes through each element in the collection and adds them one by one to the list. clear(): This method is used to remove all the elements from the list. Syntax: list.clear() For example, remove all elements from the shopping_list = ["bread", "butter", "milk", "apples"]. Code shopping_list = ["bread", "butter", "milk", "apples"] shopping_list.clear()
Output []
print(shopping_list)
454
Part B_AI Grade 10.indb 454
4/12/2025 4:06:42 PM
count(): This method is used to return the number of the specified element. Syntax: list.count(value) For example, to count the number of times the value 5 appears in the list: list = [5, 2, 7, 5, 8, 5, 1]. Code list = [5, 2, 7, 5, 8, 5, 1]
Output 3
x = list.count(5) print(x)
pop(): This method is used to remove the element at the specified position. Syntax: list.pop(position) For example, remove the third element from the list = [5, 2, 7, 5, 8, 5, 1]. [Hint: The third element has an index 2.] Code list = [5, 2, 7, 5, 8, 5, 1]
Output [5, 2, 5, 8, 5, 1]
list.pop(2) print(list)
Note: If the position is not specified, by default, the pop() method removes the last element from the list. remove(): This method is used to remove the first occurrence of the specified element. Syntax: list.remove(element) For example, remove 5 from the list = [5, 2, 7, 5, 8, 5, 1]. Code list = [5, 2, 7, 5, 8, 5, 1]
Output [2, 7, 5, 8, 5, 1]
list.remove(5) print(list)
index(): This method is used to find the position of the first occurrence of the specified element. Syntax: list.index(value) For example, find the first occurrence of the value 5, and return its position in the list = [5, 2, 7, 5, 8, 5, 1]. Code list = [5, 2, 7, 5, 8, 5, 1] x = list.index(5)
Output 0
print(x)
sort(): This method is used to sort the list in ascending order, by default. To sort the list in descending order, the attribute reverse is used. If its value is set to ‘True’, then the list will be sorted in descending order. Syntax: list.sort()
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 455
455
4/12/2025 4:06:42 PM
Example 1: Sort the list = [5, 2, 7, 5, 8, 5, 1] in ascending order. Code list = [5, 2, 7, 5, 8, 5, 1]
Output [1, 2, 5, 5, 5, 7, 8]
list.sort()
print(list)
Example 2: Sort the list = [5, 2, 7, 5, 8, 5, 1] in descending order Code list = [5, 2, 7, 5, 8, 5, 1]
Output [8, 7, 5, 5, 5, 2, 1]
list.sort (reverse=True) print(list)
Solved Examples Example 3.1 Create a list of fruits (Apple, Banana, Cherry, Date, Orange). Print all the fruits in the list, one by one. Ans: Code fruit_list = ["Apple", "Banana", "Cherry", "Date", "Orange"] for fruit in fruit_list: print(fruit)
Output Apple
Banana Cherry Date
Orange
Example 3.2 Sort the list alphabetically: List: ['b', 'a', 'l', 'l', 'o', 'o', 'n'] Ans: Code char_list = ['b', 'a', 'l', 'l', 'o', 'o', 'n'] char_list.sort()
Output ['a', 'b', 'l', 'l', 'n', 'o', 'o']
print(char_list)
Tuples
A tuple is an ordered, immutable collection of things or values. Tuples are sequences, just like lists, but they cannot be modified, unlike lists. Lists use square brackets, while tuples use parentheses () to enclose the elements. Tuples are faster than lists. For example, mytuple = (1, 2, 3, 4, 5)
456
Part B_AI Grade 10.indb 456
4/12/2025 4:06:42 PM
Characteristics of Tuples
The characteristics of tuples are given below: • Ordered: In a tuple, the values or items have a defined order, and this order does not change. • A ccessed via the Index: The tuple element can be accessed via the index. It means that the tuple index always starts with 0. Hence, the first element of a tuple is present at index 0, not 1. • I mmutable: The tuple items are immutable. The meaning of immutable is "unable to be changed". It means that we cannot add, modify, or remove items in a tuple after it has been created. • A llows Duplicate Values: A tuple can contain duplicate values. Since values are indexed in a tuple, it can have items with the same value and a different index.
Creating a Tuple
In Python, you can create a tuple by placing the values or elements inside the parentheses ( ), separated by commas. Syntax: tuple_name = (element_1, element_2, … , element_n) Creating a Tuple with a Single Item To create a tuple with a single item, you have to add a comma after the item; otherwise, Python will not recognise it as a tuple. Example: Code mytuple = ("Delhi",)
Output Delhi
print(mytuple)
Creating a Tuple with Duplicate Elements A tuple can contain duplicate elements. Their index values will be different. Example: Code tuple = (3, 4, 9, 6, 4, 9)
Output (3, 4, 9, 6, 4, 9)
print(tuple)
Creating a Tuple with Mixed Elements A tuple can have elements of mix data type. Example: Code tuple = ("Delhi", 4, 9, "Japan", 4, 9) print(tuple)
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 457
Output (‘Delhi’, 4, 9, ‘Japan’, 4, 9)
457
4/12/2025 4:06:42 PM
Accessing Elements of a Tuple
Indexing is used in Python to access tuple elements. You can access a tuple entry using indexing. In Python, tuple indexing starts at 0 for the first element. You can use the index operator [ ] to access an item in a tuple. The index must be an integer. Here is how you can access elements in a tuple: For example: Print the first item in the tuple. Code tuple1 = ("Delhi", "Punjab", "Haryana", "Gujarat") print(tuple1[0])
Output Delhi
Tuple Methods
Python has two built-in methods that you can use on tuples. count(): This method is used to compute the occurrence of a specified value that appears in the tuple. Syntax: tuple.count(value) Example: How many times the value 9 appears in the tuple = (3, 4, 9, 6, 4, 9)? Code tuple = (3, 4, 9, 6, 4, 9)
Output 2
x = tuple.count(9) print(x)
Index(): This method is used to find the position of the first occurrence of the specified value. Syntax: tuple.index(value) Example: Find the first occurrence of the value 9, and return its position in the tuple = (3, 4, 9, 6, 4, 9). Code tuple = (3, 4, 9, 6, 4, 9) x= tuple.index(9)
Output 2
print(x)
Deleting Elements of a Tuple
As you are aware, the tuple items are immutable. It implies that once a tuple is created, its elements cannot be changed, added to, or removed without creating a new tuple. However, there is a workaround using the steps that follow: • You can convert the tuple into a list • Change the list • Convert the list back into a tuple Example: Convert the tuple into a list, remove "Haryana", and convert it back into a tuple:
458
Part B_AI Grade 10.indb 458
4/12/2025 4:06:42 PM
Code tuple1 = ("Delhi", "Punjab", "Haryana", "Gujarat") x = list(tuple1)
Output (‘Delhi’, ‘Punjab’, ‘Gujarat’)
x.remove("Haryana") tuple1 = tuple(x) print(tuple1)
mytuple = ("Delhi") print(mytuple)
Solved Examples Example 3.3 Combine or merge two given tuples. tuple1 = (1, 3, 5)
Think and Tell
tuple2 = (2, 4, 6)
Are lists and tuples heterogeneous or homogeneous data structures?
Ans: Tuple concatenation is used to merge the tuples. Code tuple1 = (1, 3, 5)
Output (1, 2, 3, 4, 5, 6)
tuple2 = (2, 4, 6)
result_tuple = tuple1 + tuple2 print(result_tuple)
Example 3.4 Multiply the given tuple by 3. tuple1 = (1, 2, 3) You can use the ‘*’ operator to multiply the tuple. This feature is known as replicating a tuple. Code tuple1 = (1, 2, 3)
tuple1 = tuple1*3
Output (1, 2, 3, 1, 2, 3, 1, 2, 3)
print(tuple1)
Difference Between Lists and Tuples
Lists and tuples are both used to store items and organise data. They are a fundamental concept in Python. But they have a major difference. In lists, the elements can be changed after they are defined, while in tuples, the elements cannot be changed at all. In real life, you might use a shopping list where items can be added, removed, or modified. The tuples can be used to represent days of the week, as these do not change.
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 459
459
4/12/2025 4:06:42 PM
S. No.
Lists
Tuples
1
Lists are mutable.
Tuples are immutable.
2
You can easily insert or delete data items in a list.
You cannot directly insert or delete data items in a tuple.
3
Lists have several built-in methods.
Due to immutability, a tuple does not have many built-in methods.
4
Lists are generally slightly slower than tuples because of their mutability.
Tuples are faster than lists.
5
Lists are created using square brackets [].
Tuples are created using parentheses ().
6
Example: list1 = [1, 2, 3]
Example: tuple1 = (1, 2, 3)
Activity Time 1. Write a Python program to calculate the product of the digits in a number. 2. Create a shopping list with items you want to purchase and write a Python code that sorts the list in reverse alphabetical order. 3. Create a tuple containing the names of five cities you would like to visit. Write a Python code to display each city in the tuple on a new line.
Chapter Checkup A Select the correct option. 1 What will be the output of the following code? 1num = 100 print(1num) a 100
b 101
2 Which of the following data types in Python is mutable? a String
b Integer
3 Which of the following is a valid variable name? a Hello_Name
b %Name-Hello
c 1
d Syntax Error
c List
d Tuple
c Hello%Name
d Hello-Name
c x is less than 10
d An error occurs
4 What is the output of the following code? x=5
if x > 10:
print("x is greater than 10") elif x == 10:
print("x is equal to 10") else:
print("x is less than 10") a x is greater than 10
b x is equal to 10
460
Part B_AI Grade 10.indb 460
4/12/2025 4:06:43 PM
B Fill in the blanks with the most suitable words.
1 A statement is used to specify a code block that executes when none of the preceding conditions in the ‘if’ and ‘elif’ statements are True. 2 In a program, if a loop is executed over and over again without stopping, it is called an 3 The 4
method in Python can be used to access specific characters within a string. means we can assign a variable to a value of any type, and the variable will automatically take on that type.
5 The plus ‘+’ symbol is used to C
loop.
two strings in Python.
State whether the following statements are True or False. Correct the statements that are false. 1 The string slicing function includes the character at the last index. 2 The exponentiation operator has the highest precedence in any expression. 3 T he ‘continue’ statement in Python skips the current iteration of a loop and continues with the next iteration. 4 Strings in Python can be enclosed in triple quotes. 5 The logical operator ‘and’ returns True if at least one of the conditions it combines is True.
D Answer the following questions. (Solved) Q1. Name the types of conditional statements. A1. In Python, we have three types of conditional statements that allow us to make decisions in our programs. These include: • if Statement
• if… else Statement • if… elif… else Ladder Q2. What are the differences between mutable and immutable data types? A2. • Immutable data types are those whose values cannot be changed once declared. Examples: int, float, bool • Mutable data types are those whose values can be changed at any time. Examples: Lists, Dictionaries, Sets Q3. Write the output of the following expressions: i. 54+12 A3. i. 66
ii. 45-17
iii. 3**4
iv. 10%100
v. 175/5
ii. 28
iii. 81
iv. 10
v. 35.0
Q4. Using string slicing, extract the substring "Python" from the string "Learning Python is fun!" and print it. A4. text = "Learning Python is fun!" substring = text[9:15] print(substring) Q5. Write a code to create a tuple T with the given data: 9, ‘Ram’, 7, 5, ‘Hema’ A5. mytuple = (9, ‘Ram’, 7, 5, ‘Hema’ ) print(mytuple)
Chapter 30 • Introduction to Python
Part B_AI Grade 10.indb 461
461
4/12/2025 4:06:43 PM
Q6. What are the characteristics of tuple? A6. The characteristics of tuples are given below: i. Ordered: In a tuple, the values or items have a defined order, and this order does not change. ii. Accessed via the Index: The tuple element can be accessed via the index. It means that the tuple index always starts with 0. Hence, the first element of a tuple is present at index 0, not 1. iii. Immutable: The tuple items are immutable. The meaning of immutable is "unable to be changed". It means that we cannot add, modify, or remove items in a tuple after it has been created. iv. Allows Duplicate Values: A tuple can contain duplicate values. Since values are indexed in a tuple, it can have items with the same value and a different index. Q7. What are jump statements? Name the types of jump statements in Python. A7. Loops run the same set of code for a defined number of times or until the test condition becomes False. However, sometimes we might wish to stop the loop even before the test condition becomes False or skip an iteration. Jump statements allow you to skip code or terminate a loop. We have two jump statements in Python: break statement and continue statement. Q8. What is the output of the following code? list = [1, 2, 6, 5, 8, 5, 1] list.pop(2) print(list) A8. [1, 2, 5, 8, 5, 1]
AI Activities 1 Visit the link: https://colab.research.google.com/ to write Python programs in Colaboratory, often referred to as Google Colab. It is a free, cloud-based Jupyter notebook environment that allows you to write and execute Python code in your browser. 2 Visit the link: https://www.youtube.com/watch?v=woVJ4N5nl_s to know the Python basics.
Answer Key A
1. d
B
1. else
C
1. False. The string slicing function does not include the character at the last index.
2. c 2. infinite
3. a
4. c 3. indexing
4. Dynamic typing
5. Concatenate
2. False. The parentheses has the highest precedence in any expression. 3. True 4. True
5. False. The logical operator ‘and’ returns True if both the conditions it combines are True.
462
Part B_AI Grade 10.indb 462
4/12/2025 4:06:44 PM
Unit 7 • Advance Python
31 Python Basics A
library is a collection of books or a place where books are stored and preserved for future use. Similarly, a Python library is a set of modules. The Python standard library includes over 200 essential modules. It is really useful. Without it, programmers would be unable to use Python’s features.
Python Built in Functions
Python’s built-in functions are predefined functions that help you perform common operations on text and numbers easily. Python includes various built-in functions that can be accessed without the need to import any other modules. Here are some of the most frequently used built-in functions: Function
Description
abs()
Returns the absolute value of a number
bin()
Returns the binary version of a number
input()
Allows user input
max()
Returns the largest item in an iterable
min()
Returns the smallest item in an iterable
next()
Returns the next item in an iterable
print()
Displays the result on the screen
len()
Returns the length of an object
list()
Returns a list
type()
Returns the type of an object
pow()
Returns the value of x to the power of y
round()
Rounds a number to a specified number of decimal places.
463
Part B_AI Grade 10.indb 463
4/12/2025 4:06:45 PM
Example 1. Calculate the absolute value of a number:
Example 2. Calculate the binary value of 10:
Note: The result will always have the prefix ‘0b’. Example 3: Request and print the student’s class.
Example 4: Display the data type of x.
Example 5: Calculate the value of 5 to the power of 4.
Example 6: Round a given number to only three decimals.
Python Libraries and Packages
A Python library is a set of modules. Modules that are linked to one another are often placed in the same package. When a module from another package is required in a program, the package can be imported and its modules used. To use a package in Python, we must first install it. Installing packages in Python is simple. To install a package, follow these steps: 1.
To activate your workspace, open Anaconda Navigator.
2.
Suppose we want to install the numpy package. To install numpy just write: conda install numpy
464
Part B_AI Grade 10.indb 464
4/12/2025 4:06:45 PM
3. I f we want to proceed with the installation, it will ask to type ‘Y’. When we type ‘Y’, the installation process begins, and our package is installed in the specified environment. 4.
We can also install multiple packages at once by specifying them all in a single line. For example, suppose we want to install the pandas, numpy, and matplotlib packages in our working environment. For this, just write: conda install numpy pandas matplotlib
In our environment, this code will install all three of these packages. After the packages are installed, we can import them into the necessary file to begin utilising them.
Importing Packages in Python
In Python, before using a package like NumPy, it needs to be imported into your script. There are several ways to import a package, depending on how you plan to use it. Let us explore some common methods: Import the Entire Package
You can import the entire NumPy package using the following syntax: Syntax:
import numpy
Purpose: This allows you to access all the functions and features of NumPy using the numpy prefix. Example:
import numpy
arr = numpy.array([1, 2, 3, 4]) print(arr)
Import with an Alias
To make your code simpler, you can import NumPy using an alias like np. This is a common practice: Syntax:
import numpy as np
Purpose: Instead of writing numpy repeatedly, you can use np, which makes the code cleaner. Example:
import numpy as np
arr = np.array([5, 10, 15]) print(arr)
Import Specific Functions
If you only need a particular function from NumPy, you can import just that function: Syntax:
from numpy import array
Purpose: This is efficient as it loads only the required function, reducing memory usage. Example:
from numpy import array arr = array([7, 14, 21]) print(arr)
Chapter 31 • Python Basics
Part B_AI Grade 10.indb 465
465
4/12/2025 4:06:45 PM
You can also import multiple functions in a single line: Syntax: from numpy import array, zeros, ones Import with an Alias for Specific Functions
You can also rename the imported function using an alias for easier use: Syntax: from numpy import array as arr Purpose: This is helpful when you want to reduce function name length or avoid conflicts with functions of the same name from other libraries. Example: from numpy import array as arr my_array = arr([2, 4, 6, 8]) print(my_array)
Remember
Common Python Packages
In Python, alias are an alternate name for referring to the same thing.
The following are some of the easily accessible packages:
Numpy
The term “NumPy” is an abbreviation for “Numerical Python”. NumPy is a commonly used package for working with numbers. It provides support for arrays and matrices, along with a collection of mathematical functions to operate on them efficiently. It has built-in mathematical tools that make calculations easy. NumPy is usually imported under the np alias. NumPy Array An array is a collection of multiple values of the same data type. It can contain numbers, characters, or Boolean values, but all elements must belong to the same type. In NumPy, arrays are referred to as ND-arrays (N-Dimensional Arrays) because NumPy allows the creation of arrays with multiple dimensions (1D, 2D, 3D, or more). Difference between Python Lists and NumPy Arrays In Python, arrays and lists are used to store multiple values. While both serve a similar purpose, they differ in their characteristics and use cases. Python Lists
NumPy Arrays
Heterogeneous (Can contain different data types)
Homogeneous (Only one data type)
Flexible and can store multiple data types in one list
Not flexible with data types
Directly initialised using Python’s built-in syntax
Cannot be directly initialised; requires NumPy package
Direct mathematical operations are not possible on all elements
Supports direct mathematical operations like addition, subtraction, etc.
Mostly used for managing data and storing mixed data types
Best for arithmetic operations and complex calculations
Consumes more memory compared to NumPy arrays
Consumes less memory due to efficient storage
Example: [1, 2, 3, 4, 5]
Example: numpy.array([1, 2, 3, 4, 5])
466
Part B_AI Grade 10.indb 466
4/12/2025 4:06:45 PM
Creating a NumPy Array To create an array using NumPy, you need to import the package first. Then, the array can be created using the code as given below. Note that all elements are of the same data type (integers). import numpy as np A = np.array([1, 2, 3, 4, 5]) print(“NumPy Array:”, A) Output: [1 2 3 4 5] Creating an Array from a Python List import numpy as np my_list = [1, 2, 3, 4, 5] my_array = np.array(my_list) print(my_array) Output: [1 2 3 4 5] Creating an Array Using np.arange() This function creates an array of numbers from 1 to 10 (exclusive) with a step of 2, producing [1, 3, 5, 7, 9]. numbers = np.arange(1, 10, 2) # Start=1, Stop=10, Step=2 print(numbers) Output: [1 3 5 7 9] Creating an Array Using np.zeros() This function creates an array of all zeros. zeros_array = np.zeros(5) print(zeros_array) Output: [0., 0., 0., 0., 0.] Creating an Array Using np.ones() This function creates an array of ones. ones_array = np.ones(3) print(ones_array) Output: [1., 1., 1.] Creating an Array Using np.linspace() This function creates an array of 5 evenly spaced numbers between 0 and 10 (inclusive). For example, start at 0, end at 10, and it automatically picks 5 numbers in between (taking equal steps). linspace_array = np.linspace(0, 10, 5) print(linspace_array) Output: [0. 2.5 5. 7.5
10.]
Performing Operations on Arrays Following are some common operations that can be performed on numpy arrays: Arithmetic Operations Common arithmetic operations are addition, subtraction, multiplication, and division. You can perform all these operations on the numpy arrays just like the numbers. Check the following example:
Chapter 31 • Python Basics
Part B_AI Grade 10.indb 467
467
4/12/2025 4:06:45 PM
a = np.array([1, 2, 3]) b = np.array([4, 5, 6]) print(a + b) # Addition: [5 7 9] print(a – b) # Subtraction: [–3 –3 –3] print(a * b) # Multiplication: [4 10 18] print(a / b) # Division: [0.25 0.4 0.5] Mathematical Functions You can also perform some common mathematical operations on numpy arrays. Some of these are given in the following code: arr = np.array([1, 2, 3]) print(np.sqrt(arr)) # Square root: [1.
1.41421356 1.73205081]
print(np.sin(arr))
# Sine function: [0.84147098 0.90929743 0.14112001]
print(np.log(arr))
# Natural log: [0.
0.69314718 1.09861229]
Aggregation Functions Following are some common aggregate functions like sum, average, maximum, and minimum. arr = np.array([1, 2, 3, 4, 5]) print(np.sum(arr))
# Sum: 15
print(np.mean(arr)) # Average: 3.0 print(np.max(arr))
# Maximum: 5
print(np.min(arr))
# Minimum: 1
Multi-dimensional Arrays (2D and 3D) Creating a 2D Array (Matrix) matrix = np.array([[1, 2, 3], [4, 5, 6]]) print(matrix) Output: [[1 2 3] [4 5 6]] Accessing Elements Consider the following array for these functions: matrix = np.array([[1, 2, 3], [4, 5, 6]]) print(matrix) print(matrix[0, 1]) # Row 0, Column 1 Output: 2 print(matrix[1, 2]) # Row 1, Column 2 Output: 6 Shape of an Array matrix = np.array([[1, 2, 3], [4, 5, 6]]) print(matrix.shape)
468
Part B_AI Grade 10.indb 468
4/12/2025 4:06:45 PM
Output: (2, 3) 2 rows, 3 columns Reshaping Arrays You can change the structure of an array using the reshape() function. Example: Convert 1D to 2D arr = np.arange(1, 7) # [1, 2, 3, 4, 5, 6] new_arr = arr.reshape(2, 3) # 2 rows, 3 columns print(new_arr) Output: [[1 2 3] [4 5 6]] Adding 5 to Each Element arr= np.array([1, 2, 3]) print(arr+5) Output: [6, 7, 8] Divide Each Element by 5 arr= np.array([10, 20, 30]) print(arr / 5) Output: [2, 4, 6] Squaring Each Element arr= np.array([3, 4, 5]) print(arr ** 2) Output: [9, 16, 25] Accessing 2nd Element arr= np.array([10, 20, 30]) print(arr[1]) Output: 20 Multiplying 2 Arrays arr= np.array([1, 2, 3]) brr= np.array([4, 5, 6]) print(arr * brr) Output: [4,10,18] Operations on 2D Arrays Following are some common operations performed on 2D arrays: type(ARR): Shows what kind of object ARR is (will say ‘numpy.ndarray’ for NumPy arrays). ARR.ndim: Tells you how many dimensions the array has (1 for list, 2 for table, etc.). ARR.size: Counts total number of elements in the entire array. ARR.dtype: Shows what type of numbers are stored (like integers, decimals, etc.).
Chapter 31 • Python Basics
Part B_AI Grade 10.indb 469
469
4/12/2025 4:06:45 PM
Example: import numpy as np ARR = np.array([[1, 2, 3], [4, 5, 6]]) print(type(ARR)) # Output: <class ‘numpy.ndarray’> print(ARR.ndim)
# Output: 2 (because it’s a table)
print(ARR.shape) # Output: (2, 3) (2 rows, 3 columns) print(ARR.size)
# Output: 6 (total elements: 2×3=6)
print(ARR.dtype) # Output: int64 (stores whole numbers)
OpenCV
OpenCV stands for Open Source Computer Vision Library. It plays an essential role in real-time operation, which are important in modern systems. It allows you to process photos and videos in order to recognise objects, people, or even human handwriting. OpenCV supports several different programming languages, including Python, C++, and Java. Syntax: cv2.imshow(window_name, image) Example: Write a program to read and display an image.
Here, cv2.imread(“bird.jpg”) is used to read an image file and loads it into the variable “img”. cv2.imshow(“bird”, img) is used to display the image in a new window. Here, “bird” is the window name. It will appear as the title of the window displaying the image. cv2.waitKey(0) ensures that the image window remains open until you press a key, making it useful when displaying images.
NLTK
NLTK stands for Natural Language Tool Kit. This toolkit allows for sentiment analysis of a given text, which is useful for applications like social media monitoring and product review analysis. NLP (Natural Language Processing) enables computers to understand, communicate, and respond to human language, effectively performing tasks that typically require human interaction.
470
Part B_AI Grade 10.indb 470
4/12/2025 4:06:46 PM
Pandas
It was created by Wes McKinney in 2008. It makes data processing, data manipulation, and data cleaning easier. Pandas is well suited for: • • • •
Tabular data with heterogeneously-typed columns, as in an SQL table or Excel spreadsheet. Ordered and unordered time series data.
Arbitrary matrix data (homogeneously typed or heterogeneous) with row and column labels. Any other form of statistical data sets.
Pandas can perform tasks like sorting, re-indexing, iteration, concatenation, data conversion, aggregation, etc. The Pandas package is usually imported under the alias pd. Syntax: import pandas as pd Here are some of the key modules in pandas: Series
It works like a column in a table. It is used to hold a one-dimensional array of any type. Syntax: import pandas as pd series = pd.Series(data) DataFrame
It is a fundamental data structure in pandas. It represents a two-dimensional and tabular data structure with labelled axes (rows and columns). DataFrames are commonly used for data analysis and manipulation. Syntax: import pandas as pd df = pd.DataFrame(data) Pandas also provide functions and classes for reading and writing data to various file formats, including CSV, Excel, SQL databases, and more. Syntax: import pandas as pd df = pd.read_csv(‘file_name.csv’) Example 1: Create a simple pandas Series from a list=[2.7, 3.6, 7.1, 9]
Chapter 31 • Python Basics
Part B_AI Grade 10.indb 471
471
4/12/2025 4:06:46 PM
Example 2: Create a DataFrame that contains information about three individuals, including their names, ages, and cities of residence. The DataFrame should have the following columns: Name: Alice, Bob, and Charlie Age: 25, 30, and 35 City: New York, Los Angeles, and Chicago
Here, ‘.T’ transposes the DataFrame so that the lists are treated as columns instead of rows. Example 3: Read the CSV file saved in your system and display the first 10 rows of the CSV file.
Here pd.read_csv(‘data.csv’) is used to read the CSV file into a DataFrame object (df), and df.head(10) is used to display the first 10 rows of the CSV file. Note that you need to upload the CSV file in the same folder as your Jupyter Notebook.
472
Part B_AI Grade 10.indb 472
4/12/2025 4:06:47 PM
Example 4:
Read the csv file saved in your system and display its information.
Here, df.info() is used to show information about the dataset like the number of entries, columns, data types, and non-null counts.
Matplotlib
Matplotlib was created by John D. Hunter. It is a popular Python library for creating static, animated, or interactive visualisations. It is capable of generating visually detailed representations such as pie charts, histograms, scatter plots, bar graphs, etc. To use this package, we need to import it in the script. Syntax:
import matplotlib
Here are some of the key modules in Matplotlib: • • • •
Figure
Pyplot
Line2D Patch
Example 1: Draw a line.
Chapter 31 • Python Basics
Part B_AI Grade 10.indb 473
473
4/12/2025 4:06:47 PM
Example 2: Write a Python program to create a bar graph showing the number of fruits sold. The data is as follows: Apples: 5 Bananas: 10 Oranges: 15
Number of Fruits Solid 14
Number Sold
12 10 8 6 4 2 0
Apples
Bananas Fruits
Oranges
Remember df.head() is used to display the first 5 rows of the CSV file by default. df.tail() is used to display the last 5
Did You Know? OpenCV was originally developed by Intel.
rows of the CSV file by default.
ActivityTime Time Activity Activity 1: Display the first 10 rows and the last 10 rows.
(Group Activity)
Form groups of 3 students. Create a csv file and load this file in Jupyter Notebook. Write a program in Python that reads the saved csv file and displays its first 10 rows and last 10 rows. Activity 2: Draw a line.
(Individual Work)
Create a Python program to draw a line for given x coordinates [0, 1, 2] and y = x + 2.
474
Part B_AI Grade 10.indb 474
4/12/2025 4:06:47 PM
Chapter Checkup A Select the correct option.
1 Which of the following is a built-in function in Python? a seed()
b sqrt()
c factorial()
d print()
c np alias
d None of these
b 120.88
c 240
d 120.87
b Intel
c Wes McKinney
d IBM
2 Numpy is usually imported under the a pd alias
b cv2
3 What will be the output of the given code? x = round(120.876,2) print(x) a 120 4 Matplotlib was created by a John D. Hunter
B Fill in the blanks with the most suitable words. 1
has built-in mathematical tools that make it easy to do calculations.
2 The
function returns the type of an object.
3 NLTK stands for
.
4 The len() function returns the C
of an object.
State whether the following statements are True or False. Correct the statements that are False. 1 OpenCV allows to process photos and videos in order to recognise items, people, or even human handwriting. 2 Pyplot and Line2D are the key modules in Matplotlib. 3 The Pandas package is usually imported under the np alias. 4 To use a package in Python, we must first install it.
D Answer the following questions. (Solved)
Q1. What are built-in functions in Python? Explain any five functions.
A1. Python’s built-in functions are predefined functions that help you perform common operations on text and numbers easily. Python includes various built-in functions that may be accessed without the need to import any other modules. Here are five built-in functions: Function
Description
abs()
Returns the absolute value of a number
bin()
Returns the binary version of a number
input()
Allows user input
max()
Returns the largest item in an iterable
min()
Returns the smallest item in an iterable
Q2. Explain matplotlib in Python with example.
A2. Matplotlib was created by John D. Hunter. It is a popular Python library for creating static, animated, and interactive visualisations. It is capable of generating visually detailed representations such as pie charts, histograms, scatter plots, bar graphs, etc. To use a package, we need to import it in the script.
Chapter 31 • Python Basics
Part B_AI Grade 10.indb 475
475
4/12/2025 4:06:48 PM
Syntax: import matplotlib For example:
Number Solid
12 11 10 9 8 7 6 2.00
2.25
2.50
2.75
3.00
3.25
3.50
3.75
4.00
Q3. Write a code in Python that counts the number of items in a list and also returns the type of these objects. A3.
Q4. Explain OpenCV. A4. OpenCV stands for Open Source Computer Vision Library. It allows you to process photos and videos in order to
recognise objects, people, or even human handwriting. OpenCV supports several different programming languages, including Python, C++, and Java.
AI Activities 1 Visit the link: https://www.w3schools.com/python/python_ref_functions.asp and explore more built-in functions in Python.
2 Visit the link: https://www.javatpoint.com/opencv-read-and-save-image to know more about OpenCV library in Python. 3 Visit the link: http://bit.ly/data_notebook and start exploring the Jupyter Notebook of basic statistics in Python.
Answer Key A
1. d
B
1. Numpy
C
1. True
2. c
3. b 2. type()
4. a 3. Natural Language Tool Kit
4. length
2. True
3. False. The pandas package is usually imported under the alias pd. 4. True
476
Part B_AI Grade 10.indb 476
4/12/2025 4:06:49 PM
Unit Reflection
Key Terms • Kernels: Kernels are programs that execute interactive code written in a certain programming language and provide the user with output. A Jupyter Notebook’s code is run by computational engines called kernels. • Syntax: Syntax errors are mistakes that happen when we do not write our code correctly, such as using incorrect function names or missing quotes and brackets. • Variable: A variable is a reference name given to a location in the computer’s memory. Variables can be used to store numbers, strings, lists, and other data types. • Dynamic typing: It is a feature of Python where the data type of a variable is not determined until runtime. • Iteration: Loops allow us to execute a set of instructions as long as a certain condition is true. Once that condition becomes false, the loop stops. This process is also known as iteration. • Lists: Lists is a collection of various kinds of values. It can hold multiple values in a single variable. • Tuple: A tuple is an ordered, immutable collection of things or values. • NumPy: It is a Python library for efficient numerical computation in Python. • Array: An array is a collection of values of the same data type stored in contiguous memory locations. • Homogeneous data: This is a type of data where all elements are of the same type. • Arithmetic operations: These are the basic math operations like addition, subtraction, multiplication, and division that can be performed on NumPy arrays. • Aggregation functions: Functions like sum, mean, max, and min used to analyse data in NumPy arrays are known as aggregation functions.
Things to Remember • The simplest method to install and use Jupyter Notebook is by using the software Anaconda. Anaconda is a free and open-source environment for writing and executing Python programs. • The Jupyter Notebook is an extremely effective tool for building and presenting AI projects interactively. • Jupyter Notebook is widely used in a variety of applications such as data cleansing and transformation, numerical simulation, statistical modelling, data visualisation, machine learning, etc. • Jupyter Notebook is a Graphical User Interface (GUI), which implies that the Notebook interface provides a wide range of easily accessible tools for simplifying work, many of which are just a click away. • Data types define the type of data that a variable can store. • Immutable data types are those whose values cannot be changed once declared. • Mutable data types are those whose values can be changed at any time. • Typecasting is the conversion of the data type of a value into another data type. • The indexing method in Python can be used to access specific characters within a string.
Unit Reflection
Part B_AI Grade 10.indb 477
477
4/12/2025 4:06:49 PM
• Python provides mainly two types of loops, the ‘while’ loop and the ‘for’ loop. • Jump statements allow you to skip code or terminate a loop. Python has two jump statements: the break statement and the continue statement. • In a program, if a loop is executed repeatedly without stopping, it is called an ‘infinite’ loop. • Python’s built-in functions are predefined functions that help you perform common operations on text and numbers easily. • A Python library is a set of modules. Modules that are linked to one another are often placed in the same package. When a module from another package is required in a program, the package can be imported and its modules used. • NumPy is a commonly used package for working with numbers. It provides support for arrays and matrices, along with a collection of mathematical functions to operate on them efficiently. • OpenCV allows you to process photos and videos to recognise objects, people, or even human handwriting. • NLTK is a toolkit that allows for sentiment analysis of a given text, which is useful for applications like social media monitoring and product review analysis. • Pandas can perform tasks like sorting, re-indexing, iteration, concatenation, data conversion, aggregation, etc. • Matplotlib is a popular Python library for creating static, animated, or interactive visualisations. • Tuples are sequences, just like lists, but they cannot be modified, unlike lists. Lists use square brackets, while tuples use parentheses () to enclose the elements. Tuples are faster than lists. • Replication of strings means to repeat a certain string a specified number of times. The replication operation can be performed with the help of the asterisk symbol '*', which is known as the replication operator. • Python follows the PEDMAS rule, which stands for: Parentheses (P), Exponents (E), Division (D), Multiplication (M), Addition (A), and Subtraction (S). • Control statements in Python are used to control the flow of execution of the program. They allow you to make decisions, repeat code, and skip code. • There are three main types of control statements in Python: Conditional Statements, Loops, and Jump Statements. • NumPy arrays are homogeneous, meaning they can only store one type of data. • NumPy arrays support direct arithmetic operations, unlike Python lists. • NumPy arrays consume less memory compared to Python lists. • NumPy provides functions for creating arrays like np.zeros(), np.ones(), and np.linspace(). • NumPy arrays can be reshaped using the reshape() function.
478
Part B_AI Grade 10.indb 478
4/12/2025 4:06:49 PM
Test Your Knowledge A. Select the correct option. 1. Which of the following is not a typical application of Jupyter Notebook? a. Data cleansing and transformation
b. Numerical simulation
c. Web development
d. Data visualisation
2. Which method adds a single element to the end of a list? a. extend()
b. insert()
c. append()
d. remove()
3. Which of the following statements is true about Jupyter Notebook? a. Anaconda is a web-based tool for installing Jupyter Notebook. b. Anaconda is a command-line interface (CLI) tool for installing Jupyter Notebook. c. Anaconda can only be used from a web browser to install Jupyter Notebook. d. Anaconda is used to write Jupyter Notebooks, not install them. 4. How do you access the last character of a string using negative indexing? a. string[-0]
b. string[-1]
c. string[-2]
d. string[-3]
5. List L is given below: L = [0, 1, 2, 3, 4] Choose the correct answer to delete the element 3 from the list. a. L.delete(3)
b. L.remove(3)
c. del L[2]
d. L.pop(3)
6. What is the main advantage of using NumPy arrays over Python lists for numerical computations? a. They can store mixed data types.
b. They support direct arithmetic operations.
c. They consume more memory.
d. They are slower for computations.
7. Which function is used to create an array of evenly spaced numbers in NumPy? a. np.arange()
b. np.linspace()
c. np.zeros()
d. np.ones()
B. Fill in the blanks with the most suitable words. 1. Tuples are
than lists.
2. The continue keyword is used to 3. In Python,
the current iteration in a loop.
defines a block of statements.
4. Strings in Python are immutable, which means they cannot be 5. The
Unit Reflection
Part B_AI Grade 10.indb 479
once they have been created.
attribute of the sort() method is used to reverse the order of the list.
479
4/12/2025 4:06:49 PM
6. NumPy arrays are
because they can only store one type of data.
7. The np.reshape() function is used to change the
of an array.
C. State whether the following statements are True or False. Correct the statements that are false. 1. The list allows duplicate values. 2. The replace() function can modify a string directly. 3. The eval() function can execute a string expression and return its result. 4. Lists cannot store different types of elements. 5. You can access a tuple entry using indexing. 6. NumPy arrays can store mixed data types like Python lists. 7. NumPy arrays are generally faster than Python lists for numerical computations.
D. Short-answer type questions. 1. How can you use the slicing operator to extract a substring in Python? 2. What is Anaconda? 3. What is a dataframe? 4. What will be the output of the given code? tuple = (1, 8, 7, 5, 4, 8, 5) x = tuple.count(5) print(x) 5. Explain the difference between a Python list and a NumPy array. 6. What is the purpose of the np.linspace() function?
E. Long-answer type questions. 1. Write a Python program to replace the word “fun” with “awesome” in the string “Learning Python is fun!” and print the result. 2. What is NumPy used for in Python? 3. Write the differences between list and tuple. 4. Differentiate between pop() and remove() with a suitable example. 5. Describe how NumPy arrays are created and explain the different methods available for their creation. 6. Explain the advantages of using NumPy arrays for numerical computations compared to Python lists.
F. Competency-based questions. 1. Add a student’s name, “Sushma”, at the end of the given list: Stu_list = ['Lata', 'Rama', 'Ankit', 'Vishal'] 2. Write a Python program that concatenates two strings, “Hello” and “World”, and prints the result. 3. Find the error in the following program: num1 = input("Enter first number: ") num2 = input("Enter second number: ")
480
Part B_AI Grade 10.indb 480
4/12/2025 4:06:49 PM
result = num1 + num2 print("The sum is:", result) 4. Write the output of the following program: squares = [] for i in range(1, 6): squares.append(i * i) print('The squares are:', squares) 5. Aryan and Meera collected daily temperatures of their city for a month. How can they use NumPy arrays to store the data and find the average, highest, and lowest temperatures?
6. Riya wants to process image data using NumPy. How can she use NumPy arrays to store and manipulate the image efficiently?
Unit Reflection
Part B_AI Grade 10.indb 481
481
4/12/2025 4:06:49 PM
Assertion Reasoning Questions Unit 1 1.
Assertion (A): We often need to make decisions for various situations in life.
Reason (R): Decision-making is fundamental to solving life’s complexities.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
2.
Assertion (A): A fully automatic washing machine functions through automation, not AI.
Reason (R): A fully automatic washing machine does not learn or adapt based on past washes but performs tasks based on pre-set instructions.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
3.
Assertion (A): A smart home security system makes use of computer vision.
Reason (R): In medical imaging, computer vision aids in diagnostics by analysing images from X-rays, MRIs, and CT scans.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is NOT the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
4. Assertion (A): The Moral Machine is an online platform developed by researchers at the Massachusetts Institute of Technology (MIT). Reason (R): The Moral Machine presents users with scenarios where they must make decisions about how selfdriving cars should prioritise lives in various hypothetical crash situations.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
5.
Assertion (A): Most virtual assistants have traditionally been given female voices.
Reason (R): AI bias makes sure that AI tools and technologies are made available for people and businesses across various fields.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
482
Part B_AI Grade 10.indb 482
4/12/2025 4:06:50 PM
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
Unit 2 6. Assertion (A): When we gather data from various sources, we need to explore the data to clean it up and make it useful. Reason (R): Data exploration helps us understand the data and determine if it is suitable for training AI algorithms.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
7. Assertion (A): Sustainable Development Goals, which are often referred to as ‘Global Goals’, are a set of 17 goals adopted by the United Nations General Assembly in September 2015.
Reason (R): Data acquisition is the first phase of the AI project cycle.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
8. Assertion (A): Web Scraping are tools that enable different software applications to communicate and exchange data seamlessly.
Reason (R): As data is crucial for AI systems, data must be accurate to get correct output from AI system.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
9. Assertion (A): AI modelling involves creating algorithms (models) that learn from data to make predictions or decisions. Reason (R): Once trained on historical data, the model can accurately predict, classify, or detect patterns in new datasets.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
10. Assertion (A): Microsoft Excel is a widely-used spreadsheet tool to effectively visualise and analyse data. Reason (R): Microsoft Excel enables users to generate various types of charts and graphs, including bar charts, line charts, pie charts, and scatter plots.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
Assertion Reasoning Questions
Part B_AI Grade 10.indb 483
483
4/12/2025 4:06:50 PM
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
Unit 3 11. Assertion (A): Jupyter Notebooks have become a must-have tool for data science. Reason (R): Jupyter Notebooks help data scientists analyse data, explore new ideas, and share their results easily.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
12. Assertion (A): The simplest method to install and use Jupyter Notebook is by using Anaconda. Reason (R): Anaconda is a free and open-source environment for writing and executing Python programs and includes numerous pre-installed packages that do not need to be installed separately.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is NOT the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
13. Assertion (A): List is an immutable data type.
Reason (R): Immutable data types are those that cannot have their values changed once declared.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
14. Assertion (A): Dynamic typing is a feature of Python where the data type of a variable is not determined until runtime. Reason (R): You can assign a variable to a value of any type, and the variable will automatically take on that type.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is NOT the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
15. Assertion (A): The output of the expression: 10 + 7 * (4 - 2) / 2 - 3**2 is 9.0.
Reason (R): Python follows the PEDMAS rule.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
484
Part B_AI Grade 10.indb 484
4/12/2025 4:06:50 PM
Unit 4 16. Assertion (A): When you write a query in a search engine, data science helps by offering autocomplete suggestions and predicting relevant content.
Reason (R): These search results are based on past searches, ensuring you find what you seek more efficiently.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
17. Assertion (A): If a model’s predicted values do not match the actual values at all, it is considered to be underfitting.
Reason (R): A model that is underfitting fails to capture the underlying patterns in the data.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
18. Assertion (A): Numpy is a commonly used package when it comes to working around numbers.
Reason (R): Numpy is usually imported under the np alias.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
19. Assertion (A): Matplotlib is open source and we can use it freely.
Reason (R): Matplotlib is a popular Python library for creating static, animated, or interactive visualisations.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
20. Assertion (A): When the standard deviation is low, it means the data points are near the mean. Reason (R): The standard deviation represents the dispersion or variance in a set of data values around its mean value.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
Assertion Reasoning Questions
Part B_AI Grade 10.indb 485
485
4/12/2025 4:06:50 PM
Unit 5 21. Assertion (A): High-resolution images, with their more tightly packed pixels, look sharper and more detailed.
Reason (R): Resolution determines the image’s clarity and detail.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
22. Assertion (A): Taking a picture of an item and locating it on the internet is a common practice today.
Reason (R): Finding items, people, and places can be highly efficient with the NLP technology.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
23. Assertion (A): Grayscale images are a type of digital image that contains varying shades of grey without any visible colour.
Reason (R): The smallest unit of a digital image is called a pixel.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
24. Assertion (A): OpenCV is a powerful library for computer vision tasks in Python. Reason (R): Splitting a colour image into its individual colour channels (Red, Green, and Blue) can be done easily using OpenCV in Python.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
25. Assertion (A): Convolution is the process of multiplying an image array element-by-element with another array called the kernel and then adding up the results. Reason (R): By changing the values in the kernel, you can achieve different results and enhance specific features of the image.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
486
Part B_AI Grade 10.indb 486
4/12/2025 4:06:50 PM
Unit 6 26. Assertion (A): Google Docs offers a feature that allows you to use NLP to create content summaries for lengthy documents, research papers, or reports. Reason (R): Sentiment analysis is an AI tool that understands and responds to voice commands or text inputs, such as questions and requests, or performs tasks for you.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
27. Assertion (A): Lemmatisation takes a longer time to execute than stemming. Reason (R): Unlike stemming, which simply cuts off prefixes or suffixes to achieve the root form, lemmatisation considers the meaning of the word.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
28. Assertion (A): Any information sent to a computer must be converted into numerical data.
Reason (R): Computers understand only numbers, typically in binary form.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
29. Assertion (A): Google Transfer is an AI-powered translation app that allows users to translate text into different languages. Reason (R): Google Translate can translate texts entered by typing, text scanned through the camera, or captured in images.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
30. Assertion (A): In data preprocessing, we retain relevant tokens and remove stopwords. Reason (R): Stopwords like “the,” “is,” and “and” are common in text but offer little value in computational analysis, allowing us to focus on more meaningful words by removing them.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
Assertion Reasoning Questions
Part B_AI Grade 10.indb 487
487
4/12/2025 4:06:50 PM
Unit 7 31. Assertion (A): Prediction is the output given by the machine.
Reason (R): Reality is the actual situation in the field at the time the prediction was made.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
32. Assertion (A): True Positive (TP) is when the value predicted by the model is positive and the actual value is also positive. Reason (R): False Positive (FP) is when the value predicted by the model is negative but the actual value is positive.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
33. Assertion (A): False Negative in the case of a forest fire can be extremely costly.
Reason (R): When no alert is given, even when there is a forest fire, it could lead to extensive forest damage.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
34. Assertion (A): False Positive in the case of mining can be extremely costly. Reason (R): If a model predicts the presence of treasure at a certain location, prompting extensive digging, only to find out it was a false alarm, it can be extremely costly.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
35. Assertion (A): Evaluation parameter recall is beneficial, especially when False Negatives are extremely costly.
Reason (R): Precision is beneficial, especially when False Positives are extremely costly.
a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A.
c. A is correct, but R is not correct.
d. A is not correct, but R is correct.
488
Part B_AI Grade 10.indb 488
4/12/2025 4:06:50 PM
Competency-Based Questions
Read the following paragraphs and answer the given questions. 1. Artificial Intelligence (AI) is rapidly transforming various sectors by automating tasks, enhancing decisionmaking, and creating new opportunities. However, this rapid advancement raises significant ethical concerns, necessitating the development of ethical frameworks. These frameworks serve as structured guidelines to ensure AI systems operate in ways that are beneficial, fair, and respectful of human rights. Key principles often included are non-maleficence (avoiding harm), accountability, transparency, justice, and respect for human rights. By adhering to these principles, developers and organisations can navigate the complex moral landscape of AI, ensuring that technological innovations contribute positively to society. i. Which of the following is NOT typically considered a key principle in AI ethical frameworks?
a.
Non-maleficence
b. Profit maximisation
c.
d. Accountability
Transparency
ii. Why are ethical frameworks essential in AI development?
a.
They accelerate technological innovation.
b. They ensure AI systems operate beneficially and respect human rights.
c.
d. They limit the scope of AI applications.
They increase the profitability of AI companies.
iii. Which principle emphasises the importance of AI systems being open and understandable?
a.
Justice
b. Non-maleficence
c.
d. Accountability
Transparency
2. Biases are inherent in everyone, regardless of efforts to remain neutral. While biases are not always negative and can sometimes be useful for effective decision-making, they pose unique challenges in the realm of AI. Machines cannot think independently; while they can possess intelligence, they do not inherently have biases. Any bias in an AI system arises from the choice made by developers while developing the algorithms. i. Why are most virtual assistants traditionally given female voices?
a.
Female voices are more technically advanced.
b. Societal stereotypes associate female voices with helpfulness and approachability.
c.
d. Female voices are more efficient for AI processing.
Male voices were not available until recently.
Competency-Based Questions
Part B_AI Grade 10.indb 489
489
4/12/2025 4:06:50 PM
ii. What bias is reflected in search engine results for salons?
a.
The majority of salons are owned by females.
c.
Search engines are not optimised for salon searches.
b. Search engines assume that most people searching for salons are female. d. Male salons are not listed in search results.
iii. What is a potential problem with AI hiring algorithms?
a.
AI hiring algorithms increase job diversity.
b. AI hiring algorithms are not used for technical roles.
c.
d. AI can continue biases from historical hiring data, favouring certain demographics.
AI hiring algorithms are always fair and unbiased.
3. Similar to how humans apply their intelligence to solve certain problems, machines can also possess intelligence. This ability of machines to mimic human intelligence is called artificial intelligence (AI). AI is a branch of computer science that deals with the study of principles, concepts, and technology for building machines that can think, act, and learn like humans. AI has become an essential part of our daily lives, making certain tasks more efficient, personalised, and entertaining. There are many amazing applications of AI that we experience in our daily life. i. Which of the following is not a function of virtual assistants?
a.
Setting reminders
c.
Driving autonomous vehicles
b. Controlling smart home devices d. Providing weather updates
ii. How do streaming services like Netflix and Spotify use AI to personalise recommendations?
a.
By analysing preferences, frequently watched or listened content, and ratings.
c.
By tracking your location.
b. By controlling the speed of your internet connection. d. None of these
iii. Which of the following is the primary role of AI in autonomous vehicles?
a.
Recommending entertainment options to the driver.
c.
Powering the vehicle’s audio system.
b. Processing sensor and camera data to navigate and make real-time decisions. d. Managing fuel efficiency by analysing driving patterns.
4. Data visualisation is the graphical representation of information and data. You can use various data visualisation techniques like charts, graphs, and maps to see and understand trends, patterns, and relationships in the data. Data visualisation enables the identification of trends, outliers, and patterns within the data. i. Which of the following is NOT a common data visualisation technique?
a.
Bar Chart b.
Line Graph
c.
Scatter Plot d.
Data Table
490
Part B_AI Grade 10.indb 490
4/12/2025 4:06:51 PM
ii. What is the primary benefit of using data visualisation in decision-making?
a.
It makes raw data more readable.
c.
It eliminates the need for data collection.
b. It adds additional data to the dataset.
d. It hides complex data from decision-makers.
iii. In which data visualisation technique are data values represented as parts of a whole?
a.
Line Graph b.
Bar Chart
c.
Scatter Plot d.
Pie Chart
5. AI modelling refers to the process of creating algorithms, known as models, that can learn from data and make predictions or decisions based on new data. The output of the modelling process is a model that can make accurate predictions, classify information, or identify patterns in new datasets once the AI models are trained using historical data. There are two main methods for building AI models: the rule-based approach and the learning-based approach. i. Which of the following is an example of a rule-based AI system?
a.
Recommendation system on streaming platforms
c.
Autonomous vehicles
b. Automated diagnostic system in healthcare d. None of these
ii. In a rule-based approach, what is the main challenge when dealing with new or unforeseen data?
a.
The model can update itself to handle new data automatically.
c.
The model cannot handle new data if specific rules for it are not predefined.
b. The model ignores the new data and uses old rules to make decisions. d. None of these.
iii. What is a key feature of a learning-based AI approach?
a.
It requires predefined rules to operate.
b. It can adapt to new and unseen patterns in data.
c.
d. It uses a set of medical rules for decision-making.
It performs well only on data it has been trained on.
6. Supervised learning is a machine learning method that uses well-labelled datasets to train models to predict outcomes and recognise patterns. In supervised machine learning, developers are very familiar with the data. In other words, the dataset is known to the developer, allowing them to label the data accurately. They provide this labelled data to the machine learning model, which then learns from it. Once the model understands the relationship between the input and output data, it becomes capable of classifying new and unseen datasets as well as predicting outcomes. There are broadly two types of supervised learning models: classification and regression. i. What is the main goal of a regression model?
a.
To predict a label representing a category.
c.
To classify objects into discrete categories.
b. To predict a continuous numerical value. d. To identify patterns in unlabelled data.
Competency-Based Questions
Part B_AI Grade 10.indb 491
491
4/12/2025 4:06:51 PM
ii. When predicting the price of a house, which of the following features could be used as input data?
a.
Colour of the house
b. Number of bedrooms
c.
d. Owner’s name
Car model in the garage
iii. Which of the following is true about classification models?
a.
They predict continuous values like house prices.
b. They do not require labelled data for training.
c.
d. None of these.
This model works on a discrete dataset.
7. Python is a high-level programming language that is easy to learn and simple to use. It comes with a lot of pre-installed features. Python stands out from other programming languages due to its simplicity and readability, making it an ideal choice for beginners. It was created by Guido van Rossum and first released in 1991. i. Which of the following is a feature of Python that makes it easy for beginners to learn?
a.
Complex syntax
b. Lack of portability
c.
d. None of these
Few keywords and simple structure
ii. What type of application can Python help you create with its built-in support?
a.
Graphical User Interface (GUI) applications
b. Operating systems
c.
d. None of these
Web browsers
iii. Which of the following statements about Python is true?
a.
Python can only run on a limited number of hardware platforms.
b. Python requires manual data type assignment for all variables.
c.
d. All of these.
Python supports dynamic data type checking.
8. A Python library is a set of modules. Modules that are linked to one another are often placed in the same package. When a module from another package is required in a program, the package can be imported and its modules used. i. Which Python package is commonly used for working with arrays and matrices?
a.
Pandas b.
NumPy
c.
Matplotlib d.
OpenCV
492
Part B_AI Grade 10.indb 492
4/12/2025 4:06:51 PM
ii. What is the primary use of the OpenCV library?
a.
Data manipulation and analysis
b. Creating static, animated, or interactive visualisations
c.
d. Sentiment analysis of text
Processing photos and videos to recognise objects, people, or handwriting
iii. Which of the following is a fundamental data structure in the Pandas library that represents a two-dimensional and tabular data structure with labelled axes?
a.
DataFrame
b. Series
c. ndarray
d.
Line2D
9. Artificial Intelligence (AI) depends on data for its effectiveness. The quality and type of data fed into AI systems determine how smart they become. We can categorise AI into three main domains based on the type of data they use: Statistical Data, Computer Vision, and Natural Language Processing (NLP). Statistical Data is the study of data to extract meaningful patterns and trends, which can help us make better choices. Data science is used in many fields and impacts our daily lives in many ways. i. How do streaming services like Netflix use statistical data to enhance user experiences?
a.
By creating static, animated, or interactive visualisations.
c.
By processing photos and videos to recognise objects.
b. By recommending new films and shows based on what users watch. d. By detecting fraud in financial transactions.
ii. What role does statistical data play in the sports industry?
a.
Enhancing performance analysis and strategy development.
c.
Detecting fraud in financial transactions.
b. Suggesting autocorrection in search engines.
d. Creating personalised playlists in music apps.
iii. How do smart wearable devices use statistical data?
a.
To create personalised playlists
c.
To recommend new films and shows
b. To track athletes’ health and fitness data in real time d. To detect fraud in financial transactions
10. Maya opened a boutique in her neighbourhood, offering unique, stylish clothing and accessories. Despite initial excitement, she faced challenges with inventory management. Popular items were often out of stock, while others remained unsold. Customers frequently requested specific styles or sizes that were unavailable. Additionally, Maya struggled to predict and stock seasonal trends, leading to missed sales opportunities. These issues resulted in customers leaving without making purchases, affecting her sales and customer retention. i. What is one of the main challenges Maya faces in her boutique?
a.
Deciding the location of her boutique
c.
Hiring staff for the boutique
b. Managing inventory effectively
d. Designing the interior of the boutique
Competency-Based Questions
Part B_AI Grade 10.indb 493
493
4/12/2025 4:06:51 PM
ii. Why do customers often leave Maya’s boutique without making a purchase?
a.
The boutique is located in a remote area
c.
Specific styles or sizes are not available
b. The prices are too high
d. The boutique is too small
iii. What is one strategy Maya could use to improve her sales and customer retention?
a.
Lowering the prices of all items
c.
Predicting and stocking up on seasonal trends
b. Moving the boutique to a different neighbourhood d. Reducing the variety of items in the boutique
11. A chatbot is a software application designed to simulate human conversation through text or voice interactions. These programs can range from simple systems that provide predefined responses to user inputs, to advanced AI-powered assistants capable of understanding context and generating human-like replies. Chatbots are widely used in customer service to handle inquiries, provide product recommendations, and assist with troubleshooting. By automating these tasks, businesses can offer 24/7 support, reduce operational costs, and enhance user engagement. i. What is the primary function of a chatbot?
a.
To perform complex data analysis
b. To simulate human conversation
c.
d. To manage database systems
To develop software applications
ii. How do advanced AI-powered chatbots differ from simple chatbots?
a.
They operate without internet connectivity
b. They provide predefined responses only
c.
d. They require manual input for every response
They understand context and generate human-like replies
iii. Which of the following is a benefit of using chatbots in customer service?
a.
Increased operational costs
b. Limited user engagement
c.
d. Reduced automation
24/7 support availability
12. A neural network is a computational model inspired by the human brain, consisting of interconnected nodes (neurons) that process and transmit information. A type of neural network particularly effective for image processing tasks is the Convolutional Neural Networks (CNNs). CNNs, also known as ConvNets, are a type of deep learning algorithms created especially for processing and analysing visual data. CNNs are excellent at identifying patterns and structures in images, which sets them apart from standard neural networks. i. What is the primary function of the convolution layer in a CNN?
a.
To serve as an entry point for raw data
b. To extract significant features from an input image
494
Part B_AI Grade 10.indb 494
4/12/2025 4:06:51 PM
c.
To reduce the spatial dimensions of the input feature maps
d. To eliminate negative values in the feature map
ii. What does the ReLU function do in a CNN?
a.
It selects the maximum value from each window of the feature map.
b. It reduces the spatial dimensions of the input feature maps.
c.
d. It serves as the entry point for raw data.
It preserves the positive value in the feature map by eliminating all negative values.
iii. Which type of pooling selects the maximum value from each window of the feature map covered by the kernel?
a.
Average Pooling b.
Max Pooling
c.
Min Pooling d.
Sum Pooling
13. In digital imaging, every pixel that constitutes an image stored on a computer has an associated pixel value. This value determines the brightness and the specific colour of the pixel. The most common format for storing these pixel values is the byte image, where each pixel’s value is represented as an 8-bit integer. This format allows each pixel to have a value ranging from 0 to 255. In this context, a pixel value of 0 typically represents no colour or black, while a value of 255 represents full colour or white. i. Why is the maximum pixel value 255 in an 8-bit system?
a.
Because it is the highest number in the decimal system.
b. Because it is the maximum value a single bit can represent.
c.
d. Because it is the standard value set by image processing software.
Because an 8-bit sequence can represent 256 different values, ranging from 0 to 255.
ii. What does a pixel value of 0 represent in a grayscale image?
a.
White b.
Black
c.
Gray d.
Red
ii. How are the shades of grey achieved in a grayscale image?
a.
By combining different intensities of red, green, and blue.
b. By using only the red colour.
c.
d. By using only the blue colour.
By using only the green colour.
14. NLP enables humans to interact with computers more naturally, using spoken or written language rather than highly developed programming languages. NLP involves a variety of algorithms that process and analyse large amounts of natural language data from users’ interactions, including text and speech. Human language operates according to specific rules. Within a sentence, we find nouns, verbs, adverbs, and adjectives—all essential for effective communication. These rules establish the structure of a language, a concept known as syntax, which involves the grammatical arrangement of words in a sentence. Understanding this structure allows us to interpret the meaning of a message. i. In the sentence “The cat sat on the mat,” what part of speech is the word “sat”?
a.
Noun b.
Adjective
c.
Verb d.
Adverb
Competency-Based Questions
Part B_AI Grade 10.indb 495
495
4/12/2025 4:06:51 PM
ii. What does the word “bark” mean in the sentence “The dogs bark was loud”?
a.
The outer covering of a tree
b. A sound made by a dog
c.
d. A command
A type of boat
iii. In the sentence “She quickly ran to the store,” what part of speech is the word “quickly”?
a.
Noun b.
Adjective
c.
Verb d.
Adverb
15. Text normalisation is a crucial step in NLP that involves cleaning and standardising text data. This process ensures that the text is in a consistent format, making it easier for machines to process and understand. The steps of text normalisation are applied to a corpus. The term used for the whole textual data from all the documents is known as a ‘corpus’. i. What is the purpose of sentence segmentation in text processing?
a.
To translate text into different languages.
b. To break down a large text into individual sentences.
c.
d. To detect spelling errors in a text.
To count the number of words in a text.
ii. What is the main goal of tokenisation in natural language processing?
a.
To remove all punctuation from the text.
b. To translate text into different languages.
c.
d. To divide each sentence into individual elements like words, numbers, and special characters.
To count the number of sentences in a text.
iii. Why are stopwords often removed during data preprocessing?
a.
They are always misspelled.
b. They are too difficult to process.
c.
d. They are always special characters.
They do not provide substantial value to the analysis.
16. In the evaluation stage of the AI project cycle, we test all the models to see which one works best and gives the most reliable results. We try different ways to test our models to ensure they are accurate and efficient before deciding which one to use in the real world. To understand how well our model works, we compare its predictions with the actual scenario in the area where the prediction model has been deployed. So, we have two conditions to consider: prediction and reality. i. What does a True Positive (TP) indicate in a medical diagnosis model for detecting a disease?
a.
The model incorrectly identifies a healthy patient as having the disease.
c.
The model incorrectly identifies a patient with the disease as healthy.
b. The model correctly identifies a patient with the disease as having the disease. d. The model correctly identifies a healthy patient as healthy.
496
Part B_AI Grade 10.indb 496
4/12/2025 4:06:51 PM
ii. In the context of an email spam filter, if the filter fails to mark a spam email as spam, what is this situation called?
a.
True Positive b.
True Negative
c.
False Positive d.
False Negative
iii. For a machine learning model predicting fraudulent transactions, if the model correctly predicts a non-fraudulent transaction, what is this called?
a.
True Positive b.
True Negative
c.
False Positive d.
False Negative
17. There are various evaluation methods used to assess the efficiency of a predictive model. Evaluation methods help in determining how effectively a model can generate correct predictions or classifications on previously unknown data. There are various evaluation techniques that allow us to assess the effectiveness of predictive models and make informed decisions based on the results. Some of these evaluation methods are accuracy, precision, recall, and F1 score. i. In which scenario is it more important to prioritise recall over precision?
a.
Predicting spam emails
b.
Detecting forest fires
c.
Predicting treasure locations
d.
Filtering advertisements
ii. What does a model with high precision aim to minimise?
a.
False negatives b.
True positives
c.
True negatives d.
False positives
iii. Which metric should be maximised if you want to limit False Negatives in a model?
a.
Precision b.
Recall
c.
Accuracy d.
F1-score
Competency-Based Questions
Part B_AI Grade 10.indb 497
497
4/12/2025 4:06:51 PM
Part C Practical Work
Part B_AI Grade 10.indb 498
4/12/2025 4:06:51 PM
List of Practicals Python Basics 1. Create a Python program to calculate simple interest. 2. Create a Python program to check whether a string is a palindrome. 3. Create a Python program to convert celsius to fahrenheit. 4. Create a Python program to find the factorial of a number. 5. Create a Python program to convert kilometres to miles. 6. Create a Python program to print the fibonacci series up to n terms. 7. Generate the following pattern using a Python program. Take the number of rows as an input from the user. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8. Create a Python program to count vowels in a string. 9. Create a Python program to check if a number is prime. 10. Create a Python program to find the sum of digits of a number. 11. Create a Python program to generate random numbers. Python Strings 12. Create a Python program to count the number of vowels in a string. 13. Create a Python program to convert a string to title case. 14. Create a Python program to count words in a string. 15. Create a Python program to remove punctuation from a string. 16. Create a Python program to replace a substring in a string. 17. Create a Python program to convert a string into a list of characters. 18. Create a Python program to find the frequency of each character in a string. 19. Create a Python program to remove whitespace from a string. Python Lists 20. Create a Python program to find the largest number in a list. 21. Create a Python program to reverse a list. 22. Create a Python program to find the second-smallest element in a list. 23. Create a Python program to count occurrences of an element in a list. 24. Create a Python program to remove duplicates from a list.
List of Practicals
Part B_AI Grade 10.indb 499
499
4/12/2025 4:06:52 PM
25. Program to swap the numbers divisible by 3 in the following list: [9, 18, 27, 5, 6, 30, 15] 26. Create a Python program to merge two lists without duplicates. 27. Create a Python program to multiply all elements in a list. 28. Create a Python program to find the intersection of two lists. 29. Create a Python program to split a list into even and odd numbers. 30. Create a Python program to concatenate all elements of a list into a string. 31. Create a Python program to add the elements of the two lists. Python Tuples 32. Create a Python program to find the length of a tuple. 33. Create a Python program to convert a tuple into a list. 34. Create a Python program to reverse a tuple. 35. Create a Python program to check if an element exists in a tuple. 36. Create a Python program to find the index of an element in a tuple. 37. Create a Python program to remove an element from a tuple. (Tuples are immutable, so you must first convert them to a list.) 38. Create a Python program to find the maximum and minimum elements in a tuple. 39. Create a Python program to concatenate two tuples. 40. Create a Python program to count occurrences of an element in a tuple. 41. Create a Python program to find the second largest number in a list. 42. Create a Python program to check if two strings are anagrams. 43. Create a Python program to convert a list of strings to uppercase. 44. Create a Python program to sort a list of tuples. 45. Create a Python program to calculate the sum of even numbers in a list. Python Programs for Data Science 46. Create a Python program to create a dataframe of employee details: name, age, and department. 47. Create a Python program to add a new column in a dataframe. 48. The following is a list that contains the test scores of 10 students in a class test. Create a Python program to calculate the mean, median, and standard deviation. [78, 85, 90, 95, 88, 76, 89, 92, 84, 77] 49. Suppose you have the following sales data: Product
Sales
Region
B
520
South
A C
D
450
700 350
North East
West
500
Part B_AI Grade 10.indb 500
4/12/2025 4:06:52 PM
Condition: Sales > 500 Create a Python program to filter rows in a dataframe based on the given condition. 50. Consider the following employee data: Name
Department
Salary
Shalini Ahuja
IT
35000
Aman Jain
Charu Mittal Dev Sharma
HR
HR
25000 22500
IT
37200
Create a Python program to group data by the Department column and calculate the average salary. 51. Create a Python program to create a bar plot using Matplotlib and Pandas for the following sample data: ‘Region’: [‘North’, ‘South’, ‘East’, ‘West’] ‘Products Sold’: [100, 150, 200, 120] 52. Consider the following dataframes: Dataframe 1: Employee Details Emp_ID
Name
0
101
Aman Jain
1
102
Shalini Ahuja
2
103
Charu Mittal
3
104
Dev Sharma
Dataframe 2: Salary Details Emp_ID
Salary
0
101
25000
1
102
35000
2
103
22500
3
104
37200
Create a Python program to merge the two dataframes. 53. Create a Python program to create a pie chart using Pandas and Matplotlib for the following dataset: ‘Product’: [‘A’, ‘B’, ‘C’, ‘D’] ‘Market Share (%)’: [30, 25, 20, 25] 54. Create a Python program to calculate the mean, median, and mode for the given data: 100, 102, 104, 98, 105, 99, 100, 101, 97, 103 55. Create a Python program to display a line chart from (2,5) to (9,10). 56. Create a Python program to display a scatter chart for the following points: (2,5), (9,10), (8,3), (5,7), (6,18). 57. Create a Python program to read the CSV file saved in your system and display 10 rows. 58. Create a Python program to read the CSV file saved in your system and display its information.
List of Practicals
Part B_AI Grade 10.indb 501
501
4/12/2025 4:06:52 PM
Python Programs for Computer Vision 59. Create a Python program to load and display an image using OpenCV. 60. Create a Python program to convert an image to grayscale. 61. Create a Python program to resize an image using OpenCV. 62. Create a Python program to add text to an image. 63. Create a Python program to read an image and identify its shape. 64. Do the following tasks in OpenCV: a. Load an image and give the title of the image. b. Change the image to grayscale. c. Print the shape of the image. d. Display the maximum and minimum pixels of the image. e. Crop the image. f.
Save the image.
Python Programs for NumPy Arrays 65. Create a one-dimensional NumPy array from a Python list containing the elements [1, 2, 3, 4, 5]. 66. Cenerate a NumPy array with values ranging from 0 to 9. 67. Create a NumPy array of 5 values evenly spaced between 0 and 1. 68. Create a 2 × 3 NumPy array filled with zeros and a 3 × 2 array filled with ones. 69. Given a one-dimensional NumPy array with 6 elements. Create a Python program to reshape it into a 2 × 3 twodimensional array. After reshaping it, obtain its transpose. 70. Given two NumPy arrays, array1 = np.array([1, 2, 3]) and array2 = np.array([4, 5, 6]). Perform element-wise addition and multiplication on these. 71. Create a Python program to multiply each element of a NumPy array array1 = np.array([1, 2, 3]) by a scalar value of 2. 72. For a NumPy array array = np.array([1, 2, 3, 4, 5]), compute the sum, mean, and standard deviation of its elements.
502
Practical Work.indd 502
4/15/2025 12:22:06 PM
Viva-Voce Questions 1. Define artificial intelligence. Ans. AI can be defined as a branch of computer science concerned with creating intelligent machines that can learn from data, solve problems, and make decisions. 2. What is machine learning? Ans. Machine learning is a subset of AI that enables machines to improve at a task. It enables a computer system to learn from experiences using the provided data and make accurate algorithms for predictions or decisions. 3. Define deep learning. Ans. Deep learning is a subset of machine learning in which a machine is trained with vast amounts of data. It is an AI function that mimics the working of the human brain, processing information for tasks, and decision-making. 4. Name the three domains of AI. Ans. The three main domains of AI are Data Science, Computer Vision, and Natural Language Processing (NLP). 5. Define data and statistical data. Ans. Data is a collection of raw facts that can be transformed into useful information. It can be in the form of text, images, audio, or video. Statistical data refers to the quantitative or qualitative information collected and analysed to understand patterns, relationships, and trends within a dataset. 6. Define computer vision. Ans. Computer Vision is another important domain of AI which uses cameras to see and understand visual information. 7. Expand the term NLP and explain it. Ans. NLP stands for Natural Language Processing. It is a domain of AI that enables computers to understand human language and generate appropriate responses when we interact with them. 8. What do you mean by data privacy? Ans. The appropriate management, collection, storage, and sharing of individual information is referred to as data privacy. 9. How does a machine become artificially intelligent? Ans. A machine becomes intelligent by training with data and algorithms. AI machines keep updating their knowledge to optimise their output. 10. Define the role of bioethics in AI. Ans. Bioethics in AI focuses on ensuring that artificial intelligence technologies are developed and used in ways that respect human dignity, promote fairness, and prevent harm. It addresses concerns like privacy, bias, and the impact of AI decisions on individuals and society. 11. Name the six stages of the AI project cycle. Ans. The six stages of the AI project cycle are: problem scoping, data acquisition, data exploration, modelling, evaluation, and deployment.
Viva-Voce Questions
Part B_AI Grade 10.indb 503
503
4/12/2025 4:06:52 PM
12. Define problem scoping. Ans. This is the initial stage that helps us understand the problems that need to be addressed and defines the goals to be achieved, with the help of an AI system. Identifying such a problem and having a vision to solve it is what problem scoping is about. 13. Define data acquisition. Ans. The process of collecting accurate and reliable data from various sources is called data acquisition. 14. What is data exploration? Ans. Data exploration is the process of examining data to understand its characteristics before starting its analysis. It involves looking at the data in detail to understand what insights it can provide. 15. What are no-code AI tools? Ans. No-code AI tools are platforms that allow users to build and deploy AI applications without writing code, using visual interfaces like drag-and-drop. For example, lobe.ai and Orange data mining tool. 16. Differentiate between smart bot and script bot. Ans. Script bots operate based on predefined scripts and have limited adaptability, whereas smart bots utilise AI to learn from interactions and handle complex tasks. 17. What is data visualisation? Ans. Data visualisation is the graphical representation of information and data. You can use various data visualisation techniques like charts, graphs, and maps to see and understand trends, patterns, and relationships in the data. 18. What do you understand about the AI modelling phase of the AI project cycle? Ans. AI modelling refers to the process of creating algorithms, known as models, that can learn from data and make predictions or decisions based on new data. 19. Define the rule-based approach. Ans. Rule-based AI, also known as expert systems, operates on a set of pre-defined rules created by developers. The machine is programmed with these rules and performs tasks according to the defined guidelines. 20. Define the learning-based approach. Ans. Learning-based AI empowers systems to learn patterns and make decisions from data without defining rules. As no predefined rules are framed, these approaches use algorithms that learn from data iteratively to improve their performance on a task. 21. Define supervised learning. Ans. Supervised learning is a machine learning method that uses well-labelled datasets to train models to predict outcomes and recognise patterns. In supervised machine learning, the dataset is known to the developer, which allows them to label the data accurately. 22. Define neural networks. Ans. A neural network can be thought of as a smart system that can learn to perform a task by looking at examples. It mimics how the human brain works, using neurons connected to form a network. 23. What is a virtual environment in Python? Ans. A virtual environment is a tool that allows you to have different dependencies and libraries for each project, preventing conflicts.
504
Part B_AI Grade 10.indb 504
4/12/2025 4:06:52 PM
24. Define syntax errors. Ans. Syntax errors are mistakes that happen when we don’t write our code correctly, such as using incorrect function names or missing quotes and brackets. 25. What are variables in Python? Ans. A variable is a reference name given to a location in the computer’s memory. 26. Give two rules for naming a variable. Ans. Two rules for naming a variable are: a. A variable name starts with a letter or the underscore character. It cannot start with a number or any special character like $, (, *, %, etc. b. A variable name can only contain alpha-numeric characters. 27. What are control statements in Python? Ans. The control statements in Python are used to control the flow of execution of the program. 28. What is indentation and how is this helpful in Python programs? Ans. Indentation refers to a fixed number of spaces (or sometimes tabs) added at the beginning of each line of code. Indentation helps Python understand which lines of code belong together and should be executed as a single unit. 29. How do you use modules and packages in Python? Ans. A Python library is a set of modules. Modules that are linked to one another are often placed in the same package. When a module from another package is required in a program, the package can be imported and its modules used. 30. Define NumPy. Ans. The term “NumPy” is an abbreviation for “Numerical Python”. NumPy is a commonly used package for working with numbers. It provides support for arrays and matrices, along with a collection of mathematical functions to operate on them efficiently. It has built-in mathematical tools that make calculations easy. 31. Define OpenCV. Ans. OpenCV stands for Open Source Computer Vision Library. It plays an essential role in real-time operation, which is important in modern systems. It allows you to process photos and videos in order to recognise objects, people, or even human handwriting. OpenCV supports several different programming languages, including Python, C++, and Java. 32. What would be the full form of NLTK? Ans. NLTK stands for Natural Language Toolkit. This toolkit allows for sentiment analysis of a given text, which is useful for applications like social media monitoring and product review analysis. 33. Define the function of the Pandas library. Ans. Pandas makes data processing, data manipulation, and data cleaning easier. 34. For what purpose do we use the Matplotlib library of Python? Ans. Matplotlib was created by John D. Hunter. It is a popular Python library for creating static, animated, or interactive visualisations. It is capable of generating visually detailed representations such as pie charts, histograms, scatter plots, bar graphs, etc.
Viva-Voce Questions
Part B_AI Grade 10.indb 505
505
4/12/2025 4:06:52 PM
35. Define Pandas. What are Pandas used for in Python? Ans. The name “Pandas” refers to “Panel Data” and “Python Data Analysis”. It is useful for handling two-dimensional data tables. It is used to work with data from Excel sheets and other databases. It makes data processing, data manipulation, and data cleaning easier. 36. What do you mean by image classification? Ans. Image classification is the process of assigning an input image a label from a predetermined list of categories. 37. What are pixels? What role do they play in image classification? Ans. The smallest unit of a digital image is called a “picture element,” which is what the name “pixel” refers to. A digital photograph is made up of thousands or even millions of these pixels. Pixels are usually square but occasionally round and are carefully organised in a two-dimensional grid to form the entire image. 38. Define resolution in the context of images. Ans. Resolution refers to the total number of pixels contained within an image. Resolution determines the image’s clarity and detail. 39. What are chatbots? How do they work? Ans. Chatbots are computer programs designed to imitate human-like conversation using text or speech interfaces. NLP is essential for chatbots to comprehend the user’s input, generate appropriate responses, and engage in meaningful conversations. 40. Define the following terms: a. Text Normalisation b. Sentence Segmentation c. Tokenisation d. Stemming e. Lemmatisation Ans. a. Text normalisation is a crucial step in NLP that involves cleaning and standardising text data. This process ensures that the text is in a consistent format, making it easier for machines to process and understand. b. In sentence segmentation, we break down a large text (corpus) into individual sentences. Each sentence is then treated as a separate piece of data. c. After segmenting the text into sentences, the next step is to divide each sentence into tokens. Tokens refer to individual elements of the sentence, such as words, numbers, and special characters. All these elements are handled independently throughout the tokenisation process, so each one becomes a different token. d. In NLP, stemming is a method for refining words to their most basic or root form. Words are stripped of their prefixes and suffixes in order to create a fundamental form called the root word. e. Lemmatisation is a NLP technique that involves reducing words to their base or root form. Unlike stemming, which simply cuts off prefixes or suffixes to achieve the root form, lemmatisation considers the meaning of the word.
506
Part B_AI Grade 10.indb 506
4/12/2025 4:06:52 PM
Part D Project Work
Projects
Part B_AI Grade 10.indb 507
507
4/12/2025 4:06:52 PM
Projects Project 1: Establish the relationship between various data features that are used to train an AI model using an animated tool called LOOPY. Follow the given steps: 1. Visit this link: https://ncase.me/loopy/ 2. The following window opens. Click on the OR, MAKE A MODEL FROM SCRATCH button.
508
Part B_AI Grade 10.indb 508
4/12/2025 4:06:53 PM
You will be directed to a web page as shown.
Now, use the various tools provided by the online platform LOOPY to create a system map representing the relationship between various data features essential for predicting the quantity of food dishes to be prepared for everyday consumption in restaurant buffets. [Hint: Various factors or data features that affect the quantity of food to be prepared for the next day consumption in buffets can include the total number of customers, the price of dish, and the quantity of dish prepared per day, etc.]. Project 2: Create a student marks prediction model.
Projects
Part B_AI Grade 10.indb 509
509
4/12/2025 4:06:53 PM
Develop a machine learning model that predicts student marks based on historical data, related to their study habits, attendance, past performances, etc. You will go through all the stages of the AI project cycle, from problem scoping to deployment, and analyse the model’s effectiveness.
Problem Scoping
Data Acquisition
Data Exploration
Modelling
Evaluation
Deployment
Project Stages: 1. Problem Scoping: • Clearly articulate the issue to be addressed, gather evidence to confirm its existence, and understand its context to set specific objectives for the AI project. • Recognise all individuals or groups affected by the problem and who will benefit from the AI solution, ensuring their perspectives are considered. 2. Data Acquisition: •
Collect historical student performance data (e.g., grades, study hours, class attendance).
•
Collect Teacher feedback (categorical: Excellent, Good, Average, Poor)
3. Data Exploration: •
Clean and prepare the dataset (handle missing data, outliers, and correct data types).
•
Visualise key relationships between variables using plots (e.g., correlation between study hours and marks).
4. Modelling: •
Split the data into training and testing sets.
•
Train the model on the training set and test it on the testing set.
5. Evaluation: Analyse model performance: •
Consider whether the model is underfitting or overfitting based on the error rates.
• Assess the performance of the model using a confusion matrix to visualise the performance of the model by summarising the counts of correct and incorrect predictions.
510
Part B_AI Grade 10.indb 510
4/12/2025 4:06:53 PM
•
Then, evaluate the performance of the model using metrics like accuracy, precision, recall, and F1 score.
• Provide recommendations for improving the model (e.g., using additional data or more complex algorithms). Students can also develop a user-friendly interface or web-based application where teachers or students can input relevant data and predict marks. 6. Deployment: • Transition the trained AI model from a development environment to a live production setting, ensuring it operates effectively within the existing system or platform. • Continuously monitor the model’s outputs to ensure consistent performance, promptly address any issues, and update the model as necessary to adapt to new data or changing conditions.
Projects
Part B_AI Grade 10.indb 511
511
4/12/2025 4:06:53 PM
Sample Paper 1 Artificial Intelligence (Subject Code - 417) Class X (Session 2024–2025) Max. Time: 2 Hours
Max. Marks: 50
General Instructions: 1.
Please read the instructions carefully.
3.
Section A has Objective type questions, whereas Section B contains Subjective type questions.
2.
This Question Paper consists of 21 questions in two sections: Section A & Section B.
4. Out of the given (5 + 16 =) 21 questions, a candidate has to answer (5 + 10 =) 15 questions in the allotted (maximum) time of 2 hours. 5. 6.
All questions of a particular section must be attempted in the correct order. SECTION A - OBJECTIVE-TYPE QUESTIONS (24 MARKS): i. This section has 05 questions.
ii. Marks allotted are mentioned against each question/part.
iii. There is no negative marking. 7.
iv. Do as per the instructions given.
SECTION B – SUBJECTIVE-TYPE QUESTIONS (26 MARKS): i. This section has 16 questions.
ii. A candidate has to do 10 questions.
iii. Do as per the instructions given.
iv. Marks allotted are mentioned against each question/part.
SECTION A: OBJECTIVE-TYPE QUESTIONS Q1. Answer any 4 out of the given 6 questions on Employability Skills.
(1 x 4 = 4 marks)
1. Ankita always organises her tasks for the day, prioritises them based on importance, and ensures she completes them efficiently, maintaining a balance between work and personal life. Which self-management skill is clearly visible in the given statement? 2. When you bring the mouse over a file in File Explorer, it will show the details of that file. This is known as a. Drag and drop c. Hover
b. Double-click d. Single-click
3. Assertion (A): Entrepreneurs play a crucial role in driving economic growth by creating new businesses and generating employment opportunities. Reason (R): Entrepreneurs primarily focus on sustaining existing market trends rather than innovating or taking risks in order to develop new products or services.
512
Part B_AI Grade 10.indb 512
4/12/2025 4:06:54 PM
a. Both A and R are correct, and R is the correct explanation of A b. Both A and R are correct, and R is the correct explanation of A c. A is correct, but R is not correct d. A is not correct, but R is correct 4.
a. Encoding
is a process by which a receiver interprets and understands a message sent by a sender.
c. Feedback
b. Transmitting d. Decoding
5. In a classroom with poor lighting, students struggle to read the teacher’s notes on the board and have difficulty seeing the teacher’s facial expressions. This issue is an example of a. Linguistic barrier
c. Interpersonal barrier
b. Physical barrier
d. Cultural barrier
6. A company implements policies to ensure equal pay for equal work, regardless of gender, and it provides opportunities for women in leadership positions. Which SDG can you relate this statement to? a. SDG 5: Gender Equality
b. SDG 8: Decent Work and Economic Growth c. SDG 3: Good Health and Well-being d. SDG 4: Quality Education
Q2. Answer any 5 out of the given 6 questions.
(1 x 5 = 5 marks)
1. Assertion (A): Splitting a dataset into training and testing sets is essential for evaluating the performance of a machine learning model. Reason (R): Training the model on the entire dataset ensures it learns all possible patterns, leading to better generalisation on unseen data. a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A. c. A is correct, but R is not correct. d. A is not correct, but R is correct. 2. An international tech organisation discovered that an algorithm used in a widely used app consistently favoured certain groups over others, leading to unequal outcomes for underrepresented users. They decided to intervene and address the issue. Which terminology suits best for this action? a. AI Ethics
c. AI Access
b. Data Privacy d. AI Bias
3. Statement 1: Filters in image editing software modify pixel values to enhance the appearance of images. Statement 2: Advanced image editing techniques only involve cropping and resizing images. a. Both Statement 1 and Statement 2 are correct
b. Both Statement 1 and Statement 2 are incorrect
c. Statement 1 is correct but Statement 2 is incorrect d. Statement 2 is correct but Statement 1 is incorrect
Sample Paper 1
Part B_AI Grade 10.indb 513
513
4/12/2025 4:06:54 PM
4. Look at the graph and fill in the blank: Values
Time The above model is said to be as the model’s performance is trying to cover all the input data samples even if they are out of alignment with the actual values. 5.
a. jpg
is a simple file format that stores data separated by commas. b. doc
c. csv
d. png
6. A corpus contains 10 documents in which the word ‘health’ appears in 8 of them. Identify the term in which we can categorise the word ‘health’. a. Stop word
b. Frequent word
c. Rare word
d. None of these
Q3. Answer any 5 out of the given 6 questions. 1. Read the examples given below— a. Using a self-driving car
c. Automatic washing machine
Choose the options that are not AI: a. i and ii
c. iii and iv 2.
(1 x 5 = 5 marks) b. Remote-controlled AC using IoT
d. Temperature-controlled coffee maker b. ii and iii
d. ii, iii and iv mimics how the human brain works, using neurons connected to form a network.
3. Which of the following is an application of computer vision? a. Facial recognition for security systems c. Predictive text in messaging apps 4.
b. Text-to-speech conversion
d. Voice-controlled virtual assistant
is a collection of raw facts that can be transformed into useful information.
5. Identify the method used for building AI models: Once the model has learnt from the data during training, it can be tested to predict the output using new and unseen data. The major feature of this approach is that it updates itself with changes in the data, allowing it to improve its performance over time and adapt to new and unseen patterns. 6. is defined as the percentage of true positive predictions to the total number of positive predictions. a. Accuracy c. Recall
b. Precision d. F1 Score
514
Part B_AI Grade 10.indb 514
4/12/2025 4:06:54 PM
Q4. Answer any 5 out of the given 6 questions.
(1 x 5 = 5 marks)
1. Srishti learnt about AI terminologies but was not able to recall the term that is used to refer to machines that perform tasks with vast amounts of data using neural networks. Help her with the correct term. 2. Statement 1: A False Positive (FP) occurs when the model predicts a positive value, but the actual value is negative. Statement 2: A True Negative (TN) occurs when the model predicts a negative value, and the actual value is also negative. a. Both Statement 1 and Statement 2 are correct.
b. Both Statement 1 and Statement 2 are incorrect. c. Statement 1 is correct, but Statement 2 is incorrect.
d. Statement 2 is correct, but Statement 1 is incorrect. 3. Ananya has developed a model to predict house prices in various cities. She collected data on factors such as the location, number of bedrooms, square footage, and the age of the house. Her model works well, providing accurate predictions with a high recall value. Which of the statements given below is incorrect?
a. Data gathered on location, number of bedrooms, square footage, and age of the house is known as testing data. b. Data given to an AI model to evaluate its performance is testing data.
c. Training data and testing data are acquired during the data acquisition stage. d. Training data is typically larger than testing data. 4. What is the smallest unit of a digital image called? 5. Which domain of AI is primarily used for sentiment analysis in text data? a. Computer Vision
b. Natural Language Processing (NLP)
c. Robotics d. Data Statistics
6. Sneha used charts, graphs, and maps to represent information and data, which helped her identify trends, patterns, and relationships. What concept is she using? Q5. Answer any 5 out of the given 6 questions.
(1 x 5 = 5 marks)
1. Which metric is most appropriate for evaluating the performance of a machine learning model when dealing with an imbalanced dataset? a. Accuracy c. Recall
b. Precision d. F1 Score
2. What is the term used for a subset of AI that allows machines to improve their performance on a task through learning from experiences and data? 3. What is the term for the middle value in a dataset, which requires sorting the data in ascending order before calculation? a. Mean
c. Mode
Sample Paper 1
Part B_AI Grade 10.indb 515
b. Median
d. Standard Deviation
515
4/12/2025 4:06:54 PM
4. Which algorithm represents text as a collection of words, disregarding grammar and word order, and focuses on counting word frequencies to create a vocabulary for the text? a. Word2Vec
c. Bag of Words (BoW)
b. Corpus
d. Named Entity Recognition
5. What term refers to individual elements of a sentence, such as words, numbers, and special characters, which are treated independently? a. Tokens
b. Vocabularies
c. Corpus
d. Features
6. Which one of the following scenarios results in a high false negative cost?
a. A model incorrectly predicts an email as spam when it is actually not spam. b. A model failing to detect a disease in a patient who is actually sick.
c. A model predicting the stock price will go up when it actually goes down. d. A model mistakenly identifies a cat as a dog in a photo.
SECTION B: SUBJECTIVE-TYPE QUESTIONS Answer any 3 out of the given 5 questions on Employability Skills.
(2 x 3 = 6 marks)
Answer each question in 20–30 words. Q6.
List two best practices for effective communication.
Q7.
What is the importance of stress management in our daily lives?
Q8. A computer virus is a program or set of programs that interrupts a computer’s normal functioning and can infect or destroy data.
How can we protect our computer against viruses?
Q9. What are the qualities of a successful entrepreneur? Q10. Mention any two key and popular sustainable practices that help reduce environmental impact. Answer any 4 out of the given 6 questions in 20–30 words each.
(2 x 4 = 8 marks)
Q11. Mention four examples of artificially intelligent applications in our smartphones. Q12. Shivam is analysing a dataset with hundreds of features related to customer behaviour for a marketing campaign. To focus on the most significant features and streamline his analysis, which technique should he use, and what is its primary benefit? Q13. Aadya is concerned about the impact of excessive technology use on young children’s cognitive development. What are some potential drawbacks of relying too heavily on AI-driven educational tools for young kids? Q14. What is data science? Q15. Identify any two words in the following sentence that are considered stopwords and explain why they should not be removed: “Get help and support whether you’re shopping now or need help with a past purchase. Contact us at support@example.com or on our website www.example.com”
516
Part B_AI Grade 10.indb 516
4/12/2025 4:06:54 PM
Q16. Draw the confusion matrix for the following data:
•
Number of True Positive = 120
•
Number of True Negative = 85
•
Number of False Positive = 30
•
Number of False Negative = 50
Answer any 3 out of the given 5 questions in 50–80 words each.
(4 x 3 = 12 marks)
Q17. Sanya is working on a project that involves analysing and presenting data visually. She wants to understand how data visualisation can enhance her analysis. Explain how data visualisation can benefit her project and name any four tools that can assist her in creating detailed charts and graphs. Q18. Discuss two major ethical challenges associated with the integration of artificial intelligence (AI) in healthcare, and propose potential strategies to address each challenge. Q19. Identify and explain the types of the computer vision tasks in each part of the figure given below.
a.
b.
c.
d.
Q20. What are the applications of NLP? Q21. Consider the following confusion matrix: Confusion Matrix Prediction
Reality
Yes
Yes
No
No
120
30
a. Identify the total number of wrong predictions made by the model. b. Calculate precision, recall, and F1 score.
Sample Paper 1
Part B_AI Grade 10.indb 517
517
4/12/2025 4:06:54 PM
Sample Paper 2 Artificial Intelligence (Subject Code - 417) Class X (Session 2024–2025) Max. Time: 2 Hours
Max. Marks: 50
General Instructions: 1.
Please read the instructions carefully.
3.
Section A has Objective type questions, whereas Section B contains Subjective type questions.
2.
This Question Paper consists of 21 questions in two sections: Section A & Section B.
4. Out of the given (5 + 16 =) 21 questions, a candidate has to answer (5 + 10 =) 15 questions in the allotted (maximum) time of 2 hours. 5. 6.
All questions of a particular section must be attempted in the correct order. SECTION A - OBJECTIVE-TYPE QUESTIONS (24 MARKS): i. This section has 05 questions.
ii. Marks allotted are mentioned against each question/part.
iii. There is no negative marking. 7.
iv. Do as per the instructions given.
SECTION B – SUBJECTIVE-TYPE QUESTIONS (26 MARKS): i. This section has 16 questions.
ii. A candidate has to do 10 questions.
iii. Do as per the instructions given.
iv. Marks allotted are mentioned against each question/part.
SECTION A: OBJECTIVE-TYPE QUESTIONS Q1. Answer any 4 out of the given 6 questions on Employability Skills.
(1 x 4 = 4 marks)
1. Despite facing financial challenges and criticism, Ritika continued to work hard and remained focused on her startup. She stayed committed to her vision without relying on others for motivation. Eventually, her startup succeeded. Which self-management skill does Ritika display? 2. Neha is working on her computer and needs quick access to several programs she uses frequently. She notices a horizontal bar at the bottom of her desktop with shortcuts to open apps, a clock, and a notification area. Which desktop feature is Neha using to access her programs quickly? 3. Assertion (A): Vikas effectively manages his time, sets goals, and maintains a balanced life, which leads to increased productivity and happiness.
518
Part B_AI Grade 10.indb 518
4/12/2025 4:06:55 PM
Reason (R): Self-management is a critical life skill that helps individuals prioritise tasks, maintain focus, and achieve their goals while balancing personal and professional responsibilities. a. Both A and R are correct, and R is the correct explanation of A b. Both A and R are correct, and R is the correct explanation of A c. A is correct, but R is not correct d. A is not correct, but R is correct
4. Ravi believes that to become a successful entrepreneur, he needs to come up with a completely unique idea that no one has ever thought of before. He feels discouraged because he thinks all the good ideas are already taken. Which myth about entrepreneurship is Ravi believing in? a. Entrepreneurs are born, not made b. Entrepreneurship requires a completely unique idea
c. Entrepreneurs don’t face failure d. None of these 5. The process of transmitting information from one source to another through speech, writing, gestures, visuals, or symbols is called a. Coordination
c. Collaboration
b. Communication d. Computation
6. Efforts are being made to ensure that cities are safe, resilient, and sustainable by improving infrastructure, enhancing public transportation, and promoting inclusive urban planning. Which SDG can you relate this statement to? a. Sustainable cities and communities b. Good health and well-being
c. Industry, innovation, and infrastructure d. Clean water and sanitation
Q2. Answer any 5 out of the given 6 questions.
(1 x 5 = 5 marks)
1. Assertion (A): No-code AI tools enable users to perform statistical data analysis without requiring programming skills. Reason (R): Traditional coding is essential for conducting any form of statistical data analysis effectively. a. Both A and R are correct, and R is the correct explanation of A.
b. Both A and R are correct, but R is not the correct explanation of A. c. A is correct, but R is not correct. d. A is not correct, but R is correct. 2. A tech company is implementing measures to ensure that user information collected through their app is protected from unauthorised access and misuse. They are focusing on securing personal data and ensuring it is not shared without consent. Which terminology suits best for this action? a. AI Ethics c. AI Bias
Sample Paper 2
Part B_AI Grade 10.indb 519
b. Data Privacy
d. Generative AI
519
4/12/2025 4:06:55 PM
3. Statement 1: There are three types of layers in a neural network. Statement 2: The neurons in a neural network are not connected in a way that mimics the human brain. a. Both Statement 1 and Statement 2 are correct.
b. Both Statement 1 and Statement 2 are incorrect.
c. Statement 1 is correct, but Statement 2 is incorrect. d. Statement 2 is correct, but Statement 1 is incorrect.
Occurence
4. Observe the given graph and fill in the blank:
Frequent words Rare/Valuable words Value
As the frequency of words continues to drop, the value of these words 5. NLP algorithms convert the spoken content of YouTube videos into text, producing a text-based representation known as a a. Caption
c. Transcript
b. Summary d. Pixel
6. A text analysis project involves processing a large dataset where various forms of the word ‘running’ are being reduced to their base form. Unlike another technique that simply trims word endings, this technique ensures that the base form has a meaningful representation and takes more time to execute. Which NLP technique is used in this scenario? a. Stemming
c. Tokenisation
b. Lemmatisation
d. Normalisationr
Q3. Answer any 5 out of the given 6 questions.
(1 x 5 = 5 marks)
1. Read the examples given below: i. Virtual assistants predominantly use female voices due to societal stereotypes associating female voices with helpfulness. ii. Facial recognition systems have higher error rates for people with darker skin tones. iii. AI algorithms used for screening job applicants may perpetuate historical gender preferences. iv. AI-driven apps for essay writing may impact teenagers’ critical thinking skills. Choose the options that are not examples of AI bias: a. i and ii
c. Only iii
b. ii and iv d. Only iv
2. is the stage in the AI project cycle that involves gathering or collecting data to address the problem defined. a. Problem scoping c. Modelling
b. Data acquisition d. Evaluation
520
Part B_AI Grade 10.indb 520
4/12/2025 4:06:55 PM
3. Which of the following is an application of computer vision? a. Voice recognition
c. Text summarisation
b. Image classification d. Speech synthesis
4. is widely used in social media monitoring, customer review analysis, and market research to gauge public opinion and emotion towards products or brands. a. Sentiment analysis
c. Predictive analytics
b. Image classification d. Speech recognition
5. Identify the given Chatbot type: It learns from its environment and experience, building on its capabilities based on acquired knowledge. These systems can collaborate with humans, working along-side them and learning from their behaviour. . a. Rule-based chatbot
c. Retrieval-based chatbot 6. F1 score is the measure of the a. Harmonic mean
c. Geometric mean
b. AI-powered chatbot d. Scripted chatbot
between precision and recall. b. Arithmetic mean d. Median
Q4. Answer any 5 out of the given 6 questions.
(1 x 5 = 5 marks)
1. Manas learnt about AI technologies and came across a term used for videos where someone’s appearance is convincingly altered to look like someone else, but the person in the video is actually someone different. What is this technology called? a. Deepfake
c. Facial Recognition
b. Augmented Reality d. Virtual Reality
2. Statement 1: The term used when an AI model correctly identifies a positive instance is known as a True Positive. Statement 2: The term used when an AI model incorrectly classifies a negative instance as positive is known as a False Negative. a. Both Statement 1 and Statement 2 are correct.
b. Both Statement 1 and Statement 2 are incorrect. c. Statement 1 is correct but Statement 2 is incorrect.
d. Statement 2 is correct but Statement 1 is incorrect. 3. Aisha has developed a model to predict which customers are likely to cancel their subscriptions for a telecom company. She collected data on customer usage patterns, billing information, and customer service interactions. Her model is evaluated for its accuracy and performance. Which of the statements given below is incorrect?
a. Data related to customer usage patterns, billing information, and customer service interactions is known as training data.
b. Data used to evaluate the model’s performance and accuracy is known as testing data c. Training data is used to build and train the model.
d. Testing data is typically larger compared to training data. 4. What are the primary subcategories of supervised and unsupervised learning models in machine learning?
Sample Paper 2
Part B_AI Grade 10.indb 521
521
4/12/2025 4:06:55 PM
5. What is the purpose of using a scatter plot in data visualisation? a. To show the distribution of a single variable.
b. To display the relationship between two variables. c. To represent the frequency of categories in a dataset. d. To illustrate changes over time in a variable. 6. Riya developed a model to predict student performance but used a very simple model with minimal features. The model performed poorly on both the training data and new, unseen data, failing to capture the complexities of the data. Name the concept that describes this issue. Q5. Answer any 5 out of the given 6 questions.
(1 x 5 = 5 marks)
1. Raj developed a system that can understand and respond to spoken commands related to controlling smart home devices, such as adjusting the thermostat or turning on lights. Identify the domain of AI in the given scenario. a. Computer Vision
c. Natural Language Processing
b. Data Science d. Robotics
2. Write the formula used to calculate the precision of a model. 3. Which of the following measures indicates the average distance of data points from the mean in a dataset? a. Mean
c. Standard Deviation
b. Median d. Mode
4. Which AI tool uses Natural Language Processing to understand and respond to user commands for tasks such as setting alarms and checking the weather? a. Autonomous vehicles
c. Recommendation systems
b. Virtual assistants
d. Facial recognition systems
5. Which algorithms result in two things, a vocabulary of words and frequency of the words in the corpus? a. Sentence segmentation c. Bag of words
b. Tokenisation
d. Text normalisation
6. In which scenario would a high false positive cost be most concerning? a. Spam email detection
c. Predicting movie ratings
b. Online shopping recommendations d. Weather forecasting
SECTION B: SUBJECTIVE-TYPE QUESTIONS Answer any 3 out of the given 5 questions on Employability Skills.
(2 x 3 = 6 marks)
Answer each question in 20–30 words. Q6. Q7.
What are various elements of a communication cycle?
What are some effective strategies for managing stress?
Q8. The Trojan Horse was a wooden horse said to have been used by the Greeks during the Trojan War to enter the city of Troy and win the war.
What does Trojan horse mean in computer terminology?
Q9. What are the characteristics of entrepreneurs?
522
Part B_AI Grade 10.indb 522
4/12/2025 4:06:55 PM
Q10. Mention any two human activities that lead to environmental degradation. Answer any 4 out of the given 6 questions in 20–30 words each.
(2 x 4 = 8 marks)
Q11. What is machine learning? Q12. If Aman and Deepika are developing an AI model to categorise data based on predefined rules and fixed criteria, which approach should they use for building the AI model and why? Q13. Suppose you are developing a “fitness tracking application” for a school project. What types of data will your app need to collect to provide accurate fitness tracking and personalised recommendations? Q14. Define the term pixel. Q15. What are the key steps involved in text normalisation? Q16. Draw the confusion matrix for the following data
• True Positive (TP) = 85
• True Negative (TN) = 130
• False Positive (FP) = 55
• False Negative (FN) = 70
Answer any 3 out of the given 5 questions in 50–80 words each.
(4 x 3 = 12 marks)
Q17. Rohan, a class 10 student from Delhi, wants to develop an AI application to help visually impaired individuals navigate their surroundings.Which AI domains should Rohan focus on for his application?For each identified AI domain, describe how it can enhance the functionality of Rohan’s application. Q18. Rudraksh wants to learn about the AI project cycle. Explain to him the following stages of the AI project cycle: a. Problem Scoping
b. Modelling
Q19. Identify and explain the types of the learning-based approaches in the figures given below.
Dog
I think you’re a dog.
Dog What am I?
Cat
Cat Figure 1
I have no idea what you gave me, but I can tell you these two on the left are different from the two in the right.
Figure 2
Sample Paper 2
Part B_AI Grade 10.indb 523
523
4/12/2025 4:06:56 PM
Q20. Discuss the importance of ethical frameworks in Artificial Intelligence (AI), particularly focusing on the role of bioethics in healthcare. Provide examples of ethical challenges in AI applications within the healthcare industry and suggest how bioethical principles can address these challenges. Q21. Consider the following confusion matrix: Confusion Matrix Prediction
Yes No
Reality Yes
No
5
0
45
50
a. Identify the total number of wrong predictions made by the model. b. Calculate precision, recall, and F1 score.
524
Part B_AI Grade 10.indb 524
4/12/2025 4:06:56 PM
Part A: Employability Skills Unit 1: Communication Skills-II Answer Key A. 1.
b
2.
9.
b
10. c
B. 1. 5. C. 1.
b
3.
c
4.
misunderstanding/miscommunication Visual
6.
linking
7.
2.
c
5.
c
interpersonal
Coherence
8.
3.
6. a
7. a
receiver
4.
8. a
Negative
interpersonal
False. All regions have their own languages and not knowing them may create misunderstandings.
2.
True
3.
True
4.
False. Feedback is an important component of effective two-way communication.
5.
True
6. False. Non-verbal communication refers to the ideas and information that are conveyed by using body language, posture, gestures, facial expressions, and so on.
7.
False. We use ’the’ before the names of newspapers.
8.
True
D. 1. An organisational barrier refers to any obstacle or challenge within a company or institution that affects the effective
flow of communication among individuals, teams, or departments. Hierarchical structures, ineffective communication
channels, lack of transparency, conflicting objectives, and varying priorities are few causes of this barrier. Organisational barrier can make it difficult for information to be shared timely and accurately, which can result in misunderstandings, decreased efficiency, and general communication failures within the company.
Example: In a large organisation, there is no standardised method for employees to communicate important updates or information. Some teams rely on email, others on instant messaging, and some prefer in-person meetings. The lack of
clear communication channels can result in employees missing critical information, duplication of efforts, and confusion about where to find the latest updates. 2.
Encoding Encoding is the process of converting the sender’s
Decoding is the process by which the receiver
others.
sender.
thoughts and ideas into a form that can be understood by
3.
Decoding interprets and understands the message sent by the
Written communication is communicating using written words.
a. It is a formal and structured mode of communication that uses written language to record and transmit information. It involves creating messages that other people can read, using symbols like letters and numbers.
b. For official purposes, written communication is frequently utilised since it leaves a permanent record that may be consulted and evaluated in the future. It is also useful for legal purposes, historical records, and documentation.
Answer Key
Part B_AI Grade 10.indb 525
525
4/12/2025 4:06:56 PM
4.
Every sentence can be broken down into two essential parts: a subject and a predicate.
A subject in a sentence is a word or a group of words that tells the name of a person or thing that the sentence is about. A predicate in a sentence is the part of a sentence that tells what the subject is doing or what the subject is.
Example:
He
enjoys going to the cinema.
Subject
Predicate
5. The process of exchanging ideas, opinions, knowledge, and facts in order to ensure that the message is received and understood with clarity and purpose is known as effective communication. Effective communication means we know what we are trying to communicate and the audience/receiver is getting exactly what we are trying to say. E. 1.
Factors contributing to communication barriers are:
a. Lack of Clarity: Unclear or incomplete messages can lead to confusion, misunderstanding, and misinterpretation. b. Lack of Feedback: Effective communication includes continuous feedback and without the feedback, it becomes difficult for the sender to make necessary adjustments.
c. Too Much Information: Providing excess or too much information overwhelms the receiver and makes it challenging for them to process the main points.
d. Distractions: Any type of noise or interruptions can divert the attention of the receiver, which can lead to incomplete communication, where the receiver may not have perceived it correctly.
e. Cultural Differences: What may be considered appropriate and respectful communication behaviour in one culture might be seen as disrespectful or confusing in another culture.
f. Power Dynamics: Unequal power relationships can hamper the communication within any organisation. Subordinates might hesitate to express their opinions to their seniors.
g. Perceptual Differences: People interpret messages based on their individual perspectives or experiences; this can lead to interpreting the same message in a different way.
h. Technological Issues: Poor internet connectivity, software errors, or not understanding the communication tools can disrupt the flow of information.
2.
Specific and Non-specific feedback can be differentiated in the following way: Specific Feedback
Non-specific Feedback
It gives elaborate information on particular aspects of
It talks about the entire performance while giving a
suggestions to the receiver.
specific thing/feature.
communication or performance and offers substantial It is advantageous because it provides the receiver directly
with valuable points to consider and enables them to focus on the areas that need improvement.
Example – ’I like the way you described your uncle’s character. it makes me feel like I know him too.’
general overview. It does not particularly pinpoint a
It lacks the necessary details to guide someone on how to enhance their performance or work. Example – ’I like your story. It is good.’
3. Non-verbal communication refers to the messages and information that are delivered without using words or spoken
language and involves expressing thoughts, ideas, and sentiments through gestures, facial expressions, and body language.
For Example, using the thumbs-up sign to indicate that you have understood.
The advantages of non-verbal communication are:
a. Making Messages Clearer: It adds extra information to what you’re saying with words. b. Quick Communication: It can be faster than talking. For example, you can signal ’stop’ with your hand without saying a word, and people will understand.
c.
Building Trust: It helps build trust and connections with others.
526
Part B_AI Grade 10.indb 526
4/12/2025 4:06:56 PM
d. Conveys Emotions and Feelings: Facial expressions, body language, and tone of voice can convey happiness, sadness, anger, fear, and other emotions.
e.
Support Verbal Communication: Nonverbal cues can support, enhance, and strengthen verbal information.
f.
Helpful for Specially Abled People: They can use gestures to convey their ideas and thoughts.
4. A phrase is a collection of words used to express a single idea. They do not have both subject and predicate, so they do
not express a complete thought on their own. They add depth, detail, and nuances to the sentences, making them crucial components. For better writing, it is crucial to understand phrases. They enrich and elaborate sentences, enhancing their vividness and interest.
a. Noun Phrase: A group of words centred around a noun, which can include articles, adjectives, and other modifiers.
Example – Those new pink shoes are mine.
b. Verb Phrase: A group of words centred around a verb, often containing auxiliary verbs and other elements.
Example – They were playing football.
c.
Adjective Phrase: A group of words centred around an adjective, providing additional information about a noun.
Example – He bought a car with a sleek, modern design. d. Adverb Phrase: A group of words centred around an adverb, providing more details about a verb, adjective, or adverb. Example – She sings melodiously. 5. The process of exchanging ideas, opinions, knowledge, and facts in order to ensure that the message is received and understood with clarity and purpose is known as effective communication.
Following are the principles of effective communication:
a. Simple Language: Using language that is easy to understand helps ensure that both the sender and receiver grasp the message without confusion.
b. Definite Purpose: Having a clear purpose in mind while communicating prevents misunderstandings and ensures the message’s intent is well-understood.
c. Completeness and Concision: Providing all the information required to the recipient in a clear and straightforward manner, guarantees that they will understand everything without feeling overburdened.
d. Appropriate Medium: Choosing the right communication medium, considering factors, such as timing, distance, and the nature of interaction, ensures effective communication.
e.
Authenticity: Sharing accurate and honest information builds trust and credibility in communication.
f.
Courtesy: Politeness and respect in communication contributes to a positive atmosphere and healthy relationships.
g. Active Listening: Effective communication involves not only speaking or writing, but also actively listening to others. h. Adaptability: Tailor your communication to the needs and preferences of your audience. Consider their level of knowledge, communication style, and the context of the interaction.
F.
1.
To ensure a successful speech in a university at Delhi, Professor Krishna can take several actions, including:
a. Language Preparation: Familiarise himself with the local language commonly spoken in North India. This will help him connect with the audience and convey his message effectively.
b. Cultural Sensitivity: Respecting local customs and incorporating them into his speech can establish rapport with the audience.
c. Visual Aids and Clarity: Using visual aids, such as slides or props, can aid in conveying the message even if there are language barriers.
d. Engage with the Audience: Encourage interaction with the audience through questions to maintain their interest and ensure better comprehension.
2.
Rakesh and Vinay need to consider the following factors before giving descriptive feedback to the junior employee:
a. Goal-Oriented: Feedback should align with the intended goals. b. Actionable: It should provide actionable steps for improvement and suggest specific strategies or changes. Answer Key
Part B_AI Grade 10.indb 527
527
4/12/2025 4:06:56 PM
c.
User-Friendly: Feedback should be easy to understand and easily comprehensible.
d. Giving Timely Feedback: Feedback should be on time to ensure its relevance and impact on the receiver’s work or communication.
e.
Positive Feedback: Feedback should include the strengths and positive points of the employee.
3. Prakshi should acquire some non-verbal skills to increase her chances of getting selected in the interview. She should focus on:
a. Professional Appearance: Dress appropriately, according to the job profile and company culture. b. Eye Contact: Maintain consistent and friendly eye contact with the interviewer to convey confidence and engagement. c.
Smile: Offer a warm and genuine smile when appropriate. It creates a positive and approachable impression.
d. Body Language: Sit up straight and maintain a good posture. e.
Active Listening: Show that you’re actively listening to the interviewer by nodding and asking relevant questions.
4. There are three factors to keep in mind while writing a well-structured paragraph. I would suggest Moksh to write a paragraph on teamwork with:
a. Topic Sentence: The topic sentence is like the headline of your paragraph. It introduces the main idea or point that the paragraph will discuss. It is a crucial element that guides the reader’s understanding of what’s to come.
b. Supporting Details: Supporting details are sentences or examples that provide evidence or an explanation for the topic sentence. They add depth and context to your main idea.
c. Concluding Sentence: The concluding sentence summarises the paragraph’s main point and often provides a smooth transition to the next paragraph.
5.
The bank manager should have made sure that the following points are kept in mind while conveying information:
a. The message should be communicated in simple, clear, and easy-comprehend language. b. There should be no scope for incomplete information and ambiguity. Information shared should be complete in every way. c. If the information or message has to travel to multiple employees, it should be communicated formally through an email, a notice, or in a formal gathering.
d. It is advisable to take feedback to ensure that the message is communicated clearly, with no confusion.
528
Part B_AI Grade 10.indb 528
4/12/2025 4:06:56 PM
Unit 2: Self-management Skills-II
Answer Key A. 1.
d
2.
a
3.
B. 1.
goals
2.
self-regulation
C. 1.
True
c
4. 3.
a
5.
b
Self-management
4.
Extrinsic
5.
endorphins.
2.
False. Stress is an automatic physical, mental, and emotional response to a challenging and difficult event.
3.
False. Independent workers are very determined about work and set their own goals.
4.
False. Stress can have a negative impact on our physical and mental health.
5.
True
D. 1. Intrinsic self-motivation is the drive that comes from inside to achieve a specific goal by working very hard and putting in a lot of effort. This usually consists of a profession or a hobby that a person enjoys and does not feel burdened by
performing it. In this, finishing a task is more satisfying than succeeding at it. This motivation comes from within, and the person is not bothered with the benefits or compliments that come with it. For example: You enjoy music; therefore, you
finish all the assignments for the music lessons quickly.
2. Self-motivation refers to the internal drive and determination that inspires an individual to take an action, achieve goals, and put efforts even when faced with challenges or obstacles.
Rashika can stay motivated by following these tips:
a. Establishing healthy habits for progressing toward her objectives. b. Setting SMART (Specific, Measurable, Achievable, Relevant, and Time-bound) goals. She should work on priorities and stay away from any obstructions.
c.
Self-evaluation is crucial in determining one’s development, flaws, and strengths. She can evaluate her work.
d. She can develop time-management skills and maintain a healthy lifestyle. 3.
Yoga helps in managing stress by:
a. Yoga’s different physical postures, meditation, breathing exercises, and relaxation techniques are very useful in reducing stress.
b. The yoga exercises that focus on slow movement, stretching, and deep breathing are the best for lowering your anxiety and stress levels.
c.
It can reduce stress hormones and relax your mind to help you sleep better.
d. Yoga promotes self-care and helps in keeping your emotions in control. It ensures more energy, a sense of happiness, and brighter moods.
E. 1.
Public Self-awareness
Private Self-awareness
When you are conscious of how you are perceived publicly
When you are conscious of how you behave about
self-awareness. Some people behave in a certain manner
others, you have developed private self-awareness. In
by other individuals or society, you have developed public which is acceptable in the society as they are aware that they are being evaluated by other people.
certain things or situations and how it will impact
this type of self-awareness, you are able to notice and
examine your own thoughts, feelings, and motivations.
Example: Putting up your hand in the class to respond to
Example: When you become conscious that you have
see that you know the answer.
noticed.
the teacher’s question is a sign that you want everyone to
Answer Key
Part B_AI Grade 10.indb 529
broken something even though no one else has
529
4/12/2025 4:06:56 PM
2. Stress management refers to the numerous strategies, plans, techniques and tactics used to manage and diminish the negative impact of stress on one’s physical, emotional, and psychological health.
Various stress management techniques that we can follow are:
a. Physical Exercise: It includes all the activities that help an individual to maintain physical fitness, enhance mental
b. Yoga: The yoga exercises that focus on slow movement, stretching, and deep breathing are the best for lowering
well-being, and help improve their sleep.
your anxiety and stress levels. It should be a part of your daily schedule so that it can have a positive impact, both physically and mentally.
c. Meditation: A person’s life becomes more peaceful and balanced after practicing meditation. It has several
d. Enjoying: Enjoyable activities are a great approach to enhance your mental health and general well-being. One
advantages and has worked miracles for many people.
should take out time for their favourite pastimes, events, and activities.
3. The ability to work independently means being capable of completing tasks and responsibilities on your own, without needing constant guidance from others. It means that you have to make your own decisions and organise your work properly because only you are accountable for it. It will increase your confidence and self-esteem.
Working independently is significant because:
a.
b. Improves Decision Making Skills: An independent worker needs to take all the important decisions on their own to
c.
d. Makes You More Accountable: If you are working without any team, then you are responsible for both accurate and
e.
Increases Self-esteem: When people accomplish a goal on their own, it boosts their self-esteem.
f.
Time Management: Working independently also teaches you a very important skill – time management.
F.
Boosts Confidence: Working individually without any other support, boosts the confidence of an individual. keep moving ahead. This helps in building decision-making skills in an individual.
Brings Out the Best In a Person: If you work alone, then you put more efforts to make your work stand out. inaccurate outcomes.
1. Sakshi can motivate herself to work by the following steps:
a. Setting New Goals: Sakshi needs to set new goals for herself so that she does not find her job monotonous and
b. Maintaining a Positive Mindset: She needs to remind herself of the importance of her role and how she
c. Time Management: She needs to prioritise her tasks, manage her time, and complete her assignments on time. As
starts working towards them.
contributed to the company’s success. This will help her to stay motivated. a result, she will have more time for herself.
2. As a true friend, I will explain to Jay about the importance and need for stress- management. I shall highlight the benefits listed below:
a. Improved Physical Health: Stress can lead to high blood pressure, cholesterol, obesity, and other lifestyle diseases.
b. Improved Mental Health: Apart from physical health, stress will have an equal amount of negative impact on Jay’s
c. Enhanced Productivity: Excessive stress decreases one’s productivity as it leads to distraction and reduction in
d. Quality of Life and Relationships: Destressing leads to improved communication and a better lifestyle, thus
e. Emotional Regulation and Adaptability: Stress management helps in regulating one’s emotions and adapting to a
Jay has to manage his stress to remain physically fit.
mental health and can lead to depression, anxiety, and other related issues. focus. Stress management can make him more productive.
improving the quality of Jay’s life and his relationships. He will be less irritable.
changing environment. It will enhance Jay’s performance as he will be able to control his emotions better.
530
Part B_AI Grade 10.indb 530
4/12/2025 4:06:56 PM
Unit 3: Information and Communication Technology Skills-II
Answer Key A. 1.
b
2.
a
3.
d
4.
b
5.
d
B. 1.
delete
2.
Icons
3.
Computer Viruses
4.
Taskbar
C. 1.
True
2.
False. To rename a file, right-click on the file or the folder, choose the Rename option from the context menu.
3.
True
4.
False. Email services have a Filter feature to stop the spam messages from reaching your mail inbox.
D. 1. Computers are complex devices with many delicate electronic components that require protection from dust and
potential damage. Neglecting their maintenance can result in reduced efficiency. Considering the expense associated with repairing computers and mobile phones and to ensure their smooth operation, it becomes essential to take consistent and vigilant care of them.
2.
Multi-user Operating System Multi-user operating systems enable multiple users to
These operating systems were designed to accommodate
Example: Linux, Unix, and various versions of Microsoft
Example: Microsoft Windows 3.1,
utilise the same computer, simultaneously. Windows. 3.
Single-user Operating System just one user performing a single task at a time. Microsoft Windows 95, and Microsoft DOS.
Managing files and folders is important because: Organisation: Proper file and folder management helps you keep your digital life organised. When files are well• organised, you can quickly find what you need without wasting time searching.
Efficiency: An organised file structure boosts productivity. You can work more efficiently because you know where to • locate your documents, photos, or projects. This reduces frustration and helps you complete tasks faster.
Preventing Data Loss: Good file management reduces the risk of losing important data. When you organise files •
into folders and regularly back up your files, you have a safety net in case of computer crashes, hardware failures, or accidental deletions.
E. 1.
Functions of an operating system are: • Processor Management: The operating system oversees the functioning of the processor by assigning tasks to it and ensuring that each process and application gets sufficient time for proper operation.
Memory Management: The operating system handles the distribution of internal memory (like RAM, cache, etc.) • among various applications to ensure smooth execution of each process.
Device Management: An operating system controls the operation of input and output devices, receiving their • requests, performing specific tasks, and communicating with requesting processes.
File Management: The operating system maintains organised records of file actions, such as creation, deletion, • transfer, copying, and storage. It also preserves data integrity and directory structures.
Security: An operating system employs various techniques to safeguard user’s data confidentiality and integrity, • typically involving usernames, passwords, and firewalls.
Error Detection: The operating system periodically checks for external threats, malicious software, and hardware • issues and alerting users when necessary.
Answer Key
Part B_AI Grade 10.indb 531
531
4/12/2025 4:06:57 PM
2.
Computer Virus
A computer virus is a program or set of programs that interrupts a computer’s normal functioning and can infect or
destroy data. It enters a computer without the user’s permission or knowledge through infected storage devices, like CDs or pen drives, and can even enter while browsing the internet. To avoid detection, these viruses hide silently. They can remain undetected and inactive for a long time, waiting for a specific signal or event to activate them.
Harms Caused by a Computer Virus:
If your computer is attacked by a virus, it can affect your computer in the following ways: •
Decreases the speed of the computer
•
Damages or deletes files
•
Displays strange messages
•
Leads to the formatting of the hard disk
•
Leads to frequent computer crashes
•
Leads to the loss of data
3.
Feature Definition
Purpose
Function
Example
Usage
F.
1.
Menu
Icons
Taskbar
A digital menu card for your
Tiny pictures or symbols
A bar usually at the bottom
options.
or folders on your screen.
manage open programs.
computer’s programs and
Helps you find and open
programs and options easily. Lists all available programs and options on your computer.
representing programs, files,
Visual shortcuts for quick
access to programs and files. Represents programs, files, or folders visually.
Imagine that it is like a
Think of them as road signs
the dishes you can order.
help you find what you need.
restaurant menu, showing all
on your computer screen that
of your screen that helps to Manages open programs and allows you to switch between them quickly.
Displays icons for open
programs and provides quick access to them.
It is like having a personal
assistant on your computer desk, keeping things organised.
You use it to open programs
Click on the icons to open
Helps you switch between
functions.
without reading long names.
you are working on.
and access various computer
programs, files, or folders
different tasks or programs
In order to avoid any type of computer virus, Smita needs to: • Use Security Software: Install a trustworthy antivirus software and keep it updated. Regularly scan and identify potential threats.
•
Employ Firewalls: Configure her web browser settings to block access to unwanted websites.
Be Cautious Online: Exercise caution when sharing information online. Use secure websites for financial transactions, • avoid saving personal data on websites, and restrict herself from downloading software from unauthorised sources.
•
Update Software: Keep her computer’s software and applications up-date to patch security vulnerabilities.
•
Beware of Spam: Delete emails from unknown sources without opening them or downloading attachments.
•
Backup Your Data: Regularly back up her data for protection against loss and use encryption software to secure it.
•
Scan Portable Devices: Before using USB drives or other portable storage devices, scan them for viruses.
•
Disable Cookies: To protect her personal information, consider disabling cookies in her web browser.
532
Part B_AI Grade 10.indb 532
4/12/2025 4:06:57 PM
2.
To create a new file on Mukesh’s desktop, he has to follow these steps:
•
Right-click on an empty area.
• From the menu that appears, choose the ‘New’ option. He will then see a list of file types and applications, like MS Excel, MS Word, LibreOffice Writer, or any other application. Pick the one he needs.
•
Enter a file name where the cursor is and press Enter, and a new file will be generated.
Answer Key
Part B_AI Grade 10.indb 533
533
4/12/2025 4:06:57 PM
Unit 4: Entrepreneurial Skills-II
Answer Key A. 1.
b.
2.
a.
3.
d.
4.
d.
B. 1.
Make in India
2.
competition
C. 1.
True
5.
c.
3.
entrepreneurial
4. internet
2. False. Atal Innovation Mission (AIM) which was launched in 2016, focuses on promoting innovation and entrepreneurship among students and start-ups.
3.
False. Whether big or small, every business owner is an entrepreneur.
4.
True
D. 1.
Relationship between entrepreneurship and the society:
• Entrepreneurship and society have a direct relationship. In order to build a business, an entrepreneur requires the
support of the community, and the community depends on entrepreneurs to identify its issues and provide solutions in the form of ideas, goods, and services.
• The relationship between entrepreneurship and society is dynamic and very powerful. The act of creating and pursuing opportunities through entrepreneurship has significant impacts on many sectors of society.
• By creating job possibilities, they aid in the nation’s economic growth, which in turn promotes social advancements. 2. Entrepreneurs are deeply passionate about their work. They are not motivated only by money or other materialistic gains. They also love what they do and are willing to work hard and dedicate extra hours to make their business successful. If a person follows their passion, then they don’t feel burdened while working and are instead more motivated to bring the final product in the market.
For example, the founder and CEO of MDH, an Indian spice producer, was Mahashay Dharampal Gulati. His love for
creating and experimenting with spices propelled him to create a global brand and now, his company’s spices are used in many homes across the world.
3.
Two government initiatives to promote entrepreneurship in India are:
a. Mudra Yojana: The Pradhan Mantri Mudra Yojana (PMMY) was initiated to provide financial support to small
businesses and micro-enterprises. It offers loans at different stages of business development, from startup to growth, and expansion.
b. National Entrepreneurship Development Program (NEDP): The NEDP, run by various agencies including the
Ministry of Skill Development and Entrepreneurship, offers training and skill development programs to aspiring entrepreneurs.
E. 1. Entrepreneurship is the process of transforming an idea into a big business enterprise by identifying an opportunity
and creating a market through thorough planning and management skills, typically with the goal of achieving financial profitability and long-term success. An entrepreneur:
a. Helps in Wealth Creation: Successful entrepreneurs have the potential to accumulate wealth, which can be
reinvested in their businesses or new businesses. This can result in the creation of more jobs, stimulating economic activities, and benefiting the community.
b. Adds to the National Income: Entrepreneurs drive economic growth by identifying and grabbing opportunities, introducing innovative products and services, and contributing to increased productivity. They contribute to the national income by earning revenue and paying taxes.
534
Part B_AI Grade 10.indb 534
4/12/2025 4:06:57 PM
c. Creates Employment Opportunities: Entrepreneurs are significant job creators. They start and expand businesses, which in turn leads to hiring of employees and thus, they reduce unemployment and stimulate economic activities.
d. Improve the Standard of Living: Entrepreneurs enhance the standard of living by introducing products or services that enhance convenience. They help in improving the standard of living not just by providing income to families
through job opportunities, but also by fostering new products and services that enhance the living standard of all the stakeholders.
e. Creates Social Change: Social change denotes significant alterations in societal norms, behaviours, or structures. Entrepreneurs drive social change by introducing innovations that challenge existing practices.
f. Helps in Community Development: Community development refers to initiatives aimed at enhancing the wellbeing of a local community. Entrepreneurs contribute by supporting local causes, schools, and charities.
2. ‘You need a lot of money to become a successful entrepreneur.’ According to me, this statement is a myth because not every business requires a substantial amount of money or capital at the beginning. There are start-ups that began
with very little funds and have now achieved a lot of success. Typically, a significant sum of money that is required to
launch a business, is used to cover the costs of renting office spaces, purchasing supplies, paying employees, and other
necessities. However, not every business begins in a large office space; some of them begins in a single room of a house. For example, Reshma is a talented tailor who can sew any style of outfit by simply looking at the picture. With the use of the internet, Reshma set up her own webpage where she sold custom-made designer outfits and began accepting requests to design more of such dresses. She gradually launched her own fashion business and used the money she made to buy a design studio. She became an entrepreneur without any external financing.
Successful entrepreneurs often begin with innovative ideas and skills. If an entrepreneur has a ground-breaking concept, a unique product or service, or a valuable skill set, they can attract investors or secure loans even without a significant amount of personal capital. While capital is essential, it is not always the determining factor of success. 3.
An entrepreneur must have the following skills to be successful in the business world:
a. Decision-making: They need to make decisions about the product or service they offer, the policy of production, purchase and sell of the goods and services, and the marketing strategies they employ.
b. Management Control: Entrepreneurs are responsible for managing and controlling their businesses. They are responsible for overseeing the day-to-day operations of their businesses, ensuring that resources are utilised efficiently, and goals are met.
c. Division of Income: Entrepreneurs need to make arrangements for the division of the total income among different factions of production like rent, interest, purchase of raw material, and so on.
d. Risk-taking: They identify opportunities and are willing to invest time, effort, and resources into pursuing these opportunities, even if success is uncertain.
e. Bearing of Uncertainties: They must make decisions and take actions in the face of uncertainty. Bearing
uncertainty involves making informed judgements, adapting to changing circumstances, and being resilient in the face of setbacks.
f. Innovation: Entrepreneurs are changemakers who drive economic growth, improve quality of life, and shape the future through their innovative efforts.
F.
1.
Latika possesses the following qualities which made her a successful entrepreneur:
a. Passion: Latika is passionate about baking, which led her to start a home-based bakery. Her enthusiasm for creating delicious baked goods is the driving force behind her business.
b. Creativity: She consistently comes up with unique and delicious recipes, showcasing her creativity in baking. This creativity is a key asset for developing new products and attracting customers.
c. Adaptability: Latika started small by selling to friends and family but is now considering expanding her business. Her ability to adapt to changing circumstances and explore new avenues for growth is a valuable entrepreneurial trait.
Answer Key
Part B_AI Grade 10.indb 535
535
4/12/2025 4:06:57 PM
d. Risk-Taking: Starting a home-based bakery business involves a significant degree of risk. Latika took the initiative to turn her passion into a business venture, demonstrating her willingness to take calculated risks.
e. Persistence: Entrepreneurship often comes with challenges and setbacks. Latika’s determination to continue baking and grow her business despite obstacles shows her persistence.
2. The Indian government has implemented several schemes and initiatives to support entrepreneurs. These schemes aim to provide financial assistance, promote innovation, and facilitate the growth of businesses.
a. Atal Innovation Mission (AIM): Launched in 2016, it focuses on promoting innovation and entrepreneurship
among students and start-ups. It includes initiatives, such as Atal Tinkering Labs in schools and Atal Incubation Centres, to support start-ups.
b. Startup India: Launched in 2016, it aims to promote entrepreneurship and innovation in the country. It provides various benefits to start-ups, including tax exemptions, funding support, and simplification of regulatory procedures.
c. Make in India: Make in India is a campaign launched in 2014 to encourage manufacturing and production within
India. It seeks to transform the country into a global manufacturing hub by promoting ease of doing business, simplifying regulations, and attracting foreign investments.
536
Part B_AI Grade 10.indb 536
4/12/2025 4:06:57 PM
Unit 5: Green Skills-II
Answer Key A. 1.
b
2.
c
3.
B. 1.
social inclusion
C. 1.
False. Reduced chemical use and biodiversity preservation will promote the health of soil.
2.
a
biodiversity
4.
d 3.
5.
d
United Nations
4.
environment
2.
True
3.
False. Developed countries can provide financial and technical assistance to developing nations to support their
4.
True
sustainable development efforts.
Sustainable water practices involve conserving water and using it responsibly. This can be achieved through various D. 1. methods, such as:
a.
Rainwater Harvesting: Rainwater is stored and reused for household consumption and other purposes.
b. Effective Irrigation Practice: Using sprinkler irrigation and drip irrigation methods to control the flow of water across farmlands can help to prevent water loss, which typically results from an excessive water supply.
c. Fixing Leaks: One common and significant form of water loss is leaking, which results in significant water loss. Repairing the leaks stop them from occurring again and conserve water.
d. Low-flow Fixtures: It is a water-saving plumbing fixture created to reduce the water flow rate in order to save water. Showerheads and toilets with low-flow fixtures use a lot less water.
2. Sustainable development is about improving the quality of life for all individuals. It involves creating a world where future
generations can look forward to a better future, safe environment to live in, clean water to drink, and clean air to breathe.
a. Everyone gets the opportunity to live a decent life and have access to natural resources. b. It ensures economic growth and prosperity to improve the standard of living, create job opportunities, and reduce poverty.
c. Preserves biodiversity, protects ecosystems, and reduces pollution to maintain the health of the planet for current and future generations.
3.
Different ways to follow the sustainable practice of ‘reduce, reuse, and recycle’ at home are:
a. We can reduce the amount of plastic by using reusable cloth bags for shopping, instead of plastic bags. b. Reduce food wastage by planning meals and storing food properly. Use reusable containers to store food instead of disposable ones.
c. Get creative and find new uses for old items. We can reuse glass bottles and old clothes to make flower pots and dusting clothes, respectively.
d. Set up a recycling station at home to separate recyclable materials from regular trash. Support the recycling industry by purchasing products from recycled materials.
E. 1.
Three main pillars of sustainable development are:
Environmental: It is about preserving and protecting the environment. It involves conserving energy, cutting back on waste and pollution, utilising natural resources wisely, and protecting biodiversity.
Economic: This means using assets and resources wisely and efficiently to ensure economic growth and produce
operational profit. It aims to improve the standard of living of the public. The resources should be used responsibly to meet the goals of development and build a competitive economy.
Answer Key
Part B_AI Grade 10.indb 537
537
4/12/2025 4:06:57 PM
Social: It’s all about looking out for people. Making sure that the general population is secure, healthy, and treated fairly is a part of it. It also includes being welcoming and inclusive of individuals from various social and cultural backgrounds.
2.
Sustainable practices are the actionable steps we take to achieve the objectives of sustainable development. Following are the sustainable practices:
a. Conservation of Water: Sustainable water practices call for resposible water use and the reduction of waste. This
can be accomplished by using effective irrigation techniques, rapidly repairing leaks, and installing low-flow fixtures.
b. Energy Efficiency: Sustainable practices are based on the principle of using energy more effectively. It includes
measures, such as improving lighting systems, insulating buildings, and purchasing energy-efficient appliances. We can lessen our carbon footprint and energy costs by consuming less energy.
c. Sustainable Transportation: Reducing greenhouse gas emissions and reducing traffic congestion are achieved
by choosing environmentally-friendly means of transportation, including walking, bicycling, carpooling, or public transportation.
d. Sustainable Agriculture: Sustainable agriculture methods prioritise biodiversity, improve soil health, and use fewer chemicals.
e. Reduce, Reuse, Recycle: Reducing waste at the source, reusing items whenever possible, and recycling materials are fundamental practices that conserve resources and reduce landfill waste.
3. Sustainable development faces challenges because it calls for resources, focused efforts, and a change in society’s mindset. Following are the two problems related to sustainable development:
a. Limited Resources: The lack of essential resources is one of the biggest problems. Freshwater, land, and energy resources are under more stress as the world’s population continues to rise. We must carefully manage these resources for sustainable development, which often requires innovation and conservation measures.
b. Short-Term vs. Long-Term Interests: Balancing short-term economic interests with long-term sustainability goals
can be challenging. Some policies and practices prioritise immediate gains over the well-being of future generations, making it crucial to shift this mind-set.
c. Global Cooperation: Many sustainability challenges are global in nature, such as climate change. Addressing these
issues requires cooperation among countries, which can be complicated because of differing priorities and interests.
d. Lack of Awareness: The importance of sustainable development and its effects are not fully understood by
everyone. Community awareness building and education regarding the importance of sustainable living are ongoing challenges.
F.
1.
Rakesh can take several steps to change his means of transportation and promote sustainable development:
a. Carpooling: Rakesh can explore carpooling options with colleagues or neighbours who have a similar route. This would reduce the number of vehicles on the road, easing traffic congestion, and lowering carbon emissions per person.
b. Public Transportation: Rakesh can switch to buses, metro, or train for his daily commute. This will support public transport system which is often more sustainable.
c. Electric or Hybrid Car: Rakesh can switch to an electric or hybrid vehicle. These vehicles produce fewer emissions, compared to traditional gasoline or diesel cars.
2.
Kanha can adopt the following sustainable agriculture practices to improve the long-term health and productivity of his land:
a. Crop Rotation: Rotate crops to break the cycle of pests and diseases this improve soil fertility, and reduce the need for chemical pesticides and fertilisers.
b. Organic Farming: Shift to organic farming which avoids synthetic chemicals and instead uses natural inputs, like compost, manure, and biopesticides.
c. Natural Fertilisers: Natural fertilisers are particularly beneficial for crop growth and are also easy on finances because they are commonly found in daily life.
538
Part B_AI Grade 10.indb 538
4/12/2025 4:06:57 PM
Part B: Subject Specific Skills
Unit 1: AI Project Cycle and Ethical Frameworks Answer Key A. 1.
b
B. 1.
Data Exploration
5. C. 1.
Justice
2. 6.
c
3. 2.
b
Deployment
4. 3.
b
5.
c
Natural Language Processing
6. c 4.
Automation
Beneficence
False. Correct Statement: AI models require a large amount of data for accurate predictions.
2.
False. Correct Statement: Data visualisation helps in understanding patterns and making informed decisions.
3.
False
4.
True
5.
False. (Non-maleficence means avoiding harm to patients.)
6.
True
D. 1. Problem scoping helps identify the problem that needs to be solved, define project goals, and understand constraints like budget, time, and regulations.
2. Machine Learning enables AI systems to improve their performance by learning from past experiences and data without being explicitly programmed for every task.
3. Natural Language Processing enables AI systems to understand, interpret, and generate human language, making interactions more natural and effective.
4. Bioethics ensures that AI-powered healthcare applications respect patient privacy, obtain informed consent, and provide fair and unbiased treatment while prioritising patient well-being.
5. Informed consent is important because it ensures that patients understand their treatment options, risks, and benefits before making voluntary decisions about their healthcare.
E. 1. Evaluation ensures that an AI model is tested for accuracy and reliability before deployment. It involves using test data
to compare predicted outcomes with actual results, helping to refine the model if needed. Without proper evaluation, AI models may produce incorrect or biased results.
2. Data acquisition involves collecting raw data from various sources, such as surveys and sensors, while data exploration focuses on analysing, cleaning, and visualising the data to identify useful patterns. Together, they ensure that the AI model is trained with high-quality data for better accuracy.
3. AI is widely used in real-life applications such as virtual assistants (e.g., Alexa, Siri), self-driving cars, facial recognition systems, chatbots, and medical diagnosis tools. AI helps automate tasks, enhance decision-making, and provide personalised experiences.
4. Automation has significantly impacted daily life by reducing human effort in repetitive tasks. It is widely used in industries, healthcare, transportation, and households. Automated systems improve efficiency, accuracy, and
convenience, such as in self-checkout systems, voice assistants, and smart home devices. However, automation also raises concerns about job displacement and ethical considerations.
5. The principle of justice in bioethics focuses on fairness and equal access to medical resources. It ensures that all patients
receive medical care without discrimination based on their background, social status, or financial situation. In healthcare, this principle is applied when hospitals prioritise treatment based on medical urgency rather than personal factors.
Answer Key
Part B_AI Grade 10.indb 539
539
4/12/2025 4:06:58 PM
F.
1.
Rajiv is in the Data Acquisition stage.
2. AI helps Riya by processing her voice commands using Natural Language Processing (NLP) and responding with accurate results. The assistant learns from her preferences and provides relevant suggestions.
3. Computer Vision is responsible for this task. It enables the car’s AI to recognise objects, detect movements, and make decisions based on real-time visual data, ensuring safety while driving.
4. The concept applied here is Automation. It helps in reducing human effort, increasing efficiency, and improving accuracy in manufacturing. Automated systems can work continuously without fatigue, leading to higher productivity and lower operational costs.
5. The hospital should follow the principle of justice by ensuring diverse and unbiased training data that represent all
patient groups. They should also ensure that human doctors verify AI-generated diagnoses before making medical decisions.
540
Part B_AI Grade 10.indb 540
4/12/2025 4:06:58 PM
Unit 2: Advance Concepts of AI Modelling
Answer Key A. 1.
b
2.
9.
c
10. c
B. 1.
b
11. Machine Learning
b
11. a
Machine Learning
6. learning-based C. 1.
3. 2. 7.
4.
c
12.
c
6. b
7. b
8. d
12. b
Neural Networks
Computer Vision
5. 3.
8.
Features
data
9.
4.
Labelled
Input
10.
5.
rule-based
Backward Propagation
Algorithm
False. Machine Learning requires data to learn and improve its performance.
2.
True
3.
False. A testing dataset is used to evaluate the performance of a trained AI model.
4.
True
5.
False. Learning-based AI models require large datasets for training.
6.
False. Rule-based AI models follow predefined rules and do not adapt to new data.
7.
False. AI can be used in several other fields, not only in robotics.
8.
True
9.
False. Neural networks do not require explicit programming of all features before making predictions.
10. False. The output layer of a neural network provides the final result after processing the data. 11. True 12. False. Neural networks play a crucial role in AI-based decision-making. D. 1. AI is the broad field that includes Machine Learning, and Deep Learning is a subset of Machine Learning that uses neural networks for complex tasks.
2.
Deep Learning helps self-driving cars detect objects, recognise lanes, and interpret traffic signs to enable safe navigation.
3. Labelled data includes both input values (features) and corresponding output values (labels), whereas unlabelled data contains only input values without assigned labels.
4. The training dataset helps the AI model learn patterns and relationships by analysing examples, allowing it to make accurate predictions.
5. The main steps involved in AI modelling are
Selecting appropriate algorithms based on the problem.
Training the model using pre-existing data.
Testing the model with a new dataset to assess its accuracy.
6. A rule-based AI model struggles with unforeseen conditions because it strictly follows predefined rules. If a new condition arises that was not included in its rules, it cannot adjust or make accurate decisions.
7. AI helps in diagnosing diseases, predicting patient outcomes, and assisting in surgeries with robotic systems. 8. AI personalises learning, automates administrative tasks, and enhances interactive learning experiences. 9. Hidden layers extract patterns and features from input data by applying computations using weights and biases. They play a crucial role in learning complex relationships in data.
Answer Key
Part B_AI Grade 10.indb 541
541
4/12/2025 4:06:58 PM
10. Backward propagation helps the network improve its accuracy by adjusting the weights and biases based on the difference between predicted and actual outputs.
11. Machine Learning enables AI systems to learn from data and improve their accuracy over time without being explicitly programmed.
12. Neural networks mimic the functioning of the human brain and help AI systems recognise patterns, make decisions, and solve complex problems.
E. 1. Machine Learning improves performance by learning from past data and adjusting its algorithms. It differs from Deep Learning because ML uses structured data and simpler models, while DL uses neural networks and large datasets for complex decision-making.
2. Object Classification involves identifying and labelling objects in an image. For example, a Machine Learning model
trained on fruit images can classify whether an image contains an apple, orange, or banana based on its learned features.
3. Features are the input variables that describe a dataset, while labels are the target values a model aims to predict. For example, in a weather prediction model, features may include temperature, humidity, and wind speed, while the label could be whether it will rain or not.
4. An AI model is trained using a training dataset, which consists of input features and corresponding labels. The model
learns patterns from this data. After training, a testing dataset, which the model has not seen before, is used to evaluate its performance. The predicted outputs from the model are compared with actual labels to measure accuracy.
5. Rule-based AI operates on predefined rules created by developers. It follows strict conditions and does not learn from new data. An example is a chatbot that provides automated responses based on predefined questions.
Learning-based AI, on the other hand, uses machine learning algorithms to learn from data. It continuously improves by adapting to new patterns. An example is a spam filter that learns from emails and improves its classification over time.
6. Testing is crucial in AI modelling because it helps determine how well a model performs on unseen data. The process involves
Using a separate dataset that was not part of training.
Checking if the model makes accurate predictions.
Identifying errors and refining the model if necessary.
Ensuring the model is reliable before deploying it for real-world use.
7. Ethics in AI is crucial to ensure fairness, transparency, and accountability. AI systems must avoid biases, protect privacy,
and be designed to benefit society without causing harm. Ethical considerations help in maintaining trust and preventing misuse of AI technologies.
8.
Three real-world applications of AI:
a. Healthcare AI is used for medical diagnosis, robotic surgery, and patient care monitoring. b. Autonomous Vehicles AI enables self-driving cars to navigate safely using sensors and real-time data. c. 9.
E-Commerce AI recommends products based on customer preferences and browsing history.
An artificial neural network processes information from input to output in the following manner:
• The Input Layer receives raw data and passes it to the hidden layers without processing. • The Hidden Layers perform computations using weights, biases, and activation functions to extract meaningful features.
• The Output Layer presents the final processed result based on the computations of hidden layers. 10. Some real-world applications of artificial neural networks are: • Image Recognition: Identifying objects and faces in photos. • Speech Recognition: Converting spoken language into text. • Medical Diagnosis: Detecting diseases from medical images. • Autonomous Vehicles: Helping self-driving cars recognise objects and make decisions.
542
Part B_AI Grade 10.indb 542
4/12/2025 4:06:58 PM
11. AI is transforming various industries by improving efficiency and accuracy. In healthcare, AI helps diagnose diseases and suggest treatments. In education, AI-powered tutors personalise learning for students. In transportation, self-driving cars use AI to navigate safely. In retail, AI enhances customer experience by recommending products based on past purchases.
12. Data training is essential in AI as it helps machines learn from past experiences and improve their performance. AI
systems require large amounts of data to identify patterns, make predictions, and function accurately. Well-trained AI models can provide better results and adapt to new challenges effectively.
F.
1. Anomaly Detection is used here to identify irregular patterns in heart rate data. This is important because it helps detect potential health issues early and provides timely alerts for medical intervention.
2. Computer Vision is used in this case. It processes facial features and compares them with stored images using AI models to verify identity and enhance security.
3. Possible features and labels for the AI model: Features: Distance from restaurant, traffic conditions, order preparation time Label: Estimated delivery time 4. Possible features and labels for the AI model: Features: Attendance, homework completion, exam scores Label: Final grade 5. A hospital chatbot can use a rule-based AI model if it only needs to handle structured queries like booking appointments and providing hospital information. However, if the chatbot needs to understand complex patient queries and provide personalised recommendations, a learning-based model would be more suitable.
6. The company should use a learning-based AI approach because it can analyse customer behaviour, past purchases, and
preferences to suggest relevant products. This model adapts over time, improving recommendations based on new data.
7. The technology responsible is Natural Language Processing (NLP). NLP enables AI systems to understand and predict words based on past input and context, improving user experience in messaging and communication apps.
8. The AI features include speech recognition, which converts spoken language into text, and Natural Language Processing (NLP), which allows the assistant to understand and respond appropriately to commands. Machine learning helps improve responses over time.
9. The neural network would process text data through multiple layers to recognise patterns in language. It would use training data to improve accuracy over time, adjusting its responses based on past interactions.
10. The input layer receives image data from the camera. Hidden layers process pixel values, detect patterns, and recognise
shapes and colours. The output layer then classifies the object as a “traffic light” and determines whether it is red, yellow, or green to make a driving decision.
11. AI enables voice assistants to recognise speech, process the request, and respond accordingly using Natural Language
Processing (NLP) and Machine Learning. These technologies help the assistant learn from past interactions and improve its responses over time.
12. AI is used in e-commerce through recommendation algorithms that analyse user behaviour and suggest relevant
products. This improves customer experience, increases sales, and helps businesses understand consumer preferences.
Answer Key
Part B_AI Grade 10.indb 543
543
4/12/2025 4:06:58 PM
Unit 3: Evaluating Models
Answer Key A. 1.
b
B. 1.
Overfitting
2. Hyperparameter
3. Error analysis
Accuracy
5. mimic
6. chatbot
4.
2.
b
3.
b
4.
c
5.
c
6. b
C. 1. False. A train-test split ensures that a model is trained and tested on separate datasets to evaluate its performance accurately.
2.
True
3.
False. Error analysis is essential for identifying and reducing mistakes in AI models.
4.
True
5.
False. AI can be used both in computers and in mobile devices.
6.
True
D. 1. Offline evaluation is conducted after training using a predefined dataset, while online evaluation happens in real-time, tracking model performance and making adjustments as needed.
2. Preventing data leakage ensures that test data is not used in training, avoiding unrealistically high accuracy and ensuring the model performs well in real-world applications.
3. Error represents the deviation of an AI model’s predictions from the actual values and helps in identifying areas for improvement.
4. Error analysis assesses a model’s performance on both training and unseen data, helping developers refine and improve the model.
5. Artificial Intelligence (AI) is the ability of a computer or robot to perform tasks that typically require human intelligence, such as learning, reasoning, and problem-solving.
6. AI-powered voice assistants, like Siri and Alexa, help us by answering questions, setting reminders, playing music, and performing other tasks using voice commands.
E. 1. Model evaluation ensures that an AI model is accurate, reliable, and suitable for real-world applications. It helps detect
errors, biases, and inefficiencies in a model. One important technique for evaluation is the train-test split, where data is
divided into training and test sets. The training set helps the model learn patterns, while the test set evaluates how well the model performs on unseen data. This approach prevents overfitting and ensures that the model generalises well to new inputs.
2. Overfitting occurs when a model performs exceptionally well on training data but fails to generalise to new data. It
happens when a model memorises patterns instead of understanding them. To prevent overfitting, techniques like
train-test splitting, cross-validation, regularisation, and tuning hyperparameters (such as adjusting the learning rate
or limiting model complexity) are used. These strategies ensure that the model learns meaningful patterns instead of memorising data.
3. Accuracy measures the proportion of correct predictions out of the total predictions made by an AI model. Higher accuracy
indicates better performance, meaning the model makes fewer mistakes and provides more reliable results. AI models with high accuracy are more effective in solving real-world problems, such as medical diagnosis and spam filtering.
4. Errors in AI models can arise due to poor-quality data, incorrect training, software bugs, or inadequate model tuning. These errors can be minimised by using high-quality datasets, conducting thorough error analysis, refining training techniques, and continuously updating the model based on performance evaluations.
544
Part B_AI Grade 10.indb 544
4/12/2025 4:06:58 PM
5. AI plays an important role in daily life by making tasks easier and more efficient. Some common examples include: Voice Assistants: AI-powered assistants like Siri and Alexa help in performing various tasks using voice commands. Chatbots: Websites and businesses use chatbots to interact with customers and answer their queries. Recommendation Systems: AI suggests movies, songs, and products based on user preferences, like in Netflix and Amazon.
Smart Cars: AI is used in self-driving cars to navigate roads safely. 6. Machine Learning is a subset of AI that allows machines to learn from data and improve their performance without explicit programming. It helps AI systems recognise patterns, make predictions, and improve decision-making. For example, spam filters in emails use Machine Learning to identify and filter out spam messages based on past data F.
1. The model is likely overfitting to the training data, meaning it memorised patterns from the training images but cannot generalise to real patient scans. To fix this, the hospital should use a proper train-test split, add more diverse training samples, and fine-tune hyperparameters to improve generalisation.
2. The company should use online evaluation to track real-time performance. By continuously monitoring customer
interactions and feedback, adjustments can be made to ensure the recommendation system remains relevant and effective. Regular updates and re-training with new data will help improve accuracy over time.
3. Error analysis can identify patterns in incorrect predictions, allowing developers to refine the training data, adjust parameters, and improve accuracy to provide better recommendations.
4. Incorrect predictions can lead to unnecessary treatments, stress, and increased medical costs. Accuracy can be improved by training the model on high-quality medical data, refining its learning process, and regularly updating it with new information.
5. The chatbot will help students by providing instant answers to their questions, reducing the workload of teachers, and making information accessible at any time. It can also provide personalised assistance based on student queries.
6. I can ask Alexa to play music, set alarms, check the weather, answer general knowledge questions, control smart home devices, and provide news updates.
Answer Key
Part B_AI Grade 10.indb 545
545
4/12/2025 4:06:58 PM
Unit 4: Statistical Data (To be assessed through practicals)
Answer Key A. 1.
c
B. 1.
data-driven
2. predictions
3. Google Cloud AutoML
Lobe
5. Mode
6. Standard Deviation
4. C. 1.
2.
b
3.
b
4.
c
5.
b
6. c
False. Data science is used in many more fields like health, education, finance, business, and so on.
2.
True
3.
False. No-Code AI tools do not require programming knowledge and are designed for ease of use.
4.
True
5.
True
6.
False. A dataset may have no mode if no value repeats.
D. 1. Data visualisation is a tool used to interpret large amounts of data easily through visual representations. It helps in understanding complex data sets by presenting them in a clear and concise manner.
2. Machine learning is significant in data science as it enables machines to make predictions or decisions based on data. This helps in automating tasks and improving the accuracy of data analysis.
3. No-Code AI is cost-effective as it eliminates the need for hiring developers, and it enhances productivity by automating data processing tasks.
4. Orange Data Mining: Used for data visualisation and machine learning. Lobe: Used for training machine learning models using image classification. 5. The mean is the average of all data points, while the median is the middle value when data is sorted. The mean is sensitive to extreme values, but the median is not.
6. Standard deviation measures how spread out the data is from the mean. It helps understand the variability of the dataset. Data science in the entertainment sector is used to personalise user experiences. For example, streaming services E. 1.
like Netflix use data on what films or shows you watch to recommend new content you might enjoy. Music apps like
Spotify create personalised playlists by analysing your listening habits. Video games also use data science to tailor game experiences to user preferences.
2. Data science contributes to environmental protection by analysing extensive environmental data to understand patterns and make predictions. It helps monitor deforestation, detect illegal fishing activities, and track wildlife populations using satellite images and sensor data. Climate scientists use historical weather data to predict climate change impacts and inform policy decisions.
3. Businesses prefer No-Code AI because it reduces costs, speeds up development, and allows non-technical users to
implement AI models without programming knowledge. It also enables cross-department teams, such as marketing and HR, to use AI without depending on IT professionals. Additionally, No-Code AI automates repetitive tasks and minimises human errors, making it efficient and productive.
4.
Challenges: Lack of flexibility, security concerns, and scalability issues.
Solutions:
Using hybrid approaches where No-Code AI is combined with traditional coding for flexibility.
Implementing security measures, such as data encryption, to protect sensitive data.
Choosing scalable No-Code AI platforms that can handle large datasets efficiently.
546
Part B_AI Grade 10.indb 546
4/12/2025 4:06:59 PM
5. There are several types of data distributions: Normal Distribution: Symmetric and bell-shaped, with mean = median = mode. Example: IQ scores. Uniform Distribution: All values have equal probability. Example: Rolling a fair die. Skewed Distributions: Asymmetric, with the tail longer on one side. Examples: Income (right-skewed), scores on an easy test (left-skewed).
6. Mean: Used in education to calculate average scores, in health to find average blood pressure, and in business for average sales.
Median: Used in income analysis to find median household income, in medical research for median survival rates, and in salary comparisons to remove extreme values.
Mode: Used in the fashion industry to determine common garment sizes, in marketing to identify best-selling items, and in education to find common exam results.
F.
1. Consider a retail store that uses data science to analyse customer purchasing habits and preferences. By analysing past sales data, machine learning algorithms can predict which products are likely to be popular and suggest personalised recommendations to customers. This improves customer satisfaction by offering relevant products and enhances the overall shopping experience.
2. The project involves collecting data on student performance, learning habits, and demographic information. This data
would be analysed using statistical methods and machine learning algorithms to identify trends and patterns. Insights
gained would inform strategies such as personalised learning plans, curriculum adjustments, and resource allocation to improve student outcomes.
3. Rohan can use Orange Data Mining to analyse past sales data and predict future trends. The tool’s drag-and-drop interface allows him to visualise patterns and make data-driven decisions without writing any code.
4. The hospital can use Google Cloud AutoML to develop a predictive model. They would upload patient data, train the
model using machine learning algorithms, and use it to forecast disease risks, helping doctors in early diagnosis and treatment planning.
5. Consider analysing exam scores in a class. The mean would give an overall average score, but it might be skewed by
very high or low scores. The median would provide a better central tendency if there are outliers. The mode would help identify the most common score, which could indicate a typical performance level.
6. Conduct an experiment where students measure the height of a plant over several days. Calculate the mean height
and standard deviation. A low standard deviation indicates consistent measurements, while a high standard deviation suggests variability in the data. This demonstrates how standard deviation measures spread from the mean.
Answer Key
Part B_AI Grade 10.indb 547
547
4/12/2025 4:06:59 PM
Unit 5: Computer Vision
Answer Key A. 1. c
2. b
6. b
7. b
B. 1. object detection 5. OpenCV
3. b
4. c
2. ReLU layer
3. convolution
4. white
6. labelled
7. Orange
5. d
C. 1. True 2. False. The convolution layer is responsible for extracting features. 3. True 4. False. No-code AI tools can be used for computer vision tasks. 5. False. The input layer receives raw data, such as images. 6. False. Lobe AI is designed for no-code AI model development. 7. True D. 1. Pixel values in a grayscale image range from 0 to 255 and represent varying shades of grey, where 0 is black, 255 is white, and values in between represent different shades of grey.
2. The pooling layer reduces the spatial dimensions of the input feature maps, decreasing computational complexity and controlling overfitting by retaining the most relevant features.
3. CNNs automatically learn and identify important features in images, such as edges and textures, without requiring manual feature extraction, making them effective and efficient for image classification tasks.
4. Lobe AI allows users to train machine learning models without coding. It offers an easy drag-and-drop interface, automatic training, image classification support, and real-time results.
5. Orange uses a visual programming interface where users connect widgets to import data, preprocess it, apply machine learning algorithms, and visualise the results—no coding required.
E. 1. Convolution involves multiplying an image array element-by-element with a smaller grid called the kernel to produce a
new array called the feature map. In CNNs, convolution is used to detect various features in images, such as edges and textures. The process helps in feature extraction by applying multiple kernels to generate feature maps that represent
different aspects of the image. This allows CNNs to automatically learn and recognise complex patterns and structures within images, enhancing their ability to perform tasks like object detection and image classification.
2. The fully connected layer integrates the features learnt by the previous convolutional and pooling layers and performs
classification based on these features. After flattening the output from the last convolutional or pooling layer into a 1D
vector, the fully connected layer assigns probabilities to different classes based on the learnt features. Each neuron in the fully connected layer is connected to every neuron in the previous layer, forming a dense matrix of weights. This layer is crucial for making final predictions and classifying images based on the extracted features.
3. Coloured images are composed of three primary colours: red, green, and blue, collectively known as RGB. In an RGB image, each pixel is essentially a mix of red, green, and blue components. By adjusting the intensity of these components, a wide range of colours can be created. For instance, when all three colours are combined at their maximum intensity, the result
is white. Conversely, when they are all at zero intensity, the result is black. By fine-tuning the individual levels of red, green, and blue, virtually any colour can be achieved, enabling the rich and varied visual experiences that digital images provide.
548
Part B_AI Grade 10.indb 548
4/12/2025 4:06:59 PM
4. Three applications of computer vision are: i. Facial Recognition: Computer vision technology analyses the distinct details of your face, such as the arrangement
of your eyes, nose, and mouth. This is how computer vision plays an important role in facial recognition, making our devices smarter and more user-friendly.
ii. Retail Industry: The shopping cart’s sensors can easily perform object identification of the items in the cart and match the details in the database using computer vision. Computer vision also helps with quicker checkouts at the mall exit, locating misplaced items, checking shoplifting, minimising billing errors, etc.
iii. Autonomous Vehicles: Computer vision plays a critical role in the development of autonomous vehicles. It allows these vehicles to ‘see’ and understand their surroundings, enabling them to navigate safely and efficiently.
5. Lobe AI is a user-friendly tool that allows individuals and organisations to create machine learning models without writing code. This makes it highly accessible and valuable across multiple sectors.
In the healthcare sector, Lobe AI can be used to develop models for identifying medical images, such as detecting diseases from X-rays or skin conditions from photos.
In the agriculture sector, it helps farmers monitor crop health by classifying images of leaves to detect pests or diseases. In education, teachers can use Lobe AI to create personalised learning tools or teach students the basics of AI. In retail, businesses can train models to recognise product images, automate inventory management, or analyse customer behaviour.
6. Orange is a visual data mining and machine learning tool that organises its features into widget categories. Three important widget categories include:
Data: This category includes widgets like File, Data Table, and Select Columns. These widgets allow users to import datasets, explore the data, and prepare it for analysis. For example, the File widget is used to load data from formats like CSV or Excel.
Model: This category contains widgets for training machine learning models. Examples include Logistic Regression,
Random Forest, and Naive Bayes. These widgets allow users to apply different algorithms to the prepared data and build predictive models.
Evaluate: Widgets in this category are used to test and assess model performance. The Test and Score widget, for
example, evaluates how well a model performs by comparing predicted results with actual outcomes. It provides accuracy scores and other performance metrics.
F. 1. Nina can use instance segmentation to segment each region of interest in medical scans and assign labels to each pixel. This detailed segmentation allows for precise identification and measurement of different diseases by clearly outlining their boundaries and distinguishing them from other structures in the image.
2. Raj’s computer vision system should identify features such as text, signatures, watermarks, and document layout to effectively detect and prevent fraud.
3. The blue patch is a flat area and difficult to find and track. Wherever you move the blue patch it looks the same. Therefore, the blue patch is a bad feature of the image. The black patch has an edge. Moved along the edge (parallel to edge), it
looks the same. The red patch is a corner. Wherever you move the patch, it looks different, therefore it is unique. Hence, corners are considered to be good features in an image.
4. Arjun can import student data using the File widget and explore it with tools like Data Table and Select Columns. To visualise trends, he can use Scatter Plot or Box Plot widgets. For predictions, he can apply machine learning models like Logistic Regression and evaluate them with Test and Score to identify performance patterns and forecast student outcomes.
5. Neha can drag and drop images into Lobe and assign labels to train her model. Lobe automatically starts training and
updates in real time. To improve accuracy, she can add more diverse and well-labelled images. She can also test the model instantly to check performance and make adjustments.
Answer Key
Part B_AI Grade 10.indb 549
549
4/12/2025 4:06:59 PM
Unit 6: Natural Language Processing
Answer Key A. 1. b
2. c
6. b
7. b
B. 1. NLP
2. Sentiment
5. context and meaning
3. b
4. d
5. d
3. syntax
4. Natural Language Toolkit
6. Chat bots
7. Script bots
C. 1. False. NLP is a domain of AI that deals with both spoken and written language interactions between humans and machines.
2. False. Human language and computer languages follow the different set of grammar rules. 3. True 4. True 5. True 6. False. Smart bots use machine learning and natural language processing to learn and adapt automatically without needing manual updates for every new query.
D. 1. Part-of-speech tagging helps NLP algorithms by identifying the grammatical roles of words in a sentence (e.g., noun, verb, adjective). This information is essential for understanding the sentence structure and meaning, enabling more accurate processing of language.
2. The names of four applications of NLP are chatbots, virtual assistants, sentiment analysis, and automatic summarisation. 3. Lemmatisation is an NLP technique that involves reducing words to their base or root form, considering the meaning of the word. It ensures that the resulting word, known as the lemma, has a meaningful form.
4. One key advantage of Smart Bots is that they can understand and respond to complex queries using AI.
One key disadvantage is that they require more data and resources to train and maintain.
E. 1. The full form of TFIDF is Term Frequency and Inverse Document Frequency i. Term frequency: It measures how often a word appears in a single document. You can easily find this using the
document vector table, which lists how many times each word from the vocabulary appears in each document.
Document 1: We are going to Mumbai Document 2: Mumbai is a famous place. Document 3: We are going to a famous place. Document 4: I am famous in Mumbai. we
are
going
to
Mumbai
is
a
famous
place
I
am
in
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
0
0
0
1
1
1
1
0
0
1
1
1
0
0
0
0
0
0
0
1
0
0
1
0
1
1
1
550
Part B_AI Grade 10.indb 550
4/12/2025 4:06:59 PM
ii. Inverse document frequency The second part of TFIDF is known as Inverse Document Frequency. Document frequency refers to the number of different documents that contain a particular word, regardless of how often the word appears in each document.
The vocabulary’s document frequency would be as follows: we
are
going
to
Mumbai
is
a
famous
place
I
am
In
2
2
2
2
3
1
2
3
2
1
1
1
For inverse document frequency, we need to put the document frequency in the denominator, and the total number
of documents should be in the numerator. Since there are four documents in total in this case, the inverse document frequency is as follows:
we
are
going
to
Mumbai
is
a
famous
place
I
am
In
4/2
4/2
4/2
4/2
4/3
4/1
4/2
4/3
4/2
4/1
4/1
4/1
The TFIDF formula for any word W is as follows:
TFIDF(W) = TF(W) * log(IDF(W))
Log is to the base of 10 in this case.
Multiplying each row in the document vector table by the IDF values, we get the following: we
are
going
to
Mumbai
is
a
famous
place
I
am
in
1*log(2) 1*log(2) 1*log(2) 1*log(2) 1*log(4/3) 0*log(4) 0*log(2) 0*log(4/3) 0*log(2) 0*log(4) 0*log(4) 0*log(4) 0*log(2) 0*log(2) 0*log(2) 0*log(2) 1*log(4/3) 1*log(4) 1*log(2) 1*log(4/3) 1*log(2) 0*log(4) 0*log(4) 0*log(4) 1*log(2) 1*log(2) 1*log(2) 1*log(2) 0*log(4/3) 0*log(4) 1*log(2) 1*log(4/3) 1*log(2) 0*log(4) 0*log(4) 0*log(4)
0*log(2) 0*log(2) 0*log(2) 0*log(2) 1*log(4/3) 0*log(4) 0*log(2) 1*log(4/3) 0*log(2) 1*log(4) 1*log(4) 1*log(4) we
are
going
to
Mumbai
is
a
famous
place
I
am
in
0.301
0.301
0.301
0.301
0.125
0
0
0
0
0
0
0
0
0
0
0
0.125
0.602
0.301
0.125
0.301
0
0
0
0.301
0.301
0.301
0.301
0
0
0.301
0.125
0.301
0
0
0
0
0
0
0
0.125
0
0
0.125
0
0.602
0.602
0.602
The words having the highest values are: is, I, am, in. (Since we have a small dataset, even common words like ‘is’ and ‘a’ have relatively high values.)
2. The following are the key steps involved in text normalisation: Sentence Segmentation
Tokenisation
Removing Stopwords, Special Characters, and Numbers
Lemmatisation
Stemming
Converting Text to a Common case
i. Sentence Segmentation: In sentence segmentation, we break down a large text (corpus) into individual sentences. Each sentence is then treated as a separate piece of data.
ii. Tokenisation: After segmenting the text into sentences, the next step is to divide each sentence into tokens. Tokens refer to individual elements of the sentence, such as words, numbers, and special characters.
Answer Key
Part B_AI Grade 10.indb 551
551
4/12/2025 4:06:59 PM
iii. Removing Stopwords, Special Characters, and Numbers: During data preprocessing, we retain only the most relevant
tokens by removing those that don’t contribute meaningfully, such as stopwords, special characters, and unnecessary numbers. Stopwords like “the,” “is,” “an”, “and”, “there”, etc. are crucial for human readability but add little value in
computational text analysis. Removing them streamlines the data, allowing focus on words with the most semantic weight.
iv. Converting text to common case: After stopword removal, we convert all characters to a standard case, typically
lowercase. This ensures that the machine doesn’t treat the same words as different due to variations in letter case.
v. Stemming: In NLP, stemming is a method for refining words to their most basic or root form. Words are stripped of their prefixes and suffixes in order to create a fundamental form called the root word.
vi. Lemmatisation: Lemmatisation is an NLP technique that involves reducing words to their base or root form. Unlike
stemming, lemmatisation ensures that the word we get after affix removal (also known as lemma) has a meaning, and hence it takes a longer time to execute than stemming.
After normalising text into tokens, the next step is to convert these tokens into numerical values using the bag-ofwords algorithm.
3. Here is how NLP plays a pivotal role in enhancing chatbot capabilities: i. Customer Support: Chatbots are widely used by organisations to provide customer services on websites and social
media platforms. These chatbots can address frequently asked questions, assist with troubleshooting, and transfer complex issues to the right team member when needed.
ii. E-commerce Product Recommendations: NLP is used by chatbots to engage in conversations with users in order to understand their preferences and provide personalised product recommendations.
iii. Educational Assistance: Chatbots are used in the educational field to provide academic support, such as helping students with homework, providing conceptual explanations, quizzing students, offering study tips, etc.
4. Smart Bot learns using machine learning and natural language processing (NLP). It studies user inputs to understand
intent and context, and improves by identifying patterns in conversations. As more users interact with it, the bot becomes better at giving accurate responses. It also uses feedback and data updates to refine its answers. This allows the bot to get smarter over time without needing manual reprogramming.
5. Chatbots improve customer service by offering instant, 24/7 support. In retail, they help with product questions and order tracking. In banking, they assist with balance checks and simple transactions. In healthcare, they handle appointment
bookings and basic health queries. By automating common tasks, chatbots reduce wait times and allow human agents to focus on complex issues, making service faster and more efficient.
F. 1. Context is important because it helps the NLP model interpret the correct meaning of words with multiple meanings. For example, “bank” can mean a financial institution or the side of a river, depending on the context.
2. Google Translate 3.
i. The dog barked loudly at the strangers.
In this sentence, "bark" refers to the sound made by a dog.
ii. The tree's bark was rough to the touch.
Here, "bark" refers to the outer covering of a tree.
iii. The captain gave a command from the bark, a small sailing vessel.
In this context, "bark" refers to a type of boat.
4. I would choose a Script Bot if customer queries are simple and repeated, and a Smart Bot if queries are complex and varied. I would consider cost, setup time, and the type of customer support needed.
5. A chatbot could help report pollution or wildlife sightings. A Smart Bot would be suitable to understand various user inputs and provide location-based advice or data collection support.
552
Part B_AI Grade 10.indb 552
4/12/2025 4:07:00 PM
Unit 7: Advance Python (To be assessed through practicals) Answer Key A. 1. c
2. c
6. b
7. b
B. 1. faster
2. skip
6. homogeneous
3. b
4. b
5. b
3. indentation
4. changed
5. reverse
7. shape
C. 1. True 2. False. The replace() function cannot modify a string directly. The replace() function returns a new string with the specified replacements, and the original string remains unchanged.
3. True 4. False. Lists can store different types of elements. 5. True 6. False. NumPy arrays are homogeneous and store only one data type. 7. True. D. 1. You can use the slicing operator to extract a substring in Python by specifying the start and the end indices in the format string[start:end]. For example, string[2:5] extracts the substring from index 2 to index 4.
2. The simplest method to install and use Jupyter Notebook is by using Anaconda. Anaconda is a free and open-source
environment for writing and executing Python programs. It offers a significant benefit because it includes numerous preinstalled packages often used in machine learning and data science.
3. DataFrame is a fundamental data structure in Pandas. It represents a two-dimensional and tabular data structure with labelled axes (rows and columns). DataFrames are commonly used for data analysis and manipulation.
4. The output of the code is: 2 5. A Python list can store mixed data types and is flexible but slower for numerical tasks. A NumPy array stores only one data type and supports faster, more efficient numerical operations.
6. The np.linspace() function creates an array of evenly spaced numbers over a specified range, useful for plotting or sampling. E. 1. Code:
sentence = 'Learning Python is fun!'
new_sentence = sentence.replace('fun', 'awesome')
print(new_sentence) Output:
Learning Python is awesome!
2. The term “NumPy” is an abbreviation for “Numerical Python”. NumPy is a commonly used package for working with
numbers. It provides support for arrays and matrices, along with a collection of mathematical functions to operate on them efficiently. It has built-in mathematical tools that make calculations easy.
Answer Key
Part B_AI Grade 10.indb 553
553
4/12/2025 4:07:00 PM
3.
Lists
Tuples
Lists are mutable.
Tuples are immutable.
You can easily insert or delete data items in a list.
You cannot directly insert or delete data items in a tuple.
Lists have several built-in methods.
Due to immutability, a tuple does not have many built-in
Lists are generally slower than tuples because of their
Tuples are faster than lists.
Lists are created using square brackets [].
Tuples are created using parentheses ().
Example: list1 = [1, 2, 3]
Example: tuple1 = (1, 2, 3)
mutability.
methods.
4. pop(): This method is used to remove the element at the specified position. Syntax: list.pop(position)
For example, remove the third element from the list = [5, 2, 7, 5, 8, 5, 1].
[Hint: The third element has an index 2.]
Code:
list = [5, 2, 7, 5, 8, 5, 1]
list.pop(2) print(list) Output: [5, 2, 5, 8, 5, 1] remove(): This method is used to remove the first occurrence of the specified element. Syntax: list.remove(element)
For example, remove 5 from the list = [5, 2, 7, 5, 8, 5, 1]. Code:
list = [5, 2, 7, 5, 8, 5, 1]
list.remove(5) print(list) Output:
[2, 7, 5, 8, 5, 1]
5. NumPy arrays are created using the np.array() function by passing in a list or list of lists. There are also built-in functions to create arrays quickly.
np.zeros() creates an array filled with zeros. np.ones() creates one filled with ones. np.arange() generates a range of numbers with a given step size. np.linspace() creates evenly spaced values over a specified range. 6. NumPy arrays are faster and more memory-efficient than Python lists, especially for large datasets. They support elementwise operations, meaning you can perform arithmetic directly on arrays without writing loops. NumPy also offers a wide
range of optimised functions for mathematical, statistical, and linear algebra operations. These advantages make NumPy ideal for scientific computing and data analysis.
554
Part B_AI Grade 10.indb 554
4/12/2025 4:07:00 PM
F. 1. Code:
Stu_list = ['Lata', 'Rama', 'Ankit', 'Vishal']
Stu_list.append('Sushma') print(Stu_list) Output:
['Lata', 'Rama', 'Ankit', 'Vishal', 'Sushma']
2. Code:
str1 = 'Hello'
str2 = 'World'
result = str1 + str2
print(result) Output: HelloWorld 3. The error is that the input() function returns values as strings, so when num1 and num2 are added, they will be
concatenated as strings rather than summed as integers. To fix this, you need to convert the input values to integers (or floats) before adding them.
Corrected Code:
num1 = int(input("Enter first number: "))
num2 = int(input("Enter second number: "))
result = num1 + num2
print("The sum is:", result)
4. The output of the program is:
The squares are: [1, 4, 9, 16, 25]
5. Aryan and Meera can use a NumPy array to store the daily temperatures by converting their list of temperature readings using np.array(). To find the average temperature, they can use np.mean(), for the highest, np.max(), and for the lowest, np.min().
6. Riya can store image data as a NumPy array, where each pixel is represented by a number (or set of numbers for colour
images). She can use NumPy functions to reshape, filter, or modify pixel values. This helps her process the image quickly and perform operations like cropping, converting to grayscale, or adjusting brightness.
Answer Key
Part B_AI Grade 10.indb 555
555
4/12/2025 4:07:00 PM
The Artificial Intelligence (AI) series for grades 9 and 10 by Uolo aims to expose learners to essential elements in AI and introduce common domains and applications of AI to them. It also introduces the fundamentals of AI to the learners through engaging activities that can be done in a computer lab or on a computer at home. This series paves the way for students to become informed participants in the exciting future shaped by artificial intelligence.
Artificial Intelligence
About the Book
10
Key Features • Engaging In-chapter Activities: Engaging activities within each chapter that offer students practical experience of various AI concepts and domains, thereby facilitating a deeper understanding.
• Let’s Revise: To reinforce takeaways of each chapter, these chapter-end summaries include key points that recaps everything that has been covered in the chapter.
• Activity Section: To further enhance student proficiency, all the chapters end with an unsolved activity which provides additional practice of the AI concepts.
10
• Chapter Checkup: Comprehensive exercises at the end of each chapter that have various question types, like fill in the blanks, true or false, multiple-choice, short answer, long answer, and application-based questions to provide students a thorough revision of the text.
Subject Code 417
About Uolo Uolo partners with K-12 schools to provide technology-enabled learning programs. We believe that pedagogy and technology must come together to deliver scalable learning experiences that generate measurable outcomes. Uolo is trusted by over 15,000+ schools across India, Southeast Asia, and the Middle East.
hello@uolo.com �649
ISBN 978-93-49697-88-1
Singapore
AI_G10_CS_MB_Cover_2025.indd All Pages
|
Gurugram
|
Bengaluru
|
© 2025 Uolo EdTech Pvt. Ltd. All rights reserved.
NEP 2020 based
|
Latest CBSE curriculum aligned
11/04/25 5:17 PM