Computer Science Reference Sheet Worksheet Generator

Powers of two, character code table, Boolean laws and pseudocode syntax key. No AI, no credits.

Grades 6 – 12No account needed

A printable reference sheet with powers of two, a character code table generated by code, Boolean laws and the TeachSpark pseudocode syntax key. No AI, so it never uses a generation credit.

What students practice

  • Computer Science
  • Reference

Live sample sheet

No account needed to view and print.

Computer Science Reference Sheet

Powers of 2

2^0
1
0x1
2^1
2
0x2
2^2
4
0x4
2^3
8
0x8
2^4
16
0x10
2^5
32
0x20
2^6
64
0x40
2^7
128
0x80
2^8
256
0x100
2^9
512
0x200
2^10
1,024
0x400
2^11
2,048
0x800
2^12
4,096
0x1000
2^13
8,192
0x2000
2^14
16,384
0x4000
2^15
32,768
0x8000
2^16
65,536
0x10000
2^17
131,072
0x20000
2^18
262,144
0x40000
2^19
524,288
0x80000
2^20
1,048,576
0x100000

ASCII Character Codes (printable range)

␣
32
!
33
"
34
#
35
$
36
%
37
&
38
'
39
(
40
)
41
*
42
+
43
,
44
-
45
.
46
/
47
0
48
1
49
2
50
3
51
4
52
5
53
6
54
7
55
8
56
9
57
:
58
;
59
<
60
=
61
>
62
?
63
@
64
A
65
B
66
C
67
D
68
E
69
F
70
G
71
H
72
I
73
J
74
K
75
L
76
M
77
N
78
O
79
P
80
Q
81
R
82
S
83
T
84
U
85
V
86
W
87
X
88
Y
89
Z
90
[
91
\
92
]
93
^
94
_
95
`
96
a
97
b
98
c
99
d
100
e
101
f
102
g
103
h
104
i
105
j
106
k
107
l
108
m
109
n
110
o
111
p
112
q
113
r
114
s
115
t
116
u
117
v
118
w
119
x
120
y
121
z
122
{
123
|
124
}
125
~
126

Boolean Algebra Laws

Identity: A AND 1 = AA · 1 = A
Identity: A OR 0 = AA + 0 = A
Annulment: A AND 0 = 0A · 0 = 0
Annulment: A OR 1 = 1A + 1 = 1
Idempotent: A AND A = AA · A = A
Idempotent: A OR A = AA + A = A
Complement: A AND NOT A = 0A · A' = 0
Complement: A OR NOT A = 1A + A' = 1
Double Negation: NOT (NOT A) = AA'' = A
Commutative: A AND B = B AND AA · B = B · A
Commutative: A OR B = B OR AA + B = B + A
Associative: (A AND B) AND C = A AND (B AND C)(A·B)·C = A·(B·C)
Associative: (A OR B) OR C = A OR (B OR C)(A+B)+C = A+(B+C)
Distributive: A AND (B OR C) = (A AND B) OR (A AND C)A·(B+C) = A·B + A·C
Absorption: A OR (A AND B) = AA + A·B = A
Absorption: A AND (A OR B) = AA·(A+B) = A
De Morgan's: NOT (A AND B) = NOT A OR NOT B(A·B)' = A' + B'
De Morgan's: NOT (A OR B) = NOT A AND NOT B(A+B)' = A' · B'

Logic Gate Truth Tables

AND: A AND B
ABOut
000
010
100
111
OR: A OR B
ABOut
000
011
101
111
NOT: NOT A
AOut
01
10
NAND: A NAND B
ABOut
001
011
101
110
NOR: A NOR B
ABOut
001
010
100
110
XOR: A XOR B
ABOut
000
011
101
110

TeachSpark Pseudocode Syntax

SET var = valueAssign a value to a variable.
IF condition THEN ... END IFExecute the block only if the condition is true.
FOR i = start TO end ... NEXT iRepeat with i from start to end inclusive.
WHILE condition ... END WHILERepeat while the condition is true.
OUTPUT valuePrint a value.
+ - * / MODArithmetic operators (MOD = modulo remainder).
> < = >= <= <>Comparison operators (<> = not equal).
Reference data computed by code from JavaScript built-in functions. No AI, no credits. Made with TeachSpark.

No account needed.

Frequently asked questions

Do students need an account to use the Computer Science Reference Sheet?

No. Students never need an account. They open a shared link or join with a code.

Can I print the Computer Science Reference Sheet without signing up?

Yes. This tool computes answers by code, so you can generate, preview and print worksheet without an account. A free account adds saving and student links.

How are the answers computed?

Every answer is computed by code and verified by a second independent method. No AI is used.

What grades is the Computer Science Reference Sheet for?

This tool fits Grades 6 – 12.

✓ No account needed to generate, preview and print. A free account adds saving and student links.

Sign in

What can I do?

Without an account

  • Generate sheets
  • Preview pages
  • Print or save as PDF
  • Make versions A, B, C
  • Make differentiated levels
  • Print answer keys
  • See the trust panel and Show the calculation
  • Try the on-screen practice
  • Report a problem

With a free account

  • Save to My library
  • Browse My library
  • Share revocable student links
  • Make QR codes
  • Turn sharing on or off

Students never need an account — they open a shared link or join with a code.

Sample output, computed by code — change the options and Generate to make your own

Computer Science Reference Sheet

Powers of 2

2^0
1
0x1
2^1
2
0x2
2^2
4
0x4
2^3
8
0x8
2^4
16
0x10
2^5
32
0x20
2^6
64
0x40
2^7
128
0x80
2^8
256
0x100
2^9
512
0x200
2^10
1,024
0x400
2^11
2,048
0x800
2^12
4,096
0x1000
2^13
8,192
0x2000
2^14
16,384
0x4000
2^15
32,768
0x8000
2^16
65,536
0x10000
2^17
131,072
0x20000
2^18
262,144
0x40000
2^19
524,288
0x80000
2^20
1,048,576
0x100000

ASCII Character Codes (printable range)

␣
32
!
33
"
34
#
35
$
36
%
37
&
38
'
39
(
40
)
41
*
42
+
43
,
44
-
45
.
46
/
47
0
48
1
49
2
50
3
51
4
52
5
53
6
54
7
55
8
56
9
57
:
58
;
59
<
60
=
61
>
62
?
63
@
64
A
65
B
66
C
67
D
68
E
69
F
70
G
71
H
72
I
73
J
74
K
75
L
76
M
77
N
78
O
79
P
80
Q
81
R
82
S
83
T
84
U
85
V
86
W
87
X
88
Y
89
Z
90
[
91
\
92
]
93
^
94
_
95
`
96
a
97
b
98
c
99
d
100
e
101
f
102
g
103
h
104
i
105
j
106
k
107
l
108
m
109
n
110
o
111
p
112
q
113
r
114
s
115
t
116
u
117
v
118
w
119
x
120
y
121
z
122
{
123
|
124
}
125
~
126

Boolean Algebra Laws

Identity: A AND 1 = AA · 1 = A
Identity: A OR 0 = AA + 0 = A
Annulment: A AND 0 = 0A · 0 = 0
Annulment: A OR 1 = 1A + 1 = 1
Idempotent: A AND A = AA · A = A
Idempotent: A OR A = AA + A = A
Complement: A AND NOT A = 0A · A' = 0
Complement: A OR NOT A = 1A + A' = 1
Double Negation: NOT (NOT A) = AA'' = A
Commutative: A AND B = B AND AA · B = B · A
Commutative: A OR B = B OR AA + B = B + A
Associative: (A AND B) AND C = A AND (B AND C)(A·B)·C = A·(B·C)
Associative: (A OR B) OR C = A OR (B OR C)(A+B)+C = A+(B+C)
Distributive: A AND (B OR C) = (A AND B) OR (A AND C)A·(B+C) = A·B + A·C
Absorption: A OR (A AND B) = AA + A·B = A
Absorption: A AND (A OR B) = AA·(A+B) = A
De Morgan's: NOT (A AND B) = NOT A OR NOT B(A·B)' = A' + B'
De Morgan's: NOT (A OR B) = NOT A AND NOT B(A+B)' = A' · B'

Logic Gate Truth Tables

AND: A AND B
ABOut
000
010
100
111
OR: A OR B
ABOut
000
011
101
111
NOT: NOT A
AOut
01
10
NAND: A NAND B
ABOut
001
011
101
110
NOR: A NOR B
ABOut
001
010
100
110
XOR: A XOR B
ABOut
000
011
101
110

TeachSpark Pseudocode Syntax

SET var = valueAssign a value to a variable.
IF condition THEN ... END IFExecute the block only if the condition is true.
FOR i = start TO end ... NEXT iRepeat with i from start to end inclusive.
WHILE condition ... END WHILERepeat while the condition is true.
OUTPUT valuePrint a value.
+ - * / MODArithmetic operators (MOD = modulo remainder).
> < = >= <= <>Comparison operators (<> = not equal).
Reference data computed by code from JavaScript built-in functions. No AI, no credits. Made with TeachSpark.

Computer Science Reference Sheet

Powers of 2, ASCII character codes, Boolean algebra laws, logic gate truth tables, and pseudocode syntax. No AI, no credits.

Options

This reference sheet is ready to print. It includes powers of 2, ASCII codes, Boolean laws, gate truth tables, and pseudocode syntax.

Reference data computed by code

✓No account needed

Needs a free account

My library · free account

Teach this topic another way

Computer Science Reference Sheet

Powers of 2

2^0
1
0x1
2^1
2
0x2
2^2
4
0x4
2^3
8
0x8
2^4
16
0x10
2^5
32
0x20
2^6
64
0x40
2^7
128
0x80
2^8
256
0x100
2^9
512
0x200
2^10
1,024
0x400
2^11
2,048
0x800
2^12
4,096
0x1000
2^13
8,192
0x2000
2^14
16,384
0x4000
2^15
32,768
0x8000
2^16
65,536
0x10000
2^17
131,072
0x20000
2^18
262,144
0x40000
2^19
524,288
0x80000
2^20
1,048,576
0x100000

ASCII Character Codes (printable range)

␣
32
!
33
"
34
#
35
$
36
%
37
&
38
'
39
(
40
)
41
*
42
+
43
,
44
-
45
.
46
/
47
0
48
1
49
2
50
3
51
4
52
5
53
6
54
7
55
8
56
9
57
:
58
;
59
<
60
=
61
>
62
?
63
@
64
A
65
B
66
C
67
D
68
E
69
F
70
G
71
H
72
I
73
J
74
K
75
L
76
M
77
N
78
O
79
P
80
Q
81
R
82
S
83
T
84
U
85
V
86
W
87
X
88
Y
89
Z
90
[
91
\
92
]
93
^
94
_
95
`
96
a
97
b
98
c
99
d
100
e
101
f
102
g
103
h
104
i
105
j
106
k
107
l
108
m
109
n
110
o
111
p
112
q
113
r
114
s
115
t
116
u
117
v
118
w
119
x
120
y
121
z
122
{
123
|
124
}
125
~
126

Boolean Algebra Laws

Identity: A AND 1 = AA · 1 = A
Identity: A OR 0 = AA + 0 = A
Annulment: A AND 0 = 0A · 0 = 0
Annulment: A OR 1 = 1A + 1 = 1
Idempotent: A AND A = AA · A = A
Idempotent: A OR A = AA + A = A
Complement: A AND NOT A = 0A · A' = 0
Complement: A OR NOT A = 1A + A' = 1
Double Negation: NOT (NOT A) = AA'' = A
Commutative: A AND B = B AND AA · B = B · A
Commutative: A OR B = B OR AA + B = B + A
Associative: (A AND B) AND C = A AND (B AND C)(A·B)·C = A·(B·C)
Associative: (A OR B) OR C = A OR (B OR C)(A+B)+C = A+(B+C)
Distributive: A AND (B OR C) = (A AND B) OR (A AND C)A·(B+C) = A·B + A·C
Absorption: A OR (A AND B) = AA + A·B = A
Absorption: A AND (A OR B) = AA·(A+B) = A
De Morgan's: NOT (A AND B) = NOT A OR NOT B(A·B)' = A' + B'
De Morgan's: NOT (A OR B) = NOT A AND NOT B(A+B)' = A' · B'

Logic Gate Truth Tables

AND: A AND B
ABOut
000
010
100
111
OR: A OR B
ABOut
000
011
101
111
NOT: NOT A
AOut
01
10
NAND: A NAND B
ABOut
001
011
101
110
NOR: A NOR B
ABOut
001
010
100
110
XOR: A XOR B
ABOut
000
011
101
110

TeachSpark Pseudocode Syntax

SET var = valueAssign a value to a variable.
IF condition THEN ... END IFExecute the block only if the condition is true.
FOR i = start TO end ... NEXT iRepeat with i from start to end inclusive.
WHILE condition ... END WHILERepeat while the condition is true.
OUTPUT valuePrint a value.
+ - * / MODArithmetic operators (MOD = modulo remainder).
> < = >= <= <>Comparison operators (<> = not equal).
Reference data computed by code from JavaScript built-in functions. No AI, no credits. Made with TeachSpark.

TeachSpark uses cookies and local storage to improve your experience and process payments securely. Learn More