wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Final Question Bank 24-25

Total questions: 81

Worksheet time: 48mins

Name
Class
Date
1.

What are categories of data that tell the computer how to interpret the values? Examples include integer, float, string, and boolean.

a)

Data types

b)

Algorithms

c)

Functions

d)

Operators

2.

Which data type uses "quotes"?

a)

String

b)

Integer

c)

Boolean

d)

Array

3.

Noah and Benjamin are building a calculator app. They need to store numbers like 3.14 and 2.718. Which data type should they use to represent these decimal numbers?

a)

Float

b)

Integer

c)

Boolean

d)

Character

4.

Liam and Mia are coding together. Liam uses a float to store a number, but Mia wants even more precision! Which data type should Mia use that is similar to float?

a)

Double

b)

Integer

c)

Char

d)

Boolean

5.

Which data type is used to store numbers without decimal points?

a)

Integer

b)

String

c)

Float

d)

Boolean

6.

Which data type is typically used to determine the continuation of a while loop?

a)

Boolean

b)

Character

c)

Double

d)

Array

7.

What is an instance of a class that contains properties and methods?

a)

Object

b)

Function

c)

Variable

d)

Array

8.

Emma and Daniel are learning about classes in programming. Which of the following is the correct way for them to create (instantiate) a new object from a class?

a)

Object.property

b)

function = variable + constant

c)

object = Class()

d)

object.method()

9.

What is a blueprint for creating objects, defining their properties and methods?

a)

Class

b)

Object

c)

Function

d)

Variable

10.

Fill in the blank: The process of creating an object from a class is called ________.

a)

Instantiation

b)

Compilation

c)

Abstraction

d)

Inheritance

11.

Fill in the blank: A variable that belongs to an object or class is called a ________.

a)

Property

b)

Method

c)

Function

d)

Constant

12.

Fill in the blank: A function that belongs to an object or class is called a ________.

a)

Method

b)

Variable

c)

Constant

d)

Operator

13.

Nora, Sophia, and Scarlett are organizing their school project data. Which word best describes a type of data that has its own name, just like how each of them has a unique name?

a)

Value

b)

Argument

c)

Variable

d)

Parameter

14.

This is data that does not change in the program.

a)

Value

b)

Argument

c)

Variable

d)

Parameter

15.

Fill in the blank: A named storage location in memory that holds a value is called a ________.

a)

Variable

b)

Function

c)

Constant

d)

Operator

16.

Fill in the blank: A value passed to a function when it is called is called an ________.

a)

Argument

b)

Variable

c)

Operator

d)

Statement

17.

Fill in the blank: The '_____' symbol is used to assign a value to a variable.

a)

=

b)

==

c)

:=

d)

<-

18.

Fill in the blank: __________ is the concept of hiding complex implementation details and showing only the necessary features.

a)

Abstraction

b)

Polymorphism

c)

Encapsulation

d)

Inheritance

19.

Abigail and Maya are having a coding challenge! They both enter the numbers 15 and 30 into a program. Can you guess what datatype the answer will be when the program adds their numbers together?

a)

Integer

b)

String

c)

Boolean

d)

Float

20.
Data type that can only be true or false
a)
int
b)
string
c)
bool
d)
float
21.

Imagine Aria has created a game character that can jump, run, and dance. In programming, what do we call these actions that an object like Aria's character can perform?

a)

Property

b)

Method

c)

Class

d)

Parameter

22.
How many objects can be made from a class? 
a)
None, you make classes from objects
b)
one
c)
As many as you want
d)
All of the above
23.

_____ represents an entity in the real world with its identity and behaviour.

a)

A method

b)

An object

c)

A class

d)

An operator

24.

What is a class in object-oriented programming?

a)

A class is a template with data and methods

b)

A class is a package

c)

A class is the declared object in memory

d)

A class is a reference object in memory

25.

Elijah, Avery, and Maya are having a debate in class about object-oriented programming. Which of the following statements are they most likely to get wrong?

a)

Class is an object factory

b)

Class is an instance of an object.

c)

Class is a user defined type.

26.

Mason, Samuel, and Luna are working on a group project to create a software application. They notice a part of their program is not functioning as expected. What is this called in programming terms?

a)

Correction

b)

Concern

c)

Bug

d)

Issue

27.

The collected information about an individual across multiple websites on the Internet:

a)

Text

b)

Privacy

c)

Digital footprint

d)

HTML tag

28.

During a group study session, Luna found a statement in a book that perfectly supports her argument in a debate. She wants to use this statement in her argument. What should Luna do to acknowledge the source of the statement, especially in a scholarly work?

a)

Claim it as intellectual property

b)

Provide a citation

c)

Describe it under creative commons

d)

Consider it a research paper

29.

Avery, Evelyn, and Emma are in a band together. They have just finished recording their first album and want to ensure that no one else can legally print, publish, perform, film, or record their music without their permission. What is this exclusive legal right called?

a)

Intellectual Property

b)

Creative Commons

c)

Copyright

d)

Law

30.

Match the following descriptions with their corresponding terms.

a)

A variable passed to a function to customize it for a specific need

1.

Parameter

b)

A named value used in a program

2.

Variable

c)

An early or preliminary model of a product that allows you to test assumptions before developing the final version.

3.

Prototype

d)

A data structure in JavaScript used to represent a list.

4.

Array

31.

In which section of the canvas will the box from line 1, appear? (a)  

Choose from the below words
Top left corner

Top right corner

Bottom left corner

Bottom right corner

32.

In which corner will the box be located on the coordinate level in the second line? (a)  

Choose from the below words

Top left corner

Top right corner

Bottom left corner

Bottom right corner

33.

The code has to appear in a certain order for the blue and green box to appear layered.  The ​    (a)   code must appear first and (b)   code will appear 2nd.

Choose from the below words
Green
Blue
34.

Reorder the following sets of code so the yellow ellipse is behind the green ellipse. Hint: x, y, w, h will help with placing the ellipses.

a)

b)

c)

d)

1)
2)
3)
4)
35.

You have been asked to make the background of this code block blue. The background code will appear on line (a)   .

Choose from the below words

2

3

4

5

1
36.

There are 3 conditions for creating a variable name. Choose all the correct answers.

a)

Labels cannot contain spaces.

b)

Labels cannot contain symbols.

c)

Labels cannot start with a number.

d)

Uppercase letters and spelling must match.

37.

Zoe and Sophia are trying to run this code to draw a big crimson circle, but something's not working! Can you help them figure out why their code won't run?

a)

A number must be in the variable

b)

There should be no spaces in the variable name

c)

There are no capital letters in the variables

38.

What is the reason for including comments in the program?

a)

Comments inform the computer what the code is doing.

b)

Comments inform the programmer what the code is doing and why.

c)

Comments will tell the program how to fix errors.

d)

Comments will help find errors in the program.

39.

What is the value of x in the following code?

rect(250, 200, 75, 225);

a)

250

b)

200

c)

75

d)

225

40.

Place the labels on the image where they belong.

41.

The X and Y part of these blocks help us.....

a)

Place any shape or symbol in a specific area on the screen.

b)

Change the size of the shape or symbol

c)

Move shapes

d)

Create a new chart

42.

Which of the following is a correct example of a counter pattern?

a)

sprite.scale = 10

b)

sprite.x = sprite.x + 10

c)

sprite.rotation = .5

43.

What will the console log say when this program is run? 

a)

"Start my program!"

"Clicked the button!"

"End my program!"

b)

"Start my program!"

"End my program!"

"Clicked the button!"

c)

"Clicked the button!"

"Start my program!"

"End my program!"

d)

"Clicked the button!"

"End my program!"

"Start my program!"

44.

Match the following components with their descriptions:

a)

Algorithm

1.

A step-by-step procedure for solving a problem

b)

Output

2.

Information produced by a computer

c)

Input

3.

A device or component that allows information to be given to a computer

d)

Storage

4.

Where data is saved and retrieved

45.

Which of the following best describes how computing devices represent information?

a)

The computer represents data as a byte that is either 0 or 1

b)

The computer represents data as a byte that contains 0 or 1

c)

The computer represents data as a bit that is either 0 or 1

d)

The computer represents data as a bit that contains 8 bytes

46.

Anika and Samuel are playing a game where they have to crack secret codes! If the secret code is the binary number 1001, what is its decimal equivalent?

a)

1,001

b)

17

c)

8

d)

9

47.

Which of the following options is most likely to be an unethical use of computer resources?

a)

Buy an application and download it to your smartphone.

b)

Download a program online to your computer.

c)

Buy a single-user copy of a photo editing program and share your login with another person.

d)

Buy a stored image and place it in a newsletter distributed to a large group of people.

48.

Given the color hex code #A30FB9, which of the following is true?

a)

The red portion of the color is A3

b)

The blue portion of the color is 0F

c)

The green portion of the color is B9

d)

We cannot determine what level each color is at from this information.

49.

Match the following actions with their corresponding computer memory functions.

a)

input

1.

Receive data from a keyboard

b)

output

2.

Display data on a monitor

c)

store

3.

Save data for future use

d)

process

4.

Execute instructions

50.

Reorder the following blocks of code to create the image

a)

fill("purple");

b)

rect(150, 200);

rect(200, 150);

rect(100, 150);

rect(150, 100);

c)

fill("orange");

d)

ellipse(150,150);

ellipse(200,150);

ellipse(150,200);

ellipse(200,200);

e)

fill("purple");

rect(150, 150);

1)
2)
3)
4)
5)
51.
An error in a program that prevents the program from running as expected. 
a)
Coding
b)
Algorithm
c)
Bug
d)
Event
52.

draw a flower

53.

Identify an output device used in BirdBrain.

a)

Temperature sensor

b)

Distance sensor

c)

LED

d)

Microphone

54.

What programming concept is used to repeat a set of instructions in BirdBrain?

a)

Variable

b)

Loop

c)

Function

d)

Condition

55.

Grace and Rohan are exploring BirdBrain robots in their classroom. What important job does a sensor have in their project?

a)

To provide visual output

b)

To detect changes in the environment

c)

To store data

d)

To control other devices

56.

Which software interface is commonly used with BirdBrain hardware?

a)

Microsoft Makecode

b)

Scratch Blocks

c)

Code.org

d)

Google Chrome

57.

Describe the process of connecting a BirdBrain hardware component to the software interface.

a)

Plug the component into a power source

b)

Use a USB cable to connect the hardware to the computer and open the software interface

c)

Install drivers for the hardware

d)

Connect the hardware to the internet

58.

Explain how a loop can be used to control an LED in BirdBrain.

a)

A loop can be used to turn the LED on and off repeatedly at set intervals

b)

A loop can be used to change the color of the LED

c)

A loop can be used to store the LED's state

d)

A loop can be used to connect the LED to the internet

59.

How can you use conditional statements in BirdBrain programming to enhance a project?

a)

By creating conditions that trigger specific actions based on sensor inputs

b)

By storing data for a project

c)

By connecting hardware components

d)

By providing power to the components

60.

Which of the following best describes the data flow in a BirdBrain project involving a temperature sensor and an LED?

a)

The temperature sensor collects data, which is processed by the software interface, and the LED changes color based on the temperature

b)

The LED collects data, which is processed by the software interface, and the temperature sensor changes its reading based on the LED color

c)

The temperature sensor stores data, and the LED emits light based on a timer

d)

The LED collects data, and the temperature sensor emits sound based on the data

61.

What does LED stand for?

a)

Light Emitting Diode

b)

Lego Education Department

c)

Little Electronic Device

d)

Lead Erasing Director

62.

Priya and Charlotte are working on a project using the Circuit Playground. They are trying to identify the OUTPUT components. Can you help them identify which of the following are OUTPUTs from the Circuit Playground?

a)

Buzzer

b)

Button

c)

Light Sensor

d)

LED

e)

Toggle Switch

63.

Which of the following code is used to get information about an element on the screen?

a)

getData

b)

setData

c)

getProperty

d)

setProperty

64.

Aria is working on a web development project. She wants to modify the color of a button on her webpage. Which of the following code should she use to change information about an element on the screen?

a)

setProperty

b)

setData

c)

getProperty

d)

getData

65.

During a science project, Samuel and Ava are using a Circuit Playground. Where does an onBoardEvent take place in their project?

a)

on the screen they are using

b)

on their Circuit Playground

c)

at the start of their code

d)

at the end of their code

66.

When does the "shake" parameter cause an onBoardEvent to run?

a)

constantly (every 100 ms)

b)

once

c)

when data changes

d)

when the Circuit Playground is shaken

67.

Abigail, Ava, and Michael are working on a project. They wrote a piece of code. What does their code do?

a)

Updates their project screen every few milliseconds with bright red.

b)

Turns their project screen a shade of red whenever the sound level in their room changes.

c)

Updates their project screen every few milliseconds with a shade of red.

d)

Turns their project screen bright red whenever the sound level in their room changes.

68.

During a computer class, Lily and Henry were playing a game. Where should Abigail click to make the happy face appear on their screen?

a)

The left button on the mouse

b)

The right button on the mouse

c)

A happy face button on the game screen

d)

Change the toggle switch to open on the game screen

69.

Fill in the blank: ______ is a part of a program that does not work correctly.

a)

Bug

b)

Loop

c)

Variable

d)

Function

70.

Fill in the blank: ______ is an algorithm that has been coded into something that can be run by a machine.

a)

Program

b)

Compiler

c)

Database

d)

Protocol

71.

Which of the following is used to pass specific data into a block to alter how it works?

a)

Parameter

b)

Variable

c)

Loop

d)

Condition

72.

What do we call a named storage location in a program that can hold different values?

a)

Variable

b)

Function

c)

Loop

d)

Constant

73.

Fill in the blank: ______ is a character on the screen with properties that describe its location, movement, and look.

a)

Sprite

b)

Pixel

c)

Backdrop

d)

Stage

74.

Fill in the blank: ______ is a label for a characteristic of a sprite, such as its location and appearance.

a)

Property

b)

Event

c)

Script

d)

Costume

75.

Fill in the blank: ______ is, in programming, an expression that evaluates to True or False.

a)

Boolean Expression

b)

String Literal

c)

Arithmetic Operator

d)

Loop Statement

76.

Which of the following is used by a program to decide whether to execute a certain block of code?

a)

Condition

b)

Loop

c)

Variable

d)

Function

77.

Scarlett is programming a smart home system. She wants the lights to turn on only if it gets dark outside. Fill in the blank: ______ are statements that only run when certain conditions are true.

a)

Conditionals

b)

Classes

c)

Variables

d)

Functions

78.

Which term describes the process of reducing complexity by focusing on the main idea and ignoring specific details?

a)

Abstraction

b)

Iteration

c)

Compilation

d)

Recursion

79.

Sophia is learning to bake a cake. She tries different recipes, adjusts the ingredients, and repeats the process until she gets it right. Baking, like programming, is an ______ process, that is repetitive like trial and error.

a)

Abstraction

b)

Iteration

c)

Compilation

d)

Recursion

80.

Which of the following is used to group a set of instructions under a single name?

a)

Function

b)

Variable

c)

Loop

d)

Constant

81.

What do you call it when you look for ERRORS inyour code?

a)
Error checking
b)
Debugging
c)
Syntax finder
d)
Error finder