WorksheetsLogic Gates
Total questions: 63
Worksheet time: 32mins
Why do Computer & Hardware Engineers use logic gates?
To make decisions inside chips (CPUs, GPUs, etc.)
To design user interfaces
To create graphics
To store data
Fill in the blank: A CPU checks conditions like (A ___ B) to run instructions. Write the correct word in the blank.
AND
SUM
DIVIDE
MULTIPLY
How do Electrical & Electronics Engineers use logic gates?
In control panels, traffic lights, and security systems
In designing mobile apps
In writing software code
In building bridges
Fill in the blank: A motor runs only if 'Start' ___ 'Safety switch' are both on. Write the correct word in the blank.
AND
OR
NOT
NOR
How do Robotics and Biomedical Engineers use logic gates?
To combine sensor data for decision making
To paint robots
To design costumes
To write stories
In programming, logic gates are similar to which type of statement?
If..Else statements
Print statements
Loop statements
Variable declarations
Fill in the blank: Airbag activates if (impact sensor = 1 ___ seat occupied = 1).
AND
OR
NOT
XOR
What is a logic gate?
A device that acts as a building block for digital circuits and performs basic logical functions.
A type of mechanical switch used in household wiring.
A software program for solving mathematical equations.
A component that stores electrical energy in a circuit.
How do logic gates work?
A logic gate works based on a combination of digital signals from its inputs.
A logic gate works by amplifying analog signals.
A logic gate operates only with mechanical switches.
A logic gate functions by storing data like a memory cell.
What is Boolean?
A data type used in programming and logic.
A type of fruit.
A programming language.
A mathematical operation.
What are the only two values a Boolean can have?
True and False
Yes and No
High and Low
1 and 0
What is Binary? Binary is a ________ system used by computers. Unlike the decimal system (0–9), binary uses only two digits: 0 and 1.
number
color
letter
shape
Which digits are used in the binary number system?
A) 0 and 1
B) 1 and 2
C) 2 and 3
D) 8 and 9
Why do computers use Binary? Because computer hardware works with ________ signals.
electric
magnetic
optical
mechanical
In computer hardware, what does ON correspond to in binary?
0
1
In computer hardware, what does OFF correspond to in binary?
0
1
In an AND gate, what will the output be if both its inputs are 1?
The output will be 1.
The output will be 0.
The output will be undefined.
The output will alternate between 0 and 1.
In an OR gate, what will the output be if only one of the inputs is 1?
The output will be 1.
The output will be 0.
The output will be undefined.
The output will be -1.
Which of the following is NOT one of the seven basic logic gates?
C) XOR
E) NOT
D) SUM
A) AND
B) OR
What is the function of the AND gate?
Both inputs must be TRUE to give TRUE
Either input can be TRUE to give TRUE
Reverses the input
Both inputs must be FALSE to give TRUE
What is the function of the OR gate?
Both inputs must be TRUE to give TRUE
Either input can be TRUE to give TRUE
Reverses the input
Both inputs must be FALSE to give TRUE
What is the function of the NOT gate?
Both inputs must be TRUE to give TRUE
Either input can be TRUE to give TRUE
Reverses the input (TRUE gives FALSE & FALSE gives TRUE)
Both inputs must be FALSE to give TRUE
Fill in the blank for the NOT gate truth table: Input: 0, Output: ___
1
0
2
-1
Fill in the blank for the 2-input OR gate truth table: Input A: 1, Input B: 0, Output: ___
1
0
2
-1
Fill in the blank for the 2-input AND gate truth table: Input A: 1, Input B: 0, Output: ___
0
1
2
3
Which of the following statements best describes the function of an AND gate?
It produces an output of true if at least one input is true.
It produces an output of true only when both inputs are true.
It produces an output of false only when both inputs are true.
It produces an output of true if both inputs are false.
What is a truth table?
A table showing only the true outputs
A table of the outputs from all possible combinations of input
A table showing only the false outputs
A table of the inputs from all possible combinations of output
Refer to the diagram of the AND logic gate and its truth table: Input 1: 1, Input 2: 0. What is the output? Fill in the blank: The output is _____.
0
1
2
10
Refer to the diagram of the AND logic gate and its truth table: Input 1: 1, Input 2: 1. What is the output?
1
0
2
-1
What is a component?
A component is one part of a bigger system.
A component is a type of food ingredient.
A component is a musical instrument.
A component is a kind of weather phenomenon.
Which of the following is a component of a car? (Examples of Components: A wheel is a component of a car, A keyboard is a component of a computer, An engine is a component of a plane)
Wheel
Keyboard
Engine
Which of the following is a component of a computer?
Wheel
Keyboard
Engine
Which of the following is a component of a plane?
Wheel
Keyboard
Engine
Fill in the blank: A ______ controls current in an electronic circuit.
Resistor
Capacitor
Transistor
Inductor
Fill in the blank: A ______ stores energy in an electronic circuit.
Capacitor
Resistor
Inductor
Transistor
Fill in the blank: A ______ lets current flow one way in an electronic circuit.
Diode
Resistor
Capacitor
Transistor
Fill in the blank: A ______ acts as a switch or amplifier in an electronic circuit.
Transistor
Resistor
Capacitor
Diode
Fill in the blank: An ______ contains many components in one.
IC (Chip)
Resistor
Capacitor
Transistor
Which of the following is NOT a component of a computer?
Monitor
Hard Drive / SSD
CPU (processor)
Motherboard
RAM
Fill in the blank: The ________ is responsible for processing instructions in a computer.
CPU (processor)
Monitor
Keyboard
Hard Drive
Fill in the blank: The ________ stores temporary data that the computer is currently using.
RAM
Hard Drive
CPU
Monitor
Fill in the blank: The ________ or SSD is used for long-term storage of files and programs.
Hard Drive / SSD
RAM
CPU
Motherboard
Fill in the blank: The ________ connects all the components of a computer together.
Motherboard
Processor
Hard Drive
Power Supply
Fill in the blank: The ________ supplies power to all the components of a computer.
Power Supply
Motherboard
Hard Drive
Monitor
In programming, a component is a ________ that does one job.
piece of code
hardware part
user manual
computer program
Which of the following is NOT an example of a programming component?
A function
A class
A UI button
A printer
A React component
Fill in the blank: An example of a programming component concept is ________.
LoginComponent
for loop
variable
if statement
Fill in the blank: Another example of a programming component concept is ________.
SearchComponent
BlueFunction
DataVariable
LoopStatement
What is a component?
A part of a system
A complete system
A programming language
An input device
In which fields are components used?
Electronics
Computers
Programming
All of the above
Fill in the blank: Small pieces make up ______ systems.
big
tiny
broken
simple
The output of an OR gate is true if one or both inputs are true.
True
False
For the output of an OR gate to be 1, at least one input must be _____.
1
0
negative
floating
Refer to the diagram of the OR logic gate. What is the output when Input 1 = 0 and Input 2 = 0?
0
1
2
3
Refer to the diagram of the OR logic gate. What is the output when Input 1 = 0 and Input 2 = 1?
1
0
2
-1
Refer to the diagram of the OR logic gate. What is the output when Input 1 = 1 and Input 2 = 0?
1
0
2
-1
Refer to the diagram of the OR logic gate. What is the output when Input 1 = 1 and Input 2 = 1?
1
0
2
-1
Which logic gate is shown in the diagram?
AND gate
OR gate
NOT gate
NAND gate
What is a NOT gate?
A NOT gate is a logical inverter that reverses the logic state of its input. If the input is 1, the output is 0; if the input is 0, the output is 1.
A NOT gate is a device that amplifies the input signal without changing its logic state.
A NOT gate is a circuit that outputs the same logic state as its input.
A NOT gate is a device that stores binary data for future use.
What is the output of a NOT gate if the input is 1?
0
1
2
Undefined
Why are logic gates needed?
Logic gates are needed because they perform basic logical functions for digital operations, enable fast data processing and transfer, and are crucial for low-power-consumption applications.
Logic gates are needed to store large amounts of data permanently.
Logic gates are needed to generate electrical power for circuits.
Logic gates are needed to convert analog signals to sound waves.
Which of the following statements about NOT gates is correct?
A NOT gate produces the same output as its input.
A NOT gate reverses the logic state of its input.
A NOT gate requires two inputs.
A NOT gate is used only in analog devices.
A NOT gate is one of the simplest logic gates because it only reverses the input applied.
True
False
