Pertanyaan
8. In the AND (&&) test if the first expression on the left hand side is false, then there is no need to evaluate the second statement True or False? True False 9. Which are used in a boolean expression?(Choose two) (Choose all correct answers) Loops Variables Errors Operators 10. The equal sign (=) is used to make an assignment, whereas the == sign merely makes a comparison and returns a boolean True or False? True False
Solusi
Jawaban
**8. In the AND (\&\&) test, if the first expression on the left hand side is false, then there is no need to evaluate the second statement True or False?****True**In an AND operation, if the first expression evaluates to false, the overall result of the AND operation will be false regardless of the value of the second expression. Therefore, there is no need to evaluate the second expression.**9. Which are used in a boolean expression? (Choose two)**- **Variables**- **Operators**Loops are control structures used for iteration, not directly part of boolean expressions. Errors are not used in constructing boolean expressions. Variables and operators are fundamental components in forming boolean expressions.**10. The equal sign (=) is used to make an assignment, whereas the == sign a comparison and returns a boolean True or False?****True**The equal sign (=) is used for assignment, while the double equal sign (==) is used for comparison, returning a boolean value based on whether the operands are equal.