0
0
Intro to Computingfundamentals~20 mins

Decomposition (breaking problems down) in Intro to Computing - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
πŸŽ–οΈ
Decomposition Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why use decomposition in problem solving?

Imagine you want to bake a cake. Which of the following best explains why breaking the task into smaller steps helps?

ABecause smaller steps are easier to manage and check for mistakes.
BBecause doing everything at once is faster and less confusing.
CBecause breaking tasks makes the cake bake itself automatically.
DBecause smaller steps mean you don’t need ingredients.
Attempts:
2 left
πŸ’‘ Hint

Think about how you handle big tasks in daily life.

❓ trace
intermediate
2:00remaining
Trace the steps of decomposing a morning routine

Which of the following lists correctly breaks down the task 'Get ready for school' into smaller steps?

APack bag, brush teeth, wake up, eat breakfast, leave house.
BWake up, eat breakfast, leave house, brush teeth, pack bag.
CLeave house, pack bag, eat breakfast, brush teeth, wake up.
DWake up, brush teeth, eat breakfast, pack bag, leave house.
Attempts:
2 left
πŸ’‘ Hint

Think about the logical order you do things in the morning.

❓ identification
advanced
2:00remaining
Identify the best decomposition for a software task

You need to create a program that manages a library. Which decomposition breaks the problem into the most useful parts?

AWrite code, test code, debug code, deploy code, update code.
BAdd books, remove books, search books, lend books, return books.
CBuy books, read books, sell books, donate books, recycle books.
DOpen library, close library, clean library, paint library, decorate library.
Attempts:
2 left
πŸ’‘ Hint

Think about the main functions a library management program needs.

❓ Comparison
advanced
2:00remaining
Compare two decompositions of a task

Two students decomposed the task 'Plan a birthday party' differently. Which decomposition is better and why?

Student 1: Choose date, invite guests, buy cake, decorate room, play games.
Student 2: Buy cake, decorate room, invite guests, choose date, play games.

AStudent 1’s decomposition is better because it follows a logical order of planning.
BStudent 2’s decomposition is better because buying cake first saves time.
CBoth decompositions are equally good because they have the same steps.
DNeither decomposition is good because they don’t include cleaning after the party.
Attempts:
2 left
πŸ’‘ Hint

Think about what needs to happen before inviting guests.

πŸš€ Application
expert
3:00remaining
Apply decomposition to solve a complex problem

You want to build a simple calculator app. Which of the following decompositions breaks the problem into the most useful parts?

ADraw calculator, paint calculator, sell calculator, buy calculator, use calculator.
BWrite code, debug code, write code again, debug again, release app.
CDesign user interface, implement addition, implement subtraction, implement multiplication, implement division, test app.
DBuy a calculator, learn math, use calculator, fix calculator, throw calculator.
Attempts:
2 left
πŸ’‘ Hint

Think about the main features needed in a calculator app.