Table of Contents
Computational Thinking and Algorithms appears in both Class 9 (Chapter 2) and Class 10 (Chapter 2). On the surface it looks like the easiest chapter - no coding, no long definitions to memorize - but in practice it is where students lose marks because they assume they can "figure it out" during the exam rather than practicing beforehand. The chapter is deceptive: the concepts are simple to understand but easy to mess up under time pressure, especially when you need to trace through a flowchart and predict the exact output at each step.
This guide breaks the entire chapter into digestible sections so you can build a strong foundation and avoid the common traps that cost marks.
Key insight: This is the only chapter in the FBISE Computer Science syllabus where the same concepts appear in both Class 9 and Class 10. Master it now and you have a head start on next year.
What is Computational Thinking?
Computational thinking is a problem-solving approach that draws on concepts from computer science. It is not about thinking like a machine - it is about breaking down big problems into smaller, manageable pieces so you can solve them systematically. The FBISE syllabus identifies four pillars of computational thinking:
- Decomposition: Breaking a large problem into smaller sub-problems. For example, planning a birthday party involves separate tasks - deciding a venue, creating a guest list, arranging food, and planning activities. Each task can be solved independently.
- Pattern Recognition: Looking for similarities or recurring trends. If you have solved a problem before, you can reuse the same approach. For instance, calculating the total cost of three different shopping lists uses the same addition process each time.
- Abstraction: Focusing on the important details and ignoring what is irrelevant. When you navigate to a website, you do not need to understand how TCP/IP packets travel across the internet - you just need the URL. Abstraction means hiding complexity and keeping only what matters for the task.
- Algorithm Design: Creating a step-by-step plan to solve a problem. This is where you turn your thinking into a sequence of instructions that can be followed by a human or a computer.
FBISE often asks students to identify which pillar applies to a given scenario, or to apply all four to a real-world problem in a long question.
Algorithms - Step-by-Step Problem Solving
An algorithm is a finite sequence of well-defined steps to solve a problem. Think of it like a recipe: if you follow the steps correctly, you always get the same result. Algorithms must be clear, unambiguous, and have a definite end point.
Here are three simple algorithms you should practice writing:
1. Making tea: Start, boil water, place tea bag in cup, pour water, add sugar and milk, stir, serve, end. This is a linear sequence - each step happens exactly once in order.
2. Finding the largest number among three inputs: Start, input A, input B, input C, if A is greater than B and A is greater than C then output A, else if B is greater than A and B is greater than C then output B, else output C, end. This algorithm uses selection because it makes decisions based on conditions.
3. Checking if a number is even or odd: Start, input a number, divide it by 2, if the remainder is 0 then output "Even", else output "Odd", end. Simple, but it is a classic exam question.
For detailed solved examples, check the Class 9 Chapter 2 solved exercise and the Class 10 Chapter 2 solved exercise - both contain lab activities that mirror the actual exam format.
Flowcharts - Visualizing Logic
A flowchart is a diagram that represents an algorithm using standard symbols. FBISE expects you to know the following symbols and be able to both draw and trace flowcharts:
- Oval (Start/End): Marks the beginning and end of the flowchart. Every flowchart has exactly one Start and one End.
- Parallelogram (Input/Output): Used for taking input from the user or displaying output. For example, "Input age" or "Print result."
- Rectangle (Process): Represents a calculation or an action. For example, "Set total = price * quantity" or "Add 1 to counter."
- Diamond (Decision): Represents a yes/no question. The flowchart branches in different directions depending on the answer. For example, "Is score greater than 50?"
- Arrow (Flow lines): Show the direction of the flow.
Tracing a flowchart is the skill FBISE tests most often. You receive a flowchart and must write down what output it produces for given input values. The trick is to simulate the flowchart step by step on paper, keeping track of every variable as it changes. Never try to trace in your head - always make a table with columns for each variable and update it line by line.
Pro tip: When tracing a flowchart in the exam, create a small table on the side of your answer sheet. Write each variable name as a column header and fill in the value after each step. This makes it almost impossible to make a tracking error.
Sequence, Selection, Iteration
Every algorithm is built from three logical structures. FBISE expects you to identify which structure is being used and explain how it works:
- Sequence: Steps execute one after another in order, from top to bottom. Example: "Take a number, add 5 to it, multiply by 2, display the result." Each step runs exactly once.
- Selection: A condition determines which set of steps runs. Also called a decision or branch. Example: "If the number is positive, display 'Positive'. Otherwise, display 'Not positive'." Only one branch executes.
- Iteration: A set of steps repeats as long as a condition is true. Also called a loop. Example: "Repeat 10 times: display your name." The loop body runs multiple times until the condition becomes false.
Exam questions often ask you to identify the structure in a given algorithm or to modify an algorithm by adding selection or iteration to handle a new requirement.
Exam Tips and Common Mistakes
This chapter looks easy, but the marks slip away in predictable ways. Here is what to watch for:
- Practice dry-running under time pressure. Set a timer and trace 3-4 flowcharts in 15 minutes. The exam environment is stressful - your brain slows down. If you only practice when relaxed, you will be caught off guard in the hall.
- Use the correct symbols. Many students draw a rectangle for a decision or skip the Start/End oval. FBISE examiners notice. Practice drawing each symbol until it is automatic.
- Do not confuse algorithm with pseudocode. An algorithm is written in plain English. Pseudocode is a mix of English and programming-like syntax. In the exam, always write algorithms in simple, clear steps unless the question specifically asks for pseudocode.
- Check your conditions carefully. Flip the logic in your head. If the condition says "age >= 18" and you test age = 17, what happens? And with age = 18? Testing boundary values is the fastest way to catch mistakes in your own tracing.
- Read the full question before starting. Some questions have two parts: trace the flowchart (Part A) and then modify it (Part B). Students sometimes do Part A and forget Part B exists, leaving marks on the table.
Frequently Asked Questions
Do I need to draw flowcharts by hand or can I use software in the exam?
In the FBISE annual exam, all flowcharts are drawn by hand using a pencil and ruler. There is no digital option. Practice drawing neat, proportional symbols freehand so you do not waste time fumbling with a ruler during the exam.
What is the difference between an algorithm and pseudocode?
An algorithm is written in simple, everyday language - anyone can follow it. Pseudocode looks more like a programming language (using keywords like IF, ELSE, WHILE, INPUT, OUTPUT) but without the strict syntax of actual code. In the FBISE exam, use plain English for algorithms unless the question asks for pseudocode specifically.
What types of exam questions are most common in this chapter?
The three most common question types are: (1) "Write an algorithm to..." (usually for a simple task like finding the largest number or checking even/odd), (2) "Trace the following flowchart and state the output for given inputs," and (3) "Identify the logical structures used in the following algorithm." Questions that combine flowchart tracing with algorithm writing are worth the most marks.