Sir Basit Notes

Computer Science Class 11 Unit 1: Computer Systems Question Bank

⬇ Download this question bank (PDF) (497 KB)All Computer Science chapters
Computer Science Class XI (1st Year), Sindh Textbook Board, Unit 1. Short questions, differences, long questions and practical questions with answers, built from the new STBB textbook and its end-of-unit exercise.
STBB Computer Science XIUnit 1, pages 1 to 70Digital logic, SDLC, OSI and TCP/IPModerate level
Read this first. This unit has four big areas: digital data and Boolean logic (gates, truth tables, K-maps), software development (SDLC, Waterfall, Agile), and communication models (OSI, TCP/IP). Learn the seven gate truth tables, the six SDLC phases, the seven OSI layers with the mnemonic, and the difference tables, because these are the most repeated in board papers. Tags: BOOK EXERCISE = taken from the end-of-unit exercise, LIKELY = from the book topics.

Short questions3 to 4 lines each

S1Define a digital system. Why does it use only 0 and 1?
BOOK TOPIC 1.1.2LIKELY

A digital system is an electronic system that works with only two values, 0 and 1, which are called binary digits or bits. Here 0 represents OFF, LOW or FALSE and 1 represents ON, HIGH or TRUE. Only two states are used because it is very easy for an electronic circuit to tell the difference between two levels, so the system becomes simple, accurate and not easily affected by noise.

S2Define digital logic and give two examples of digital devices.
BOOK EXERCISE 3(i)LIKELY

Digital logic is the use of binary values (0 and 1) and logic operations such as AND, OR and NOT to process, store and control information inside electronic circuits. All modern electronic devices are built on it. Examples of digital devices are a computer, which processes data as 0s and 1s, and a smartphone, which stores photos and music as binary data. A digital watch, a calculator and a digital camera are also digital devices.

S3Write any four advantages of using digital systems.
BOOK TOPIC 1.1.2LIKELY
  • Reliable: digital signals are less affected by noise and interference, so the data stays correct during transmission.
  • Accurate: there is no loss of quality when data is copied again and again.
  • Easy to design: only two states (0 and 1) have to be handled, so circuits are simple to build.
  • Programmable: digital systems can be controlled easily by software, so one device can do many tasks.
S4What is a signal? Name the two main types of signals.
BOOK TOPIC 1.1.3LIKELY

A signal is a function of one or more variables that indicates a physical phenomenon, and it works as a carrier of information. Signals can convey different types of information depending on the application, such as sound, video or data. The two main types of signals are analog signals, which are continuous and take any value in a range, and digital signals, which have only two levels, HIGH (1) and LOW (0).

S5What is Boolean algebra? Who developed it?
BOOK TOPIC 1.1.4LIKELY

Boolean algebra is a branch of mathematics that deals with only two values, TRUE (1) and FALSE (0). It was developed by George Boole, an English mathematician, in the 1850s. It is the foundation of all digital electronics and computer programming, and it uses variables, constants, operations (AND, OR, NOT) and expressions to show how logic operations are applied.

S6State the AND operation with its symbol and expression.
BOOK TOPIC 1.1.5LIKELY

The AND operation gives output 1 only when all the inputs are 1; if any input is 0 the output is 0. Its symbol is a dot (.) or the wedge sign, and its Boolean expression is Y = A . B (read as A AND B). A real-life example is a door with two locks: the door opens only when both locks are unlocked.

S7State the OR operation with its symbol and expression.
BOOK TOPIC 1.1.5LIKELY

The OR operation gives output 1 when any one input is 1, and the output is 0 only when all the inputs are 0. Its symbol is a plus sign (+), and its Boolean expression is Y = A + B (read as A OR B). A real-life example is a room with two doors: we can enter the room if either door is open.

S8What is the NOT operation? Why is it called a unary operation?
BOOK TOPIC 1.1.5LIKELY

The NOT operation inverts (complements) the input: if the input is 1 the output is 0, and if the input is 0 the output is 1. It is written as Y = A' (or the bar sign over A). It is called a unary operation because it works on only one operand, unlike AND and OR which need two or more inputs. A light switch is a real-life example.

S9What is a truth table? Write the steps to create it.
BOOK TOPIC 1.1.6LIKELY

A truth table shows all the possible input combinations of a logic gate or circuit and the corresponding output for each combination. To create it: first count the number of inputs (n), then calculate the total rows as 2 to the power n, then list all the input combinations in binary order, and finally calculate the output for each combination. For example, 3 inputs give 8 rows.

S10Why are NAND and NOR called universal gates?
BOOK TOPIC 1.1.7LIKELY

A universal gate is a gate that can be used alone to build every other gate. NAND and NOR are called universal gates because the basic gates AND, OR and NOT can all be made using only NAND gates, or using only NOR gates. This is useful in practice because a circuit can be built from one type of gate, which reduces cost and makes manufacturing simpler.

S11What is the operator precedence order in a logic expression?
BOOK TOPIC 1.1.8LIKELY

When a logic expression has more than one operator, the operations are solved in a fixed order of priority. The first priority is given to parentheses, the second to NOT, the third to AND and the last to OR. For example, in Y = A' + B . C the NOT of A is solved first, then B . C, and at the end the OR is applied.

S12Define minterm and maxterm.
BOOK TOPIC 1.1.10LIKELY

A minterm is a product (AND) of all the variables in which each variable is either complemented or not, and it gives output 1 for exactly one combination of inputs. A maxterm is a sum (OR) of all the variables and it gives output 0 for exactly one combination of inputs. Minterms are used in the SOP (Sum of Products) form, for example A'B + AB.

S13What is a logic diagram? Write the steps to draw it.
BOOK TOPIC 1.1.11LIKELY

A logic diagram is a graphical representation of a logic expression in which logic gates are connected to create a circuit. Steps: identify the expression, break it into parts according to the precedence of operations, draw the gate for each part (highest precedence first), and connect the gates with lines. For example, Y = A . B + C uses an AND gate whose output goes into an OR gate with C.

S14What is a Karnaugh map (K-map)? Why is it used?
BOOK TOPIC 1.1.12LIKELY

A Karnaugh map (K-map) is a grid-based graphical tool that is used to simplify Boolean expressions. It is used because algebraic simplification can be long and difficult, while a K-map gives a visual and systematic way to find the simplest expression. A simpler expression needs fewer gates, so the circuit becomes cheaper, smaller and faster.

S15Why is the K-map column order 00, 01, 11, 10 and not 00, 01, 10, 11?
BOOK TOPIC 1.1.12LIKELY

The columns of a K-map follow the Gray code, in which only one bit changes between any two neighbouring cells. This means that adjacent cells differ by only one variable, and only such cells can be grouped together so that the changing variable can be cancelled. If the normal binary order were used, neighbouring cells could differ in two bits and the grouping would give wrong results.

S16What is LogiSim? Name any two things you can do with it.
BOOK TOPIC 1.1.13LIKELY

LogiSim (LogiSim Evolution) is a free graphical tool used for designing and simulating logic circuits. We can place logic gates, input pins and output pins on the drawing canvas and connect them with wires to build a circuit. We can then use the Poke Tool to change the input values and observe the output, which helps us verify the truth table of the circuit.

S17What is SDLC? Write its full form.
BOOK TOPIC 1.2.2LIKELY

SDLC stands for Software Development Life Cycle. It is a structured process that guides software development from the beginning to the end and gives a clear framework with specific phases and deliverables. It makes sure that the software is planned, designed, built, tested, released and maintained in an organized way, so that the final product meets the needs of the users.

S18Write any four benefits of using SDLC.
BOOK TABLE 1.12LIKELY
  • Clear goals: everyone in the team knows what is to be built.
  • Better planning: time and resources are managed well.
  • Quality assurance and risk reduction: testing means fewer bugs and problems are found early.
  • Documentation and team communication: records help in future maintenance and everyone follows the same process.
S19Name the six phases of SDLC in order.
BOOK TOPIC 1.2.3LIKELY

The six phases of SDLC are: 1. Requirement Analysis (Planning), where the team gathers what the software should do; 2. Design, where the structure and screens are planned; 3. Implementation (Coding), where the code is written; 4. Testing, where bugs are found and fixed; 5. Deployment, where the software is released to users; and 6. Maintenance, where support and updates continue.

S20What is SRS? Which SDLC phase produces it?
BOOK EXERCISE 2(iv)LIKELY

SRS stands for Software Requirements Specification. It is a document that lists all the requirements and features of the software, for example that students should see their grades and teachers should enter attendance. It is the deliverable of the first phase, Requirement Analysis (Planning), and it is used by the team in all later phases as a reference.

S21What is black box testing? Give an example.
BOOK TOPIC 1.2.3LIKELY

In black box testing the tester does not see or know the code of the software. The tester only gives inputs and checks the outputs to find out whether the software works correctly for the users. It tests what the software does and not how it does it. Example: entering a username and password and checking that the login works, and that a wrong password shows an error.

S22What are the four types of software maintenance?
BOOK EXERCISE 4(v)LIKELY
  • Corrective: fixing bugs that are found after release, for example fixing a login error.
  • Adaptive: changing the software for a new environment, for example updating it for a new Windows version.
  • Perfective: adding new features or improving the software, for example adding a dark mode.
  • Preventive: preventing future problems, for example improving the code for better performance.
S23What is the Waterfall model? When is it used?
BOOK TOPIC 1.2.4LIKELY

The Waterfall model is a linear and sequential approach in which each phase must be completed before the next phase begins, and there is no going back to an earlier phase. It is used when the requirements are clear and fixed, the project is small to medium in size, the technology is well understood and no major changes are expected during development.

S24What is the Agile model? What is a sprint?
BOOK TOPIC 1.2.4LIKELY

The Agile model is an iterative and incremental approach in which software is developed in small cycles instead of one big plan. Each short cycle, usually 2 to 4 weeks long, is called a sprint. At the end of every sprint a working part of the software is delivered, the customer gives feedback, and changes are included in the next sprint. Scrum is a popular Agile framework.

S25What is a communication model? Why do we need one?
BOOK TOPIC 1.3.1LIKELY

A communication model is a set of rules and layers that explains how data travels from one device to another over a network, like the rules of a postal system. We need it so that computers of different companies and countries can talk to each other, problems in a network are easier to find, and a complex task is divided into smaller steps called layers. The two main models are OSI and TCP/IP.

S26Write the full forms of OSI and TCP/IP.
BOOK TOPIC 1.3.1LIKELY

OSI stands for Open Systems Interconnection. It is a 7-layer reference model developed by ISO in 1984 and is mainly used for learning and design. TCP/IP stands for Transmission Control Protocol / Internet Protocol. It is a 4-layer model developed in the 1970s by the US Department of Defense, and it is the model that the Internet actually uses today.

S27Write the seven OSI layers from bottom to top with the memory mnemonic.
BOOK TABLE 1.31LIKELY

From bottom to top the layers are: 1. Physical, 2. Data Link, 3. Network, 4. Transport, 5. Session, 6. Presentation and 7. Application. The mnemonic to remember them is "Please Do Not Throw Sausage Pizza Away", where the first letter of each word is the first letter of a layer (P, D, N, T, S, P, A). The bottom layers deal with hardware and the top layers with software.

S28What is the job of the Application layer? Name four protocols used at this layer.
BOOK TABLE 1.32LIKELY

The Application layer is the topmost layer and the closest to the end user. It provides network services directly to the user's applications, such as a web browser or an email client, and it identifies the communication partners. The protocols used at this layer are HTTP (web pages), FTP (file transfer), SMTP (sending email) and DNS (converting domain names into IP addresses).

S29What is the job of the Transport layer? Name its two protocols.
BOOK TOPIC 1.3.3LIKELY

The Transport layer is responsible for reliable end-to-end communication between two devices. It breaks large messages into smaller segments, makes sure that they all arrive correctly, controls the flow of data and reassembles the segments at the destination. It also uses port numbers to identify the application. Its two protocols are TCP (reliable) and UDP (fast).

S30What is the job of the Network layer? Name two of its protocols.
BOOK TOPIC 1.3.3LIKELY

The Network layer is responsible for logical addressing and routing. It assigns IP addresses to devices and decides the best route for the data to travel from the source to the destination, even across many different networks. Routers work at this layer. Two of its protocols are IP (IPv4 and IPv6) and ICMP, which reports errors and is used by the ping command.

S31What is the difference between an IP address and a MAC address?
BOOK EXERCISE 3(iv)LIKELY

An IP address is a logical address used to identify a device on a network and to route data between networks. It can change, for example 192.168.1.1 (IPv4), and it works at the Network layer. A MAC address is a unique physical hardware address permanently assigned to the network interface card, for example AA:BB:CC:DD:EE:FF, and it works at the Data Link layer inside the local network.

S32Define encapsulation and decapsulation.
BOOK TOPIC 1.3.4LIKELY

Encapsulation is the process of adding extra information, called a header, to the data at each layer as the data moves down the layers at the sender's side. Decapsulation is the reverse process: at the receiver's side each layer reads and removes its own header as the data moves up the layers, until the original data reaches the Application layer and is presented to the user.

Differences3 to 5 marks each

D1Differentiate between analog and digital signals.
BOOK EXERCISE 3(ii)LIKELY
PointAnalog signalDigital signal
Nature of dataContinuous, takes any valueDiscrete, only two levels
UnitPhysical quantities like voltageBinary digits (bits) 0 and 1
Wave shapeSmooth sine waveSquare wave
Range of valuesInfinite valuesOnly two levels (HIGH and LOW)
NoiseEasily affected by noiseVery resistant to noise
ExamplesHuman voice, thermometerComputer data, smartphone, digital watch
D2Differentiate between AND, OR and NOT operations.
BOOK TOPIC 1.1.5LIKELY
PointANDORNOT
SymbolDot (.)Plus (+)Bar or prime (')
ExpressionY = A . BY = A + BY = A'
InputsTwo or moreTwo or moreOnly one
Output is 1 whenAll inputs are 1Any input is 1Input is 0
Real-life exampleDoor with two locksRoom with two doorsLight switch
D3Differentiate between minterm and maxterm.
BOOK TOPIC 1.1.10LIKELY
PointMintermMaxterm
OperationProduct (AND) of variablesSum (OR) of variables
GivesOutput 1 for one combinationOutput 0 for one combination
Used inSOP formPOS form
Example (A = 0, B = 1)A'BA + B'
D4Differentiate between black box and white box testing.
BOOK TABLE 1.14LIKELY
Black box testingWhite box testing
Does not need code knowledgeNeeds programming knowledge
Tests functionalityTests code structure
Done by testersDone by developers
Tests what the software doesTests how the software does it
D5Differentiate between Waterfall and Agile models.
BOOK EXERCISE 3(iii)LIKELY
PointWaterfallAgile
ApproachLinear and sequentialIterative and incremental
RequirementsFully defined before codingPartially defined, evolve over time
Client involvementAt the start and the endContinuous, after every sprint
First working productAfter the full project (about 6 months)After the first sprint (about 2 weeks)
Response to changeDifficult and costlyEasy, done in the next sprint
DocumentationHeavyLight, working software preferred
TestingOne phase after codingContinuous in every sprint
Suitable whenRequirements are fixedRequirements are unclear or change
D6Differentiate between TCP and UDP.
BOOK EXERCISE 3(v)LIKELY
PointTCPUDP
Full nameTransmission Control ProtocolUser Datagram Protocol
TypeConnection-oriented, reliableConnectionless, fast
DeliveryGuarantees delivery, retransmits lost dataNo guarantee of delivery
SpeedSlower, higher overheadFaster, lower overhead
Used forWeb browsing, email, file transferVideo streaming, online gaming, live calls
D7Differentiate between encapsulation and decapsulation.
BOOK TOPIC 1.3.4LIKELY
EncapsulationDecapsulation
Adding headers to dataRemoving headers from data
Happens at the senderHappens at the receiver
Data moves down from layer 7 to layer 1Data moves up from layer 1 to layer 7
D8Differentiate between the OSI model and the TCP/IP model.
BOOK TABLE 1.37LIKELY
AspectOSI modelTCP/IP model
Number of layers74
Developed byISO (1984)US Department of Defense (1970s)
Primary useReference model for learning and designPractical model used on the Internet
Application layerThree separate layers (Application, Presentation, Session)Combined in one Application layer
Lower layersData Link and Physical are separateCombined into Network Access layer
Protocol independenceModel defined first, protocols fit itBuilt around existing protocols
Still used todayFor teaching and troubleshootingYes, powers the Internet
D9Differentiate between a hub, a switch and a router.
LIKELYCONCEPT
DeviceOSI layerFunction
HubLayer 1 (Physical)Broadcasts data to all connected devices
SwitchLayer 2 (Data Link)Sends frames to the correct device using MAC addresses
RouterLayer 3 (Network)Forwards packets between different networks using IP addresses

Long questions5 to 8 marks each

L1Explain the seven logic gates with their symbols, Boolean expressions and truth tables.
BOOK EXERCISE 4(i)LIKELY

Logic gates are electronic circuits that perform Boolean operations on one or more binary inputs and produce a single binary output. They are the basic building blocks of all digital systems such as computers, calculators and mobile phones. Every gate has one or more inputs, only one output and a specific function. There are seven gates: AND, OR, NOT, NAND, NOR, XOR and XNOR.

1. AND gate

The AND gate gives output 1 only when all the inputs are 1. Its expression is Y = A . B. It works like a door with two locks, which opens only when both locks are unlocked. Its symbol is a D-shaped gate.

2. OR gate

The OR gate gives output 1 when any one input is 1, and 0 only when all inputs are 0. Its expression is Y = A + B. It works like a room with two doors, where we can enter if either door is open. Its symbol is an arrow-shaped (curved) gate.

3. NOT gate (inverter)

The NOT gate has only one input and it inverts the input, so 0 becomes 1 and 1 becomes 0. Its expression is Y = A'. It works like a light switch. Its symbol is a triangle with a small circle (bubble) at the output.

4. NAND gate

The NAND gate is the opposite of the AND gate (NOT AND). It gives output 0 only when all inputs are 1. Its expression is Y = (A . B)'. Its symbol is the AND gate with a bubble. It is a universal gate.

5. NOR gate

The NOR gate is the opposite of the OR gate (NOT OR). It gives output 1 only when all inputs are 0. Its expression is Y = (A + B)'. Its symbol is the OR gate with a bubble. It is also a universal gate.

6. XOR gate (Exclusive OR)

The XOR gate gives output 1 when its inputs are different. Its expression is Y = A XOR B. Its symbol is the OR gate with an extra curved line at the input.

7. XNOR gate (Exclusive NOR)

The XNOR gate gives output 1 when its inputs are the same. It is the opposite of XOR, and its expression is Y = (A XOR B)'. Its symbol is the XOR gate with a bubble.

Summary and truth tables (two inputs)
ABANDORNANDNORXORXNOR
00001101
01011010
10011010
11110001

For the NOT gate: input 0 gives output 1, and input 1 gives output 0.

Draw. The standard symbols: AND (D shape), OR (curved arrow shape), NOT (triangle with a bubble), NAND (AND with a bubble), NOR (OR with a bubble), XOR (OR with an extra curved line) and XNOR (XOR with a bubble).

NAND and NOR are called universal gates because any other gate can be built using only NAND gates or only NOR gates.

L2Draw the truth table for Y = A' . B + C. Also write the steps used to create a truth table from an expression.
BOOK EXERCISE 4(ii)LIKELY

A truth table lists all the possible combinations of the inputs of a logic expression and the output of the expression for each combination. It helps us to check what a circuit will do for every possible input before building it.

Step 1: Identify the variables

Look at the expression and count the different input variables. In Y = A'.B + C the variables are A, B and C, so there are 3 inputs.

Step 2: Calculate the number of rows

The total number of rows is 2 to the power n, where n is the number of inputs. Here n = 3, so rows = 2 x 2 x 2 = 8.

Step 3: List all input combinations

Write the inputs in binary counting order from 000 to 111 so that no combination is missed. This is done by making the last column alternate 0, 1, 0, 1, the middle column 0, 0, 1, 1, and the first column 0, 0, 0, 0, 1, 1, 1, 1.

Step 4: Calculate the output

Solve the expression by operator priority: first the NOT (A'), then the AND (A'.B), and last the OR with C. Write each intermediate result in its own column so that mistakes are easy to find.

Truth table
ABCA'A'.BY = A'.B + C
000100
001101
010111
011111
100000
101001
110000
111001

Y is 1 when C = 1, or when A = 0 and B = 1.

L3What is a K-map? Explain the steps to simplify a 2-variable expression with an example.
BOOK TOPIC 1.1.12LIKELY

A Karnaugh map (K-map) is a grid-based tool used to simplify Boolean expressions without long algebraic work. It places the truth table values in a grid where neighbouring cells differ by only one variable, so that the groups of 1s can be seen easily. A simpler expression needs fewer gates, which makes the circuit cheaper and faster. A 2-variable K-map has 4 cells (2 by 2 grid).

Step 1: Draw the K-map and fill the values

Draw the 2 by 2 grid with A on the rows and B on the columns, and write the output of the truth table in each cell (cell 0 is A'B', cell 1 is A'B, cell 2 is AB' and cell 3 is AB).

Step 2: Group the 1s

Make groups of adjacent 1s in sizes of 1, 2, 4 or 8 (powers of 2). Groups should be as large as possible, and a 1 can be used in more than one group.

Step 3: Cancel the changing variable

In each group, the variable that changes its value is cancelled, and the variable that stays the same is kept.

Step 4: Write the simplified expression

Join the terms of all the groups with OR to get the final simplified expression.

Example (OR gate)

The truth table has Y = 1 for AB = 01, 10 and 11, so the expression is Y = A'B + AB' + AB.

A / BB = 0B = 1
A = 001
A = 111
  • Group 1: the right column (B = 1). A changes and B stays 1, so the term is B.
  • Group 2: the bottom row (A = 1). B changes and A stays 1, so the term is A.
Y = A + B

The simplified result matches the OR gate truth table, which verifies the answer.

L4Simplify Y = A'B'C + A'BC + AB'C + ABC using a 3-variable K-map.
BOOK TOPIC 1.1.12LIKELY

A 3-variable K-map has 8 cells (2 to the power 3) and is drawn as a 2 by 4 grid, with A on the rows and BC on the columns. The column order must be 00, 01, 11, 10 (Gray code), so that only one bit changes between neighbouring cells.

Step 1: Identify the minterms

Write each term as a binary number: A'B'C = 001 (m1), A'BC = 011 (m3), AB'C = 101 (m5) and ABC = 111 (m7). These are the cells where the output is 1.

Step 2: Fill the K-map

Put a 1 in the cells of these minterms and 0 in the other cells. All four 1s are in the columns BC = 01 and BC = 11 (for both A = 0 and A = 1).

A / BC00011110
A = 00110
A = 10110
Step 3: Group the 1s

The four 1s form one square group of 4 cells (two columns and two rows), which is the largest possible group.

Step 4: Write the simplified expression

Inside this group A changes (0 and 1) and B changes (0 and 1), so both are cancelled. Only C stays 1 in all the cells, so it is kept.

Y = C
Result

The original expression had 4 terms and 12 literals, while the simplified expression has only 1 term and 1 literal. This shows how a K-map can reduce a big circuit to a single wire.

L5Explain all phases of SDLC in detail with activities and deliverables.
BOOK EXERCISE 4(iii)LIKELY

SDLC (Software Development Life Cycle) is a structured process that guides software development from the beginning to the end. It has six phases. Each phase has its own activities and produces a deliverable, which is the output handed over to the next phase.

Phase 1: Requirement Analysis (Planning)

This is the first and the most important phase, in which the team gathers information about what the software should do. Activities: meeting customers and users, understanding their problems and needs, listing the required features and writing the SRS (Software Requirements Specification) document. Example: for a school system, students should see their grades and parents should receive notifications. Deliverable: SRS document.

Phase 2: Design

Based on the requirements, the team decides how the software will work and look. Activities: creating High-Level Design (overall structure) and Low-Level Design (details of each component), designing the database and the user interface (screens). Tools used are flowcharts, UML diagrams, ER diagrams and wireframes. Deliverable: Design document.

Phase 3: Implementation (Coding)

Developers write the actual code using the design documents. Activities: writing code in a programming language such as Python, Java or C++, following coding standards, using version control (Git) and documenting the code. Best practices are writing clean readable code, adding comments and reviewing code with team members. Deliverable: working code or software.

Phase 4: Testing

The software is tested to find and fix errors (bugs). Activities: unit testing by developers, integration and system testing by the testing team, and user acceptance testing by the end users. Black box and white box methods are used. Deliverable: test reports and bug-free software.

Phase 5: Deployment

The tested software is released to the users. It can be released by direct deployment (replace the old system at once), phased rollout (to groups gradually), pilot release (small group first) or parallel running (old and new systems together). Deliverable: live software available to the users.

Phase 6: Maintenance

After release the software needs ongoing support and updates. Activities: fixing bugs (corrective), changing for new environments (adaptive), adding features (perfective) and preventing future problems (preventive). Deliverable: updated versions, patches and support.

PhaseDeliverable
1. Requirement AnalysisSRS document
2. DesignDesign document
3. ImplementationWorking code
4. TestingTest reports
5. DeploymentLive software
6. MaintenanceUpdates and patches
L6Explain the four types of software maintenance with examples.
BOOK EXERCISE 4(v)LIKELY

After the software is released to users, it does not stop; it needs ongoing support and updates. This work is called software maintenance, and it is the last phase of SDLC. There are four types of maintenance.

1. Corrective maintenance

This type is used to fix the bugs and errors that are found by the users after the release. Example: fixing a login error, or fixing a printer driver problem that stops a report from printing.

2. Adaptive maintenance

This type is used to change the software so that it keeps working in a new or changed environment, such as a new operating system, new hardware or new rules. Example: updating the software for a new version of Windows, or adding an e-book category to a library system.

3. Perfective maintenance

This type is used to improve the software or add new features to make it better, even if there is no error. Example: adding a dark mode, or making the search faster when the number of books grows.

4. Preventive maintenance

This type is done to prevent future problems before they happen, by improving the code or taking safety measures. Example: improving the code for better performance, or adding an automatic daily backup.

TypePurposeExample
CorrectiveFix bugs found after releaseFixing login error
AdaptiveChange for a new environmentUpdate for new Windows version
PerfectiveAdd features or improveAdd dark mode
PreventivePrevent future problemsBetter performance, automatic backup
L7Explain the Waterfall model with its characteristics, advantages, disadvantages and when to use it.
BOOK TOPIC 1.2.4LIKELY

SDLC models define how the phases of software development are organized. The Waterfall model is a linear and sequential approach. Each phase (Requirements, Design, Implementation, Testing, Deployment and Maintenance) must be completed before the next phase begins, and there is no going back, like water falling down steps.

Characteristics
  • It is sequential: one phase is completed after another with no overlapping.
  • It needs heavy documentation, so every phase produces written records.
  • Changes are difficult and expensive once a phase is finished.
Advantages
  • Simple to understand: the process is clear and linear.
  • Easy to manage: phases and milestones are defined.
  • Well documented: complete records are kept at each phase.
  • Works for small projects when the requirements do not change.
Disadvantages
  • Not flexible: it is hard to make changes after a phase is complete.
  • Late testing: bugs are found late in the process, and fixing them is costly.
  • High risk: problems discovered late can be very expensive.
  • Not suitable for complex projects that have changing requirements.
When to use the Waterfall model

Use it when the requirements are clear and fixed, the project is small to medium in size, the technology is well understood and no major changes are expected.

Case study

The Al-Noor Library Management System was built with the Waterfall model in 6 months by a team of 4 members, because the school knew exactly what the system should do, the requirements were frozen after the SRS was signed, and the project had a fixed deadline.

L8Explain the Agile model and the Scrum cycle. Write its advantages and disadvantages.
BOOK TOPIC 1.2.4LIKELY

The Agile model is an iterative and incremental approach to software development. Instead of building the whole software in one long process, the work is divided into small cycles called sprints (usually 2 to 4 weeks), and a working part of the software is delivered at the end of every sprint.

Characteristics
  • Iterative and incremental: the product grows sprint by sprint.
  • Flexible to changes: new requirements can be added at any time.
  • Customer involvement throughout the project, not only at the start and the end.
  • Working software is delivered frequently, and team collaboration is emphasized.
Scrum cycle

Scrum is the most popular Agile framework. The cycle starts with the Product Backlog (the list of all features written as user stories). In Sprint Planning the team selects the stories for the sprint. During the 2-week Sprint the team works with a short Daily Standup meeting every day. At the end the Sprint Review shows the work to the client for feedback, and the Sprint Retrospective discusses how to improve. Working software is delivered after every sprint.

Advantages
  • Flexible: it is easy to add or change features.
  • Early delivery: users see working software quickly.
  • Customer satisfaction: regular feedback and involvement.
  • Lower risk and better quality: problems are found and fixed early through continuous testing.
Disadvantages
  • Less documentation, which may cause problems later.
  • Requires commitment: the customer must be available.
  • Unpredictable: it is hard to estimate time and cost.
  • Scope creep: features may keep expanding.
When to use the Agile model

Use it when the requirements may change, the customer wants to see progress frequently, the project is complex or large, and innovation and speed are important.

Case study

The Al-Noor Student Mobile App was developed with Agile (Scrum) in 5 sprints of 2 weeks. The requirements were unclear at the start, so features such as the timetable, exam results, attendance notifications, library booking and homework submission were added sprint by sprint after feedback.

L9Compare the Waterfall and Agile models using the two case studies of the book. When would you use each?
BOOK EXERCISE 3(iii)LIKELY

The same school, Al-Noor High School, used two different SDLC models for two different projects, depending on the nature of each project. This shows that no model is best for every situation.

Case Study 1: Waterfall (Library Management System)

The school knew exactly what the library system should do, the requirements were fixed and the deadline was clear. The team of 4 completed Requirements, Design, Coding, Testing, Deployment and Maintenance one after another in 6 months, and the complete system was delivered at the end.

Case Study 2: Agile (Student Mobile Application)

The requirements were not clear at the beginning, so students, teachers and parents asked for new features as the project went on. The team of 5 worked in 5 sprints of 2 weeks, and the first working version (basic login and timetable) was ready after the first sprint. Feedback was added in the next sprints.

Comparison table
DimensionWaterfall (Case Study 1)Agile (Case Study 2)
RequirementsFully defined and fixedPartially defined, evolved over time
Client involvementAt the start and the endAfter every sprint
First working productAfter 6 monthsAfter 2 weeks
Response to changeDifficult, needs to go back to Phase 1Easy, added in the next sprint
DocumentationHeavy (SRS, design, test report)Light, working software is preferred
TestingOne dedicated phase after codingContinuous, in every sprint
RiskHigher, late bugs are expensiveLower, problems found early
When to use which

Use Waterfall when the requirements are fixed and fully understood at the start, and use Agile when the requirements are unclear or are expected to change.

L10What is a communication model? Explain the seven layers of the OSI model in detail.
BOOK EXERCISE 4(iv)LIKELY

A communication model is a set of rules and layers that explains how data travels from one device to another over a network. It is like the rules of a postal system: both the sender and the receiver must follow the same steps for the letter to arrive. The OSI (Open Systems Interconnection) model was developed in 1984 by the International Organization for Standardization (ISO). It divides network communication into seven layers; each layer has a specific job and communicates only with the layer directly above and below it. Mnemonic from the bottom: "Please Do Not Throw Sausage Pizza Away".

Layer 7: Application layer

It is the topmost layer and is closest to the user. It provides network services to the user's applications such as a web browser or an email client. Protocols: HTTP, HTTPS, FTP, SMTP, DNS. Analogy: the menu in a restaurant.

Layer 6: Presentation layer

It acts as a translator for the network. It converts data formats (for example Unicode to ASCII), encrypts and decrypts data for security, and compresses data to make it smaller. Protocols and standards: SSL/TLS, JPEG, MP3. Analogy: a translator at an international meeting.

Layer 5: Session layer

It sets up, maintains and closes the communication session between two computers, and uses checkpoints so that a transfer can resume after an interruption. Protocols: NetBIOS, RPC, PPTP. Analogy: a telephone call, from "Hello" to "Goodbye".

Layer 4: Transport layer

It provides reliable end-to-end communication. It breaks data into segments, reassembles them in the correct order, does error control and flow control, and uses port numbers. Protocols: TCP (reliable) and UDP (fast). Analogy: a courier company that guarantees delivery.

Layer 3: Network layer

It does logical addressing (IP addresses) and routing, which means finding the best path for data across networks. Routers work at this layer. Protocols: IP (IPv4, IPv6), ICMP, RIP, OSPF. Analogy: GPS navigation.

Layer 2: Data Link layer

It organizes bits into frames, adds physical (MAC) addresses and detects errors between two directly connected devices. Switches work at this layer. Technologies: Ethernet, Wi-Fi and PPP. Analogy: a local postal worker who uses house numbers.

Layer 1: Physical layer

It is the lowest layer and sends the raw bits (0s and 1s) as electrical signals, light pulses or radio waves over the physical medium. Hardware: cables, hubs, repeaters and network interface cards. Analogy: the roads and highways that vehicles travel on.

LayerNameData unitDevice or example
7ApplicationDataBrowser, email client
6PresentationDataEncryption, compression
5SessionDataSession control
4TransportSegmentTCP, UDP
3NetworkPacketRouter
2Data LinkFrameSwitch
1PhysicalBitsCable, hub
L11Explain the TCP/IP model, its four layers and how they map to the OSI model.
BOOK TOPIC 1.3.5LIKELY

The TCP/IP model (Transmission Control Protocol / Internet Protocol) is the practical model that the Internet actually uses. It was developed in the 1970s by the United States Department of Defense. Every device that connects to the Internet, such as a computer, a smartphone or a smart television, uses TCP/IP in the background every time we visit a website, send an email or make a video call. It has four layers.

1. Application layer

It combines the functions of the OSI Application, Presentation and Session layers into one layer. It gives all the services that user-facing applications need, including data formatting, encryption, session management and the actual application protocols. Protocols: HTTP, HTTPS, FTP, SMTP, DNS, IMAP and POP3.

2. Transport layer

It is identical in function to the OSI Transport layer (layer 4). It provides end-to-end communication using TCP for reliable, connection-oriented delivery and UDP for fast, connectionless delivery. It uses port numbers to identify applications.

3. Internet layer

It corresponds to the OSI Network layer (layer 3). It is responsible for logical (IP) addressing and for routing packets across multiple networks. Routers operate at this layer. Protocols: IPv4, IPv6, ICMP, ARP, OSPF and BGP.

4. Network Access layer

It is also called the Link layer and it combines the OSI Data Link and Physical layers. It handles everything related to the local physical network: MAC addressing, framing, error detection and the actual transmission of bits over cables or wireless signals. Technologies: Ethernet, Wi-Fi and cables.

TCP/IP layerCorresponding OSI layersKey protocols
ApplicationApplication, Presentation, Session (7, 6, 5)HTTP, HTTPS, FTP, SMTP, DNS
TransportTransport (4)TCP, UDP
InternetNetwork (3)IPv4, IPv6, ICMP, ARP
Network AccessData Link, Physical (2, 1)Ethernet, Wi-Fi, MAC
Conclusion

Both models share the same Transport and Network (Internet) concepts. The main difference is that TCP/IP puts the top three OSI layers into one Application layer and the bottom two OSI layers into one Network Access layer, which makes it simpler and more practical.