No student devices needed. Know more
23 questions
Which of these is correct camel case set up?
Camel Case
CAMELCASE
camel Case
camelCase
___ is a placeholder for a piece of information that can change
Value
Label
Variable
Sprite
___ is known as an assignment operator.
=
;
x=5;
x begets 5
Select the example of only creating (declaring) a variable.
ellipse(200,200,size, size);
size=100;
var size=100;
var size;
Select the example of only assigning a value to variable.
ellipse(200,200,size, size);
size=100;
var size=100;
var size;
Select the example of initializing a variable, which does two things in one command.
ellipse(200,200,size, size);
size=100;
var size=100;
var size;
Select the example of using a variable.
ellipse(200,200,size, size);
size=100;
var size=100;
var size;
The vertical position of the center of the sprite.
sprite.x
sprite.y
sprite.rotation
sprite.scale
The horizontal position of the center of the sprite.
sprite.x
sprite.y
sprite.rotation
sprite.scale
Clockwise spinning or turning in degrees of the sprite
sprite.x
sprite.y
sprite.rotation
sprite.scale
Shrink or grow a sprite keeping the height to width ratio the same.
sprite.x
sprite.y
sprite.rotation
sprite.scale
spritelabel.spriteproperty
This structure is called dot notation.
This structure is called camel case.
This structure is called javascript.
This structure is called a tag.
Select ALL that break camel case rules used in javascript.
1camelCase
camelCase
camel-Case
camel Case
CamelCase
_____are attributes that describe an object's characteristics
Properties
Sprites
Parameters
Animations
_____ is a graphic character on the screen with properties that describe its location, movement, and look.
A property
A sprite
A parameter
An animation
_____ sets an image for the sprite instead of the default gray square appearing.
sprite.tint
sprite.rotation
sprite.setAnimation
sprite.w
_____ can be changed to stretch or distort the image instead of staying in aspect ratio proportion.
sprite.tint
sprite.rotation
sprite.setAnimation
sprite.w
How are sprites similar to variables?
both store information to use throughout the program
both have particular properties that can be used in certain ways
both are graphic characters on the screen
How are sprites DIFFERENT from variables?
CHOOSE 2 ANSWERS
both store information to use throughout the program
sprites have particular properties that can be used in certain ways
both can keep track of numbers
variables can be anything
What is the solution to the following code? (the current value of x the console log will display)
50
60
70
Error
This program has some errors in variable names. Select the correct option for line 6:
ellipse(dimension1, yLocation, size of circle, size of circle);
ellipse(dimension, yLocation, sizeofcircle, sizeofcircle);
ellipse(1dimension, YLocation, size of circle, size of circle);
ellipse(dimension, YLocation, sizeofcircle, sizeofcircle) ;
What is the default size of the sprite.scale?
1
10
100
0
Following the commands top to bottom, what are the final outputs of x,y,z?
20,30,10
10,20,30
0,30,20
20,30,0
Explore all questions with a free account