NEW
Font size
Worksheetsgrade 6 week 4
Total questions: 51
Worksheet time: 51mins
What is decomposition in programming?
Combining code into one block
Writing code in a different language
Breaking a problem into smaller parts
Making the program longer
What is an algorithm?
A set of steps to solve a problem
A computer hardware
A type of software
An image file
Which of the following is an example of decomposition?
Writing a full essay
Splitting a task into smaller steps
Copying homework
Using a calculator
Why do we use decomposition?
To delete code
To make problems harder
To simplify complex problems
To ignore errors
Which of these best describes an algorithm?
A rule book
A list of instructions
A computer
A drawing
What is the first step before writing an algorithm?
Debugging
Decomposition
Printing
Running the program
Decomposition helps programmers to:
Understand the problem better
Write longer code
Avoid planning
Remove all variables
Which one is NOT part of an algorithm?
Input
Output
Process
Decoration
An algorithm must be:
Fancy
Repetitive
Clear and ordered
Full of colors
When do we use decomposition?
After testing
After debugging
Before solving a big problem
After writing variables
What makes an algorithm effective?
Random order
Step-by-step and clear instructions
Using unknown variables
Drawing pictures
If you want to cook a dish, decomposition would mean:
Breaking the recipe into steps
Cooking all at once
Burning the food
Eating without cooking
A flowchart is used to:
Store data
Show steps of an algorithm
Make music
Write emails
Decomposition is important because:
It increases confusion
It skips steps
It makes the solution easier
It avoids writing code
A real-life example of decomposition is:
Drawing without thinking
Planning a trip in parts
Sleeping
Listening to music
Algorithm helps us to:
Solve problems step-by-step
Guess randomly
Decorate websites
Make long passwords
What does each step in an algorithm need to be?
Clear and correct
Repeated
Unrelated
Guesswork
A pseudocode is:
A real program
A plain language version of an algorithm
A drawing
A song
What can you use after decomposition?
Music
A map
An algorithm
An advertisement
A good example of algorithm:
"Maybe do this"
"Do anything"
"Step 1: Turn on light. Step 2: Sit down."
"Be happy"
In Scratch, what helps in decomposition?
Backgrounds
Custom blocks
Music
Costumes
Which part of coding shows decomposition?
Copying scripts
Using different sprites for different roles
Only one sprite
Adding sound
What happens when you don't decompose a problem?
Code becomes messy and confusing
Code is perfect
More fun
Easier to debug
Decomposition in team work helps:
To confuse everyone
Everyone to work on different parts
Finish later
Increase errors
What is the correct order?
Output → Input → Decomposition
Decomposition → Algorithm → Code
What is the correct order?
Output → Input → Decomposition
Decomposition → Algorithm → Code
Flowchart → Sound → Code
Guessing → Drawing → Program
One advantage of decomposition is:
Wasting time
Easier testing and debugging
Confusion
Hiding errors
Decomposition is a part of:
Gaming
Problem-solving strategy
Drawing
Hardware building
Algorithm should not be:
Specific
Random
Sequential
Logical
Which tool helps visualize an algorithm?
Brush
Video
Flowchart
Compass
A large problem becomes manageable when:
Ignored
Decomposed
Deleted
Printed
Algorithm in daily life example:
Brushing teeth step-by-step
Singing
Sitting
Typing letters randomly
What is the use of a decision symbol in a flowchart?
Start
Stop
To show a Yes/No condition
Repeat
If a program is too hard, what should you do first?
Ignore it
Break it into smaller parts
Start coding
Close your laptop
Which step is part of decomposition in making a sandwich?
Get bread
Eat it
Print sandwich
Play music
A flowchart starts with:
Input
Start symbol
Music
Condition
To check if decomposition is correct:
Ask a friend
Skip it
See if small parts make the full task
Add more steps
When debugging, decomposition helps:
Increase bugs
Find where the problem is faster
Add confusion
Print random text
What is a loop in an algorithm?
An error
A repeated action
A comment
An input
Sub-tasks in decomposition must be:
All the same
Clear and specific
Fancy
Secret
Which is the best example of a decision in an algorithm?
"Turn right"
"If hungry, then eat"
"Wear shoes"
"Go to school"
Decomposition is useful in big projects because:
You can work part by part
It wastes time
It's only for games
Makes code longer
In Scratch, custom blocks represent:
Backgrounds
Sounds
Sub-procedures
Loops
What is the best description of a sub-procedure?
A color
A song
A smaller task inside a big task
A large paragraph
Decomposition improves code because:
It makes it colorful
It organizes tasks clearly
Adds bugs
Hides logic
Algorithms must always be:
Complicated
Random
Ordered and correct
Long
What is a condition in an algorithm?
A bug
A title
A decision point
A font
A process in a flowchart is shown by:
Rectangle
Diamond
Circle
Triangle
An input in an algorithm is:
Something you give to the program
A result
A mistake
A name
An output is:
The steps
The result the program gives
A bug
An action
A real example of decomposition in school is:
Planning your class schedule
Doing nothing
Skipping class
Printing notes
