NEW
Font size
WorksheetsChapter 5
Total questions: 10
Worksheet time: 5mins
How do you set variable?
var name = value ;
"String"
variable name = value;
"Write"
What command do you use to print a variable on the screen?
Console.Log ( " Value");
Console.Log ( Value);
Write ("Value");
Write(Value);
How do you print a string on the console?
Console.Log ( " Value" + Value)
Console.Log ( Value)
Write( Value)
Write ( "Value")
What value goes in the parameters for the "random" command?
(Min, Max)
(Max, Min)
( Most, Least)
random numbers
What does "promptNumb" do?
Asks the user for a value through a dialogue box and allows you to use that value for whatever you need.
Uses the value to make a promtNum.
Allows you to make a random Number.
Allows you to make a number from a value that the user writers in side the code.
What are strings used for?
To print text and variables together.
To print variables
To combine strings and variables.
To allow for things to be printed.
What sign do you use to separate variables and Text in a single line of code?
+
-
" "
;
What tool do we add to the application in order for the user to input text into the application?
Text Input
Label
Button
Canvas
What does the equal equal ( == ) do?
It compares two values and returns a true or false.
It assigns a value to a variable.
It returns an equal sign.
It makes the function repeat.
What is an event?
Something the user does that the computer recognizes.
A way for the computer to run the code.
A way for the computer to move things around.
It changes the code so that one can see it in text mode.
