Professional Documents
Culture Documents
JAVA 2
Quarter 4 – Module 2:
LOGIC GATES
Development Team:
Writer: Randy T. Mercado
Reviewer: Marife P. De Castro
Layout: Paulo Stephen Cadawas
Management: Dr. Edwin T. Casila, MCL – Principal
Christian D. Manalansan – President
©2020 Mind and Integrity College, Inc. All Rights Reserved Page 1 of 8
Dear Parents,
Mind and Integrity College, Inc. is one with every Filipino family in coping with the
demands of our modern times amidst the threat of COVID-19 pandemic.
The school initiated the distribution of a Self-Learning Module (SLM) in order to meet the
essential learning competencies required to be learned by your child whether your child opts for
online, modular, or blended learning modality. The learning activities in this SLM are arranged
chronologically from simple to complex that will lead your child to think critically, act skillfully,
and reflect deeply on each lesson and to practice them into real life settings. Most importantly,
this SLM promotes self-paced learning as your child can always review the least understood
lessons as often as he/she pleases.
Thank you in advance for being one with us! Together, let us envision that, by the end of
this school year, we will see your child as one responsible young person with a heart and mind
for humanity, for nature, for the country, and for God.
Dear Learner,
This is our gift to you. The school initiated the distribution of Self-Learning Modules
(SLM) that will help you keep up with the lesson whether you opted for online, modular, or
blended learning as a modality.
Please take time to read and do the activities in these SLM as if you are reporting in
school. Set a regular study schedule for you as much as possible, but keep in mind that these
SLM will enable you to learn at your own pace. If you do not understand a lesson, the SLM
would not mind you flipping back the pages repeatedly for review. Also, remember to keep in
touch with your teachers. Send them a message through your online sessions or write them a
note as you do your modular activities.
We wish you good luck in your studies, and we hope that you will remain happy and
enthusiastic in learning!
NOTE: Prepare yellow pad papers where you would write all your outputs for this
module. Do not forget to label your works properly corresponding to the title of each
activity. Also, please label your work with module number and module title. Do not forget
to write your name, section and the date of first entry.
Make sure to clip/staple your works so that they will not easily be separated. It is advised
to take down notes about the important information from each lesson because of the
modules will be returned at the end of every week. Please do not write anything on
module.
©2020 Mind and Integrity College, Inc. All Rights Reserved Page 2 of 8
What This Module is About
Fast and efficient processing of two-dimensional arrays is essential in land-change modeling
because of the substantial computational effort expended by some computer land change models in
processing raster-graphic images and other two-dimensional arrays. Elapsed, wall-clock runtimes
for spatially explicit land-change models often span days or weeks, so improvements in the speed
and efficiency of a land-change model’s executable computer code can reduce its runtime by hours
or even days. The speed of execution can make the difference between a model that is fast enough
to be used and one that is not. Computational speed and efficiency in array processing are
fundamental, threshold concerns in land-change modeling and other areas of scientific
computation.
What’s In This part connects previous lesson with that of the current
one.
What’s More These are follow-up activities that are in- tended for you
to practice further in order to master the competencies.
What I can do These are tasks that are designed to show- case your
skills and knowledge gained and applied into real-life
concerns and situations.
©2020 Mind and Integrity College, Inc. All Rights Reserved Page 3 of 8
Lesson 1: Logic Gates
Gates
A device that performs a basic operation on electrical signals.
Circuits
Gates combined to perform more complicated tasks.
NOT GATE
A NOT gate accepts one input signal (0 or 1) and returns the opposite signal as output.
©2020 Mind and Integrity College, Inc. All Rights Reserved Page 4 of 8
AND GATE
An AND gate accepts two input signals
If both are 1, the output is 1; otherwise, the output is 0
©2020 Mind and Integrity College, Inc. All Rights Reserved Page 5 of 8
Note the difference between the XOR gate and the OR gate; they differ only in one input situation
When both input signals are 1, the OR gate produces a 1 and the XOR produces a 0.
NAND GATE
The NAND gate accepts two input signals
If both are 1, the output is 0; otherwise, the output is 1.
NOR GATE
The NOR gate accepts two input signals
If both are 0, the output is 1; otherwise, the output is 0.
SUMMARY:
A NOT gate inverts its single input
An AND gate produces 1 if both input values are 1
An OR gate produces 0 if both input values are 0
An XOR gate produces 0 if input values are the same
©2020 Mind and Integrity College, Inc. All Rights Reserved Page 6 of 8
A NAND gate produces 0 if both inputs are 1
A NOR gate produces a 1 if both inputs are 0
ASSESSMENT
INSTRUCTION: Label these basic logic gates and fill in their truth tables. (5pts. each)
1. 2.
1 1
©2020 Mind and Integrity College, Inc. All Rights Reserved Page 7 of 8
3. 4.
0 0
0 1
1 0
1 1
What Logic gate is this? __________.
INPUT A INPUT B OUTPUT
0 0
0 1
1 0
1 1
5. 6.
©2020 Mind and Integrity College, Inc. All Rights Reserved Page 8 of 8