wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Programming with Sphero (End-of-Year Review)

Total questions: 40

Worksheet time: 3hrs 20mins

Name
Class
Date
1.

When using JavaScript, the ________________ is where you write the code for the Sphero.

a)

Text Canvas

b)

Text Spreadsheet

c)

Text Sphero

d)

Text Page

2.

______________ is the rule set for how programs are constructed.

a)

Syntax

b)

JavaScript

c)

Code

d)

Function

3.

JavaScript is case sensitive and uses __________, such as setSpeed to set the speed.

a)

camelCase

b)

PascalCase

c)

spinal-Case

d)

snake_case

4.

Which one of the following symbols is used for JavaScript comments?

a)

;

b)

^

c)

?

d)

//

5.

Which punctuation ends a statement?

a)

semicolon ;

b)

comma ,

c)

parenthesis ( )

d)

curly brackets { }

6.

What does async function startProgram() mean?

a)

starts a program

b)

ends a program

c)

delays a program

7.

What does exitProgram() mean?

a)

starts a program

b)

ends a program

c)

delays a program

8.

________________ changes the color of the main LED light. Set using RGB (red, green, blue) values on a scale of 0 to 255.

a)

setMainLed ()

b)

setMainLight ()

c)

setColorLed ()

d)

setRGBLed ()

9.

What color would Sphero light up if it had the following statement?

setMainLed ({ r: 0, g: 255, b: 0})

a)

red

b)

green

c)

blue

d)

gray

10.

A ____________ is an action that takes place when certain conditions or requirements are meet. An example is an if/else statement.

a)

conditional

b)

operation

c)

loop

d)

delay

11.

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.)

a)

In line 3, the first number in the roll function needs to change from 0 to 180.

b)

In line 6, the first number in the roll function needs to change from 0 to 180.

c)

In line 3, the second number in the roll function needs to change from 50 to 180.

d)

In line 6, the second number in the roll function needs to change from 50 to 180.

12.

What does LED stand for?

a)

Light-Emitting Diode

b)

Light-Electric Data

c)

Light-Event Diode

d)

Light-Energy Data

13.

The Sphero has an RGB LED. What do the letters, RGB, represent?

a)

Red Green Blue

b)

Rose Gold Blue

c)

Rasberry Green Black

d)

Red Grey Blue

14.

This block controls the motors spin inside the Sphero.

a)

Stabilization Block

b)

Gyroscope Block

c)

Accelerometer Block

d)

Roll Block

15.

This block is a sensor that measures the rate of spin around an axis.

a)

Stabilization Block

b)

Gyroscope Block

c)

Accelerometer Block

d)

Roll Block

16.

The Sphero spins around 3 axes. What is the spin rate around the vertical axis called?

a)

Yaw

b)

Roll

c)

Pitch

d)

XYZ

17.

This is a placeholder that represents a value.

a)

Variable

b)

Constant

c)

Coefficient

d)

Value

18.

This block is used to write math statements that change a number.

a)

Operators

b)

Equations

c)

Variables

d)

Expressions

19.

A statement that repeats until an if/then statement is true.

a)

Loop Until Block

b)

Loop Forever

c)

Loop (#) times

20.

This makes a random number within a range.

a)

Random Within Bounds

b)

Random While Calculating

c)

Random Variable

21.

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.

a)

Set Block

b)

Variable Block

c)

Constant Block

d)

Operators Block

22.

These are data values that are whole numbers and its opposites.

a)

Integers

b)

Decimals

c)

Float

d)

Variable

23.

This is a data value that represents ALL rational numbers.

a)

Integers

b)

Decimals

c)

Float

d)

Variable

24.

The ______________________ block measures the Sphero's g-force.

a)

accelerometer

b)

orientation

c)

velocity

d)

gyroscope

25.

This block writes a statement that compares 2 values.

a)

Comparator block

b)

Operators block

c)

Inequality block

d)

Set block

26.

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.

a)

C++ Programming

b)

Java Programming

c)

Block-Based Programming

d)

Low-Level Programming

27.

The area where you drag and drop the coding blocks to create a program to make Sphero carry out specific actions.

a)

Block Code

b)

Text Canvas

c)

Text Code

d)

Block Canvas

28.

___________ is used to set the direction the Sphero will travel; do this before driving the Sphero or starting your program

a)

align

b)

target

c)

point

d)

aim

29.

______________________ helps to orient Sphero; points towards you to make Sphero move away from you.

a)

Red Tail Light

b)

Yellow Tail Light

c)

Green Tail Light

d)

Blue Tail Light

30.

_________ a program means that you identify and remove the errors from the program

a)

Fixing

b)

Debunk

c)

Debug

d)

Ladybug

31.

______________ is an error in a program that prevents the program from running as expected.

a)

bird

b)

bug

c)

bear

d)

bubble

32.

Sensor Data shows _____________________________.

a)

the path Sphero travels on a graph.

b)

the errors in the program.

c)

the Sphero's main LED.

d)

the programming language.

33.

____________ repeats a series of blocks a certain number of times

a)

Loop #

b)

Loop Until

c)

Loop Forever

d)

Loop Repeatedly

34.

Using the roll block given, what does  0°0\degree  represent?


***click the image to enlarge it***

a)

the distance

b)

the direction

c)

the speed

d)

the time

35.

Using the roll block given, what does 30 represent?


***click the image to enlarge it***

a)

the distance

b)

the direction

c)

the speed

d)

the time

36.

Using the roll block given, what does 1s represent?


***click the image to enlarge it***

a)

the distance

b)

the direction

c)

the speed

d)

the time 

37.

If you have the Sphero heading 270°270\degree  , which direction will the Sphero travel?

a)

forward

b)

right

c)

left

d)

backwards

38.

If you have the Sphero heading 90°90\degree  , which direction will the Sphero travel?

a)

forward

b)

right

c)

left

d)

backwards

39.

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.

a)

Matrix

b)

Multiple

c)

Main

d)

Micro

40.

The language that programmers create and use to tell a computer what to do.

a)

Code

b)

English

c)

Visual Basic

d)

Go