Skip to content
πŸ“š Free notes, MCQ tests & past papers β€” FBISE & BISE Rawalpindi
πŸ“’ Latest Updates

FBISE 2nd Year Computer Science Unit 4 Data and Analysis: Short and Long Questions with Answers 2027

Reviewed by Sadia Shahid, Senior Science teacher (Maths, Physics, Chemistry, Biology, Computer Science)

Here are the important short and long questions of Unit 4, Data and Analysis, from the Federal Board (FBISE) 2nd Year Computer Science course (HSSC-II, Intermediate Part II), solved in full for the Annual Examination 2027.

Unit 4: Data and Analysis
Class 2nd Year (HSSC-II), Federal Board
Subject Computer Science
Contents Short and long questions with answers
Exam FBISE Annual Examination 2027

Short Questions with Answers: Unit 4

Q1. Convert the following table from Second Normal Form (2NF) to Third Normal Form (3NF). [Model Paper 2025 (New Curriculum)] (03)

Answer:

  • In the table, CustomerName and CustomerCity depend on OrderID (through the customer), and ProductName depends only on ProductID. Customer details also depend on the customer, not on the order key, which is a transitive dependency. These must be removed for 3NF.

  • 3NF tables:

Customers

CustomerID CustomerName CustomerCity
C1 Ahmed Khan Karachi
C2 Sana Baloch Lahore
C3 Bilal Ahmed Islamabad

Orders

OrderID CustomerID
101 C1
102 C2
103 C3

Products

ProductID ProductName
P001 Laptop
P002 Mouse
P003 Keyboard

Order_Details

OrderID ProductID Quantity
101 P001 2
101 P002 1
102 P001 1
103 P003 3
  • Now every non-key attribute depends only on the key of its own table, so there is no redundancy and no transitive dependency.

Q2. Consider the following table and write the output of the following SQL queries: [Model Paper 2025 (New Curriculum)] (1.5+1.5)

(a) SELECT * FROM employees WHERE department = ‘IT’;

(b) SELECT AVG(salary) AS average_salary FROM employees;

Answer:

  • (a) SELECT * FROM employees WHERE department = ‘IT’;

E_id name D_id department salary
1 Ali 100 IT 80000
4 Ayesha 100 IT 85000
  • (b) SELECT AVG(salary) AS average_salary FROM employees;

  • AVG = (80000 + 60000 + 90000 + 85000 + 70000)/5 = 385000/5

average_salary
77000

Q3. Write down any three benefits of data visualization in making data-driven decisions. [Model Paper 2025 (New Curriculum)] (03)

Answer:

  • Quick understanding of large data: charts and graphs summarise thousands of values, so trends and patterns are seen at a glance.

  • Identifying trends, outliers and relationships: e.g. sales rising each month or an unusual drop, which helps managers act quickly and correctly.

  • Better communication and decisions: dashboards and infographics make complex results clear to non-experts, supporting evidence-based (data-driven) decisions and comparison of options.

Q4. Briefly discuss the role of p-values in hypothesis testing. [Annual 2026 – Paper B] (03)

Answer:

  • The p-value is the probability of getting results as extreme as the observed data, assuming the null hypothesis (Hβ‚€) is true.

  • It is compared with the significance level (Ξ±, usually 0.05):

  • p ≀ 0.05: the result is statistically significant, so reject Hβ‚€ (evidence supports H₁).

  • p > 0.05: not significant, so fail to reject Hβ‚€.

  • A smaller p-value means stronger evidence against Hβ‚€. It does not prove that H₁ is true, and it does not measure the size of the effect.

Q5. What is meant by data normalization? State any two forms of normalization. [Annual 2026 – Paper B] (1+1+1)

Answer:

  • Data normalisation is the process of organising data in a relational database into well-structured tables, to reduce data redundancy (duplication) and avoid insertion, update and deletion anomalies. Large tables are divided into smaller related tables linked by keys.

  • Forms of normalisation:

  • First Normal Form (1NF): each cell holds a single (atomic) value and there are no repeating groups.

  • Second Normal Form (2NF): in 1NF, and every non-key attribute depends on the whole primary key (no partial dependency).

  • (Third Normal Form, 3NF: in 2NF, with no transitive dependency.)

Q6. What are mean, median and mode in descriptive statistics? [Annual 2026 – Paper B] (1Γ—3)

Answer:

  • Mean: the arithmetic average = sum of values Γ· number of values. e.g. for 2, 4, 6: mean = 12/3 = 4.

  • Median: the middle value when data is arranged in order (average of the two middle values if n is even). e.g. for 3, 5, 9: median = 5.

  • Mode: the value that occurs most frequently. e.g. for 2, 3, 3, 7: mode = 3.

Q7. What is the difference between a null hypothesis (Hβ‚€) and an alternative hypothesis (H₁)? [Annual 2026 – Paper D] (1.5+1.5)

Answer:

Null hypothesis (Hβ‚€) Alternative hypothesis (H₁)
States that there is no effect, no difference or no relationship States that there is an effect, difference or relationship
Assumed true until evidence shows otherwise What the researcher wants to prove
e.g. “The new study technique has no effect on marks.” e.g. “The new study technique improves marks.”

Q8. Write down the concept of primary key. Give an example. [Annual 2026 – Paper D] (2+1)

Answer:

  • A primary key is a field (or combination of fields) that uniquely identifies each record (row) in a database table. It must be unique and cannot be NULL, and a table has only one primary key.

  • Example: in a Students table, StudentID (or Roll No.) is the primary key, because no two students have the same ID, while names can repeat.

Q9. Briefly discuss the role of P-value in hypothesis testing with examples. [Annual 2026 – Paper D] (1.5+1.5)

Answer:

  • The p-value tells how likely the observed result is if Hβ‚€ were true. If p ≀ Ξ± (0.05), Hβ‚€ is rejected.

  • Example 1: testing whether a new medicine lowers blood pressure gives p = 0.01. Since 0.01 < 0.05, reject Hβ‚€: the medicine has a significant effect.

  • Example 2: testing whether boys and girls score differently gives p = 0.30. Since 0.30 > 0.05, Hβ‚€ is not rejected: no significant difference.

Long Questions with Answers: Unit 4

Q1. A researcher is studying the effect of a new study technique on student performance. [Model Paper 2025 (New Curriculum)] (2+2+1)

(a) In the above context define Null Hypothesis and Alternative Hypothesis.

(b) Explain the role of P-values in hypothesis testing.

(c) Communicate your findings using data visuals.

Answer:

(a) Hypotheses

  • Null hypothesis (Hβ‚€): the new study technique has no effect on student performance (mean score with the new technique = mean score with the traditional method).

  • Alternative hypothesis (H₁): the new study technique improves (changes) student performance (mean score with the new technique > mean score with the traditional method).

(b) Role of p-values

  • After collecting data (e.g. test scores of two groups) and applying a statistical test (t-test), the p-value gives the probability of obtaining such a difference if Hβ‚€ were true.

  • If p ≀ 0.05 (significance level Ξ±), the result is statistically significant, so reject Hβ‚€: the technique has a real effect.

  • If p > 0.05, fail to reject Hβ‚€: there is not enough evidence. e.g. p = 0.002 means a difference this large would occur by chance only 0.2% of the time.

(c) Communicating findings with visuals

  • A bar chart comparing mean scores of the two groups, and a box plot showing the spread, clearly show the improvement. The report states: “Students using the new technique scored 12% higher on average (p = 0.002), so Hβ‚€ is rejected.”

Diagram: (c) Communicating findings with visuals

Sample data visuals for communicating findings

Q2. Explain the process of hypothesis formulation. Discuss the role of the null and the alternative hypothesis with suitable example. [Annual 2026 – Paper B] (2+3)

Answer:

Process of hypothesis formulation

  • 1. Identify the research problem/question: e.g. “Does daily exercise affect students’ exam results?”

  • 2. Review background information and observations about the variables.

  • 3. Identify the variables: independent (exercise) and dependent (exam score).

  • 4. State the null and alternative hypotheses in clear, testable and measurable terms.

  • 5. Choose the significance level (Ξ± = 0.05) and the method of testing, then collect data and test.

Role of null and alternative hypotheses

  • Null hypothesis (Hβ‚€): states that there is no effect, no difference or no relationship. It is the default assumption that is tested and either rejected or not rejected using data (p-value).

  • Alternative hypothesis (H₁): states that there is an effect, difference or relationship. It is what the researcher wants to support, and it is accepted when Hβ‚€ is rejected.

  • Together they make the research objective and testable.

Example

  • Hβ‚€: “Daily exercise has no effect on students’ average exam scores.”

  • H₁: “Students who exercise daily have higher average exam scores.”

  • If the test gives p = 0.01 (< 0.05), Hβ‚€ is rejected and H₁ is supported.

You can find the other units of 2nd Year Computer Science on the main page: FBISE 2nd Year Computer Science short and long questions, all units.

Questions follow the FBISE HSSC-II Computer Science syllabus and paper pattern. Please confirm all dates and figures on the official website: www.fbise.edu.pk

Need help with 2nd Year Computer Science? Join our live online classes for the Federal Board. Book a free demo class.

All chapters of this subject

πŸ“Œ Struggling with this chapter? Join our live online tuition β€” one-to-one or small group classes with experienced teachers. Book a free demo class β†’

Ask a question about this topic

Your email address will not be published. Required fields are marked *