
Q&A – Decomposition & Sub-Routines (Primary 4 – 4CT.06)

Quiz
•
Computers
•
4th Grade
•
Hard
Shervon Yak
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Decomposition means breaking a big task into smaller parts.
True
False
Answer explanation
True. Decomposition involves breaking a larger task into smaller, manageable parts, making it easier to tackle and complete the overall task.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is an example of decomposition?
Writing one long algorithm for everything
Splitting a program into smaller subroutines like “Input Data,” “Calculate Result,” “Output Result”
Repeating the same step again and again
Printing “Hello” 10 times
Answer explanation
Decomposition involves breaking down a complex problem into smaller, manageable parts. The correct choice, "Splitting a program into smaller subroutines like 'Input Data,' 'Calculate Result,' 'Output Result,'" exemplifies this process.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Decomposition is useful in algorithms because:
it breaks down complex problems into simpler parts.
it makes algorithms run slower.
it increases the complexity of problems.
it hides errors in the code.
Answer explanation
Decomposition is useful in algorithms because it breaks down complex problems into simpler parts, making them easier to understand and solve. This approach enhances problem-solving efficiency.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is better, and why?
Option A is better because it offers more advantages.
Option B is better because it is more efficient.
Option C is better because it is more popular.
Option D is better because it is less expensive.
Answer explanation
Option B is the best choice because efficiency often leads to better performance and productivity, making it a crucial factor in decision-making. While other options have their merits, efficiency is key in many contexts.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sub-routines can only be used once in an algorithm.
True
False
Answer explanation
Sub-routines can be called multiple times within an algorithm, allowing for code reuse and modular design. Therefore, the statement that they can only be used once is false.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which task benefits most from decomposition?
Turning on a light switch
Solving a math problem with 10 steps
Saying “Hello” once
Answer explanation
Solving a math problem with 10 steps benefits most from decomposition, as breaking it down into smaller, manageable parts makes it easier to understand and solve each step systematically.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can decomposition help?
Create a sub-routine called “Paint Line” and repeat it.
Make the program run faster by default.
Remove all loops from the code.
Increase the number of errors in the program.
Answer explanation
Decomposition helps by breaking down complex tasks into smaller, manageable sub-routines, like 'Paint Line'. This allows for easier code maintenance and reuse, enhancing clarity and efficiency in programming.
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
KS3 Abstraction

Quiz
•
7th - 9th Grade
10 questions
NHTW Programming

Quiz
•
9th Grade
15 questions
Quiz on Computational Thinking and Representing Algorithms 10B

Quiz
•
10th Grade
10 questions
Algorithm analysis: divide & conquer theory

Quiz
•
University
14 questions
Computational Thinking Quiz

Quiz
•
6th - 8th Grade
15 questions
Computational Thinking Quiz

Quiz
•
8th Grade
15 questions
Decomposition in Video Game Development

Quiz
•
10th Grade - University
15 questions
Intro to Computational Thinking

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade