Show how you declare the variable xPos and give it value of 10.
Back
small letters
Front
Commands in jScript begin with small letters or capital letters.
Back
15
Front
After running this code:
var w = 20;
var h = 15;
rect(10, 10, w, h);
ellipse(10, 10, w, h); What will be the height of each of the two shapes?
Back
right
Front
Variable names are case sensitive, which means that "xPos" is different from "xpos",
right or wrong?
Back
horizontal
Front
What direction is the x axis? horizontal or vertical?
Back
r,g,b
Front
What are the first letters of each of the 3 main colors in javaScript? Separate by commas.
Back
green
Front
Yellow was the 1st fill command, which is followed by fill command blue, and then by fill command green. If a rectangle is created immediately below those, then what color will appear in the rectangle?
Back
55
Front
var xPos = 55;
rect(10, 20, 30, 40);
ellipse(xPos, 20, 15, 30);
ellipse(xPos, 10, 20, 30);
At what x position will the ellipse(s) be?
Back
20
Front
var rectWidth = 20;
rect(10, 10, rectWidth, rectWidth);
How wide is the resulting rectangle?
Back
true
Front
Variable names can only contain letters, numbers, $ and _.
true or false?
Back
5
Front
var x = 5;
What is the value of x?
Back
yellow
Front
If one "fill" color command of the color black is given and that is followed by a "fill" color command of yellow, which is then followed by an ellipse, then what color will the ellipse be?
Back
var xPos;
Front
Show how we would declare a variable named "xPos"
Back
400
Front
How many pixels are there on a vertical line from top to bottom on the javaScript screen?
Back
xPos = 20;
Front
Initially we gave xPos a value of 10 with the following command:
var xPos = 10;
Later we want to change xPos to a value of 20. Show the command to change the value. Remember it ends in a ;
Back
10
Front
After running this code:
var xPos = 10;
var yPos = 5;
rect(xPos, yPos, 10, 10);
At what x position will the rectangle be?
Back
circle
Front
After running the following code, what shape will be the face be?
ellipse(200, 170, 150, 150); // face
oval? oblong? circle? rectangle?
Back
400
Front
How many pixels are there on a horizontal line across the javaScript screen?
Back
correct
Front
Variable names should use camel case for multiple words, like "toothSize" instead of "toothsize" or "tooth_size".
correct or incorrect?
Back
yes
Front
Variable names can begin with letters, or the symbols $ or _.
yes or no?
Back
;
Front
Show what punctuation mark ends commands.
Back
no
Front
Can variable names start with a number?
Back
top
Front
Where should the "background" be located?
top, middle or bottom?
Back
vertical
Front
What direction is the y axis?
horizontal or vertical?
Back
xPos = 10;
Front
How can we assign xPos to hold the value 10:
Back
x,y,w,h
Front
What are the 4 factors for a rectangle in JavaScript? Separate by commas.
Back
below
Front
If a "fill" color command is given, then does it fill what is above or what is below?