Class 10 Computer Science · Chapter 5
Introduction to Data Science: questions and answers
Every short question, long question and MCQ on this chapter's free papers, each with its answer. Try one yourself first, then check.
Short questions with answers
Q1 · 2 marks
What is Data Science?
Answer
Data Science is the field where we use data to find patterns, answer questions, and help people or businesses make better decisions. It involves collecting, organizing, analyzing and visualizing data.
Q2 · 2 marks
Why is data important in decision making?
Answer
Data helps people and organizations make better decisions. Without data, decisions may be based on guesses or personal opinions which can lead to mistakes. For example, a school can collect data on which sports students enjoy most before starting a new sports club.
Q3 · 3 marks
Give three real-life applications of Data Science.
Answer
1)Social media: Facebook, YouTube and Instagram use data to show posts and videos we might like.
2)Online shopping: e-commerce websites suggest products using data of previous purchases.
3)Healthcare: hospitals predict diseases and manage patient care. (Transport: Google Maps uses traffic data for fastest routes.
Education: attendance and test results improve learning strategies.)
Q4 · 3 marks
What is the Data Science Life Cycle (DSLC)? Name its six steps.
Answer
The DSLC is a series of steps that help in solving a problem using data.
The steps are:
1)Understanding the Problem, 2) Collecting Data, 3) Cleaning and Validating Data, 4) Analyzing Data, 5) Interpreting Data, 6) Visualizing and Communicating Results.
Q5 · 3 marks
What is the importance of understanding a problem before collecting data?
Answer
Understanding the problem is the most important step in the DSLC. If we do not understand the problem properly, we may collect the wrong data resulting in useless or wrong results. It also helps us decide what data is needed.
Q6 · 2 marks
Which questions should we ask in the first step of the DSLC?
Answer
We ask questions (what, why, who) such as: What are we trying to find out? Why is this problem important? Who will use the results?
Q7 · 3 marks
What does identifying and defining a problem mean? Give an example.
Answer
We first identify a problem that we want to solve using data, then define it clearly and simply.
Example: instead of saying "students are not happy", we can define the problem as "Which school activities do students enjoy the most?"
Q8 · 2 marks
What should we consider when defining a problem?
Answer
(i)Use clear and simple words, (ii) focus on one specific question, and (iii) avoid unclear or general terms.
Q9 · 2 marks
What are objectives? Why are they important?
Answer
Objectives state what we want to achieve after defining the problem. They state (i) what kind of data we need, (ii) what questions we will ask, and (iii) what results we are looking for. They guide the rest of the data science process.
Q10 · 3 marks
Write objectives for the problem "Which school activities do students enjoy the most?"
Answer
1)Find out how many students participate in each activity.
2)Find out which activity is rated as most enjoyable by the students.
3)Recommend which activities should be improved or replaced.
Q11 · 3 marks
Write objectives for the school problem "Many students arrive late at school".
Answer
1)Find out how many students arrive late in month.
2)Identify reasons for being late (e.g. transport, distance, emergency, weather issues).
3)Suggest solutions to reduce late arrivals.
Q12 · 3 marks
Write objectives for the health problem "Many students are not drinking enough water during school hours."
Answer
1)Collect data on how much water students drink daily.
2)Find out reasons for low water intake.
3)Recommend steps to promote healthy habits.
Q13 · 3 marks
What objectives can be set for the business problem "A school canteen wants to know which snacks students like the most"?
Answer
1)Survey students on their favorite snacks.
2)Compare popularity and sales data.
3)Help the canteen manager make smart ordering decisions.
Q14 · 2 marks
What is data collection and why is it called raw material?
Answer
Once the problem and goals are clear, the next step in the DSLC is to collect the required data. Data is like raw material, and we must gather the right kind of data before we can clean, store or analyze it.
Q15 · 3 marks
Name any two methods of collecting data and give one example of each.
Answer
1)Surveys: asking people questions and recording answers, e.g. a survey on which sport students like most.
2)APIs: allow software to collect data automatically, e.g. a school pulling daily attendance data into a report. (Other methods: IoT and sensor data, e.g. smart water meters near fountains; web scraping, e.g. extracting snack prices from online stores.)
Q16 · 2 marks
What is a survey? Give example questions.
Answer
A survey is the easiest and most common method where we ask people questions and record their answers.
Example:
(i)Which sport do you like the most?
(ii)How often do you play it?
(iii)What time of day do you prefer to play?
Q17 · 2 marks
What are APIs? Give an example.
Answer
Application Programmer Interfaces (APIs) allow software to collect data from websites or applications automatically.
Example: a school may use an attendance API to pull daily attendance data into a report.
Q18 · 2 marks
What is IoT and sensor data? Give an example.
Answer
Internet of Things (IoT) devices like smart watches, water dispensers or temperature sensors can automatically collect data.
Example: schools can place smart water meters near fountains to study water drinking habits.
Q19 · 3 marks
What is web scraping? What precaution should be taken?
Answer
Web scraping is a process of programmatically collecting public data from websites, e.g. extracting prices of snacks from online stores to compare them with canteen prices. It should only be done with the teacher and for websites that allow it.
Q20 · 3 marks
How do we choose the right data source?
Answer
We must choose reliable, accurate and relevant sources.
Ask:
(i)Is this data from a trusted place?
(ii)Is it recent or outdated?
(iii)Does it match the problem I want to solve?
Example: for favorite snacks in 2025 we should avoid a survey done in 2020.
Q21 · 2 marks
What is data quality?
Answer
Data quality means the data is (i) Complete (no missing values), (ii) Correct (no mistakes) and (iii) Relevant (matches our problem).
Q22 · 2 marks
What is bias in data? Give an example.
Answer
Bias means the data only shows part of the truth and misses the full picture.
Example: if we only survey boys about their favorite sports, we miss the opinions of girls and the results are unfair or biased toward boys.
Q23 · 2 marks
How does bias in data affect results?
Answer
Biased data shows only part of the truth, so the results become unfair or one-sided and can lead to wrong decisions. Data that is incomplete or biased can lead to wrong decisions.
Q24 · 3 marks
How can bias be avoided when collecting data?
Answer
(i)Ask from a diverse group of people.
(ii)Keep questions neutral and not leading.
(iii)Review answers for strange patterns.
Q25 · 4 marks
Activity: Design a short survey about the free time habits of your classmates. How will you collect and store the data?
Answer
1)Design the survey with 3 to 5 questions.
2)Choose a method (paper based or Google online form).
3)Collect data by asking at least 5 classmates and write down their responses clearly.
4)Store the data: on paper, keep it neat and organized in columns; digitally, save the file with a clear name like FreeTime_YourName.xlsx.
Q26 · 2 marks
What is raw data? Give an example.
Answer
Raw data is the original information we collect from people, sensors, websites or apps. It has not been checked or cleaned yet.
Example: the survey entries in Table 5.2 containing spelling errors and blank cells.
Q27 · 2 marks
What do we mean by "cleaning" data?
Answer
Once we find mistakes in data, we need to fix or remove them. This is called data cleaning.
Q28 · 3 marks
List the common issues found in raw data.
Answer
1)Missing data: blank cells.
2)Duplicate entries: the same student entered twice.
3)Inconsistent formats: "Cricket", "cricket", "CRICKET".
4)Spelling mistakes: "Footbal", "Daliy".
5)Outliers (strange values): Frequency = 1000 times/week.
Q29 · 3 marks
Identify the errors in Table 5.2 (Raw Data about Favorite Sport of Students).
Answer
Table 5.2 contains:
(i)spelling errors i.e. Footbal (ID 3) and Daliy (ID 4);
(ii)missing entries (ID 2 has no favorite sport and ID 3 has no study time of day);
(iii)mixed capitalizations i.e. cricket (ID 1) and Football (ID 4).
Q30 · 4 marks
Activity: Study the messy table (Sadiq, Noor, Maryam, Zara) and list the data errors you can find. How would you correct them?
Answer
Errors include: spelling mistake "Daliy" (Sadiq) which should be "Daily"; missing Time of Day (Noor); missing Frequency (Maryam); and inconsistent formatting where "morning" is not capitalized (it should be "Morning"). Correct them by fixing spellings, standardizing capitalization, and asking the person again for missing values (or removing the row), then rewrite the cleaned table neatly.
Q31 · 3 marks
Why is it important to validate data before using it?
Answer
Raw data is often messy and may contain errors, missing values or wrong entries. If we use data without checking it, our analysis will give wrong results. Validation ensures the data we analyze later is trustworthy.
Q32 · 3 marks
What is data validation? Give an example validation rule.
Answer
Data validation means checking if the data (i) follows correct rules (e.g. only valid sport names), (ii) has the right type of values (e.g. numbers where numbers are expected), (iii) is not fake or silly.
Example rule: only allow Football, Cricket, Badminton or Hockey for "Favorite Sport".
Q33 · 2 marks
How can validation be done in surveys?
Answer
Use multiple choice instead of blank text boxes, make important questions required so no one skips them, and use dropdowns or checkboxes to reduce spelling mistakes.
Q34 · 2 marks
Write two steps you will follow to clean a messy survey.
Answer
1)Fix spelling errors, e.g. "Footbal" to "Football".
2)Standardize formats, e.g. "CRICKET" to "Cricket". (Other steps: remove duplicates, handle missing values by asking again or removing the row, fix invalid data.)
Q35 · 3 marks
Why does cleaning data matter? Explain with an example.
Answer
If we skip cleaning, results can give a wrong picture. For example, misspelled sports, missing study times and duplicates might give "Football: 3 votes, Cricket: 1 vote, Cricket: 2 votes", which is wrong because the two Cricket entries are the same sport. Clean data leads to smart decisions while dirty data leads to incorrect results.
Q36 · 3 marks
What does it mean to analyze data?
Answer
Analyzing data means carefully examining data to (i) summarize it (e.g. how many students chose each option), (ii) compare different groups (e.g. boys vs girls, morning vs evening), (iii) find patterns (e.g. most students prefer football and play in the evening).
Q37 · 2 marks
Which simple tools and measures can be used for data analysis?
Answer
Simple tools: Google Sheets, Microsoft Excel or manual writing in a notebook.
Measures: counts (how many?), averages and frequency (how often?).
Q38 · 3 marks
Interpret the data in Table 5.4 (Cricket 10, Football 5, Hockey 4, Badminton 1).
Answer
From the 20 surveyed students, 10 prefer cricket, 5 football, 4 hockey and only 1 badminton. We can observe that most students prefer cricket and badminton is the least preferred.
Q39 · 3 marks
Using Table 5.5 (Cricket 7, Football 6, Hockey 5, Badminton 2), identify the most popular and least popular sports.
Answer
The most popular sport is Cricket (7 students) and the least popular sport is Badminton (2 students). One possible reason each might be popular or unpopular can be written in simple sentences in the notebook.
Q40 · 3 marks
What is interpreting data? What questions can we ask?
Answer
Interpreting data is finding meaning from data (identifying trends and patterns). After summarizing data we ask: What do the numbers tell us? Why are some options more popular? Are there any surprises or patterns?
Example: if most late students live far from school, we can recommend transport support.
Q41 · 2 marks
What is the purpose of visualizing data using charts?
Answer
Visualizing data makes data easier to understand, shows patterns at a glance and helps share ideas clearly in presentations or reports.
Q42 · 3 marks
Why is data visualization important?
Answer
Data visualization (i) makes data easier to understand, (ii) shows patterns at a glance, and (iii) helps share ideas clearly in presentations or reports. For example, instead of saying "10 students like cricket" we can show it in a bar chart.
Q43 · 3 marks
Name three common types of charts and state what each is used for.
Answer
Bar Chart: comparing groups (e.g. number of students who like each sport).
Pie Chart: showing parts of a whole (e.g. percentage of favorite snacks).
Line Chart: showing changes over time (e.g. number of students arriving late each week).
Q44 · 2 marks
How should results be communicated once a chart is ready?
Answer
Explain your findings by writing 2-3 lines, for example mentioning which option is most popular and which is least popular. Use visuals and words together to tell a clear, short and useful data story, and always label and explain your visuals.
Q45 · 2 marks
Name any two tools used for creating charts.
Answer
Google Sheets and Microsoft Excel.
Q46 · 3 marks
Write the steps to create a chart in Google Sheets.
Answer
1)Enter your data into rows and columns.
2)Select the data range.
3)Click on the Insert menu and choose Chart.
4)Pick the chart type (bar, pie, line).
5)Customize the chart with a title, label and color.
Q47 · 2 marks
Why do we make use of spreadsheets to create charts?
Answer
Spreadsheets are (i) easy to use, (ii) need no installation (for Google Sheets) and (iii) good for small to medium-sized projects.
Q48 · 4 marks
Activity: How will you draw a bar chart, pie chart and line chart from the survey data given in Table 5.4?
Answer
Use the sample data of Table 5.4 (Cricket 10, Football 5, Hockey 4, Badminton 1). Draw a bar chart to compare the number of students for each sport, a pie chart to show each sport as a part of the whole (20 students), and a line chart of the frequencies. Label each chart and present your findings in the notebook using simple sentences, e.g. "Most students like cricket."
Q49 · 2 marks
What is a Database Management System (DBMS)? Give examples.
Answer
A DBMS is software used to create, manage and interact with databases. Examples include MySQL, SQLite and Microsoft Access.
Q50 · 3 marks
Define table, record and field.
Answer
Table: a group of related data (e.g. Sports Survey), like a mini spreadsheet.
Record: a single entry (row) in the table (e.g. Ali's full row of data).
Field: a specific piece of information, i.e. a column, in a table (e.g. Name, Sport, Frequency).
Long questions with answers
Q1 · 6 marks
Explain the importance of data in decision making and describe the real-life applications of Data Science.
Answer
1.What is Data Science?
Data Science is the field where we use data to find patterns, answer questions, and help people or businesses make better decisions. It involves collecting, organizing, analyzing and visualizing data.
2.Importance of data in decision making
Data helps people and organizations make better decisions. Without data, decisions may be based on guesses or personal opinions which can lead to mistakes.
Example: if the school administration desires to start a new sports club, they can first collect data on which sports students enjoy most. This helps them make a smart and fair choice.
3.Real-life applications
- Social media: Facebook, YouTube and Instagram use data to show us posts and videos we might like.
- Online shopping: e-commerce websites suggest products using data of our previous purchases.
- Healthcare: hospitals use data science to predict diseases and manage patient care more effectively.
- Transport: applications like Google Maps use traffic data to suggest the fastest routes.
- Education: data from student attendance and test results is used to improve learning strategies and track progress.
Data Science makes our lives smarter, easier and more personalized.
Q2 · 6 marks
Explain the six steps of the Data Science Life Cycle (DSLC) with one line each.
Answer
The DSLC is a series of steps that help in solving a problem using data. Step 1: Understanding the Problem: clearly understand, identify and define the problem and set objectives (the most important step). Step 2: Collecting Data: gather the required data using methods like surveys, APIs, IoT and sensors, and web scraping. Step 3: Cleaning and Validating Data: check the data and fix or remove errors, missing values and wrong entries so it is trustworthy. Step 4: Analyzing Data: examine the data to summarize it, compare groups and find patterns using counts, averages and frequency. Step 5: Interpreting Data: find meaning from the analysis, i.e. identify trends and patterns and decide what they tell us. Step 6: Visualizing and Communicating Results: share the results using charts and short written summaries so others understand easily.
Q3 · 8 marks
Explain the step Understanding the Problem in the DSLC. Describe how a problem is identified and defined and how objectives are set, with examples.
Answer
1.Importance
Understanding the problem is the most important step in the DSLC. If we do not understand the problem properly, we may collect the wrong data resulting in useless or wrong results.
We ask: What are we trying to find out? Why is this problem important? Who will use the results?
2.Identifying and defining a problem
First we identify a problem that we want to solve using data (related to school, home, city or any area where decisions are made based on information). Then we define it clearly and simply.
Example: instead of "students are not happy", define it as "Which school activities do students enjoy the most?" When defining a problem:
(i)use clear and simple words, (ii) focus on one specific question, (iii) avoid unclear or general terms. A good problem is one that can be answered by collecting and analyzing data.
3.Setting clear objectives
Objectives state what we want to achieve:
(i)what kind of data we need, (ii) what questions we will ask, (iii) what results we are looking for. For the problem above: find out how many students participate in each activity; find out which activity is rated as most enjoyable; recommend which activities should be improved or replaced. Writing objectives like a checklist keeps the project focused.
4.Examples (Table 5.1)
- School: Many students arrive late at school.
Objectives: find how many arrive late in a month; identify reasons; suggest solutions.
- Health: Many students are not drinking enough water during school hours.
Objectives: collect data on daily water intake; find reasons for low intake; recommend steps to promote healthy habits.
- Business: A school canteen wants to know which snacks students like the most.
Objectives: survey students on favorite snacks; compare popularity and sales data; help the canteen manager make smart ordering decisions.
Q4 · 8 marks
Explain the methods of data collection, how to choose the right data source, and how to assess data quality and bias.
Answer
After understanding the problem, the next step is to collect the required data. Data is like raw material.
1.Methods of data collection
- Surveys (online/paper based): the easiest and most common method; we ask people questions and record their answers, e.g. which sport do you like most, how often do you play, what time of day do you prefer. Surveys can be done using Google Forms or printed paper forms.
- APIs and online sources: Application Programmer Interfaces allow software to collect data from websites or applications automatically, e.g. a school pulling daily attendance data into a report.
- IoT and sensor data: devices like smart watches, water dispensers or temperature sensors collect data automatically, e.g. smart water meters near fountains.
- Web scraping: programmatically collecting public data from websites, e.g. extracting snack prices from online stores. It should only be done with the teacher for websites that allow it.
2.Choosing the right data source
Choose reliable, accurate and relevant sources.
Ask: Is this data from a trusted place? Is it recent or outdated? Does it match the problem I want to solve?
Example: for favorite snacks in 2025, avoid a survey done in 2020.
3.Assessing data quality and bias
Data quality means the data is complete (no missing values), correct (no mistakes) and relevant. Bias means the data only shows part of the truth, e.g. surveying only boys misses the opinions of girls.
To avoid bias: ask a diverse group of people, keep questions neutral and not leading, and review answers for strange patterns.
Q5 · 8 marks
Explain data cleaning and validation. Describe common data errors, validation techniques and cleaning methods, and explain why cleaning matters.
Answer
1.Raw data
Raw data is the original information collected from people, sensors, websites or apps. It has not been checked or cleaned yet and may contain errors, missing values or wrong entries. Using it without checking gives wrong results.
2.Common data errors (Table 5.3)
- Missing data: blank cells (e.g. no sport name or study time).
- Duplicate entries: same student entered twice.
- Inconsistent formats: "Cricket", "cricket", "CRICKET".
- Spelling mistakes: "Footbal", "Daliy".
- Outliers (strange values): Frequency = 1000 times/week.
3.Data validation techniques
Validation means checking if data (i) follows correct rules (e.g. only valid sport names), (ii) has the right type of values, (iii) is not fake or silly.
Example rule: only allow Football, Cricket, Badminton or Hockey for "Favorite Sport".
In surveys: use multiple choice instead of blank text boxes, make important questions required, use dropdowns or checkboxes. Google Sheets and Excel provide rules to help validate data.
4.Data cleaning methods
- Fix spelling errors: "Footbal" to "Football".
- Standardize formats: "CRICKET" to "Cricket".
- Remove duplicates (redundancy).
- Handle missing values: ask the person again OR remove the row.
- Fix invalid data: if frequency is written as "ten hundred", fix it or remove it.
5.Why cleaning matters
Without cleaning, results might say "Football: 3 votes, Cricket: 1 vote, Cricket: 2 votes", which gives the wrong picture. Clean data leads to smart decisions. Dirty data leads to incorrect results.
Q6 · 6 marks
Explain how data is analyzed and interpreted in the DSLC. Use Table 5.4 as an example.
Answer
1.Analyzing data
Once data is collected and cleaned, we look at it to find patterns, trends and answers to the questions asked in Step 1. Analyzing data means carefully examining it to (i) summarize it (how many students chose each option), (ii) compare different groups (boys vs girls, morning vs evening), (iii) find patterns (most students prefer football and play in the evening). We use measures like counts, averages and frequency, and simple tools such as Google Sheets, Microsoft Excel or manual writing in a notebook.
2.Example (Table 5.4)
Favorite Sport / Frequency: Cricket 10, Football 5, Hockey 4, Badminton 1 (20 students). From this data we can observe that most students prefer cricket.
3.Interpreting data
Interpreting means finding meaning from data (identifying trends and patterns).
We ask: What do the numbers tell us? Why are some options more popular? Are there any surprises or patterns?
Example: if we find that most late students live far from school, we can recommend providing transport support as a solution.
Q7 · 8 marks
Give a detailed comparison between Bar Chart, Pie Chart, and Line Chart with examples.
Answer
Data visualization makes data easier to understand, shows patterns at a glance and helps share ideas clearly. Always choose a chart that matches your data.
1.Bar Chart
- Used for: comparing groups.
- Example: number of students who like each sport (cricket, football, hockey, badminton shown as separate bars).
- Best when comparing separate categories.
2.Pie Chart
- Used for: showing parts of a whole.
- Example: percentage of favorite snacks, where each slice is a part of 100%.
- Best when we want to show how a total is divided.
3.Line Chart
- Used for: showing changes over time.
- Example: number of students arriving late each week.
- Best when we want to see a trend over time.
Comparison summary: bar chart compares groups, pie chart shows shares of a whole, line chart shows changes over time. Keep charts simple, clean and properly labeled, and explain them in 2-3 lines.
Q8 · 6 marks
Compare spreadsheets and databases. Explain the terms table, record and field and why data should be stored in an organized way.
Answer
1.Spreadsheets vs databases (Table 5.7)
- Spreadsheets: a grid of rows and columns for small datasets.
Example tools: Excel, Google Sheets. Good for small projects.
- Databases: a structured system to store and manage large data in tables.
Example tools: MySQL, SQLite. Better for big or multi-user data systems.
2.Database terms (Table 5.8)
A database is an organized collection of data stored in the form of tables.
Table: a group of related data (e.g. Sports Survey).
Record: a single entry (row) in the table (e.g. Ali's full row of data).
Field: a specific piece of information (column), e.g. Name, Sport, Frequency.
3.Why organize data
Data should be stored in a structured way for easy access and analysis. Organized data is searchable, reduces duplication errors and makes analysis easier. Cleaned data should be stored in a spreadsheet or database before analysis.
Q9 · 6 marks
Differentiate between DBMS and SQL
Answer
DBMS (Database Management System):
- It is software used to create, manage and interact with databases.
- Examples: MySQL, SQLite and Microsoft Access.
- It stores and manages data in tables and helps in storing, retrieving and updating data efficiently.
SQL (Structured Query Language):
- It is a language used to work with data in a database (in relational databases).
- It helps us add, update, delete or retrieve data using simple commands.
- Examples of basic queries: SELECT * FROM Sports shows all data from the table Sports; SELECT Name FROM Sports WHERE Favorite_Sport = 'Cricket' shows names of students who like cricket; INSERT INTO Sports (Name, Favorite_Sport) VALUES ('Ali', 'Football') adds a new entry.
Difference: a DBMS is the software that creates and manages databases, whereas SQL is the language used to give commands to work with the data in them.
Q10 · 4 marks
Write a Query in SQL to get all data of a student who's roll_number is 15 from student table.
Answer
Query: SELECT * FROM student WHERE roll_number = 15; Explanation: - SELECT * means retrieve all fields (all data). - FROM student names the table from which the data is taken. - WHERE roll_number = 15 filters the table so that only the record of the student with roll number 15 is shown. This follows the textbook pattern SELECT * FROM Sports and SELECT Name FROM Sports WHERE Favorite_Sport = 'Cricket'.
Test yourself on this chapter
Timed chapter tests, marked the moment you finish.
Practise with a free account
Save your scores, see which chapters need work, and keep a notebook of every question you got wrong.