I Hate CBT's

View Original

5.3.6 Girl Scout Designation

Question: Which of the following is not a valid value for a boolean?

Answer: yes

Question: 4.1.4: Do You Have a Cat?

Answer: function start(){

var myBoolean = true;

var anotherBoolean = false;

println(“ Do You have a cat? “ + true);

}

Question: What symbol represents the and operator in JavaScript?

Answer: &&

Question: What symbol represents the or operator in JavaScript?

Answer: ||

Question: After the following code runs, what is the value of isWeekend?

var isSaturday = true;

var isSunday = false;

var isWeekend = isSaturday || isSunday;

Answer: true