CodeHS 2.14 De Morgan's Laws

CodeHS 2.14 De Morgan's Laws

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

Woking with Function

Woking with Function

12th Grade

10 Qs

S3 SDD Unit 2 - 3. Design

S3 SDD Unit 2 - 3. Design

9th Grade - University

10 Qs

Unit 9 AP CSP Advanced

Unit 9 AP CSP Advanced

9th - 12th Grade

10 Qs

AP Computer Science Principles - Unit 7: Parameters, Returns

AP Computer Science Principles - Unit 7: Parameters, Returns

9th - 12th Grade

10 Qs

ISTE Standards

ISTE Standards

6th Grade - University

10 Qs

MIL Reviewer 1 - DepEd Common

MIL Reviewer 1 - DepEd Common

12th Grade

10 Qs

 Unit 4 Advanced AP CSP

Unit 4 Advanced AP CSP

9th - 12th Grade

10 Qs

OCR Cambridge Nationals IT R050 Topic 1

OCR Cambridge Nationals IT R050 Topic 1

8th - 11th Grade

10 Qs

CodeHS 2.14 De Morgan's Laws

CodeHS 2.14 De Morgan's Laws

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Aaron Pavao

Used 28+ times

FREE Resource

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