2026 Exam Questions with
100% Correct Answers | Latest
Update
Which of the following is not a valid value for a boolean? - ANSWER
✔✔yes
4.1.4: Do You Have a Cat? - ANSWER ✔✔function start(){
var myBoolean = true;
var anotherBoolean = false;
,println(" Do You have a cat? " + true);
}
What symbol represents the and operator in JavaScript? - ANSWER
✔✔&&
What symbol represents the or operator in JavaScript? - ANSWER
✔✔||
After the following code runs, what is the value of isWeekend?
var isSaturday = true;
var isSunday = false;
var isWeekend = isSaturday || isSunday; - ANSWER ✔✔true
4.2.6: Can You Graduate? - ANSWER ✔✔function start(){
var isSenior = readBoolean("Are you a Senior?");
var hasCredits = readBoolean("Do you have enough credits?");
var canGraduate = isSenior && hasCredits;
, println("Can I graduate " +
canGraduate);
}
4.2.7: School's Out - ANSWER ✔✔function start(){
var holiday = readBoolean("Is today a holiday? ");
holiday = !holiday;
var weekday = readBoolean("Is today a weekday? ");
var school = holiday || weekday;
println("Holiday: " + school);
}
What is the proper way to compare if two values are equal in a boolean
expression in JavaScript? - ANSWER ✔✔==
What is the proper operator for "not equals" in JavaScript? -
ANSWER ✔✔!=
4.3.5: Rolling Dice - ANSWER ✔✔function start(){
var diceOne = readInt("First Dice Roll? ");
var diceTwo = readInt("Second Dice Roll? ");
COPYRIGHT©JOSHCLAY 2025/2026. YEAR PUBLISHED 2026. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
STATEMENT. ALL RIGHTS RESERVED
3