9th Class Computer Science Unit 9 Data Science and Data Gathering – Notes, MCQs and Questions (New Syllabus)

Last updated: 4 December 2026 · Punjab Board 9th Class Computer Science and Entrepreneurship (new syllabus 2025-26) · Unit 9

Easy, exam-focused notes for Unit 9: Data Science and Data Gathering of the new Punjab Board 9th class Computer Science book. Short answers are written to fit the board e-sheet answer space. All exercise MCQs are checked against the textbook answer key.

In this unit

  1. Data and its types
  2. Organising data: tables, charts, graphs
  3. Data collection methods and online sources
  4. Structured vs unstructured data, storage techniques
  5. Data visualisation
  6. Pre-processing and analysis (mean, median, mode, variance)
  7. Collaborative tools and cloud storage
  8. Data science and Big Data
  9. Exercise: MCQs, short and long questions
  10. FAQs

9.1–9.2 Data and its types

Data is raw facts collected about things around us (numbers, words, measurements, images, sounds) that can be processed into useful information. Examples: weather readings, sales records, survey answers, website visitors, social-media likes.

AspectNominalOrdinalDiscreteContinuous
GroupQualitativeQualitativeQuantitativeQuantitative
MeaningLabels with no orderCategories with an order, uneven gapsSeparate countable valuesAny value in a range (fractions, decimals)
ExamplesGender, fruit types, coloursSatisfaction level, education level, shirt sizeStudents in a class, cars in a parking lotHeight 150.5 cm, weight 2.2 kg, 23.7 °C
OperationsEquality, grouping, counting, mode+ comparison, ranking, median+ arithmetic (no division into fractions)All arithmetic including division
StatisticsMode, frequencyMedian, modeMean, median, range, SDMean, median, range, SD
Best chartBar or pie chartBar / stacked bar chartHistogram, dot plotLine graph, scatter plot, box plot

Qualitative data describes qualities (non-numeric, categorical). Quantitative data is numbers that are measurable, countable and can be used in arithmetic. Example: you can divide 2.5 kg of meat among ten people (0.25 kg each – continuous) but not 3 cars among five people (discrete).

9.3 Organising data

  • Organised data saves time, reduces errors and improves clarity.
  • Tables – rows and columns (e.g. students’ marks in Maths, Science, English).
  • Charts – bar, line and pie charts show patterns, trends and outliers.
  • Graphs – line graphs, bar graphs, scatter plots, histograms show relationships between data points.

9.3.1 Data collection methods

MethodExample
SurveyAsking classmates their favourite ice-cream flavour (paper, phone or online)
QuestionnaireWritten form, e.g. “Which school activity do you enjoy most?”
InterviewOne-to-one talk with a teacher about their experience
ObservationWatching how students work in a group project
Online sourcesWebsites, databases, digital tools (Google Scholar, IEEE Xplore, government portals)

Good survey practice: clear and specific, short and simple, use multiple-choice and rating scales, keep it anonymous, test before sending, analyse results. Online tools: Google Forms, Microsoft Forms, SurveyMonkey.

Using online sources: gathering (online databases and resources), extraction (find relevant data, copy and save it, use export/download tools) and integration (organise in one place, compare and merge, write summaries with charts).

9.4–9.5 Structured data and storage

  • Structured data – organised in rows and columns (spreadsheets, databases), easy to search. Example: a table of Student ID, Name, Class, Date of Birth, Fee Status.
  • Unstructured data – free-form text, emails, social-media posts, images, videos; harder to organise but valuable.
StorageUseExamples
SpreadsheetSmall data, budgets, calculations, chartsMS Excel, Google Sheets
DatabaseLarge amounts of structured data in tablesBanking, online shopping, school records
Data warehouseAnalysing large data from many sources for decisionsAmazon Redshift, Google BigQuery
NoSQL (“Not Only SQL”)Flexible storage for unstructured data: documents, key-value, graphsMongoDB, Cassandra

9.6 Data visualisation

Data visualisation turns numbers into pictures (charts, graphs, dashboards) so patterns, trends and relationships are easy to see and decisions are faster. The brain processes visuals much faster than text. Tools: Microsoft Excel, Google Sheets, Tableau (detailed, interactive), Microsoft Power BI. William Playfair drew the first line graph in 1786.

9.7 Data pre-processing and analysis

  • Pre-processing = getting data ready: check quality (missing, wrong, out-of-date entries).
  • Errors – mistakes, e.g. a score of 105 when the maximum is 100. Outliers – extreme values that do not fit the pattern (one student scores 5 while others score 50–80). Bias – distortion, e.g. surveying only one school to represent a whole city.
  • Validation – check completeness (no missing data) and accuracy (all scores 0–100). Cleaning – correct or remove errors, fill missing values (e.g. class average), decide what to do with outliers.
MeasureMeaningExample
MeanSum ÷ number of values(70+80+90+100+110) ÷ 5 = 90
MedianMiddle value when sorted (average of two middle values if even)70, 80, 90, 100, 110, 120 → (90+100) ÷ 2 = 95
ModeMost frequent value (can be more than one)70, 80, 80, 90, 100 → 80
RangeHighest − lowest95 − 60 = 35
Variances² = Σ(x − x̄)² ÷ (n − 1)[2, 4, 6]: (4 + 0 + 4) ÷ 2 = 4
Standard deviation√variance√4 = 2

Qualitative analysis: content analysis (counting words or themes, e.g. “homework stress”) and thematic analysis (finding themes like “difficulty with maths”).

9.8 Collaborative tools and cloud storage

  • Cloud storage saves files online (Google Drive, OneDrive) – access from any device, backups, real-time teamwork.
  • Remote access – use files or a computer from another place through the internet.
  • Backups – copies of data kept separately (USB or cloud) to recover from deletion, hardware failure or viruses.
  • Collaborative authoring – several people edit one document at the same time (Google Slides, Docs). Benefits: higher productivity and version control (earlier versions can be restored).

9.9–9.10 Data science and Big Data

Data science uses computer science, maths/statistics and business knowledge to turn raw data into useful insights. Workflow: problem identification → data collection → data cleaning → data analysis → interpretation → visualisation (e.g. finding why students arrive late).

  • Big Data – data sets too large and complex for traditional tools. Three Vs: Volume (sheer amount), Velocity (speed of generation), Variety (different forms – text, images, numbers).
  • Applications: business (stocking popular items), retail (recommendations), healthcare (predicting outbreaks), finance (fraud detection), transport (Uber route planning).
  • Tools: Excel, Python (Pandas, Matplotlib), R, SQL (querying databases).
  • Techniques: predictive modelling (forecasting from past data), graph analytics (relationships between data points, e.g. social networks).
  • Future trends: more automation, better data privacy, AI integration, advanced interactive visualisation.

Unit 9 exercise (solved)

A. Multiple choice questions

1. What is data?
(a) Processed information   (b) Raw facts gathered about things   (c) A collection of numbers only   (d) A list of observed events
Answer: (b) Raw facts gathered about things – Processed data becomes information.

2. Which of the following is an example of qualitative data?
(a) Temperature readings in degrees Celsius   (b) Number of students in a class   (c) Favourite ice cream flavours   (d) Test scores out of 100
Answer: (c) Favourite ice cream flavours – Flavours are categories, not numbers.

3. What type of data involves distinct, separate values that are countable?
(a) Nominal Data   (b) Ordinal Data   (c) Discrete Data   (d) Continuous Data
Answer: (c) Discrete Data – E.g. number of students.

4. What is an example of continuous data?
(a) Number of cars in a parking lot   (b) Height of students in centimetres   (c) Types of fruits   (d) Shirt sizes (small, medium, large)
Answer: (b) Height of students in centimetres – Height can take decimal values.

5. What type of data is used to categorize items without implying any order?
(a) Ordinal Data   (b) Discrete Data   (c) Nominal Data   (d) Continuous Data
Answer: (c) Nominal Data – Ordinal data has an order.

6. How can you organise data to make it easier to analyse?
(a) By writing it in long paragraphs   (b) By creating tables, charts, and graphs   (c) By storing it in random files   (d) By keeping it in a messy notebook
Answer: (b) By creating tables, charts, and graphs – Tables and charts make patterns clear.

7. Which tool can be used to create surveys online?
(a) Microsoft Word   (b) Google Forms   (c) Excel Spreadsheets   (d) Adobe Photoshop
Answer: (b) Google Forms – Also Microsoft Forms and SurveyMonkey.

8. What is the main purpose of data collection?
(a) To create random numbers   (b) To gather information to answer questions or make decisions   (c) To delete old data   (d) To format text documents
Answer: (b) To gather information to answer questions or make decisions – Data is collected to answer questions.

9. What is the primary purpose of data visualization?
(a) To generate random numbers   (b) To convert text into data   (c) To make data easier to understand by turning it into pictures   (d) To hide complex data
Answer: (c) To make data easier to understand by turning it into pictures – Charts and graphs show patterns quickly.

10. Which tool is specifically designed for creating detailed and interactive visualizations?
(a) Microsoft Excel   (b) Google Sheets   (c) Tableau   (d) PowerPoint
Answer: (c) Tableau – Tableau is a dedicated visualisation tool.

11. What is the first step in the data science process?
(a) Data Cleaning   (b) Data Analysis   (c) Data Collection   (d) Understanding the problem
Answer: (d) Understanding the problem – Problem identification comes first.

12. What does the ‘Volume’ characteristic of Big Data refer to?
(a) The speed at which data is generated   (b) The different forms data can take   (c) The sheer amount of data being collected   (d) The way data is processed
Answer: (c) The sheer amount of data being collected – Speed is velocity; forms are variety.

13. What is an outlier in a dataset?
(a) The most frequent value   (b) The average of all values   (c) An unusual or extreme value that doesn’t fit the pattern   (d) The middle value when all values are arranged in order
Answer: (c) An unusual or extreme value that doesn’t fit the pattern – Mode, mean and median are the others.

14. What does data encryption do?
(a) It converts data into a code to prevent unauthorized access   (b) It makes data available to everyone online   (c) It automatically deletes old data   (d) It speeds up internet connection
Answer: (a) It converts data into a code to prevent unauthorized access – Only someone with the key can read it.

B. Short questions

Q1. What is the difference between qualitative and quantitative data?
Qualitative data describes qualities or categories in words (colours, fruit types). Quantitative data is numbers that measure or count something (height, marks) and can be used in calculations.
Q2. Give an example of continuous data and explain why it is continuous.
Height of students, e.g. 150.5 cm. It is continuous because it can take any value within a range, including fractions and decimals.
Q3. Which method would you use to collect opinions from a large group of people about a new school policy?
An online survey or questionnaire (e.g. Google Forms), because it reaches many people quickly, can be anonymous and the results are easy to analyse.
Q4. What type of data is the number of students in your class?
Quantitative discrete data – it is counted in whole numbers.
Q5. Why is it important to organise data into tables or charts before analysing it?
Organised data reduces errors, saves time and makes patterns, trends and comparisons easy to see, so conclusions are faster and more accurate.
Q6. What is one advantage of using online tools like Google Forms for collecting survey data?
Responses are collected automatically in a spreadsheet and summarised in charts, saving time and avoiding manual typing errors; it can also reach many people anywhere.
Q7. Why might you need to integrate data from different sources when working on a project?
One source may be incomplete or biased. Combining several sources gives a complete and reliable picture, and common findings can be confirmed.
Q8. Describe a scenario where discrete data might be more useful than continuous data.
Taking school attendance: the number of students present each day (whole numbers) is discrete and directly tells how many came; measuring something continuous would not answer “how many”.
Q9. Explain why data visualization is important.
It turns large lists of numbers into pictures, so trends, patterns and outliers are seen at a glance and decisions can be made quickly, e.g. which products sell best.
Q10. Describe what a line graph is used for, with an example.
A line graph shows how a value changes over time, e.g. a city’s temperature each day of a week or a student’s test marks across a year.
Q11. Explain the use of scatter plots in visualizing continuous data.
A scatter plot shows the relationship between two continuous variables as dots, e.g. hours studied vs marks obtained – the dots show whether more study gives higher marks.

C. Long questions (key points)

Q1. Differences between qualitative and quantitative data with examples.
  • Qualitative: words/labels, non-numeric; nominal (colours) and ordinal (satisfaction level); analysed with mode, frequency, ranking.
  • Quantitative: numbers, measurable and countable; discrete (students in class) and continuous (height); analysed with mean, median, range, standard deviation.
Q2. Process of conducting a survey about students’ favourite extracurricular activities.
  1. Define the goal and target group.
  2. Design short, clear multiple-choice questions (sports, art, debate, science club).
  3. Create it in Google Forms; test it.
  4. Share the link; keep it anonymous.
  5. Collect responses; clean the data.
  6. Analyse counts and percentages; make a bar or pie chart; report findings.
Q3. Compare continuous and discrete data in a school setting.
  • Discrete: attendance (number present), number of books issued – whole numbers.
  • Continuous: marks percentages (82.5%), students’ heights, time taken to finish a test.
  • Discrete is counted; continuous is measured and can be divided into fractions.
Q4. Benefits and challenges of digital tools like Google Forms.
  • Benefits: free, fast, reach many people, automatic summaries and charts, fewer errors, easy to share.
  • Challenges: needs internet and devices, fake or duplicate responses, privacy concerns, people may not answer honestly.
Q5. Collecting data on students’ preferences for a school event.
Decide what to ask (activities, refreshments, timing), make a short online survey, share in class groups, set a deadline, put results in a spreadsheet, clean duplicates, and make charts to choose the most popular options.
Q6. Role of tables and charts in analysis; example of students’ grades.
Tables store exact values neatly (student vs subject marks); charts show comparisons visually (a bar chart of each student’s marks per subject). Together they make finding top scorers and weak subjects easy.
Q7. A situation where non-numeric data is essential; collect, store and analyse it.
Students’ written feedback on online classes. Collect through open-ended questions; store as text in a spreadsheet/database; analyse with content analysis (counting words like “internet problem”) and thematic analysis (grouping into themes); check accuracy by careful reading and cross-checking.
Q8. Concept of data visualisation with examples.
Turning data into pictures. Bar charts (comparing categories), pie charts (parts of a whole, e.g. market share), line graphs (trends over time), scatter plots (relationships), dashboards (business performance at a glance).
Q9. Importance of visualisation for businesses and decision-makers.
Quick insight into sales and performance, spotting problems early, comparing branches or products, presenting results to managers clearly, and making faster, data-based decisions using dashboards.
Q10. Differentiate nominal, ordinal, discrete and continuous data with a visualisation for each.
  • Nominal – favourite colours → pie/bar chart.
  • Ordinal – satisfaction levels → bar or stacked bar chart.
  • Discrete – books read per student → histogram or dot plot.
  • Continuous – temperature over a week → line graph; height vs weight → scatter plot.
9th class computer unit 9 MCQs with answers

Unit 9 (Data Science and Data Gathering) exercise MCQ answers: 1-b, 2-c, 3-c, 4-b, 5-c, 6-b, 7-b, 8-b, 9-c, 10-c, 11-d, 12-c, 13-c, 14-a.

What are the types of data in 9th class computer?

Qualitative (nominal and ordinal) and quantitative (discrete and continuous).

What are the 3 Vs of Big Data?

Volume (amount of data), Velocity (speed of generation) and Variety (different forms of data).

How to find mean, median and mode?

Mean = sum ÷ count; median = middle value of sorted data; mode = most frequent value.

Difference between structured and unstructured data

Structured data is in rows and columns (spreadsheets, databases); unstructured data is free-form (emails, posts, images, videos).

📄 Download these notes as PDF

Save this chapter to your phone or computer and read it offline, or share it with your friends.

The PDF downloads directly. Long chapters may take a few seconds.

More 9th Class Computer Science

Need a Computer Science home tutor?

Male & female Computer Science tutors in all major cities of Pakistan, home or online. 3-day free demo.

Scroll to Top