wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Introduction to Coding

Total questions: 60

Worksheet time: 30mins

Name
Class
Date
1.

What is the purpose of coding?

a)

To play games

b)

To create instructions that computers can understand

c)

To design websites

d)

To save files

2.

Which of the following best describes an algorithm?

a)

A program on the computer

b)

A set of steps to complete a task

c)

A coding language

d)

A type of data

3.

What is a flowchart used for in coding?

a)

To draw pictures

b)

To represent an algorithm visually

c)

To play sounds

d)

To write stories

4.

Why is it useful to write an algorithm before starting to code?

a)

To make coding easier by organizing steps

b)

To make the code more confusing

c)

To make it look impressive

d)

To change the language of coding

5.

Identify the error in this algorithm for calculating 10 x 3 on a calculator: Step 1: Enter 10 Step 2: Press the + button Step 3: Enter 3 Step 4: Press =

a)

Step 1

b)

Step 2

c)

Step 3

d)

Step 4

6.

What should you do if your code is not working correctly?

a)

Check for mistakes and fix them (debugging)

b)

Delete the code

c)

Write a new code without checking

d)

Ignore the errors

7.

While debugging, you realize the calculator code shows "multiplication" instead of "addition." What's the most likely cause?

a)

The formula or symbol is incorrect

b)

The calculator is broken

c)

You need to restart the calculator

d)

You need to reinstall the calculator program

8.

What should you do if you find a mistake in your algorithm?

a)

Correct the steps clearly and logically

b)

Skip that part and continue

c)

Ask someone else to complete it

d)

Start coding without fixing it

9.

In a flowchart for brushing your teeth, which step is a decision?

a)

Pick up the toothbrush

b)

Check if the toothbrush is wet

c)

Rinse with water

d)

Add toothpaste

10.

What could happen if you don't debug your code?

a)

The code will run perfectly

b)

The code may show errors or not work at all

c)

It will run faster

d)

The code will look different

11.

What is the purpose of a flowchart that compares two numbers?

a)

To multiply two numbers

b)

To determine which number is larger

c)

To find the sum of the numbers

d)

To check if they are even or odd

12.

If a flowchart compares A = 7 and B = 10, what is the output?

a)

"A is greater"

b)

"B is greater"

c)

"Both are equal"

d)

"Enter a new number"

13.

In a flowchart comparison, if A is less than B, what result should be shown?

a)

"A is greater"

b)

"B is greater"

c)

"Values are equal"

d)

"Process complete"

14.

What is an algorithm in computer science?

a)

A computer program

b)

A language to create codes

c)

Step-by-step instructions to solve a problem

d)

A type of error in a code

15.

What is a bug in a program?

a)

An error in the code

b)

A small picture

c)

A programming language

d)

A new software update

16.

What does debugging mean?

a)

Removing errors from code

b)

Adding new code

c)

Running the code continuously

d)

Ignoring errors

17.

What does a flowchart represent in programming?

a)

A type of coding language

b)

A set of pictures

c)

A diagram to represent an algorithm

d)

A symbol library

18.

Which flowchart symbol would you use for "Enter age" in a program?

a)

Oval

b)

Parallelogram

c)

Rectangle

d)

Diamond

19.

What does a diamond shape represent in a flowchart?

a)

Start or end

b)

Input or output

c)

Process

d)

Decision

20.

In a flowchart, what does a rectangle symbolize?

a)

Start of the algorithm

b)

An action or process

c)

Input of data

d)

End of the algorithm

21.

What is a parallelogram used for in a flowchart?

a)

To show input or output

b)

To start a new algorithm

c)

To end the flowchart

d)

To show a decision

22.

What are flow lines in a flowchart?

a)

Symbols to show the start or end

b)

Arrows that connect steps in a flowchart

c)

Icons to display errors

d)

Tools to add new shapes

23.

In the flowchart for deciding if you need an umbrella, which step would involve a decision?

a)

Check if it's raining or cloudy

b)

Put on your shoes

c)

Start your day

d)

Wear a hat

24.

A code isn't working because of an error. What should you do?

a)

Check each line for mistakes

b)

Start writing a new code

c)

Ignore the code

d)

Play with different outputs

25.

If you have a decision box in a flowchart, what type of question should it represent?

a)

One that has a yes or no answer

b)

An open-ended question

c)

A coding language

d)

An image-based question

26.

In a flowchart to represent baking a cake, which of these steps is a process?

a)

Take out ingredients

b)

Mix the ingredients

c)

Set the temperature of the oven

d)

End

27.

If you are asked to write an algorithm for switching on a computer, what is the first step?

a)

Open a new document

b)

Press the power button

c)

Start typing

d)

Close all applications

28.

You are designing a flowchart to show the steps of watering a plant. Which step comes first?

a)

Check if the soil is dry

b)

Fill the watering can

c)

Water the plant

d)

Put the can back

29.

In a flowchart to represent making tea, what would the rectangle symbolize?

a)

Boiling water

b)

Deciding to add milk

c)

Adding sugar and tea leaves

d)

Pouring the tea

30.

Your flowchart includes checking if two numbers are equal. What shape represents this step?

a)

Rectangle

b)

Parallelogram

c)

Diamond

d)

Ellipse

31.

Why is it important to write an algorithm before starting to code?

a)

To save time and avoid errors

b)

To add more steps to the process

c)

To make the code look better

d)

To keep the code in a single line

32.

What might happen if there's a bug in your algorithm?

a)

The algorithm will run perfectly

b)

The computer will crash

c)

The code may not work as intended

d)

It will increase processing speed

33.

What does the word 'debugging' mean in coding?

a)

Making the code longer

b)

Correcting mistakes in code

c)

Testing the code

d)

Deleting a program

34.

In coding, what would a bug most likely affect?

a)

The performance of a program

b)

The user's computer settings

c)

The battery life of the device

d)

The sound quality of a video

35.

If a bug prevents a code from running, what should you do?

a)

Write new code immediately

b)

Find and fix the bug (debugging)

c)

Restart the program repeatedly

d)

Ignore the bug and run the code

36.

What's the benefit of using a decision box in a flowchart?

a)

It shows actions

b)

It allows the user to make choices in the algorithm

c)

It starts the code

d)

It indicates the end of the program

37.

What happens if you skip debugging in a code?

a)

The program will always work perfectly

b)

You may not identify errors

c)

The code will be shorter

d)

The code will work only once

38.

In an algorithm for brushing teeth, which step would be a decision?

a)

Is the toothbrush wet?

b)

Get toothpaste

c)

Start brushing

d)

Spit out water

39.

If a flowchart has no 'End' symbol, what might happen?

a)

The flowchart may be confusing

b)

It will improve code quality

c)

It will make the code faster

d)

The flowchart will look clearer

40.

What symbol in a flowchart shows the 'Start' of a process?

a)

Diamond

b)

Circle

c)

Oval

d)

Parallelogram

41.

In an algorithm to prepare a drink, what would be an input step?

a)

Enter the amount of water

b)

Pour the drink into a glass

c)

Serve the drink

d)

Start drinking

42.

What's the purpose of an 'End' symbol in a flowchart?

a)

It signals the start of the flowchart

b)

It indicates a decision step

c)

It marks the conclusion of the process

d)

It shows where to add comments

43.

In a cooking flowchart, what would a diamond-shaped box be used for?

a)

Measure ingredients

b)

Check if the oven is preheated

c)

Start cooking

d)

Add ingredients to the bowl

44.

For the flowchart of turning on a computer, which step would be the last one?

a)

Press the power button on the CPU

b)

Start using the computer

c)

Check if the monitor is on

d)

Plug in all cables

45.

When planning a code, why is a flowchart used first?

a)

To avoid making mistakes while coding

b)

To make the code more colorful

c)

To add complex designs

d)

To prevent others from understanding the code

46.

You are asked to write an algorithm for solving a math problem. Which is the correct sequence to solve 5 + 3?

a)

Step 1: Enter 5, Step 2: Press +, Step 3: Enter 3, Step 4: Press =

b)

Step 1: Enter 3, Step 2: Press -, Step 3: Enter 5, Step 4: Press =

c)

Step 1: Enter 5, Step 2: Enter 3, Step 3: Press *

d)

Step 1: Enter 3, Step 2: Press =, Step 3: Enter 5

47.

What is the purpose of this flowchart?

a)

To compare age

b)

To check if someone is a teenager

c)

To check if age is above or equal to 18

d)

To find out the maximum age

48.

If the input age is 20, what will the flowchart display?

a)

"Underage"

b)

"Adult"

c)

"Senior"

d)

"Child"

49.

What will the flowchart display if the input age is 16?

a)

"Adult"

b)

"Not an adult"

c)

"Senior citizen"

d)

"Teenager"

50.

What is the purpose of this flowchart?

a)

To check if a number is even or odd

b)

To compare a number with 20

c)

To add two numbers

d)

To multiply a number by 5

51.

If the input value is 25, what will the flowchart display?

a)

"Not greater than 20"

b)

"The number is 20"

c)

"Greater than 20"

d)

"No result"

52.

What will the flowchart display if the input value is 15?

a)

"Greater than 20"

b)

"Not greater than 20"

c)

"The number is 20"

d)

"The number is negative"

53.

What is the purpose of this flowchart?

a)

To determine if a student passes based on score

b)

To add two numbers

c)

To find out the number of students

d)

To multiply two numbers

54.

If the input score is 75, what will the flowchart display?

a)

"Fail"

b)

"Pass"

c)

"Try again"

d)

"Not a score"

55.

What will the flowchart display if the input score is 40?

a)

"Pass"

b)

"Needs improvement"

c)

"Fail"

d)

"Try Again"

56.

If you wanted to create a flowchart to make a peanut butter sandwich, which of these would be the first step?

a)

Apply peanut butter to bread

b)

Place the sandwich on a plate

c)

Get bread and peanut butter

d)

Start eating

57.

In a flowchart, what would be the next step after “Enter password” if you are creating a login process?

a)

End

b)

Show main page

c)

Display error message

d)

Check if the password is correct

58.

In Scratch, why would you use the “debug” option?

a)

To delete a project

b)

To make the code run slower

c)

To add new symbols

d)

To fix errors in the code

59.

Why might an algorithm need to be rewritten?

a)

To correct mistakes or improve logic

b)

To add random steps

c)

To make it longer

d)

To match another code

60.

In a flowchart for cooking pasta, what shape would you use to show boiling water?

a)

Parallelogram

b)

Rectangle

c)

Oval

d)

Diamond