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
- Data and its types
- Organising data: tables, charts, graphs
- Data collection methods and online sources
- Structured vs unstructured data, storage techniques
- Data visualisation
- Pre-processing and analysis (mean, median, mode, variance)
- Collaborative tools and cloud storage
- Data science and Big Data
- Exercise: MCQs, short and long questions
- 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.
| Aspect | Nominal | Ordinal | Discrete | Continuous |
|---|---|---|---|---|
| Group | Qualitative | Qualitative | Quantitative | Quantitative |
| Meaning | Labels with no order | Categories with an order, uneven gaps | Separate countable values | Any value in a range (fractions, decimals) |
| Examples | Gender, fruit types, colours | Satisfaction level, education level, shirt size | Students in a class, cars in a parking lot | Height 150.5 cm, weight 2.2 kg, 23.7 °C |
| Operations | Equality, grouping, counting, mode | + comparison, ranking, median | + arithmetic (no division into fractions) | All arithmetic including division |
| Statistics | Mode, frequency | Median, mode | Mean, median, range, SD | Mean, median, range, SD |
| Best chart | Bar or pie chart | Bar / stacked bar chart | Histogram, dot plot | Line 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
| Method | Example |
|---|---|
| Survey | Asking classmates their favourite ice-cream flavour (paper, phone or online) |
| Questionnaire | Written form, e.g. “Which school activity do you enjoy most?” |
| Interview | One-to-one talk with a teacher about their experience |
| Observation | Watching how students work in a group project |
| Online sources | Websites, 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.
| Storage | Use | Examples |
|---|---|---|
| Spreadsheet | Small data, budgets, calculations, charts | MS Excel, Google Sheets |
| Database | Large amounts of structured data in tables | Banking, online shopping, school records |
| Data warehouse | Analysing large data from many sources for decisions | Amazon Redshift, Google BigQuery |
| NoSQL (“Not Only SQL”) | Flexible storage for unstructured data: documents, key-value, graphs | MongoDB, 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.
| Measure | Meaning | Example |
|---|---|---|
| Mean | Sum ÷ number of values | (70+80+90+100+110) ÷ 5 = 90 |
| Median | Middle value when sorted (average of two middle values if even) | 70, 80, 90, 100, 110, 120 → (90+100) ÷ 2 = 95 |
| Mode | Most frequent value (can be more than one) | 70, 80, 80, 90, 100 → 80 |
| Range | Highest − lowest | 95 − 60 = 35 |
| Variance | s² = Σ(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
C. Long questions (key points)
- 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.
- Define the goal and target group.
- Design short, clear multiple-choice questions (sports, art, debate, science club).
- Create it in Google Forms; test it.
- Share the link; keep it anonymous.
- Collect responses; clean the data.
- Analyse counts and percentages; make a bar or pie chart; report findings.
- 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.
- 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.
- 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.
