Here are the important short and long questions of Unit 1, Computer Systems, from the Federal Board (FBISE) 1st Year Computer Science course (HSSC-I, Intermediate Part I), solved in full for the Annual Examination 2027.
| Unit | 1: Computer Systems |
|---|---|
| Class | 1st Year (HSSC-I), Federal Board |
| Subject | Computer Science |
| Contents | Short and long questions with answers |
| Exam | FBISE Annual Examination 2027 |
Short Questions
Q1. Write down (any) three differences between analog and digital signals. [1×3] (FAE25 Q4-B; SA25 Q8-B)
| Analog Signals | Digital Signals |
|---|---|
| Continuous signals that vary smoothly over time (continuous waveform). | Discrete signals that use discrete values (0s and 1s). |
| Can take infinite possible values within a range. | Have limited discrete values (usually 0 and 1). |
| Susceptible to noise and interference. | More resistant to noise and interference. |
| Degrade over long distances; quality is lost when copied or stored. | Transmitted over long distances with less degradation; copied without quality loss. |
| Examples: human speech, analog audio cassette, analog temperature readings. | Examples: binary code, MP3 audio, JPEG images, MP4 video. |
(Any three differences carry full marks.)
1.3 Digital Logic and Logic Gates
Short Questions
Q1. Draw OR and NAND gates with their truth tables. [1.5 + 1.5] (MP25 Q8-B)
OR gate: produces output 1 when any input is 1. Expression: F = A + B
![Diagram: Draw OR and NAND gates with their truth tables. [1.5 + 1.5] (MP25 Q8-B)](/wp-content/uploads/exercise-answers/fbise-1st-year-computer-science/img/f11com-7d38986ae4.webp)
| A | B | F = A + B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
NAND gate: combination of AND and NOT; output is 0 only when all inputs are 1. Expression: F = A̅.̅B̅ (AND, then inverted)
![Diagram: Draw OR and NAND gates with their truth tables. [1.5 + 1.5] (MP25 Q8-B)](/wp-content/uploads/exercise-answers/fbise-1st-year-computer-science/img/f11com-01745a7526.webp)
| A | B | A.B | F = A̅.̅B̅ |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 0 |
Q2. Draw OR gate with its truth table. [1 + 2] (FA26 P-1)
Same as the OR gate given in Q1 above: symbol (1 mark) + truth table of F = A + B (2 marks).
Q3. Draw NAND gate with its truth table. [1 + 2] (FA26 P-2)
Same as the NAND gate given in Q1 above: symbol (1 mark) + truth table of F = A̅.̅B̅ (2 marks).
Q4. Draw NOR gate and make its truth table. [1 + 2] (FA26 P-3)
NOR gate: combination of OR and NOT gates; output is 0 when any input is 1 (output 1 only when all inputs are 0). Expression: F = A̅ ̅+̅ ̅B̅
![Diagram: Draw NOR gate and make its truth table. [1 + 2] (FA26 P-3)](/wp-content/uploads/exercise-answers/fbise-1st-year-computer-science/img/f11com-f476e7c2a8.webp)
| A | B | A + B | F = A̅ ̅+̅ ̅B̅ |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 |
Q5. How are logic gates useful in daily life? Give / write down any three uses (applications) of logic gates. [3] (MP25 Q12-A; FA26 P-3)
Logic gates are the building blocks of digital circuits and are used in many devices of daily life:
• Calculator circuits: basic calculators use logic gates to perform arithmetic calculations.
• Traffic light control: logic gates are used in traffic light control systems to manage traffic flow.
• Home automation: smart home systems use logic gates to automate lighting and temperature control.
• Security systems: used to control access, alarms and surveillance.
• Automotive electronics: engine control, airbag deployment and anti-lock brake system (ABS).
• Memory circuits: flip-flops and latches made of logic gates store binary data.
(Any three applications with one-line explanation each.)
Q6. Convert the following Boolean expression to the logic circuit: F = XYZ + XY̅Z + X̅Z [3] (MP25 Q10-A)
Three AND gates are needed for the three terms, two NOT gates to get Y̅ and X̅, and one OR gate to OR the outputs of the AND gates.
![Diagram: Convert the following Boolean expression to the logic circuit: F = XYZ + XY̅Z + X̅Z [3] (MP25 Q10-A)](/wp-content/uploads/exercise-answers/fbise-1st-year-computer-science/img/f11com-4a19c71818.webp)
Q7. Construct the logic circuit diagram for the Boolean expression: F = ABC + AB̅C + A̅C [3] (FA26 P-1)
Three AND gates (for ABC, AB̅C and A̅C), two NOT gates (for B̅ and A̅) and one 3-input OR gate are required.
![Diagram: Construct the logic circuit diagram for the Boolean expression: F = ABC + AB̅C + A̅C [3] (FA26 P-1)](/wp-content/uploads/exercise-answers/fbise-1st-year-computer-science/img/f11com-4eec91fd84.webp)
Q8. Draw the logic circuit that corresponds to the Boolean expression: F = AB̅ + AC + B̅C [3] (FA26 P-2)
Three AND gates (AB̅, AC, B̅C), NOT gates for B̅, and one 3-input OR gate.
![Diagram: Draw the logic circuit that corresponds to the Boolean expression: F = AB̅ + AC + B̅C [3] (FA26 P-2)](/wp-content/uploads/exercise-answers/fbise-1st-year-computer-science/img/f11com-6a82112ac5.webp)
Q9. Draw truth table for the Boolean function: F = X̅YZ + XY̅Z [3] (FAM25 Q10-B)
| X | Y | Z | X̅ | Y̅ | X̅YZ | XY̅Z | F = X̅YZ + XY̅Z |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
F = 1 only for the input combinations 011 and 101.
Q10. Draw truth table for the Boolean function: F = XYZ + XY̅Z [3] (FAE25 Q10-B)
| X | Y | Z | Y̅ | XYZ | XY̅Z | F = XYZ + XY̅Z |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 0 | 1 | 0 | 1 |
F = 1 only for 101 and 111 (i.e. whenever X = 1 and Z = 1, so F = XZ).
Q11. Construct a truth table for the Boolean expression: F = A.B + A̅.C [3] (SA25 Q10-A)
| A | B | C | A̅ | A.B | A̅.C | F = A.B + A̅.C |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 | 1 | 1 |
| 0 | 1 | 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 | 0 | 1 | 1 |
| 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 | 0 | 0 |
| 1 | 1 | 0 | 0 | 1 | 0 | 1 |
| 1 | 1 | 1 | 0 | 1 | 0 | 1 |
Long Questions
Q12. Simplify the Boolean function F using Karnaugh Map. Also construct a logic circuit for the simplified expression. F = A̅B̅C̅ + A̅B̅C + A̅BC̅ + AB̅C̅ + AB̅C + ABC [6 (3 + 3)] (NMP26 / MP25 / FAM25 / FAE25 – Version A & B)
Step 1 – Plot the terms on a 3-variable K-map: each term of F is a minterm, so a 1 is placed in its cell (all remaining cells = 0).
| A BC | B̅C̅ | B̅C | BC | BC̅ |
|---|---|---|---|---|
| A̅ | 1 | 1 | 0 | 1 |
| A | 1 | 1 | 1 | 0 |
Step 2 – Form groups (groups of 4 first, then groups of 2; groups may overlap and wrap around):
• Quad: columns B̅C̅ and B̅C of both rows → A and C change, so they are eliminated → B̅
• Pair A̅B̅C̅ + A̅BC̅ (top row, wrap-around of first and last column) → B eliminated → A̅C̅
• Pair AB̅C + ABC (bottom row, middle columns) → B eliminated → AC
Step 3 – Simplified function: F = B̅ + A̅C̅ + AC
Step 4 – Logic circuit of F = B̅ + A̅C̅ + AC:

Q13. Simplify the Boolean function F using Karnaugh Map. Also draw the logic circuit for the simplified expression. F = A̅B̅C + A̅BC + AB̅C̅ + AB̅C + ABC̅ + ABC [5] (FAE25/FAM25 – Version C)
Step 1 – Plot the terms on a 3-variable K-map: each term of F is a minterm, so a 1 is placed in its cell (all remaining cells = 0).
| A BC | B̅C̅ | B̅C | BC | BC̅ |
|---|---|---|---|---|
| A̅ | 0 | 1 | 1 | 0 |
| A | 1 | 1 | 1 | 1 |
Step 2 – Form groups (groups of 4 first, then groups of 2; groups may overlap and wrap around):
• Quad: complete bottom row (all four cells with A) → B and C eliminated → A
• Quad: middle two columns (B̅C and BC) of both rows → A and B eliminated → C
Step 3 – Simplified function: F = A + C
Step 4 – Logic circuit of F = A + C:

The circuit needs only one 2-input OR gate.
Q14. Using a 3-variable Karnaugh Map, simplify F = AB̅C̅ + A̅B̅C + AB̅C + A̅BC + ABC + A̅BC̅. Also represent the simplified expression with a logic circuit diagram. [5] (Version D)
Step 1 – Plot the terms on a 3-variable K-map: each term of F is a minterm, so a 1 is placed in its cell (all remaining cells = 0).
| A BC | B̅C̅ | B̅C | BC | BC̅ |
|---|---|---|---|---|
| A̅ | 0 | 1 | 1 | 1 |
| A | 1 | 1 | 1 | 0 |
Step 2 – Form groups (groups of 4 first, then groups of 2; groups may overlap and wrap around):
• Quad: middle two columns (B̅C and BC) of both rows → C
• Pair A̅BC + A̅BC̅ (top row, last two columns) → C eliminated → A̅B
• Pair AB̅C̅ + AB̅C (bottom row, first two columns) → C eliminated → AB̅
Step 3 – Simplified function: F = C + A̅B + AB̅
Step 4 – Logic circuit of F = C + A̅B + AB̅:

Note: A̅B + AB̅ = A ⊕ B, so F = C + (A XOR B) is also correct.
Q15. Simplify using K-map and draw the logic circuit: F = A̅B̅C̅ + A̅BC̅ + A̅B̅C + AB̅C + ABC̅ [5] (SA25 – Version E)
Step 1 – Plot the terms on a 3-variable K-map: each term of F is a minterm, so a 1 is placed in its cell (all remaining cells = 0).
| A BC | B̅C̅ | B̅C | BC | BC̅ |
|---|---|---|---|---|
| A̅ | 1 | 1 | 0 | 1 |
| A | 0 | 1 | 0 | 1 |
Step 2 – Form groups (groups of 4 first, then groups of 2; groups may overlap and wrap around):
• Pair A̅B̅C + AB̅C (column B̅C) → A eliminated → B̅C
• Pair A̅BC̅ + ABC̅ (column BC̅) → A eliminated → BC̅
• Pair A̅B̅C̅ + A̅BC̅ (top row, wrap-around) → B eliminated → A̅C̅
Step 3 – Simplified function: F = B̅C + BC̅ + A̅C̅
Step 4 – Logic circuit of F = B̅C + BC̅ + A̅C̅:
![Diagram: Simplify using K-map and draw the logic circuit: F = A̅B̅C̅ + A̅BC̅ + A̅B̅C + AB̅C + ABC̅ [5] (SA25 – Version](/wp-content/uploads/exercise-answers/fbise-1st-year-computer-science/img/f11com-7d5eb9b50f.webp)
Note: the third pair can also be taken as A̅B̅ (cells A̅B̅C̅ + A̅B̅C); F = B̅C + BC̅ + A̅B̅ is equally correct.
Q16. Simplify the Boolean function F using Karnaugh Map. Also construct a logic circuit for the simplified expression. F = A̅BC̅ + A̅B̅C̅ + ABC̅ + AB̅C̅ + ABC [3 + 3] (FA26 P-1)
Step 1 – Plot the terms on a 3-variable K-map: each term of F is a minterm, so a 1 is placed in its cell (all remaining cells = 0).
| A BC | B̅C̅ | B̅C | BC | BC̅ |
|---|---|---|---|---|
| A̅ | 1 | 0 | 0 | 1 |
| A | 1 | 0 | 1 | 1 |
Step 2 – Form groups (groups of 4 first, then groups of 2; groups may overlap and wrap around):
• Quad: first and last columns (B̅C̅ and BC̅) of both rows, wrap-around → A and B eliminated → C̅
• Pair ABC + ABC̅ (bottom row, last two columns) → C eliminated → AB
Step 3 – Simplified function: F = C̅ + AB
Step 4 – Logic circuit of F = C̅ + AB:

Q17. Simplify the Boolean function F using Karnaugh Map. Also construct a logic circuit for the simplified expression. F = AB̅C̅ + A̅BC + ABC̅ + A̅B̅C̅ + A̅BC̅ + A̅B̅C [3 + 3] (FA26 P-2)
Step 1 – Plot the terms on a 3-variable K-map: each term of F is a minterm, so a 1 is placed in its cell (all remaining cells = 0).
| A BC | B̅C̅ | B̅C | BC | BC̅ |
|---|---|---|---|---|
| A̅ | 1 | 1 | 1 | 1 |
| A | 1 | 0 | 0 | 1 |
Step 2 – Form groups (groups of 4 first, then groups of 2; groups may overlap and wrap around):
• Quad: complete top row (A̅) → B and C eliminated → A̅
• Quad: first and last columns of both rows (wrap-around) → A and B eliminated → C̅
Step 3 – Simplified function: F = A̅ + C̅
Step 4 – Logic circuit of F = A̅ + C̅:

Q18. Using a 3-variable Karnaugh Map, simplify F = A̅B̅C̅ + A̅BC̅ + A̅B̅C + ABC̅ + ABC. Also draw the logic circuit. [2.5 + 2.5] (FA26 P-3)
Step 1 – Plot the terms on a 3-variable K-map: each term of F is a minterm, so a 1 is placed in its cell (all remaining cells = 0).
| A BC | B̅C̅ | B̅C | BC | BC̅ |
|---|---|---|---|---|
| A̅ | 1 | 1 | 0 | 1 |
| A | 0 | 0 | 1 | 1 |
Step 2 – Form groups (groups of 4 first, then groups of 2; groups may overlap and wrap around):
• Pair A̅B̅C̅ + A̅B̅C (top row, first two columns) → C eliminated → A̅B̅
• Pair ABC + ABC̅ (bottom row, last two columns) → C eliminated → AB
• Pair A̅BC̅ + ABC̅ (column BC̅) → A eliminated → BC̅
Step 3 – Simplified function: F = A̅B̅ + AB + BC̅
Step 4 – Logic circuit of F = A̅B̅ + AB + BC̅:

Note: the pair A̅C̅ may be used instead of BC̅; F = A̅B̅ + AB + A̅C̅ is also correct.
1.4 Software Development Life Cycle (SDLC)
Short Questions
Q1. Identify whether the Waterfall or Agile model is most suitable for each scenario (justify): building construction, web application, weather forecasting, LMS, digital marketing campaign, automobile production, public works projects, research projects. [4 / 0.5×6 / 1×3] (Set-1 Q1-A; MP25 Q5-B; FA26 P-1, P-2)
| Scenario | Model | Reason |
|---|---|---|
| Building construction | Waterfall | Requirements fixed in advance; phases are sequential and changes later are very costly. |
| Developing web application | Agile | Requirements change often; features are delivered in sprints with user feedback. |
| Weather forecasting (system) | Agile | Models are improved continuously as new data and techniques arrive. |
| Learning Management System (LMS) | Agile | Users (teachers, students) give regular feedback; new features are added incrementally. |
| Digital marketing campaign | Agile | Campaign is adjusted quickly according to audience response and trends. |
| Automobile production | Waterfall | Well-defined design and specifications; strict sequential production stages. |
| Public works projects | Waterfall | Fixed budget, fixed scope and approvals; each stage completed before the next. |
| Research projects | Agile | Outcomes are uncertain; direction changes as results are found. |
(Answer only the scenarios asked in the paper; one line of reason with each.)
Q2. A city healthcare provider is upgrading its software to improve patient care and data security. Daily operations must not be disrupted and patient data must remain protected. (a) Identify the most suitable SDLC implementation method. (b) State two possible risks of this method. (c) Suggest one way to minimize the risk. / Recommend the method and justify with two considerations. [4 / 1 + 2] (Set-1 Q5-A; MP25 Q3-A)
(a) Parallel implementation method: the old and new systems run concurrently for a certain period. Major issues of the new system can be identified and corrected without risking data loss, and daily hospital operations continue on the old system.
Considerations / Justification:
• Continuity of patient care: hospital services cannot stop; the old system remains available as a backup.
• Data safety: patient records are kept in both systems, so no data is lost if the new system fails.
(b) Two risks:
• High cost and workload: running two systems at once needs extra staff time, hardware and data entry.
• Data inconsistency: the same patient data entered in two systems may not match.
(c) Minimizing the risk: run both systems for a short, fixed period and reconcile (compare) the data of both systems daily; train staff before the switch-over.
Q3. A university is introducing a new student information system. Recommend the most suitable implementation method of SDLC and justify by outlining two considerations. [1 + 2] (FA26 P-2)
Recommended method: Pilot (or Phased) implementation – the new system is first deployed for a small user group (e.g. one department); after it is found satisfactory it is rolled out to all users.
• Low risk: problems affect only a small group, so the whole university is not disturbed.
• Feedback and training: users of the pilot department test the system and give feedback; improvements are made before full roll-out.
Q4. A software team is preparing to launch a new mobile application. Apply the concept of user testing to recommend how it should be used before release. Describe any two ways in which user testing could improve the application’s quality and usability. [4] (Set-1 Q5-B)
Recommendation: before release, a group of real target users should use the app (beta testing) on their own devices to perform common tasks, while the team observes and collects their feedback through surveys and reports.
• Finds usability problems: confusing menus, small buttons or unclear messages are discovered from real users and fixed, making the app easier to use.
• Finds bugs and performance issues: errors, crashes and slow screens on different phones/OS versions are found and corrected before launch, improving quality and reliability.
• (Also) ensures the app meets user needs, so customer satisfaction increases and maintenance cost decreases.
Q5. What is the deployment phase in SDLC? How does the pilot deployment method differ from the parallel deployment method? [1 + 2] (FAM25 Q14-A)
Deployment phase: the phase in which the finalized software is installed and handed over to the users, making the transition from development to use. It includes installation, user training and conversion from the old system to the new one.
| Pilot Method | Parallel Method |
|---|---|
| New system is first deployed for a small group of users. | Old and new systems run together (concurrently) for all users. |
| After the pilot group is satisfied, it is rolled out to everyone. | Old system is removed after the new one is proved correct. |
| Less costly; risk limited to a small group. | Costly (two systems), but no risk of data loss. |
Q6. What is the deployment phase in SDLC? How does the direct deployment method differ from the phased deployment method? [1 + 2] (FAE25 Q14-A)
Deployment phase: making the software/system available for use – installation, training of users and conversion from the old to the new system.
| Direct Method | Phased Method |
|---|---|
| Old system is completely replaced by the new system at once. | New system is introduced gradually (part by part). |
| Abrupt transition; old system becomes obsolete immediately. | Old system is phased out progressively. |
| High risk – if new system fails there is no backup. | Lower risk – problems affect only one part at a time. |
Q7. How does the Agile model differ from the Waterfall model? Justify with at least three reasons. / Compare Agile and Waterfall models with example. [3 / 1.5 + 1.5] (FAE25 Q3-A; FA26 P-3)
| Waterfall Model | Agile Model |
|---|---|
| Sequential (linear) approach; each phase completes before the next. | Iterative and incremental approach; work done in short cycles (sprints). |
| Inflexible – changes are difficult once a phase is complete. | Flexible – changes accepted at any stage. |
| Customer sees the product at the end. | Continuous customer involvement and feedback. |
| Testing at the end of development. | Testing is continuous, parallel to development. |
| Example: building construction, automobile production. | Example: web/mobile app development. |
Q8. Is the design phase an important part of the SDLC? Justify your answer. [1 + 2] (SA25 Q3-A)
Yes, the design phase is very important. In this phase the system architecture is planned and detailed specifications are created from the gathered requirements (using UML, algorithms and flowcharts).
• It acts as a blueprint for programmers; coding proceeds smoothly when the design document (SDD) is complete.
• Errors found at the design stage are cheaper to correct than after coding; a good design makes the system maintainable and scalable.
Q9. A software company is developing an online banking system. Which SDLC model (Agile or Waterfall) is more suitable? Justify your answer. [1 + 2] (SA25 Q5-B)
Agile model is more suitable.
• Banking services and customer needs change frequently (new features, mobile banking, payment methods); Agile accepts changes at any stage.
• Features are delivered in small increments and tested continuously, so security issues are detected early and the system is updated regularly.
(If a student chooses Waterfall because requirements are strict and well-defined by banking regulations, give marks for correct justification.)
Q10. Describe the importance of conducting a feasibility study. How does it influence decision-making in system development? [1.5 + 1.5] (FA26 P-1)
Importance: a feasibility study is the analysis and evaluation of a proposed system to determine whether it is technically, economically, legally and operationally feasible within the estimated cost and time. It saves time and money by stopping impractical projects early.
Influence on decision-making: the results (technical, economic, operational, legal and schedule feasibility) help management decide whether to go ahead, modify or cancel the project, choose the best alternative, and plan budget and resources realistically.
Q11. Why is testing an important phase of SDLC? Give any three reasons. [1×3] (FA26 P-3)
• Testing detects errors (bugs) in program modules so they can be removed before the product is released.
• It ensures the software works according to the required specifications and user requirements.
• The quality of the end product depends on testing; good testing leads to satisfied customers, lower maintenance cost and accurate results.
Q12. Write down three differences between Black Box and White Box testing. / Differentiate between them with an example. [3 / 1.5 + 1.5] (FAM25 Q4-B; SA25 Q14-A; FA26 P-3)
| Black Box Testing | White Box Testing |
|---|---|
| Internal code/logic is not known to the tester. | Tester knows the internal code, logic and architecture. |
| Tests outputs against given inputs (functionality). | Tests internal structures, code paths and statements. |
| Programming knowledge not required. | Programming knowledge required. |
| Example: testing a login page by entering valid/invalid username and password. | Example: checking each statement of the percentage-marks program and that variables are correctly initialized. |
Long Questions
Q13. Write down any five differences between Waterfall and Agile software development models. [5] (FAM25/FAE25 P-2 Q3)
| Waterfall Model | Agile Model |
|---|---|
| Sequential or linear development approach; flows downward like a waterfall. | Iterative and incremental approach; software developed in rapid cycles (sprints). |
| Phases do not overlap; each must be completed before the next begins. | Phases repeat in every iteration; design, coding and testing go on together. |
| Inflexible to changes; mid-project changes are difficult. | Flexible and adaptable to changing requirements. |
| Customer sees the product only at the end (late client visibility). | Continuous client involvement and feedback after every sprint. |
| Testing done at the end, so defects are detected late. | Testing is continuous, so defects are detected early. |
| Suitable when requirements are well-defined and stable. | Suitable when requirements are evolving. |
| Heavy documentation. | Limited emphasis on documentation. |
(Any five differences = 5 marks.)
1.5 Network Topology (including Cloud Computing)
Short Questions
Q1. Compare star and ring topologies with respect to scalability, reliability and architecture (design). [3] (MP25 Q4-B; FAE25 Q8-B; FA26 P-2)
| Point | Star Topology | Ring Topology |
|---|---|---|
| Architecture / Design | Every device is linked to a central hub or switch. | Devices are connected in a circular loop; data travels from device to device (token passing). |
| Scalability | Moderately scalable; new devices easily connected to the hub, but hub capacity becomes a bottleneck. | Moderately scalable; adding devices is possible but becomes complex to manage. |
| Reliability | Relatively reliable; failure of one device/cable affects only that device, but hub failure stops the whole network. | A break in the ring can disrupt the entire network (dual ring improves reliability). |
Q2. Compare Bus and Mesh network topologies with respect to design, scalability and reliability. [3] (FAM25 Q8-B)
| Point | Bus Topology | Mesh Topology |
|---|---|---|
| Design | All devices connected to one main cable (bus). | Every node is connected to all other nodes. |
| Scalability | Not highly scalable; more devices cause signal degradation and congestion. | Highly scalable; devices added easily with multiple paths. |
| Reliability | Less reliable; a single break in the main cable disrupts the entire network. | Highly reliable; if one path fails data takes an alternate route. |
Q3. How do bus and star topologies differ in terms of cost, fault tolerance and architecture? [1×3] (FA26 P-1)
| Point | Bus Topology | Star Topology |
|---|---|---|
| Cost | Very cost-effective; only one cable, no hub/switch needed. | More expensive; needs a hub/switch and separate cable for each device. |
| Fault tolerance | Low; a break in the main cable brings down the whole network. | Better; one device/cable failure does not affect others (but hub failure does). |
| Architecture | All nodes attached to a single backbone cable. | All nodes attached to a central hub or switch. |
Q4. Briefly explain any three types of cloud computing models. [3] (MP25 Q2-B)
Cloud computing has three service models:
• Infrastructure as a Service (IaaS): delivers virtualized computing resources – virtual machines, storage and networks – via the internet.
• Platform as a Service (PaaS): offers a platform of tools and frameworks for application development without managing the underlying infrastructure.
• Software as a Service (SaaS): delivers software applications through the internet on subscription; users need not install or update software (e.g. Gmail, MS 365).
(Deployment models – public, private, hybrid, community – are also acceptable if explained.)
Q5. What is cloud computing? Explain public cloud with an example. / Briefly explain public cloud. Give one example. [1 + 2 / 2 + 1] (FA26 P-1; SA25 Q6-B)
Cloud computing: a technology model that provides access to computing resources and services (servers, storage, databases, software) over the internet instead of owning physical hardware.
Public cloud: cloud resources are owned and operated by a third-party cloud service provider and are made available to the general public over the internet. Users share the resources and pay only for what they use; the provider manages hardware and security.
Example: Amazon Web Services (AWS), Microsoft Azure, Google Cloud Platform, Google Drive.
Q6. Briefly explain private and public cloud deployment models with examples. [1.5 + 1.5] (FA26 P-2)
• Public cloud: resources owned and operated by a third-party provider and available to the general public. Example: AWS, Microsoft Azure, Google Drive.
• Private cloud: resources used exclusively by a single organization, giving more control, security and customization. Example: a bank’s or university’s own data-centre cloud.
Q7. Why is horizontal scalability considered more suitable for cloud-based applications? Give three reasons. [3] (FAM25 Q12-A)
• High availability: workload is distributed among many servers, so the application tolerates failure of individual servers (near-zero downtime).
• Handles more requests: servers can be added on demand to serve a growing number of users; no physical limit of a single machine.
• Quicker and easier: compared to vertical scaling, adding servers is quicker, needs no downtime, and is cost-effective (pay for what is used).
Q8. How does vertical scalability differ from horizontal scalability in cloud computing? Illustrate with three differences. [1×3] (FAE25 Q12-A; FA26 P-1; FA26 P-3)
| Horizontal Scalability (Scaling Out) | Vertical Scalability (Scaling Up) |
|---|---|
| Increases the number of servers and distributes the workload among them. | Increases the capacity of a single server by adding CPU, RAM, disk or bandwidth. |
| No physical limit; more servers can always be added. | Physical limit to how much one server can be upgraded. |
| Tolerates failure of individual servers (high availability); quicker to achieve. | Can be costly, time-consuming and may need downtime. |
| Needs distributed design (load balancing, replication). | Simple; application design does not change. |
Q9. A university network is failing frequently due to high traffic. Suggest a network topology that improves reliability and justify your choice. [1 + 2] (SA25 Q4-B)
Suggested topology: Mesh (or hybrid star–mesh) topology.
• Each node has multiple paths; if one link or device fails, data takes an alternate route, so the network keeps working (high redundancy).
• Traffic is spread over many paths, reducing congestion; it is highly scalable, so new devices can be added easily.
Q10. If a company’s network frequently crashes when more users connect, what does this indicate about its reliability and scalability? Briefly explain. [1.5 + 1.5] (FA26 P-2)
• Scalability: the network is poorly scalable – it cannot handle the increasing workload; the central device/cable becomes a bottleneck as users increase.
• Reliability: the network is unreliable – it has no redundancy or fault tolerance, so overload causes failure and downtime. Solution: load balancing, more switches/servers, or a mesh/hybrid design.
Q11. If a college wants to set up a computer lab, which topology is best and why? Support your answer with two reasons. [3] (Old-25 Q7-B)
Star topology is best for a college computer lab.
• Easy to install, manage and expand: each computer is connected to a central switch; a new PC is added by simply connecting it to the switch.
• Reliable / easy troubleshooting: if one computer or its cable fails, the rest of the lab keeps working and the faulty PC is easily identified.
1.6 Cybersecurity
Short Questions
Q1. What is encryption in the context of information security? An organization wants to send large volumes of sensitive data over the internet. Which encryption method (symmetric or asymmetric) is more appropriate? Give three reasons. [4] (Set-1 Q2-A)
Encryption: the process of converting plaintext data into an unreadable format called cipher text using encryption algorithms and keys, so that only authorized persons with the decryption key can read it.
Symmetric encryption is more appropriate, because:
• Speed and efficiency: it is faster and computationally more efficient; well-suited for encrypting large amounts of data in real time.
• Less complex: uses a single key for encryption and decryption, so it is simpler to implement.
• Strong security: with strong randomly generated keys it gives a high level of security as long as the key remains secret. (The secret key itself can be exchanged safely using asymmetric encryption.)
Q2. Write down three comparisons between Symmetric and Asymmetric encryption. [3] (FAM25 Q3-A)
| Symmetric Encryption | Asymmetric Encryption |
|---|---|
| Uses a single shared key for both encryption and decryption. | Uses a pair of keys: public key to encrypt and private key to decrypt. |
| Faster; suitable for large amounts of data. | Slower; suitable for small data, key exchange and digital signatures. |
| Needs a safe channel to distribute the secret key. | Enables secure key exchange over insecure channels. |
| Computationally less complex. | More complex mathematical operations; needs longer keys. |
Q3. Why is two-factor authentication (2FA) important? Also give an example. [2 + 1] (FAM25 Q5-B)
2FA is an authentication method that requires two different forms of verification before granting access – something the user knows (password) and something the user has (OTP on mobile).
• It adds an extra layer of security: even if a password is stolen, the attacker cannot log in without the second factor.
• It protects user accounts and sensitive information (banking, email) from unauthorized access.
Example: logging into an online banking account with a password and a one-time password (OTP) sent to the user’s smartphone.
Q4. How do computer systems protect against cyber-attacks? Provide three reasons/methods. / Briefly explain any two protection techniques. [3 / 1.5 + 1.5] (FAE25 Q5-B; FA26 P-3)
• Firewalls: monitor and control incoming and outgoing network traffic and block malicious traffic between a trusted network and the internet.
• Antivirus and anti-malware software: detect, quarantine and remove viruses, Trojans and spyware with real-time scanning.
• Encryption: converts data into cipher text so it is unreadable to unauthorized people even if intercepted.
• Strong passwords, 2FA and software updates: prevent unauthorized access and patch known vulnerabilities.
• Backup and disaster recovery: critical data can be restored after an attack such as ransomware.
(Any three for 3 marks; any two explained for 1.5 + 1.5.)
Q5. Why do organizations need cybersecurity frameworks? Give any three reasons. [1×3] (SA25 Q12-A)
• Protecting sensitive data: a framework gives a structured set of policies to protect personal, financial and intellectual property from theft.
• Compliance with regulations: helps meet laws and industry standards; avoids fines and legal action.
• Business continuity: provides a planned way to prevent, detect, respond to and recover from cyber-attacks, minimizing loss of revenue and reputation.
Long Questions
Q6. What is encryption? Compare symmetric and asymmetric encryption with respect to efficiency, security, ease of implementation, key length, large data handling (also: speed, complexity, key structure, strengths, weaknesses, usage). [1 + 5 / 1 + 4 / 2 + 4] (NMP26/MP25 Q4-OR; FAE25 P-2 Q3; SA25; FA26 P-2, P-3)
Encryption: data encryption is the process of converting plaintext into an unreadable format called cipher text using encryption algorithms and keys. Its purpose is to protect sensitive information from unauthorized access; only a person having the decryption key can convert it back to plaintext. It ensures confidentiality and integrity of data during transmission.
| Basis | Symmetric Encryption | Asymmetric Encryption |
|---|---|---|
| Key structure | Single shared secret key for encryption and decryption. | Pair of keys: public key (encrypt) and private key (decrypt). |
| Efficiency / speed | Faster and computationally more efficient. | Slower due to complex mathematical operations. |
| Security | Secure as long as the key remains secret; if the key is compromised all data is exposed. | More secure for communication with untrusted parties; private key is never shared; gives non-repudiation. |
| Ease of implementation / complexity | Simple to implement – one key. | Complex – key pairs and heavy computation. |
| Key length | Shorter keys give strong security (e.g. 128/256-bit AES). | Longer keys needed for same security (e.g. 2048-bit RSA). |
| Large data handling | Well-suited for large amounts of data (disk encryption, file transfer). | Suitable for small data and secure key exchange. |
| Key distribution (weakness/strength) | Needs a secure channel to distribute the key (weakness). | Public key can be shared openly; no secure channel needed (strength). |
| Usage | Banking, defence, health care, bulk data transmission. | Digital signatures, secure e-mail, SSL/HTTPS key exchange. |
Answer according to the attributes asked in the paper (one mark per attribute). Examples of algorithms: Symmetric – AES, DES; Asymmetric – RSA.
Q7. Why is cybersecurity essential in today’s digital world? How do different cybersecurity measures help protect sensitive information from unauthorized access? Provide any four measures. [2 + 4] (FA26 P-1)
Importance: cybersecurity is the protection of internet-connected systems (computers, servers, mobile devices, networks and data) from malicious attacks. As more data is stored and transmitted electronically, the risk of attacks has increased.
• Protects sensitive data (personal, financial, intellectual property) from theft.
• Prevents attacks like malware, ransomware, phishing and DDoS; ensures business continuity.
• Safeguards critical infrastructure (power grids, hospitals), national security and privacy.
Four measures:
• Strong passwords: long (12+ characters), complex (upper/lower case, digits, symbols), unique passwords make accounts hard to crack.
• Two-Factor Authentication (2FA): a second proof (OTP) is needed besides the password, so stolen passwords alone are useless.
• Firewall: monitors and filters network traffic; blocks requests from suspicious IP addresses.
• Encryption: turns data into cipher text; unreadable to unauthorized people even if intercepted.
• (Also) antivirus software, regular software updates, backups, awareness about suspicious e-mails.
You can find the other units of 1st Year Computer Science on the main page: FBISE 1st Year Computer Science short and long questions, all units.
Questions follow the FBISE HSSC-I Computer Science syllabus and paper pattern. Please confirm all dates and figures on the official website: www.fbise.edu.pk
Need help with 1st Year Computer Science? Join our live online classes for the Federal Board. Book a free demo class.

Ask a question about this topic