Font size
WorksheetsCS Do Now Quiz #5
Total questions: 12
Worksheet time: 7mins
What keyword would a person use to declare a variable in which the value stored to it is expected to not be changed or updated?
What type of variable is expressed as true/false?
String
Boolean
Number
Conditional
What operator can be used with both strings and numbers?
"-"
"/"
"+"
"*"
What is the result of 12 % 5 ?
2
17
60
7
Which of these is NOT a valid string?
Hello
"work4$"
"Hello, world!"
"dude'
What is the difference between loose equality (==) and strict equality (===)?
What will this boolean expression resolve to? --
"23" < "123"
true
false
Which of these characters can be included in a string?
Alphabetical (a-z, A-Z)
Digits (0-9)
Spaces
Special Characters (!/$^*, etc.)
all of the above
Quotations:
" " or ' '
Curly Brackets:
{ }
Parentheses:
( )
Square Brackets:
[ ]
In this code snippet:
```
var thing;
console.log(thing);
```
What is the value of "thing"?
null
"thing"
undefined
""
What is the output for this code?
The value of z is z
The value of z is 11
The value of z is: 11
The value of z is: x + y
How do you write "Hello World" in an alert box?
msg("Hello World");
alertBox("Hello World");
alert("Hello World");
msgBox("Hello World");
