Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The output of the code below is false because: ((2 * 90) === 180) && (false && (

ID: 3886568 • Letter: T

Question

The output of the code below is false because:

   ((2 * 90) === 180) && (false && (!false))

A. The statement contains false boolean in it and when combined with other variables it turns them to false as well.

B. The statement is evaluating 2 different sub expressions. The results of these expressions are then compared. Since one is false, the whole statement evaluates to false.

C. The statement is too complex and error prone, essentially resulting in false.

D. The statement is trying to combine numbers (2, 90, 180) with the wrong symbols and hence resulting false.

Explanation / Answer

Option C is correct it is actually error proned expression why because (2*90)==180 then it returns true but here we are writing as (2*90)===180 that operator is not allowed only allowed are =,== Assignment and comparison only because of that the statement is error.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote