wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

2.4 Computational Logic

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Both inputs must be true for the output to be true

a)

AND gate

b)

OR gate

c)

NOT gate

d)

NOR gate

e)

NAND gate

2.

Either inputs or both can be true for output to be true

a)

OR gate

b)

AND gate

c)

NOT gate

d)

NOR gate

e)

NAND gate

3.

The output is the opposite of the input.

a)

NOT gate

b)

OR gate

c)

AND gate

d)

NOR gate

e)

NAND gate

4.

The symbol for NOT in a Boolean expression.

a)

¬

b)

^

c)

v

5.

The symbol for AND in a Boolean expression.

a)

^

b)

v

c)

¬

6.

The symbol for OR in a Boolean expression.

a)

v

b)

^

c)

¬

7.
A AND B
a)
A ^ B
b)
A v B
c)
¬(A v B)
d)
¬(A ^ B)
8.
A OR B
a)
A v B
b)
A ^ B
c)
¬(A ^ B)
d)
¬(A v B)
9.
NOT C
a)
¬C
b)
vC
c)
^C
10.

What is this diagram called?

a)

Truth Table

b)

Gate Table

c)

Output Table

d)

Input Table

11.
Symbol used for DIV
a)
//
b)
%
c)
^
d)
*
e)
$
12.
Symbol used for MOD
a)
%
b)
//
c)
^
d)
*
e)
$
13.
Symbol used for 'to the power of' (Exponentiation)
a)
^
b)
%
c)
//
d)
*
e)
$
14.
Divides a number by another number and returns just the whole number
a)
DIV
b)
MOD
c)
EXP
d)
INT
e)
REM
15.
Divides a number by another number and returns just the remainder
a)
MOD
b)
DIV
c)
EXP
d)
INT
e)
REM
16.

Another way to represent ON or TRUE

a)

1

b)

0

17.

Another way to represent OFF or FALSE

a)

0

b)

1

18.
How many rows a truth table will need if there are 2 inputs
a)
4
b)
2
c)
6
d)
8
e)
16
19.
How many rows a truth table will need if there are 3 inputs
a)
8
b)
4
c)
2
d)
6
e)
16
20.
A data type that represents true or false.
a)
Boolean
b)
Character
c)
Integer
d)
Float
e)
String