Search Header Logo

CodeHS 2.14 De Morgan's Laws

Authored by Aaron Pavao

Computers

9th - 12th Grade

Used 32+ times

CodeHS 2.14 De Morgan's Laws
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Augustus De Morgan was

British

American

German

French

Dutch

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of these are De Morgan's Laws?

!(A && B) == !A || !B

!(A || B) == !A && !B

!(A || B) == !A || !B

!(A && B) == !A && !B

!(A || B) == A !! B

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is equivalent to


!(advantage || engagedAlly)

!advantage && !engagedAlly

!advantage || !engagedAlly

advantage && engagedAlly

advantage || engagedAlly

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is equivalent to


age < 18 && citizen == true

!(age >= 18 || citizen != true)

!(age > 18 || citizen != true)

!(age != 18 || citizen != true)

!(age >= 18 && citizen != true)

!(age > 18 && citizen == false)

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Why do we care about De Morgan's Laws?

code that's easier to read

streamlined code can improve battery life in devices

knowing them makes it more likely to land a job

to make better encryption algorithms

it actually doesn't matter that much

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?