NEW
Font size
WorksheetsJavaScript Quiz
Total questions: 10
Worksheet time: 5mins
What programming language did we learn in class this week?
Karel
Java
JavaScript
Visual Basic
Which of these is a loop?
if(x<10)
while(x<10)
var x=10;
text(x,10;10)
Which command provides a random color?
Randomizer.color
Randomizer.nextColor()
RandColor;
nextColor.Randomizer()
Which of these will increase the value of the variable X?
increment (x)
x++;
x=x;
x+1;
Which of the following will decrease the value of x?
x--;
x-1;
x=x;
x=-x;
Greater than or equal to
> or =
> || =
>=
<=
His name is Fred and he is less than 16 years old
if (name = "fred" && age < 16 )
if (name === "fred" && age < 16 )
if (name = "fred" || age < 16 )
if (name === "fred" || age < 16 )
Repeat something 10 times
repeat 10
for (var i=0; i<10; i++)
repeat { } until 10;
while (i = 10)
When we are done with a line what do we put at the end?
a colon :
a semi-colon ;
a period .
a quotation mark "
When we surround a word with quotes "David" it's called ?
a program
a loop
a string
a command
