Font size
WorksheetsFinal Question Bank 24-25
Total questions: 81
Worksheet time: 48mins
What are categories of data that tell the computer how to interpret the values? Examples include integer, float, string, and boolean.
Data types
Algorithms
Functions
Operators
Which data type uses "quotes"?
String
Integer
Boolean
Array
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?
Float
Integer
Boolean
Character
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?
Double
Integer
Char
Boolean
Which data type is used to store numbers without decimal points?
Integer
String
Float
Boolean
Which data type is typically used to determine the continuation of a while loop?
Boolean
Character
Double
Array
What is an instance of a class that contains properties and methods?
Object
Function
Variable
Array
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?
Object.property
function = variable + constant
object = Class()
object.method()
What is a blueprint for creating objects, defining their properties and methods?
Class
Object
Function
Variable
Fill in the blank: The process of creating an object from a class is called ________.
Instantiation
Compilation
Abstraction
Inheritance
Fill in the blank: A variable that belongs to an object or class is called a ________.
Property
Method
Function
Constant
Fill in the blank: A function that belongs to an object or class is called a ________.
Method
Variable
Constant
Operator
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?
Value
Argument
Variable
Parameter
This is data that does not change in the program.
Value
Argument
Variable
Parameter
Fill in the blank: A named storage location in memory that holds a value is called a ________.
Variable
Function
Constant
Operator
Fill in the blank: A value passed to a function when it is called is called an ________.
Argument
Variable
Operator
Statement
Fill in the blank: The '_____' symbol is used to assign a value to a variable.
=
==
:=
<-
Fill in the blank: __________ is the concept of hiding complex implementation details and showing only the necessary features.
Abstraction
Polymorphism
Encapsulation
Inheritance
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?
Integer
String
Boolean
Float
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?
Property
Method
Class
Parameter
_____ represents an entity in the real world with its identity and behaviour.
A method
An object
A class
An operator
What is a class in object-oriented programming?
A class is a template with data and methods
A class is a package
A class is the declared object in memory
A class is a reference object in memory
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?
Class is an object factory
Class is an instance of an object.
Class is a user defined type.
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?
Correction
Concern
Bug
Issue
The collected information about an individual across multiple websites on the Internet:
Text
Privacy
Digital footprint
HTML tag
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?
Claim it as intellectual property
Provide a citation
Describe it under creative commons
Consider it a research paper
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?
Intellectual Property
Creative Commons
Copyright
Law
Match the following descriptions with their corresponding terms.
A variable passed to a function to customize it for a specific need
Parameter
A named value used in a program
Variable
An early or preliminary model of a product that allows you to test assumptions before developing the final version.
Prototype
A data structure in JavaScript used to represent a list.
Array
In which section of the canvas will the box from line 1, appear? (a)
Top right corner
Bottom left corner
Bottom right corner
In which corner will the box be located on the coordinate level in the second line? (a)
Top left corner
Top right corner
Bottom left corner
Bottom right corner
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.
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.
You have been asked to make the background of this code block blue. The background code will appear on line (a) .
2
3
4
5
There are 3 conditions for creating a variable name. Choose all the correct answers.
Labels cannot contain spaces.
Labels cannot contain symbols.
Labels cannot start with a number.
Uppercase letters and spelling must match.
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 number must be in the variable
There should be no spaces in the variable name
There are no capital letters in the variables
What is the reason for including comments in the program?
Comments inform the computer what the code is doing.
Comments inform the programmer what the code is doing and why.
Comments will tell the program how to fix errors.
Comments will help find errors in the program.
What is the value of x in the following code?
rect(250, 200, 75, 225);
250
200
75
225
Place the labels on the image where they belong.
Boolean Expression
Counter Pattern
Function Call
Program Output
Variable
Parameter
Value
Conditional Statement
The X and Y part of these blocks help us.....
Place any shape or symbol in a specific area on the screen.
Change the size of the shape or symbol
Move shapes
Create a new chart
Which of the following is a correct example of a counter pattern?
sprite.scale = 10
sprite.x = sprite.x + 10
sprite.rotation = .5
What will the console log say when this program is run?
"Start my program!"
"Clicked the button!"
"End my program!"
"Start my program!"
"End my program!"
"Clicked the button!"
"Clicked the button!"
"Start my program!"
"End my program!"
"Clicked the button!"
"End my program!"
"Start my program!"
Match the following components with their descriptions:
Algorithm
A step-by-step procedure for solving a problem
Output
Information produced by a computer
Input
A device or component that allows information to be given to a computer
Storage
Where data is saved and retrieved
Which of the following best describes how computing devices represent information?
The computer represents data as a byte that is either 0 or 1
The computer represents data as a byte that contains 0 or 1
The computer represents data as a bit that is either 0 or 1
The computer represents data as a bit that contains 8 bytes
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?
1,001
17
8
9
Which of the following options is most likely to be an unethical use of computer resources?
Buy an application and download it to your smartphone.
Download a program online to your computer.
Buy a single-user copy of a photo editing program and share your login with another person.
Buy a stored image and place it in a newsletter distributed to a large group of people.
Given the color hex code #A30FB9, which of the following is true?
The red portion of the color is A3
The blue portion of the color is 0F
The green portion of the color is B9
We cannot determine what level each color is at from this information.
Match the following actions with their corresponding computer memory functions.
input
Receive data from a keyboard
output
Display data on a monitor
store
Save data for future use
process
Execute instructions
Reorder the following blocks of code to create the image
fill("purple");
rect(150, 200);
rect(200, 150);
rect(100, 150);
rect(150, 100);
fill("orange");
ellipse(150,150);
ellipse(200,150);
ellipse(150,200);
ellipse(200,200);
fill("purple");
rect(150, 150);
draw a flower
Identify an output device used in BirdBrain.
Temperature sensor
Distance sensor
LED
Microphone
What programming concept is used to repeat a set of instructions in BirdBrain?
Variable
Loop
Function
Condition
Grace and Rohan are exploring BirdBrain robots in their classroom. What important job does a sensor have in their project?
To provide visual output
To detect changes in the environment
To store data
To control other devices
Which software interface is commonly used with BirdBrain hardware?
Microsoft Makecode
Scratch Blocks
Code.org
Google Chrome
Describe the process of connecting a BirdBrain hardware component to the software interface.
Plug the component into a power source
Use a USB cable to connect the hardware to the computer and open the software interface
Install drivers for the hardware
Connect the hardware to the internet
Explain how a loop can be used to control an LED in BirdBrain.
A loop can be used to turn the LED on and off repeatedly at set intervals
A loop can be used to change the color of the LED
A loop can be used to store the LED's state
A loop can be used to connect the LED to the internet
How can you use conditional statements in BirdBrain programming to enhance a project?
By creating conditions that trigger specific actions based on sensor inputs
By storing data for a project
By connecting hardware components
By providing power to the components
Which of the following best describes the data flow in a BirdBrain project involving a temperature sensor and an LED?
The temperature sensor collects data, which is processed by the software interface, and the LED changes color based on the temperature
The LED collects data, which is processed by the software interface, and the temperature sensor changes its reading based on the LED color
The temperature sensor stores data, and the LED emits light based on a timer
The LED collects data, and the temperature sensor emits sound based on the data
What does LED stand for?
Light Emitting Diode
Lego Education Department
Little Electronic Device
Lead Erasing Director
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?
Buzzer
Button
Light Sensor
LED
Toggle Switch
Which of the following code is used to get information about an element on the screen?
getData
setData
getProperty
setProperty
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?
setProperty
setData
getProperty
getData
During a science project, Samuel and Ava are using a Circuit Playground. Where does an onBoardEvent take place in their project?
on the screen they are using
on their Circuit Playground
at the start of their code
at the end of their code
When does the "shake" parameter cause an onBoardEvent to run?
constantly (every 100 ms)
once
when data changes
when the Circuit Playground is shaken
Abigail, Ava, and Michael are working on a project. They wrote a piece of code. What does their code do?
Updates their project screen every few milliseconds with bright red.
Turns their project screen a shade of red whenever the sound level in their room changes.
Updates their project screen every few milliseconds with a shade of red.
Turns their project screen bright red whenever the sound level in their room changes.
During a computer class, Lily and Henry were playing a game. Where should Abigail click to make the happy face appear on their screen?
The left button on the mouse
The right button on the mouse
A happy face button on the game screen
Change the toggle switch to open on the game screen
Fill in the blank: ______ is a part of a program that does not work correctly.
Bug
Loop
Variable
Function
Fill in the blank: ______ is an algorithm that has been coded into something that can be run by a machine.
Program
Compiler
Database
Protocol
Which of the following is used to pass specific data into a block to alter how it works?
Parameter
Variable
Loop
Condition
What do we call a named storage location in a program that can hold different values?
Variable
Function
Loop
Constant
Fill in the blank: ______ is a character on the screen with properties that describe its location, movement, and look.
Sprite
Pixel
Backdrop
Stage
Fill in the blank: ______ is a label for a characteristic of a sprite, such as its location and appearance.
Property
Event
Script
Costume
Fill in the blank: ______ is, in programming, an expression that evaluates to True or False.
Boolean Expression
String Literal
Arithmetic Operator
Loop Statement
Which of the following is used by a program to decide whether to execute a certain block of code?
Condition
Loop
Variable
Function
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.
Conditionals
Classes
Variables
Functions
Which term describes the process of reducing complexity by focusing on the main idea and ignoring specific details?
Abstraction
Iteration
Compilation
Recursion
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.
Abstraction
Iteration
Compilation
Recursion
Which of the following is used to group a set of instructions under a single name?
Function
Variable
Loop
Constant
What do you call it when you look for ERRORS inyour code?
