-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from vikasdesale/Logical_expressions
fix : #69 Logical_expressions
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
QUESTION 1 OF 3 | ||
What value of [BLANK] would make the following expression evaluate to false. Notice the ! right at the beginning! | ||
|
||
!([BLANK] === 4) && "STRing" === "STRing" | ||
Returns: false | ||
|
||
|
||
-4 | ||
|
||
=>4 | ||
|
||
|
||
"4" | ||
|
||
|
||
"-4" | ||
|
||
SUBMIT | ||
QUESTION 2 OF 3 | ||
Select the operator that would make the following expression evaluate to true. | ||
|
||
3 < -10 [BLANK] "James" !== "james" | ||
Returns: true | ||
|
||
|
||
! | ||
|
||
=>|| | ||
|
||
|
||
&& | ||
|
||
SUBMIT | ||
QUESTION 3 OF 3 | ||
Evaluate the following logical expressions. Check the ones that evaluate to true. | ||
|
||
=>true || false | ||
|
||
|
||
false && false | ||
|
||
|
||
!true | ||
|
||
=>(13 > -7) || (false == 0) | ||
|
||
|
||
(10 === "10") && (1 <= 2) | ||
|
||
=>(3 != 6 % 3) && !(24 > 45) && (!false) |