wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Basic Programming Concepts Quiz #2

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

Nora wants to bake a cake. What is an algorithm?

a)

A mistake in a program

b)

A step-by-step set of instructions to solve a problem

c)

A type of data used for text

d)

A group of reusable code

2.

What does the term "code" refer to in programming?

a)

A container used to store data

b)

The language or instructions written by programmers

c)

A mistake in a program

d)

A type of data used for text

3.

William is learning to code and he creates something that can perform a specific task on his computer. What has William created?

a)

A collection of code that performs a specific task

b)

A mistake in a program

c)

A type of data used for text

d)

A group of reusable code

4.

Kai was working on a school project and noticed that his program wasn't running as expected. What is this issue commonly referred to in programming?

a)

A step-by-step set of instructions

b)

A mistake or error in a program

c)

A type of data used for text

d)

A group of reusable code

5.

Evelyn is working on a school project and encounters an error in her code. What is she doing when she tries to find and fix this error?

a)

The process of finding and fixing bugs in your code

b)

A step-by-step set of instructions

c)

A type of data used for text

d)

A group of reusable code

6.

Avery is organizing her desk and needs a way to keep track of her pens, pencils, and erasers. What is a variable in programming?

a)

A container used to store data

b)

A mistake in a program

c)

A type of data used for text

d)

A group of reusable code

7.

What is a loop in coding?

a)

A mistake in a program

b)

A coding structure that repeats a set of instructions

c)

A type of data used for text

d)

A group of reusable code

8.

Benjamin is learning to code and wants to understand what syntax refers to in coding. What does syntax refer to?

a)

The set of rules that define the structure of a coding language

b)

A mistake in a program

c)

A type of data used for text

d)

A group of reusable code

9.

Charlotte is using her computer to write a report. After she finishes, she prints the document. What is the output in this scenario?

a)

Information the computer gives back

b)

A mistake in a program

c)

A type of data used for text

d)

A group of reusable code

10.

What is a Boolean data type?

a)

A data type with only two values: true or false

b)

A mistake in a program

c)

A type of data used for text

d)

A group of reusable code

11.

Grace is organizing a charity event and needs to send out invitations to 100 guests. What is the purpose of using a loop (for/while) in her coding task?

a)

To repeat actions multiple times

b)

A mistake in a program

c)

A type of data used for text

d)

A group of reusable code

12.

Anika is learning programming and she wants to store her favorite quote in a variable. What type of data should she use?

a)

A type of data used for text

b)

A mistake in a program

c)

A group of reusable code

d)

A container used to store data

13.

Sophia has a collection of marbles. She counts them and finds that she has a certain number of whole marbles. What type of number does this represent?

a)

A number with a fraction

b)

A whole number

c)

A decimal number

d)

A negative number

14.

Rohan is learning programming and he wants to use a tool that helps him write and test his code efficiently. What does IDE stand for in programming?

a)

Integrated Data Environment

b)

Integrated Development Environment

c)

Internal Development Engine

d)

Interactive Data Editor

15.

Avery is learning to code and wants to automate a task that requires repeating the same set of instructions multiple times. What coding construct should Avery use?

a)

To store data

b)

To repeat instructions

c)

To create graphics

d)

To send messages

16.

What does an event block do in coding?

a)

Starts a script when something happens

b)

Stops a program

c)

Deletes data

d)

Creates a new file

17.

David is working on a school play and needs to set up the stage. What is a backdrop in this context?

a)

A type of coding error

b)

The background setting of a scene

c)

A programming language

d)

A data storage method

18.

What is broadcasting in coding?

a)

Sending a message to start other scripts

b)

Storing data

c)

Creating graphics

d)

Debugging a program

19.

What is data in the context of computing?

a)

A type of software

b)

Information that a computer uses or stores

c)

A programming language

d)

A computer virus

20.

What is the use of loops to avoid writing the same code over and over called?

a)

Sequence

b)

Modularity

c)

Repetition

d)

Collaboration

21.

Which concept involves making programs respond to user actions like clicking or typing?

a)

Events & Interactivity

b)

Design Before Coding

c)

Testing

d)

Abstraction

22.

What is organizing code into sections for better readability and reuse called?

a)

Persistence

b)

Modularity

c)

Sequence

d)

Repetition

23.

Jackson has just finished writing a computer program for his school project. What is the process he should follow to ensure that his program works as expected?

a)

Persistence

b)

Abstraction

c)

Testing

d)

Repetition

24.

Oliver is at a costume party and wants to dress up as a superhero who can shoot webs. Which superhero should he choose?

a)

Batman

b)

Iron Man

c)

Spider-Man

d)

Hulk

25.

David is watering his garden and wonders which part of the plant carries water from the roots to the leaves?

a)

Flower

b)

Stem

c)

Leaf

d)

Seed

26.

What part of the plant is responsible for supporting the leaves and flowers?

a)

Root

b)

Stem

c)

Leaf

d)

Petal

27.

Anika and Noah were discussing whether bananas grow on trees. Do bananas grow on trees?

a)

True

b)

False

28.

Ethan is conducting a science experiment to find out at what temperature water boils. What temperature should he expect to observe?

a)

90°C

b)

100°C

c)

110°C

d)

120°C

29.

Abigail and Ethan are looking at the night sky. Abigail asks, "Is the sun a star?"

a)

True

b)

False

30.

During a thunderstorm, Hannah and Daniel are observing the sky. They notice a flash of lightning and then hear the thunder a few seconds later. Does sound travel faster than light?

a)

True

b)

False