wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Logic Gates Quiz

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is Boolean logic?

a)

A type of programming language

b)

A system of rules for making calculations

c)

A way to compare statements and return true or false

d)

A method of creating complex databases

2.

Which logic gate outputs 1 only when both inputs are 1?

a)

OR gate

b)

AND gate

c)

NOT gate

d)

XOR gate

3.

How many inputs does an AND gate have?

a)

1

b)

2

c)

3

d)

Any number

4.

What will be the output of an AND gate if one input is 1 and the other is 0?

a)

1

b)

0

c)

2

d)

It depends

5.

What is the function of an OR gate?

a)

It outputs 1 only when both inputs are 1

b)

It outputs 1 if at least one input is 1

c)

It inverts the input

d)

It adds the input values

6.

If both inputs to an OR gate are 0, what will be the output?

a)

1

b)

0

c)

2

d)

It cannot be determined

7.

How does a NOT gate function?

a)

It adds the inputs

b)

It outputs the same value as the input

c)

It inverts the input

d)

It outputs 1 only when both inputs are 1

8.

How many inputs does a NOT gate have?

a)

1

b)

2

c)

3

d)

Any number

9.

If the input to a NOT gate is 1, what is the output?

a)

1

b)

0

c)

2

d)

It depends

10.

Which logic gate can be used to check if both conditions are true?

a)

OR

b)

AND

c)

NOT

d)

XOR

11.

What is an example of an AND gate in real life?

a)

Deciding to turn on an alarm system

b)

Checking if either of your friends is online to play a game

c)

Deciding if you can have a cheese sandwich based on having bread and cheese

d)

Turning off a switch when the light is already on

12.

What is an example of an OR gate in real life?

a)

Checking if a system alarm should turn on

b)

Checking if you can play online if at least one of your friends is available

c)

Deciding if you can eat a sandwich when you have all ingredients

d)

Choosing between tea and coffee

13.

What is an example of a NOT gate in real life?

a)

Turning on an alarm system when no one is home

b)

Checking if both inputs are 1

c)

Choosing between two options

d)

Adding two numbers

14.

If the inputs to an OR gate are both 1, what will be the output?

a)

0

b)

1

c)

2

d)

It depends

15.

Which logic gate will always output the opposite of the input?

a)

AND

b)

OR

c)

NOT

d)

XOR