No student devices needed. Know more
21 questions
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)
What is the symbol used for the INCREMENT operator in JS?
+
++
=
==
Conditions return values of which data type?
Integer
boolean
floating-point
string
Loops in programming start counting from ?
0
1
Any number
What symbol represents the or operator in JavaScript?
OR
or
||
|
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;
Names that refer to commands, functions, variables and keyword should be written correctly, variable “A” and “a” are two different variables.
Comments
Case Sensitivity
Data Types
Statements
Conditions return values of which data type?
Integer
boolean
floating-point
string
Where do the <script></script> tags go in your document
Within <img> tags
In the <p></p> tags
In the <title>
In the <head> or <body>
Statement lets you ask a question to the program and only run code if the answer is true.
If Else Statement
Condition
If Statement
Parentheses
Control structure that lets us do either one section of code or another depending on a test.
If Else Statement
Condition
If Statement
Parentheses
Explore all questions with a free account