Search Header Logo

Unit 3: JavaScript Programming in AppLab

Authored by Sam Kelso

Computers

9th - 12th Grade

Used 19+ times

Unit 3: JavaScript Programming in AppLab
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

penUp()

the turtle does not draw a line as it moves.
give a name to a set of actions you want the computer to perform
Explore the 256^3 possible colors you can choose from using the three required numeric parameters. The fourth optional parameter is the opacity of the color, a percentage between 0 and 1. The default pen color is black, penRGB(0,0,0), and the pen is by default in the down (drawing) position.
Moves the turtle forward a given number of pixels in the current direction.

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

turnLeft(angle)

Rotates the turtle left by the specified angle. The turtle’s position remains the same.
Returns a random number in the closed range from min to max.
Moves the turtle forward and to the right in a smooth circular arc.
Relocates the turtle to a specific (x,y) position on the screen.

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

moveForward(pixels)

Moves the turtle forward a given number of pixels in the current direction.
Rotates the turtle left by the specified angle. The turtle’s position remains the same.
give a name to a set of actions you want the computer to perform
the turtle does not draw a line as it moves.

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

penDown()

the turtle draws a line behind it as it moves.
Moves the turtle forward and to the left in a smooth circular arc.
Moves the turtle forward a given number of pixels in the current direction.
Changes the turtle's direction to a specific angle. 0 is up, 90 is right, 180 is down, and 270 is left. The turtle's position remains the same.

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

function myFunction() {}

give a name to a set of actions you want the computer to perform
the turtle does not draw a line as it moves.
Relocates the turtle to a specific (x,y) position on the screen.
Moves the turtle forward and to the left in a smooth circular arc.

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

myFunction()

Calls a user defined function that may or may not take one or more parameters, and optionally generates a return value.
Moves the turtle forward a given number of pixels in the current direction.
Changes the turtle's direction to a specific angle. 0 is up, 90 is right, 180 is down, and 270 is left. The turtle's position remains the same.
Sets the thickness of the line in pixels that the turtle draws behind it as it moves.

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

moveTo(x,y)

Relocates the turtle to a specific (x,y) position on the screen.
Calls a user defined function that may or may not take one or more parameters, and optionally generates a return value.
Moves the turtle forward and to the left in a smooth circular arc.
Returns a random number in the closed range from min to max.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?