Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Logic Gates

Total questions: 63

Worksheet time: 32mins

Name
Class
Date
1.

Why do Computer & Hardware Engineers use logic gates?

a)

To make decisions inside chips (CPUs, GPUs, etc.)

b)

To design user interfaces

c)

To create graphics

d)

To store data

2.

Fill in the blank: A CPU checks conditions like (A ___ B) to run instructions. Write the correct word in the blank.

a)

AND

b)

SUM

c)

DIVIDE

d)

MULTIPLY

3.

How do Electrical & Electronics Engineers use logic gates?

a)

In control panels, traffic lights, and security systems

b)

In designing mobile apps

c)

In writing software code

d)

In building bridges

4.

Fill in the blank: A motor runs only if 'Start' ___ 'Safety switch' are both on. Write the correct word in the blank.

a)

AND

b)

OR

c)

NOT

d)

NOR

5.

How do Robotics and Biomedical Engineers use logic gates?

a)

To combine sensor data for decision making

b)

To paint robots

c)

To design costumes

d)

To write stories

6.

In programming, logic gates are similar to which type of statement?

a)

If..Else statements

b)

Print statements

c)

Loop statements

d)

Variable declarations

7.

Fill in the blank: Airbag activates if (impact sensor = 1 ___ seat occupied = 1).

a)

AND

b)

OR

c)

NOT

d)

XOR

8.

What is a logic gate?

a)

A device that acts as a building block for digital circuits and performs basic logical functions.

b)

A type of mechanical switch used in household wiring.

c)

A software program for solving mathematical equations.

d)

A component that stores electrical energy in a circuit.

9.

How do logic gates work?

a)

A logic gate works based on a combination of digital signals from its inputs.

b)

A logic gate works by amplifying analog signals.

c)

A logic gate operates only with mechanical switches.

d)

A logic gate functions by storing data like a memory cell.

10.

What is Boolean?

a)

A data type used in programming and logic.

b)

A type of fruit.

c)

A programming language.

d)

A mathematical operation.

11.

What are the only two values a Boolean can have?

a)

True and False

b)

Yes and No

c)

High and Low

d)

1 and 0

12.

What is Binary? Binary is a ________ system used by computers. Unlike the decimal system (0–9), binary uses only two digits: 0 and 1.

a)

number

b)

color

c)

letter

d)

shape

13.

Which digits are used in the binary number system?

a)

A) 0 and 1

b)

B) 1 and 2

c)

C) 2 and 3

d)

D) 8 and 9

14.

Why do computers use Binary? Because computer hardware works with ________ signals.

a)

electric

b)

magnetic

c)

optical

d)

mechanical

15.

In computer hardware, what does ON correspond to in binary?

a)

0

b)

1

16.

In computer hardware, what does OFF correspond to in binary?

a)

0

b)

1

17.

In an AND gate, what will the output be if both its inputs are 1?

a)

The output will be 1.

b)

The output will be 0.

c)

The output will be undefined.

d)

The output will alternate between 0 and 1.

18.

In an OR gate, what will the output be if only one of the inputs is 1?

a)

The output will be 1.

b)

The output will be 0.

c)

The output will be undefined.

d)

The output will be -1.

19.

Which of the following is NOT one of the seven basic logic gates?

a)

C) XOR

b)

E) NOT

c)

D) SUM

d)

A) AND

e)

B) OR

20.

What is the function of the AND gate?

a)

Both inputs must be TRUE to give TRUE

b)

Either input can be TRUE to give TRUE

c)

Reverses the input

d)

Both inputs must be FALSE to give TRUE

21.

What is the function of the OR gate?

a)

Both inputs must be TRUE to give TRUE

b)

Either input can be TRUE to give TRUE

c)

Reverses the input

d)

Both inputs must be FALSE to give TRUE

22.

What is the function of the NOT gate?

a)

Both inputs must be TRUE to give TRUE

b)

Either input can be TRUE to give TRUE

c)

Reverses the input (TRUE gives FALSE & FALSE gives TRUE)

d)

Both inputs must be FALSE to give TRUE

23.

Fill in the blank for the NOT gate truth table: Input: 0, Output: ___

a)

1

b)

0

c)

2

d)

-1

24.

Fill in the blank for the 2-input OR gate truth table: Input A: 1, Input B: 0, Output: ___

a)

1

b)

0

c)

2

d)

-1

25.

Fill in the blank for the 2-input AND gate truth table: Input A: 1, Input B: 0, Output: ___

a)

0

b)

1

c)

2

d)

3

26.

Which of the following statements best describes the function of an AND gate?

a)

It produces an output of true if at least one input is true.

b)

It produces an output of true only when both inputs are true.

c)

It produces an output of false only when both inputs are true.

d)

It produces an output of true if both inputs are false.

27.

What is a truth table?

a)

A table showing only the true outputs

b)

A table of the outputs from all possible combinations of input

c)

A table showing only the false outputs

d)

A table of the inputs from all possible combinations of output

28.

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 _____.

a)

0

b)

1

c)

2

d)

10

29.

Refer to the diagram of the AND logic gate and its truth table: Input 1: 1, Input 2: 1. What is the output?

a)

1

b)

0

c)

2

d)

-1

30.

What is a component?

a)

A component is one part of a bigger system.

b)

A component is a type of food ingredient.

c)

A component is a musical instrument.

d)

A component is a kind of weather phenomenon.

31.

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)

a)

Wheel

b)

Keyboard

c)

Engine

32.

Which of the following is a component of a computer?

a)

Wheel

b)

Keyboard

c)

Engine

33.

Which of the following is a component of a plane?

a)

Wheel

b)

Keyboard

c)

Engine

34.

Fill in the blank: A ______ controls current in an electronic circuit.

a)

Resistor

b)

Capacitor

c)

Transistor

d)

Inductor

35.

Fill in the blank: A ______ stores energy in an electronic circuit.

a)

Capacitor

b)

Resistor

c)

Inductor

d)

Transistor

36.

Fill in the blank: A ______ lets current flow one way in an electronic circuit.

a)

Diode

b)

Resistor

c)

Capacitor

d)

Transistor

37.

Fill in the blank: A ______ acts as a switch or amplifier in an electronic circuit.

a)

Transistor

b)

Resistor

c)

Capacitor

d)

Diode

38.

Fill in the blank: An ______ contains many components in one.

a)

IC (Chip)

b)

Resistor

c)

Capacitor

d)

Transistor

39.

Which of the following is NOT a component of a computer?

a)

Monitor

b)

Hard Drive / SSD

c)

CPU (processor)

d)

Motherboard

e)

RAM

40.

Fill in the blank: The ________ is responsible for processing instructions in a computer.

a)

CPU (processor)

b)

Monitor

c)

Keyboard

d)

Hard Drive

41.

Fill in the blank: The ________ stores temporary data that the computer is currently using.

a)

RAM

b)

Hard Drive

c)

CPU

d)

Monitor

42.

Fill in the blank: The ________ or SSD is used for long-term storage of files and programs.

a)

Hard Drive / SSD

b)

RAM

c)

CPU

d)

Motherboard

43.

Fill in the blank: The ________ connects all the components of a computer together.

a)

Motherboard

b)

Processor

c)

Hard Drive

d)

Power Supply

44.

Fill in the blank: The ________ supplies power to all the components of a computer.

a)

Power Supply

b)

Motherboard

c)

Hard Drive

d)

Monitor

45.

In programming, a component is a ________ that does one job.

a)

piece of code

b)

hardware part

c)

user manual

d)

computer program

46.

Which of the following is NOT an example of a programming component?

a)

A function

b)

A class

c)

A UI button

d)

A printer

e)

A React component

47.

Fill in the blank: An example of a programming component concept is ________.

a)

LoginComponent

b)

for loop

c)

variable

d)

if statement

48.

Fill in the blank: Another example of a programming component concept is ________.

a)

SearchComponent

b)

BlueFunction

c)

DataVariable

d)

LoopStatement

49.

What is a component?

a)

A part of a system

b)

A complete system

c)

A programming language

d)

An input device

50.

In which fields are components used?

a)

Electronics

b)

Computers

c)

Programming

d)

All of the above

51.

Fill in the blank: Small pieces make up ______ systems.

a)

big

b)

tiny

c)

broken

d)

simple

52.

The output of an OR gate is true if one or both inputs are true.

a)

True

b)

False

53.

For the output of an OR gate to be 1, at least one input must be _____.

a)

1

b)

0

c)

negative

d)

floating

54.

Refer to the diagram of the OR logic gate. What is the output when Input 1 = 0 and Input 2 = 0?

a)

0

b)

1

c)

2

d)

3

55.

Refer to the diagram of the OR logic gate. What is the output when Input 1 = 0 and Input 2 = 1?

a)

1

b)

0

c)

2

d)

-1

56.

Refer to the diagram of the OR logic gate. What is the output when Input 1 = 1 and Input 2 = 0?

a)

1

b)

0

c)

2

d)

-1

57.

Refer to the diagram of the OR logic gate. What is the output when Input 1 = 1 and Input 2 = 1?

a)

1

b)

0

c)

2

d)

-1

58.

Which logic gate is shown in the diagram?

a)

AND gate

b)

OR gate

c)

NOT gate

d)

NAND gate

59.

What is a NOT gate?

a)

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.

b)

A NOT gate is a device that amplifies the input signal without changing its logic state.

c)

A NOT gate is a circuit that outputs the same logic state as its input.

d)

A NOT gate is a device that stores binary data for future use.

60.

What is the output of a NOT gate if the input is 1?

a)

0

b)

1

c)

2

d)

Undefined

61.

Why are logic gates needed?

a)

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.

b)

Logic gates are needed to store large amounts of data permanently.

c)

Logic gates are needed to generate electrical power for circuits.

d)

Logic gates are needed to convert analog signals to sound waves.

62.

Which of the following statements about NOT gates is correct?

a)

A NOT gate produces the same output as its input.

b)

A NOT gate reverses the logic state of its input.

c)

A NOT gate requires two inputs.

d)

A NOT gate is used only in analog devices.

63.

A NOT gate is one of the simplest logic gates because it only reverses the input applied.

a)

True

b)

False