These are the complete exercise solutions for Unit 6, Data Science and Data Gathering, from the Punjab Board 9th Class Computer Science & Entrepreneurship textbook (PECTAA). They are written by the computer science teachers of Learn with Nexora for the Annual Examination 2027 of BISE Rawalpindi, Lahore and all other Punjab boards, and follow the new ALP Smart Syllabus 2026-27.
All answers follow the wording of the textbook. MCQs show the correct option, short questions are written in the 2-mark style of the PECTAA model paper, and long questions are written in the detailed 8-mark style. Question numbers match the book exercise so you can find each one quickly.
| Unit | 6: Data Science and Data Gathering |
|---|---|
| Class | 9th Class (Matric Part I), Punjab boards |
| MCQs answered | 7 |
| Short questions answered | 9 |
| Long questions answered | 6 |
| ALP 2027 deletions | None |
Good news: nothing has been deleted from Unit 6 in the ALP Smart Syllabus 2026-27, so every exercise question below is part of the 2027 board exam. Prepare the whole unit.
Unit 6 MCQs with answers
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
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
3. 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
4. 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
5. 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
6. Which tool is specifically designed for creating detailed and interactive visualizations?
(a) Microsoft Excel (b) Google Sheets (c) Tableau (d) PowerPoint
Answer: (c) Tableau
7. What is the first step in the data science process?
(a) Data Cleaning (b) Data Analysis (c) Data Collection (d) Understanding the problem
Answer: (a) Data Cleaning
Note: As given in the book’s answer key. The book states that data pre-processing (cleaning and organizing the data) is the first and most important step in working with data.
Unit 6 short questions with answers
Q.1 Write two differences between qualitative and quantitative data?
| Basis | Qualitative Data | Quantitative Data |
|---|---|---|
| Meaning | Categories or labels used to describe the qualities or characteristics of something. | Numbers used to measure the quantity or amount of something. |
| Nature | Non-numeric, descriptive and categorical. | Numerical, measurable, countable and arithmetical. |
| Example | Names of students (Ali, Badar, Qasim), types of fruit. | Heights, weights, test scores, number of students. |
Q.2 Which method would you use to collect opinions from a large group of people about a new school policy?
Ans. I would use a survey. Surveys collect information from people by asking them questions; this can be done on paper, over the phone or online. For a large group, an online survey made with a free tool such as Google Forms can be shared with everyone to collect their responses easily.
Q.3 What type of data is the number of students in your class?
Ans. It is quantitative data. Quantitative data consists of numbers used to measure the quantity or amount of something, and it is countable, e.g. the number of students or the number of cars.
Q.4 Why is it important to organise data into tables or charts before analyzing it?
Ans. Organizing data systematically is very important for clear analysis and interpretation. Well-organised data reduces errors, saves time and improves clarity. By organising data into tables, charts and graphs, you can quickly grasp what the data is saying, making it simpler to draw conclusions and make decisions.
Q.5 Explain why data visualization is important.
Ans. Data visualization is the process of turning numbers and information into pictures. These pictures make it easier for us to understand what the data is telling us. When we look at data in the form of charts or graphs, it becomes simpler to see patterns, trends and relationships.
Q.6 For which purpose do we use line graph?
Ans. Graphs are visual tools used to represent data and show relationships between different data points. A line graph is used to show how data changes over time, so patterns and trends become easy to see, e.g. a graph showing your test scores and progress over time.
Q.7 How does Microsoft Power BI help in data visualization?
Ans. Microsoft Power BI allows users to create a wide variety of visualizations, including charts, graphs, maps and more, to represent data in an intuitive and understandable format.
Q.8 How can we use Python in Data Science?
Ans. Python is a popular programming language used in data science for analysing data and building data models. It comes with powerful libraries like Pandas, for data manipulation, and Matplotlib, for creating graphs. For instance, you might use Pandas to analyse data from a survey and then use Matplotlib to create a chart that shows the results.
Q.9 What is SQL?
Ans. SQL (Structured Query Language) is used to manage and query databases. For instance, to find all students who scored above 90 on a test from a large database, SQL allows you to extract this specific information quickly.
Unit 6 long questions with answers
Q.1 Explain the differences between qualitative and quantitative data.
Data consists of raw facts collected about things around us that we can process to generate useful information. It can take many forms, such as numbers, words, measurements, observations, or even images and sounds. Data can be divided into two broad categories, namely qualitative and quantitative.
Qualitative Data
Qualitative data refer to categories or labels used to describe the qualities or characteristics of something rather than its quantity. This type of data offers a way to categorize and provide insights into opinions, behaviours and experiences through descriptions rather than numbers. Its key characteristics are:
- Non-Numeric: represented by words, labels or symbols instead of numbers; it describes attributes rather than quantities, e.g. the names of students in a class (Ali, Badar, Qasim).
- Categorical: can be divided into categories or classes based on their characteristics, e.g. types of fruit.
Quantitative Data
Quantitative data consists of numbers used to measure the quantity or amount of something. These data types answer questions like "How much?" or "How long?" and can be useful for mathematical calculations and statistical analyses. Its key characteristics are:
- Numerical: expressed in numbers, e.g. heights, weights and test scores.
- Measurable: can be measured using instruments or tools, e.g. a ruler for length and a thermometer for temperature.
- Countable: can be counted, e.g. the number of students or the number of cars.
- Arithmetical: can be used in arithmetic operations, e.g. multiplying the unit price of a fruit by its weight to find the total price.
Differences
| Basis | Qualitative Data | Quantitative Data |
|---|---|---|
| Meaning | Categories or labels used to describe the qualities or characteristics of something rather than its quantity. | Numbers used to measure the quantity or amount of something. |
| Nature | Non-numeric, descriptive and categorical. | Numerical, measurable, countable and arithmetical. |
| Questions answered | Describes opinions, behaviours and experiences. | Answers questions like "How much?" or "How long?" |
| Use | Gives insights through descriptions rather than numbers. | Useful for mathematical calculations and statistical analyses. |
| Examples | Names of students, types of fruit, favourite ice cream flavours. | Heights, weights, test scores, number of students or cars. |
Q.2 Describe the process of conducting a survey to gather data about students’ favourite extracurricular activities.
Data collection is the process of gathering information to answer questions, make decisions or understand something better. Surveys collect information from people by asking them questions; this can be done on paper, over the phone or online. The process of conducting the survey is as follows:
- Create the Survey: Design a short survey with clear, specific questions on the topic (e.g. "Which extracurricular activity do you enjoy the most? sports, art, music"). Ensure the questions are designed to gather meaningful data.
- Collect Responses: Share the survey link with classmates or a small group to gather responses, and collect data over a specified period. Online tools such as Google Forms (a free tool from Google), Microsoft Forms and SurveyMonkey can be used.
- Organise Data: Enter the collected data into a spreadsheet and organise it into tables, using basic spreadsheet functions to clean and prepare it.
- Create Visuals: Use spreadsheet tools to create at least one chart or graph (e.g. a bar chart or pie chart). Label the charts clearly and ensure they represent the data accurately.
- Share Findings: Present the findings and explain the visuals and what they reveal about the data (for example, which activity is the most popular).
Best practices in survey design and administration
Be clear and specific; keep it short and simple; use multiple choice and rating scales; ensure anonymity; test your survey before sending it out; and analyse the results.
Q.3 Analyse the benefits and challenges of using digital tools like Google Forms for data collection.
Digital tools such as Google Forms (a free tool from Google that helps you create surveys and collect responses online), Microsoft Forms (which allows you to create surveys and quizzes) and SurveyMonkey (a popular tool for creating detailed surveys) are used for collecting data online.
Benefits
- Surveys can be created and responses collected online, so the survey link can easily be shared with a large group of people.
- Several of these tools are free and easy to use.
- Responses can be entered into a spreadsheet, where the data is organised into tables and charts for analysis.
- The best practices of survey design (clear questions, multiple choice and rating scales, anonymity, testing before sending) can be applied easily.
Challenges
- Data quality has to be checked: before using data we need to check that it is accurate, complete and reliable, i.e. whether any data is missing or incorrect.
- Bias: if a survey only includes answers from a limited group, for example students from one school, it may not represent the opinions of everyone, so the data would be biased.
- Collected data may contain errors and outliers, so it must go through data validation and cleaning before analysis.
Q.4 Explain the role of tables and charts in data analysis. Provide examples.
Organizing data systematically is very important for clear analysis and interpretation. To make data easy to understand, it can be organised into tables, charts and graphs. They save time, improve clarity, reduce errors and make it simpler to draw conclusions and make decisions.
Data Tables
Tables present data clearly, making it easy to compare and analyse. For example, a table of students’ scores in different subjects:
| Student | Math | Science | English |
|---|---|---|---|
| Sara | 85 | 78 | 90 |
| Ahmed | 92 | 88 | 79 |
| Fatima | 76 | 81 | 85 |
Charts
Charts are visual representations of data designed to make complex information easier to understand. Charts help identify patterns, trends and outliers in datasets. Common types of charts include bar charts, line charts and pie charts. Example: a pie chart showing the market share of mobile phone brands.
Graphs
Graphs are visual tools used to represent data and show relationships between different data points. Common types include line graphs, bar graphs, scatter plots and histograms. Example: a line graph of your test scores showing your progress over time.
Q.5 Discuss the importance and benefits of data visualization.
Data visualization is the process of turning numbers and information into pictures. These pictures make it easier for us to understand what the data is telling us.
Importance and Benefits
- When we look at data in the form of charts or graphs, it becomes simpler to see patterns, trends and relationships.
- Complex information becomes easier to understand and interpret.
- It helps in drawing conclusions and making decisions, since charts help identify patterns, trends and outliers.
Data Visualization Tools
- Microsoft Excel: a spreadsheet tool that can create various charts and graphs.
- Google Sheets: similar to Excel, it allows you to create and share visualizations online.
- Tableau: a powerful tool specifically designed for creating detailed and interactive visualizations.
- Microsoft Power BI: allows users to create a wide variety of visualizations, including charts, graphs, maps and more, to represent data in an intuitive and understandable format.
Q.6 Why is it essential for businesses and decision-makers to use charts, graphs, and dashboards?
Businesses and decision-makers work with large amounts of data, and data is useful only when it is understood. Charts and graphs turn numbers and information into pictures, which makes it easier to understand what the data is telling us.
- Charts are visual representations of data that make complex information easier to understand and help identify patterns, trends and outliers in datasets.
- Graphs show the relationship between different data points, so decision-makers can compare results quickly.
- Tools such as Tableau and Microsoft Power BI create detailed and interactive visualizations, including charts, graphs and maps, in an intuitive and understandable format, so that users can see all the important information at a glance.
- By quickly grasping what the data is saying, it becomes simpler to draw conclusions and make better decisions. Businesses use data to learn what their customers like and to improve their products.
Download the PDFs
The same answers for all units are available as three printable PDFs:
- All units: MCQs (PDF, 9 pages)
- All units: Short Questions (PDF, 12 pages)
- All units: Long Questions (PDF, 22 pages)
More for 9th Class Computer Science
- All units: 9th Class Computer Science exercise solutions 2027
- 9th Class Computer Science pairing scheme, model paper and official ALP list
- 9th Class Computer Science & Entrepreneurship textbook PDF
The exercise questions are from the PECTAA Computer Science & Entrepreneurship Grade 9 textbook; the deleted list follows the PECTAA Smart Syllabus 2026-27. Please confirm all dates and figures on the official website: pectaa.edu.pk
Need help with 9th Class Computer Science? Join our live online classes for Matric (Punjab and Federal Board). Book a free demo class.

Ask a question about this topic