Class 9 · Computer Science · Domain B · Topic 1 of 2
Decomposing problems
VerifiedNot started
0 key concepts · 0 learning outcomes · 12 simulations mapped · 104 Federal-board questions in this chapter
Verification: Verified — FBISE / NBF document · Source: FBISE Assessment Framework + Model Question Paper, Computer Science Grade IX (mail.fbise.edu.pk, read in full).
1Learn
The full explanation for this topic — being added from the NBF book
It is being added from the NBF book (Federal NEW edition). The verified structure below — what you will learn and the key concepts — is already here; nothing is filled in by guesswork in the meantime.
What you will learn
No learning outcomes are recorded for this topic yet.
2Key concepts
No key-concept list is verified for this topic yet. Key concepts come from the NBF book's own structure and are added only once verified — never guessed.
3Diagram
The interactive simulation is the diagram for this topic — open it in section 4 and watch the parts move. What you will see:
- Sorting VisualizerWatch bubble sort fight disorder step by step — count comparisons and swaps.
- Sorting Steps LabSort a reversed list with bubble sort and count every step.
- Searching LabFind a value in a sorted list two ways — and count the steps.
- The Four Pillars of Computational ThinkingBreak a problem apart, spot patterns, hide details and automate — sort cards into the four pillars.
- Problem Solving with the IPO ModelFollow a problem through Input, Process and Output, and change the marks to change the average.
- Algorithms: Properties, Candid vs OptimisedOrder the sandwich steps, explore finite and definite, and pick the solution that wastes no steps.
4Explore this concept
12 simulations mapped to this chapter — showing the first 6 here. Simulations open in the teacher panel: sign in with your QalamPaper account and they open directly. (Public access without sign-in is a later phase.) Browse all simulations →
5Worked example
From this chapter's Federal-board questions · 5 marks
Draw a flowchart to find the largest of three numbers A, B and C. Describe each step.
تین اعداد A، B اور C میں سب سے بڑا تلاش کرنے کے لیے فلو چارٹ بنائیں۔ ہر مرحلہ بیان کریں۔
Model solution
Step 1 (Start): Draw an oval labelled Start. Step 2 (Input): Draw a parallelogram: read/input A, B, C. Step 3 (First decision): Draw a diamond asking 'Is A > B?'. If yes, follow the Yes branch; if no, follow the No branch. Step 4 (Second decisions): On the Yes branch, draw a diamond 'Is A > C?'; Yes leads to output A, No leads to output C. On the No branch, draw a diamond 'Is B > C?'; Yes leads to output B, No leads to output C. Step 5 (Output): Draw parallelograms to display the largest number on each path. Step 6 (Stop): All branches join at an oval labelled Stop. The flow lines with arrows connect every symbol in order.
6Try it yourself
- Step 1 — Open the simulation in section 4 (Sorting Visualizer) and change one variable at a time. Write down what changes each time.
- Step 2 — Say this topic's main idea in your own words, without looking at section 1.
- Step 3 — Attempt the practice questions in section 7. Check the answers only after you have tried each one.
7Practice questions
Multiple choice
1. Computational thinking is
کمپیوٹیشنل سوچ ہے۔
- A.a new programming language / ایک نئی پروگرامنگ زبان
- B.a type of computer hardware / کمپیوٹر ہارڈ ویئر کی ایک قسم
- C.a method to repair computers / کمپیوٹر کی مرمت کا ایک طریقہ
- D.a problem-solving approach using computer science concepts / کمپیوٹر سائنس کے تصورات کا استعمال کرتے ہوئے مسئلہ حل کرنے کا طریقہ
Show answer
a problem-solving approach using computer science concepts / کمپیوٹر سائنس کے تصورات کا استعمال کرتے ہوئے مسئلہ حل کرنے کا طریقہ
2. Which of the following is NOT a pillar of computational thinking?
مندرجہ ذیل میں سے کون NOT کمپیوٹیشنل سوچ کا ایک ستون ہے؟
- A.Decomposition / Decomposition
- B.Pattern recognition / Pattern recognition
- C.Abstraction / Abstraction
- D.Compilation / Compilation
Show answer
Compilation / Compilation
3. Decomposition means
Decomposition کا مطلب ہے۔
- A.breaking a large problem into smaller manageable parts / ایک بڑے مسئلے کو چھوٹے انتظامی حصوں میں توڑنا
- B.hiding unnecessary details / غیر ضروری تفصیلات چھپانا
- C.writing the final code / حتمی کوڈ لکھنا
- D.combining many programs / بہت سے پروگراموں کا امتزاج
Show answer
breaking a large problem into smaller manageable parts / ایک بڑے مسئلے کو چھوٹے انتظامی حصوں میں توڑنا
4. Identifying similarities among problems to reuse solutions is called
حل کو دوبارہ استعمال کرنے کے لیے مسائل کے درمیان مماثلت کی نشاندہی کرنا کہلاتا ہے۔
- A.abstraction / abstraction
- B.decomposition / decomposition
- C.pattern recognition / pattern recognition
- D.debugging / debugging
Show answer
pattern recognition / pattern recognition
5. Abstraction in computational thinking means
کمپیوٹیشنل سوچ میں Abstraction کا مطلب ہے۔
- A.focusing on important details while ignoring irrelevant ones / غیر متعلقہ چیزوں کو نظر انداز کرتے ہوئے اہم تفصیلات پر توجہ مرکوز کرنا
- B.breaking problems into parts / مسائل کو حصوں میں توڑنا
- C.finding similar patterns / اسی طرح کے پیٹرن کی تلاش
- D.writing long programs / طویل پروگرام لکھنا
Show answer
focusing on important details while ignoring irrelevant ones / غیر متعلقہ چیزوں کو نظر انداز کرتے ہوئے اہم تفصیلات پر توجہ مرکوز کرنا
Short questions
1. What is computational thinking?
کمپیوٹیشنل تھنکنگ کیا ہے؟
Show answer
It is a way of solving problems using computer-science ideas: breaking problems down, spotting patterns, hiding unnecessary detail, and designing clear step-by-step solutions. / تمام living things cells سے بنا ہیں؛ cell زندگی کی بنیادی structural اور functional unit ہے۔ تمام cells پہلے سے موجود cells سے پیدا ہوتے ہیں۔
2. Name the three kinds of computing problems, with one example of each.
کمپیوٹنگ کے مسائل کی تین اقسام کے نام بتائیں، ہر ایک کی ایک مثال دیں۔
Show answer
Decision problems ask a yes/no question (is a number even?). Search problems find an item (find a name in a list). Counting problems ask how many (how many marks are above 80?). / Distance طے شدہ راستے کی کل لمبائی ہے؛ یہ scalar ہے جس میں صرف magnitude ہے۔ Displacement ابتدائی سے حتمی position تک بتائی سمت میں سب سے چھوٹا سیدھا فاصلہ ہے؛ یہ vector ہے۔
3. Explain the I-P-O model with an example.
آئی پی او ماڈل کی ایک مثال کے ساتھ وضاحت کریں۔
Show answer
I-P-O means every solution has Input, Processing and Output. For example, to add two numbers: the two numbers are the input, adding them is the processing, and the sum is the output. / nucleus میں ڈی این اے، genetic مواد، اور controls میں cell کی تمام سرگرمیاں شامل ہیں growth اور reproduction.
From the Federal-board question bank for this chapter (104 questions mapped). Answers stay hidden until you choose to reveal them.
8Common mistakes
Common mistakes for this topic — being added from the NBF book
They are being added from the NBF book — the mistakes students most often make on this topic, with the correction. Nothing is filled in by guesswork.
9Real-life application
Where you meet this in real life
- Sorting Visualizer — Watch bubble sort fight disorder step by step — count comparisons and swaps.
- Sorting Steps Lab — Sort a reversed list with bubble sort and count every step.
- Searching Lab — Find a value in a sorted list two ways — and count the steps.
Prescribed practicals for Computer Science
Subject level — the FBISE PBA booklets do not split practicals by topic.
- Section ACSSText styling, colours, spacing, borders, positioning, backgrounds, hover.
- Section AHTMLFormatting/anchor/image/list/table tags; build blog, portfolio, personal, business, home, contact, about and product pages.
- Section AJavaScriptVariables, I/O, sequencing, conditionals, loops, simple functions, debugging; arithmetic problems, area/volume, comparisons, factorial, series, tables, largest/smallest, searching, sorting.
- Section BBusiness plan using a digital toolPrepare a business plan using a digital tool.
10Quick revision
- Topic
- Decomposing problems
- Chapter
- Computational Thinking and Algorithms
- Key concepts
- No key-concept list verified yet.
- You should be able to
- No learning outcomes recorded yet.
- Simulations
- 12 mapped to this chapter
- Bank questions
- 104 Federal-board questions in this chapter
11Check understanding
Three more questions from this chapter — try them before revealing the answers.
1. An algorithm is
ایک algorithm ہے۔
- A.a hardware device / ایک ہارڈ ویئر ڈیوائس
- B.a step-by-step procedure to solve a problem / کسی مسئلے کو حل کرنے کے لیے مرحلہ وار طریقہ کار
- C.a programming language / ایک پروگرامنگ زبان
- D.a computer virus / ایک کمپیوٹر وائرس
Show answer
a step-by-step procedure to solve a problem / کسی مسئلے کو حل کرنے کے لیے مرحلہ وار طریقہ کار
2. Which of the following is a characteristic of a good algorithm?
مندرجہ ذیل میں سے کون سی اچھی algorithm کی خصوصیت ہے؟
- A.Finiteness — it must terminate after a finite number of steps / تکمیلیت - اسے محدود تعداد کے مراحل کے بعد ختم ہونا چاہیے۔
- B.It must run forever / اسے ہمیشہ کے لیے چلنا چاہیے۔
- C.It must have no input / اس میں کوئی ان پٹ نہیں ہونا چاہیے۔
- D.It must be ambiguous / یہ مبہم ہونا چاہیے۔
Show answer
Finiteness — it must terminate after a finite number of steps / تکمیلیت - اسے محدود تعداد کے مراحل کے بعد ختم ہونا چاہیے۔
3. Definiteness of an algorithm means
الگورتھم کی ڈیفنیٹنس کا مطلب ہے
- A.it uses many variables / یہ بہت سے variables استعمال کرتا ہے۔
- B.it has no output / اس کی کوئی پیداوار نہیں ہے
- C.it never ends / یہ کبھی ختم نہیں ہوتا
- D.each step is clear and unambiguous / ہر قدم واضح اور غیر مبہم ہے۔
Show answer
each step is clear and unambiguous / ہر قدم واضح اور غیر مبہم ہے۔
Say it in your own words: Explain this topic in 2–3 sentences without looking, then compare with section 1 above. (Progress tracking arrives in a later phase — your answer is not recorded anywhere yet.)