

Comparing Boolean Expressions
Presentation
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Easy
Katherine Valenti
Used 1+ times
FREE Resource
54 Slides • 8 Questions
1
Comparing Boolean Expressions
2
Students will be able to...
Apply De Morgan’s Laws to transform boolean expressions
Identify and write logically equivalent boolean expressions
Use truth tables to evaluate logical equivalence
Compare object references and values using == and .equals()
Determine when objects are the same or merely equivalent in attributes
3
Warm Up
4
Open Ended
Can two different expressions produce the same true/false result for all input values?
5
Warm Up
Yes
They can be logically equivalent, even if they may look different
6
Open Ended
Why might you want to simplify a boolean expression?
7
Warm Up
Make code shorter
Make code easier to read
8
Open Ended
What does it mean for two objects to be “equal”?
9
Warm Up
Have the same values
Are the exact same object
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Open Ended
Using De Morgan’s Laws, what would be the equivalent of the expression below?
31
32
33
Open Ended
Using De Morgan’s Laws, what would be the equivalent of the expression below?
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Now It's Your Turn!
Head to CodeHS and access the Comparing Boolean Expressions (Part 2) modules. You will be completing:
Comparing Rectangles
Exploration: Comparing Strings
Determine Classmates
57
Wrap Up
58
Match
Match the following concepts
Defines how we can negate AND and OR statements
Used in logic for comparing Boolean Expressions
Equality operator (==) compares the addresses in memory of two objects
Checks if two objects have the same content or state (.equals)
Two expressions that produce the same truth value for all inputs
DeMorgan's Laws
Truth Tables
Reference Equality
Value Equality
Logical Equivalence
DeMorgan's Laws
Truth Tables
Reference Equality
Value Equality
Logical Equivalence
59
Open Ended
What do De Morgan’s Laws help you do when working with boolean expressions?
60
Wrap Up
Help you rewrite expressions in different, equivalent ways
61
Open Ended
What is the difference between == and .equals() when comparing objects?
62
Wrap Up
== checks if 2 variables point to the same object
.equals() checks if they have the same content
Comparing Boolean Expressions
Show answer
Auto Play
Slide 1 / 62
SLIDE
Similar Resources on Wayground
57 questions
U2, L3:Radioactivity and Nuclear Energy
Presentation
•
9th - 12th Grade
58 questions
Components of an Ecosystem
Presentation
•
9th - 12th Grade
58 questions
Limiting Factors Carrying Capacity
Presentation
•
9th - 12th Grade
56 questions
BL Ch 10 Gasses ppt
Presentation
•
9th - 12th Grade
55 questions
Intro to Biodiversity
Presentation
•
9th - 12th Grade
59 questions
Creating African American Culture
Presentation
•
KG - 12th Grade
54 questions
Special Right Triangles
Presentation
•
9th - 12th Grade
58 questions
MLA Format
Presentation
•
9th - 12th Grade
Popular Resources on Wayground
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
10 questions
MyPath Diagnostic Overview
Presentation
•
6th - 8th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Adding and Subtracting Decimals
Quiz
•
5th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
21 questions
Lab Safety
Quiz
•
10th Grade
Discover more resources for Computers
20 questions
Early Computing
Quiz
•
7th - 12th Grade
20 questions
Module 1 Topic 1 Vocabulary
Quiz
•
9th - 12th Grade
10 questions
Exploring Computer Hardware and Software Components
Interactive video
•
6th - 10th Grade
14 questions
Introduction to Digital Citizenship
Quiz
•
9th Grade
39 questions
Safety Review
Quiz
•
9th - 12th Grade
20 questions
Digital Citizenship
Quiz
•
8th - 12th Grade
25 questions
OSHA and Lab Safety
Quiz
•
9th Grade
22 questions
Electronic Computing
Quiz
•
8th - 12th Grade