These are the solved end-of-unit exercises for Unit 5, Introduction to Data Science, from the new PECTAA Computer Science and Entrepreneurship-10 textbook used by BISE Rawalpindi, Lahore and the other Punjab boards. Every answer is written from the text of the unit, for the 10th Class (SSC Part II) Annual Examination 2027.
This unit covers what data science is, the six steps of the Data Science Life Cycle (DSLC), data collection, data quality and bias, cleaning and validating data, analyzing and visualizing data, spreadsheets and databases, and basic SQL queries.
| Unit | 5: Introduction to Data Science |
|---|---|
| Class | 10th Class (SSC Part II), Punjab boards |
| MCQs answered | 7 |
| Other questions solved | 9 |
Exercise questions deleted in the ALP Smart Syllabus 2027
Under PECTAA’s ALP Smart Syllabus 2027 for Computer Science and Entrepreneurship-10, the following content of Unit 5 is not part of the 2027 annual exam: Section 5.3 Tools for Visualization (the pages on creating charts in Google Sheets and Excel) Β· MCQs 4, 6 and 8 Β· Short Questions 5 and 8 Β· Long Question 2. These questions are skipped on this page:
- MCQ 4 Which tool is ideal for beginners to create charts? (a) Tableau (b) Python (c) Google Sheets (d) Hadoop
- MCQ 6 Which of the following charts is best for comparing groups? (a) Pie Chart (b) Bar Chart (c) Line Chart (d) Area Chart
- MCQ 8 Which of the following tools is an advanced data visualization platform? (a) MS Paint (b) Google Data Studio (c) Notepad (d) WhatsApp
- Short 5 What is the purpose of visualizing data using charts?
- Short 8 Name any two tools used for creating charts.
- Long 2 Give a detailed comparison between Bar Chart, Pie Chart and Line Chart with examples.
Multiple Choice Questions
MCQ 1. What is the first step in the Data Science Life Cycle (DSLC)?
(a) Collecting Data (b) Visualizing Data (c) Understanding the Problem (d) Analyzing the Data
Ans: (c) Understanding the Problem β the six steps start with understanding the problem. Without it we may collect the wrong data and get useless results.
MCQ 2. Which method is best for collecting opinions from many students?
(a) IoT Devices (b) Survey (c) Web Scraping (d) Database
Ans: (b) Survey β surveys (online or on paper) are the easiest and most common way to ask people questions and record their answers.
MCQ 3. What is “bias” in data?
(a) Very large data size (b) Unfair or one-sided data (c) Well-cleaned data (d) High-speed data
Ans: (b) Unfair or one-sided data β bias means the data shows only part of the truth, for example a survey of only boys about favorite sports, so the results are unfair.
MCQ 5. A relational database stores information in the form of:
(a) Slides (b) Tables (c) Blocks (d) Layers
Ans: (b) Tables β a database stores data in tables made of rows (records) and columns (fields).
MCQ 7. What is the main goal of analyzing data?
(a) Delete old data (b) Decorate data (c) Find patterns and make decisions (d) Upload to the internet
Ans: (c) Find patterns and make decisions β analysis summarizes the data, compares groups and finds patterns so that decisions can be made.
MCQ 9. What should be done before storing data?
(a) Add animations (b) Clean and validate it (c) Encrypt it (d) Translate it
Ans: (b) Clean and validate it β the cleaned survey data is stored after errors are fixed and the values are validated, so it is organized and ready to analyze.
MCQ 10. Which one is an example of a data source?
(a) YouTube (b) Survey form (c) Whiteboard (d) Slide show
Ans: (b) Survey form β a survey form collects data directly from people. The book lists surveys, APIs, IoT and sensors and web scraping as sources of data.
Short Questions
Short 1. What is the importance of understanding a problem before collecting data?
Ans: Understanding the problem is the most important step of the DSLC. If the problem is not clear, we may collect the wrong data and the results will be useless or wrong. A clear problem answers three questions: what we are trying to find out, why it matters and who will use the results. It also helps us set objectives that decide what data and questions we need.
Short 2. Name any two methods of collecting data and give one example of each.
| Method | Example |
|---|---|
| Surveys (online or paper) | A survey on favorite sports with questions such as “Which sport do you like the most?”, made in Google Forms or on printed paper. |
| IoT and sensor data | Smart water meters placed near fountains to study how much water students drink. |
The other methods in the book are APIs and online sources (an attendance API pulling daily attendance into a report) and web scraping (collecting snack prices from online stores).
Short 3. What do we mean by “cleaning” data?
Ans: Cleaning data means finding mistakes in the raw data and fixing or removing them: correcting spelling errors, standardizing formats (for example CRICKET to Cricket), removing duplicate entries, handling missing values (ask again or remove the row) and fixing invalid values.
Short 4. Why is it important to validate data before using it?
Ans: Validation checks that the data follows the correct rules, has the right type of values (numbers where numbers are expected) and is not fake or silly. For example, only Football, Cricket, Badminton or Hockey may be allowed as the Favorite Sport. If data is not validated, wrong entries lead to a wrong analysis and wrong decisions. Clean data leads to smart decisions, while dirty data leads to incorrect results.
Short 6. How does bias in data affect results?
Ans: Biased data shows only a part of the truth, so the results are unfair and may lead to wrong decisions. For example, if only boys are asked about their favorite sports, the opinions of girls are missed and the result is biased toward boys. Bias is reduced by asking a diverse group, keeping questions neutral and reviewing the answers for strange patterns.
Short 7. Write two steps you will follow to clean a messy survey.
- Fix spelling errors and standardize formats: change “Footbal” to “Football” and make “cricket” and “CRICKET” into “Cricket”, so the same answer is not counted as different ones.
- Remove duplicates and handle missing values: delete repeated entries of the same student, and for blank cells ask the person again or remove the row.
Long Questions
Long 1. Explain the six steps of the Data Science Life Cycle (DSLC) with one line each.
| Step | What it means |
|---|---|
| 1. Understanding the problem | Identify and define a clear problem that data can answer, and set clear objectives. |
| 2. Collecting data | Gather the right data from reliable sources using surveys, APIs, sensors or web scraping, and check its quality and bias. |
| 3. Cleaning and validating data | Fix errors, duplicates and missing values in raw data and check that it follows the rules. |
| 4. Analyzing data | Summarize the clean data, compare groups and find patterns using counts, averages and frequencies. |
| 5. Interpreting data | Find the meaning in the results, such as trends, reasons and surprises, and decide what to recommend. |
| 6. Visualizing and communicating results | Show the findings in charts and explain them in simple words so others understand. |
Long 3. Differentiate between DBMS and SQL.
| DBMS (Database Management System) | SQL (Structured Query Language) |
|---|---|
| Software used to create, manage and interact with databases. | A language used to work with the data in a database. |
| Examples: MySQL, SQLite, Microsoft Access. | Used to add, update, delete or retrieve data with simple commands. |
| It is the system that stores the data in tables and keeps it organized. | Its commands are given to the DBMS, for example SELECT to retrieve data and INSERT to add a new entry. |
The book’s examples: SELECT * FROM Sports shows all data of the table Sports, and INSERT INTO Sports (Name, Favorite_Sport) VALUES ('Ali', 'Football') adds a new entry.
Long 4. Write a query in SQL to get all data of a student whose roll_number is 15 from the student table.
SELECT * FROM student WHERE roll_number = 15;
SELECT * selects all the fields (columns), FROM student names the table and WHERE roll_number = 15 keeps only the record (row) of the student whose roll number is 15.
More for 10th Class Computer Science
- All units: 10th Class Computer Science exercise solutions 2027
- 10th Class pairing scheme, model papers and ALP deleted topics 2027
- ALP & pairing schemes 2027 for all classes and subjects
The exercise questions are from the PECTAA Computer Science and Entrepreneurship-10 textbook. The deleted list follows the PECTAA ALP Smart Syllabus 2027. Please confirm all dates and figures on the official website: pectaa.edu.pk
Need help with 10th 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