NEW
Font size
WorksheetsMore JavaScript Basics
Total questions: 15
Worksheet time: 8mins
What is the proper function to call to print to the screen?
write
println
post
What is missing? (fill in the blank)
_____(var i = 0; i < 5; i++){
if
else
for
while
In the code below, which increases by 1 after each iteration?
(var i = 2; i < 8; i++)
i = 2
i < 8
i++
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
What is a variable
Store values in containers so we can use them later.
Store values in containers so we can use them never.
Store values in containers so we can use them once.
Store values in containers so we can't use them later.
A short form writing the word variable is
rav
VAR
var
varia
A short form writing the word variable is
rav
VAR
var
varia
A programming language used for webpage functionality such as interactivity, data processing, animation, and development of purpose built apps such as mobile and desktop apps and more.
HTML5
CSS
JS
C#
What function do you need to call to ask the user of the program to enter text?
readLine
readln
text
println
To ask the user of the program for a number, which function should you use?
readLine
readInt
readFloat
Both readInt and readFloat are for numbers
What function do you need to call to get the width of the screen?
width()
getWidth()
screenWidth()
getScreenWidth()
What is the name of this function?
function
spin()
3 turnLeft();
spin();
