NEW
Font size
WorksheetsProgramming with Sphero (End-of-Year Review)
Total questions: 40
Worksheet time: 3hrs 20mins
When using JavaScript, the ________________ is where you write the code for the Sphero.
Text Canvas
Text Spreadsheet
Text Sphero
Text Page
______________ is the rule set for how programs are constructed.
Syntax
JavaScript
Code
Function
JavaScript is case sensitive and uses __________, such as setSpeed to set the speed.
camelCase
PascalCase
spinal-Case
snake_case
Which one of the following symbols is used for JavaScript comments?
;
^
?
//
Which punctuation ends a statement?
semicolon ;
comma ,
parenthesis ( )
curly brackets { }
What does async function startProgram() mean?
starts a program
ends a program
delays a program
What does exitProgram() mean?
starts a program
ends a program
delays a program
________________ changes the color of the main LED light. Set using RGB (red, green, blue) values on a scale of 0 to 255.
setMainLed ()
setMainLight ()
setColorLed ()
setRGBLed ()
What color would Sphero light up if it had the following statement?
setMainLed ({ r: 0, g: 255, b: 0})
red
green
blue
gray
A ____________ is an action that takes place when certain conditions or requirements are meet. An example is an if/else statement.
conditional
operation
loop
delay
The given program was our 1st challenge with Sphero. The Sphero is suppose to travel straight to a given target and then return to you. However, the Sphero does not return. What is the error?
(Click the image to enlarge the code.)
In line 3, the first number in the roll function needs to change from 0 to 180.
In line 6, the first number in the roll function needs to change from 0 to 180.
In line 3, the second number in the roll function needs to change from 50 to 180.
In line 6, the second number in the roll function needs to change from 50 to 180.
What does LED stand for?
Light-Emitting Diode
Light-Electric Data
Light-Event Diode
Light-Energy Data
The Sphero has an RGB LED. What do the letters, RGB, represent?
Red Green Blue
Rose Gold Blue
Rasberry Green Black
Red Grey Blue
This block controls the motors spin inside the Sphero.
Stabilization Block
Gyroscope Block
Accelerometer Block
Roll Block
This block is a sensor that measures the rate of spin around an axis.
Stabilization Block
Gyroscope Block
Accelerometer Block
Roll Block
The Sphero spins around 3 axes. What is the spin rate around the vertical axis called?
Yaw
Roll
Pitch
XYZ
This is a placeholder that represents a value.
Variable
Constant
Coefficient
Value
This block is used to write math statements that change a number.
Operators
Equations
Variables
Expressions
A statement that repeats until an if/then statement is true.
Loop Until Block
Loop Forever
Loop (#) times
This makes a random number within a range.
Random Within Bounds
Random While Calculating
Random Variable
This block allows you to directly set the value of a variable. Use this block to ensure a variable always starts, repeats, or is modified in a certain way.
Set Block
Variable Block
Constant Block
Operators Block
These are data values that are whole numbers and its opposites.
Integers
Decimals
Float
Variable
This is a data value that represents ALL rational numbers.
Integers
Decimals
Float
Variable
The ______________________ block measures the Sphero's g-force.
accelerometer
orientation
velocity
gyroscope
This block writes a statement that compares 2 values.
Comparator block
Operators block
Inequality block
Set block
Any programming language that lets users create programs by manipulating "blocks" or graphical programming elements, rather than writing code using text. Sometimes called visual coding, drag and drop programming, or graphical programming blocks.
C++ Programming
Java Programming
Block-Based Programming
Low-Level Programming
The area where you drag and drop the coding blocks to create a program to make Sphero carry out specific actions.
Block Code
Text Canvas
Text Code
Block Canvas
___________ is used to set the direction the Sphero will travel; do this before driving the Sphero or starting your program
align
target
point
aim
______________________ helps to orient Sphero; points towards you to make Sphero move away from you.
Red Tail Light
Yellow Tail Light
Green Tail Light
Blue Tail Light
_________ a program means that you identify and remove the errors from the program
Fixing
Debunk
Debug
Ladybug
______________ is an error in a program that prevents the program from running as expected.
bird
bug
bear
bubble
Sensor Data shows _____________________________.
the path Sphero travels on a graph.
the errors in the program.
the Sphero's main LED.
the programming language.
____________ repeats a series of blocks a certain number of times
Loop #
Loop Until
Loop Forever
Loop Repeatedly
Using the roll block given, what does 0° represent?
***click the image to enlarge it***
the distance
the direction
the speed
the time
Using the roll block given, what does 30 represent?
***click the image to enlarge it***
the distance
the direction
the speed
the time
Using the roll block given, what does 1s represent?
***click the image to enlarge it***
the distance
the direction
the speed
the time
If you have the Sphero heading 270° , which direction will the Sphero travel?
forward
right
left
backwards
If you have the Sphero heading 90° , which direction will the Sphero travel?
forward
right
left
backwards
Sets an image or animation on the 8 x 8 LED _______. You can modify the frame speed from 1 - 30, and a transition style to fade, or not fade.
This block is called _______ animation.
Matrix
Multiple
Main
Micro
The language that programmers create and use to tell a computer what to do.
Code
English
Visual Basic
Go
