Decomposition & Abstraction unit1 Flashcards
(12 cards)
What is computational thinking?
Allows us to take a complex problem, understand what the problem is and develop solutions.
What is decomposition in computing?
Breaking a large, complex problem into smaller, manageable sub-problems.
Why is decomposition useful?
It makes solving large problems easier and more organised by handling one part at a time.
What is abstraction in computing?
Removing unnecessary details to focus on the important parts of a problem.
Give an example of abstraction in real life.
Modelling traffic flow without including car colour or driver age—only focusing on vehicle count, speed, etc.
What should be identified at the start of designing a solution?
The inputs, outputs, processing, and any initialisation required.
What is meant by “inputs” in a program?
The data that is entered or provided to the system.
What is meant by “outputs” in a program?
The information or result that comes out of the system after processing.
What is meant by “processing” in a program?
The actions or steps the program takes to convert input into output.
What does “initialisation” mean in a program?
Setting starting values for variables or systems before processing begins.
How can abstraction help in programming?
By simplifying real-world problems, making them easier to model and code.
What does it mean to “program abstractions of real-world examples”?
Creating simplified code models of real-life scenarios, like simulating traffic or inventory.