Search Header Logo

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

Authored by Shervon Yak

Computers

4th Grade

Used 1+ times

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

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Media Image

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

Media Image

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?