wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

grade 6 week 4

Total questions: 51

Worksheet time: 51mins

Name
Class
Date
1.

What is decomposition in programming?

a)

Combining code into one block

b)

Writing code in a different language

c)

Breaking a problem into smaller parts

d)

Making the program longer

2.

What is an algorithm?

a)

A set of steps to solve a problem

b)

A computer hardware

c)

A type of software

d)

An image file

3.

Which of the following is an example of decomposition?

a)

Writing a full essay

b)

Splitting a task into smaller steps

c)

Copying homework

d)

Using a calculator

4.

Why do we use decomposition?

a)

To delete code

b)

To make problems harder

c)

To simplify complex problems

d)

To ignore errors

5.

Which of these best describes an algorithm?

a)

A rule book

b)

A list of instructions

c)

A computer

d)

A drawing

6.

What is the first step before writing an algorithm?

a)

Debugging

b)

Decomposition

c)

Printing

d)

Running the program

7.

Decomposition helps programmers to:

a)

Understand the problem better

b)

Write longer code

c)

Avoid planning

d)

Remove all variables

8.

Which one is NOT part of an algorithm?

a)

Input

b)

Output

c)

Process

d)

Decoration

9.

An algorithm must be:

a)

Fancy

b)

Repetitive

c)

Clear and ordered

d)

Full of colors

10.

When do we use decomposition?

a)

After testing

b)

After debugging

c)

Before solving a big problem

d)

After writing variables

11.

What makes an algorithm effective?

a)

Random order

b)

Step-by-step and clear instructions

c)

Using unknown variables

d)

Drawing pictures

12.

If you want to cook a dish, decomposition would mean:

a)

Breaking the recipe into steps

b)

Cooking all at once

c)

Burning the food

d)

Eating without cooking

13.

A flowchart is used to:

a)

Store data

b)

Show steps of an algorithm

c)

Make music

d)

Write emails

14.

Decomposition is important because:

a)

It increases confusion

b)

It skips steps

c)

It makes the solution easier

d)

It avoids writing code

15.

A real-life example of decomposition is:

a)

Drawing without thinking

b)

Planning a trip in parts

c)

Sleeping

d)

Listening to music

16.

Algorithm helps us to:

a)

Solve problems step-by-step

b)

Guess randomly

c)

Decorate websites

d)

Make long passwords

17.

What does each step in an algorithm need to be?

a)

Clear and correct

b)

Repeated

c)

Unrelated

d)

Guesswork

18.

A pseudocode is:

a)

A real program

b)

A plain language version of an algorithm

c)

A drawing

d)

A song

19.

What can you use after decomposition?

a)

Music

b)

A map

c)

An algorithm

d)

An advertisement

20.

A good example of algorithm:

a)

"Maybe do this"

b)

"Do anything"

c)

"Step 1: Turn on light. Step 2: Sit down."

d)

"Be happy"

21.

In Scratch, what helps in decomposition?

a)

Backgrounds

b)

Custom blocks

c)

Music

d)

Costumes

22.

Which part of coding shows decomposition?

a)

Copying scripts

b)

Using different sprites for different roles

c)

Only one sprite

d)

Adding sound

23.

What happens when you don't decompose a problem?

a)

Code becomes messy and confusing

b)

Code is perfect

c)

More fun

d)

Easier to debug

24.

Decomposition in team work helps:

a)

To confuse everyone

b)

Everyone to work on different parts

c)

Finish later

d)

Increase errors

25.

What is the correct order?

a)

Output → Input → Decomposition

b)

Decomposition → Algorithm → Code

26.

What is the correct order?

a)

Output → Input → Decomposition

b)

Decomposition → Algorithm → Code

c)

Flowchart → Sound → Code

d)

Guessing → Drawing → Program

27.

One advantage of decomposition is:

a)

Wasting time

b)

Easier testing and debugging

c)

Confusion

d)

Hiding errors

28.

Decomposition is a part of:

a)

Gaming

b)

Problem-solving strategy

c)

Drawing

d)

Hardware building

29.

Algorithm should not be:

a)

Specific

b)

Random

c)

Sequential

d)

Logical

30.

Which tool helps visualize an algorithm?

a)

Brush

b)

Video

c)

Flowchart

d)

Compass

31.

A large problem becomes manageable when:

a)

Ignored

b)

Decomposed

c)

Deleted

d)

Printed

32.

Algorithm in daily life example:

a)

Brushing teeth step-by-step

b)

Singing

c)

Sitting

d)

Typing letters randomly

33.

What is the use of a decision symbol in a flowchart?

a)

Start

b)

Stop

c)

To show a Yes/No condition

d)

Repeat

34.

If a program is too hard, what should you do first?

a)

Ignore it

b)

Break it into smaller parts

c)

Start coding

d)

Close your laptop

35.

Which step is part of decomposition in making a sandwich?

a)

Get bread

b)

Eat it

c)

Print sandwich

d)

Play music

36.

A flowchart starts with:

a)

Input

b)

Start symbol

c)

Music

d)

Condition

37.

To check if decomposition is correct:

a)

Ask a friend

b)

Skip it

c)

See if small parts make the full task

d)

Add more steps

38.

When debugging, decomposition helps:

a)

Increase bugs

b)

Find where the problem is faster

c)

Add confusion

d)

Print random text

39.

What is a loop in an algorithm?

a)

An error

b)

A repeated action

c)

A comment

d)

An input

40.

Sub-tasks in decomposition must be:

a)

All the same

b)

Clear and specific

c)

Fancy

d)

Secret

41.

Which is the best example of a decision in an algorithm?

a)

"Turn right"

b)

"If hungry, then eat"

c)

"Wear shoes"

d)

"Go to school"

42.

Decomposition is useful in big projects because:

a)

You can work part by part

b)

It wastes time

c)

It's only for games

d)

Makes code longer

43.

In Scratch, custom blocks represent:

a)

Backgrounds

b)

Sounds

c)

Sub-procedures

d)

Loops

44.

What is the best description of a sub-procedure?

a)

A color

b)

A song

c)

A smaller task inside a big task

d)

A large paragraph

45.

Decomposition improves code because:

a)

It makes it colorful

b)

It organizes tasks clearly

c)

Adds bugs

d)

Hides logic

46.

Algorithms must always be:

a)

Complicated

b)

Random

c)

Ordered and correct

d)

Long

47.

What is a condition in an algorithm?

a)

A bug

b)

A title

c)

A decision point

d)

A font

48.

A process in a flowchart is shown by:

a)

Rectangle

b)

Diamond

c)

Circle

d)

Triangle

49.

An input in an algorithm is:

a)

Something you give to the program

b)

A result

c)

A mistake

d)

A name

50.

An output is:

a)

The steps

b)

The result the program gives

c)

A bug

d)

An action

51.

A real example of decomposition in school is:

a)

Planning your class schedule

b)

Doing nothing

c)

Skipping class

d)

Printing notes