WorksheetsProgramming Review
Total questions: 10
Worksheet time: 5mins
What name is given to a value that can either be true or false?
code
abstract
boolean
logical operator
What JavaScipt function is used to print a statement?
println
var
or
When declaring a variable in JavaScript, what key word is needed?
var
println
readln
not
What is missing in the statement below?
var isloggedin=true
" " around the word true
; at the end of the statement
another = before the word true
Capitalized the word VAR
Which of the following is not a logical operator?
AND
OR
NOT
BUT
What symbol is used for the AND operator?
&&
||
|
@@
Which operator is used for the OR operator?
&
!!
||
&&
What is used to represent the NOT operator?
!
!!
&&
||
What does the following statement mean?
var haveSeat=true II haveDesk=true
The student has a chair OR a desk
The student has a chair AND a desk
The student has a chair BUT no desk
The student does not have a desk or a chair
What does the following statement mean?
var hasDog=true && hasCat=false;
The boy has a dog but no cat
The boy has a cat but no dog
The boy has both a dog and a cat
The boy does not have a dog or a cat
