Font size
WorksheetsLogical Thinking: JavaScript Wizard
Total questions: 45
Worksheet time: 30mins
Aiko and DJ are setting up a new computer in their classroom. They are discussing the parts they can physically touch, like the monitor, mouse, and keyboard. What are these physical components of the computer system called?
Hardware
Software
Input Device
Output Device
Alaric, Alexis, and Devin are working together on a group project. To demonstrate "technology literacy," what must they be able to do?
Understand text lingo
Effectively communicate information through a variety of apps and technology sources
Effectively use technology to evaluate sources
All of the above
Ben and Alexis are working on a coding project. They notice that something in their program is causing it to not run as expected. What is this issue called?
Error report
Bug
Mistake
Algorithm
Bill is teaching Julian how computers work. He explains that an instruction for the computer, and many of these put together make up algorithms and computer programs. What is this instruction called?
Code
Plan
Program
Command
Ben and Alejandro are working on a computer program for their class project. They notice that the program isn't working as expected, so they carefully look for and fix the errors in their code. What is this process called?
Tech support
Decompose
Debugging
Fixing
DJ and Aiko are learning to program Karel. Which of these is a valid Karel command?
move;
move;
MOVE
move();
move()
Peter and Javier are programming a robot to play a game. What command should they use to make the robot place a ball down in a spot?
placeBall();
Putball();
putball():
putBall();
In a city grid where Ramere and Alaric are helping Karel navigate, what does a 'street' represent in Karel's world?
A row.
A column.
A single point.
Karel's position.
In a city grid, Matthew and Aiko are learning about directions. If Matthew tells Aiko to walk along an avenue, what is he asking her to walk along?
A row.
Karel's position.
A column.
A single point.
Peter and Devin are curious about what a computer programmer does. What is the main job of a computer programmer?
Put together the computer and plug it in.
Write computer code that tells a computer what to do.
Play computer games.
If Alexis is facing north and wants to turn right, how many times should Alexis turn left?
1
2
3
4
DJ and Sawyer are learning how to program Karel. What can they use to teach Karel to turn right?
Functions
Variables
Dog treats
Karel can already turn right
Alaric and Oneil are working on a project where they need to water the plants in their school garden every day. In coding terms, what is the action of doing something over and over again, like watering the plants daily?
Repeating
Repetition
Loop
Do-over
During a school science fair, Howayek set up a project where pressing a button would turn on a light. What is the action of pressing the button called?
program
event
binary
digit
Ben and Ramere are trying to bake a cake. They follow a list of steps to finish the task. What is this set of instructions called, which can be performed with or without a computer?
Algorithm
Plan
Binary
Logorithm
Ben and Alexis are working together on a programming project. How many times should the start function be defined in their program?
0
1
2
However many you like
Oneil is helping Ben understand a program by adding explanations in the code. What is a code comment?
A way to teach Karel a new word
A way to give notes to the reader to explain what your code is doing
A message to your teacher in code
A place to write whatever you want in your code
Oneil and Matthew are programming a robot to help them in the garden. Which of the following commands is incorrect?
putBall();
Takeball();
move();
turnLeft();
While working on a group coding project, Matthew tells Ben that every command must end with {}. Is this statement true?
True
False
Oneil and DJ are working on a computer project. Running the code is...
when a computer completes a command
Using the instructions the programmer has put in
Both of the above
Matthew and Alexis are discussing what they can create using programming. What can they make?
Games
Websites
Apps
All of these
Ramere and Ben are learning to program Karel the Robot in their computer class. What are the commands that Karel can do?
Move();
Turnleft();
Putball();
Takeball();
turnLeft
move
putBall
takeBall
takeBall();
putBall();
turnLeft();
move();
Move;
Turnleft;
Putball;
Takeball;
Ben is helping Karel move and place balls in the grid. Which code will help Ben put Karel in the position shown in the second world? (Click on the image to enlarge it)
putBall(); putBall(); move(); move();
move(); putBall(); move(); putBall();
putBall(); move(); putBall(); move();
move(); putBall(); putBall(); move();
Javier wrote the following function to help a robot move forward four steps. Is this function written correctly? (Click on the image to enlarge it)
True
False
DJ, Alaric, and Daniel are working together on a school project where they need to write a computer program. Why would they use functions in their program?
Break down their program into smaller parts
Avoid repeating code
Make their program more readable
All of the above
Oneil is programming a robot to move in a square. The code in the picture shows the instructions Oneil wrote. (Click on the image to enlarge it)
True
False
Derek is programming a robot to help him in a game. He wrote the following instructions for the robot (Click on the image to enlarge it):
Which line(s) contains the bug?
1 and 3
3 only
5 only
3 and 5
Matthew and Alejandro are programming a robot to pick up and place balls in a maze. They want to simplify their code by using a turnRight function. What lines would Matthew and Alejandro replace with the turnRight function?
Lines 4 & 5
Lines 7 - 9
Lines 8 - 10
Lines 4 & 5 and lines 8 - 10
Ramere is programming a robot to complete a task. Here are the instructions he wrote:
- move();
- turnLeft();
- putBall();
- move();
- putball;
Which line contains the bug?
1 and 5
2 only
3 only
5 only
Bill is helping Karel the dog move around the grid. Which code below will put Karel in the position shown in the picture?
move(); Move(); turnLeft(); move();
move; move(); turnLeft; move();
move(); move(); TurnLeft(); Move();
move(); move(); turnLeft(); move();
Ramere and Oneil want to write a function to help them make pancakes by putting 3 balls. What is the right way to write the function:
makePancakes (Clue: this pancake will be made by putting 3 balls)
function makePancakes(){
putBall();
putBall();
putBall();
}
function makePancakes()
putBall();
putBall();
putBall();
function makePancakes: {
putBall();
putBall();
putBall();
}
function makePancakes(){
putBall();
}
Matching - Connect the Command to its Action
move();
Karel takes one step forward in the dire
turnLeft();
Karel turns 90 degrees to the left.
debug(); (assume the function is defined)
find an error and apply the fix.
turnRight();
Karel turns 90 degrees to the right. (As
comment();
describe what a code/command does
Match the Concept to its Description
The horizontal rows in Karel's grid are called
Streets
The vertical columns in Karel's grid are called
Avenues
The intersection of a street and an avenue is called a
Corner
Karel can be positioned on and move between these.
Corners
This object blocks Karel's path. Karel cannot move through it.
Wall
When Sawyer and Aiko are following a recipe, each (a) in the recipe is completed in a (b) order.
sequence
specific
random
selection
While Loop
A loop that continues to repeat while a condition is true
Define
Figure out the details of the problems that you are trying to solve
Behavior
An action that a sprite performs continuously until it's told to stop
Algorithm
A list of steps to finish a task
Alaric and Ramere are discussing what gives instructions to a computer. What are these programs called?
keyboard
mother board
hardware
software
Daniel writes a set of commands into a program. What does he do to tell the computer to start executing these commands?
event
run program
function
abstraction
5. Peter is playing a game where he moves around a grid. What is the name of the grid that Peter lives in?
Define A Function
Fencepost Problem
World
Karel
Howayek and Ramere are working together on a coding project. They wrote the following code to help a robot make pancakes:

This is an example of...
calling a function
defining a function
writing a for loop
writing a comment
Julian and Alexis are working together to create instructions for a robot to follow. What is the correct definition of the word program in this context?
a set of code that runs one after the other in a machine
an algorithm that has been coded to run in a machine
a set of numbers and words that are interpreted by a machine
a computer language that is understood by the machine
Aiko and Daniel are working together on a coding project. They notice that their program is not working as expected, so they start looking for and fixing problems in their code. What is this process called?
Fixing
Correcting
Debugging
Deissuing
Alexis is writing a program and wants to use a function she created. The definition of the function must occur before Alexis calls it in her code.
true
false
Read the diagram for the conditional statement about Aiko's evening routine. According to the diagram, if it is not 10:00 p.m. (a) . If it is 10:00 p.m., (b) .
work on homework
go to sleep
Alexis is programming a robot to help in a classroom activity. What does this code do?
Moves forward 1 time
Moves forward forever
Moves forward 5 times
Moves left
