Save
Computer Science
Representing numbers
Save
Share
Learn
Content
Leaderboard
Learn
Created by
Stan Nicholls
Visit profile
Cards (48)
Transistors
Element of a
CPU
that
acts
like a
switch
View source
Binary system
Has
2
states (
ON
or
OFF
)
View source
Bit-depth
of operating systems always
doubles
over time (e.g. 16 bit, 32 bit, 64 bit)
View source
Bit
Single binary digit
View source
With
four
binary digits,
16
different values can be represented
View source
2^2 =
2x2
View source
2^3
= 2x2x2
View source
Humans have evolved to use a
base-10
counting system
View source
The image created has a
bit-depth
of
1
bit (
black
and
white
)
View source
Any number to the power of 0 is equal to
1
View source
Place values for decimal system
100,000
10,000
1,000
100
10
1
View source
Place values for binary system
32
16
8
4
2
1
View source
Byte
8
bits
View source
In 8-bit binary, the maximum number of values is 256 (0 through
255
)
View source
Place values for 8-bit binary
128
64
32
16
8
4
2
1
View source
The decimal value represented in the given 8-bit binary is
115
View source
Converting
8-bit binary to decimal
11001101 =
205
01000100 =
68
10101010 =
170
11110000 =
240
10111100 =
188
View source
You can't count up to
256
in 8-bit binary because it would require
9
bits
View source
Method 1 for converting decimal to binary
1. Start at the
left
and ask if the number is equal to or
greater
than the place value
2. If less, place a
0
3. If greater, place a
1
and
subtract
the place value to find the remainder
View source
Method
2 for converting decimal to binary
Divide
the number by 2 repeatedly, recording the
remainders
View source
Number of bits in units
Nibble:
4
Byte:
8
Kilobyte:
8,000
Megabyte:
8,000,000
Gigabyte: 8,000,000,000
Terabyte:
8,000,000,000,000
View source
An image file of 213,624,133 bits is
26.7
MB
View source
Kibibyte
Equal to
1024
bytes, used in binary systems instead of kilobyte (
1000
bytes)
View source
There are
8,000,000,000
bits in a gigabyte
View source
2000 MB is equal to
2
GB
View source
1 terabyte is equal to
1,000,000,000 kilobytes
View source
Converting binary to decimal
11010101 =
213
01101110
= 110
10101010 =
170
View source
Converting decimal to binary
233 =
11101001
153 =
10011001
View source
If there are
8
bits in a byte, one megabyte is equal to
8
megabits
View source
Bits are binary digits with values of
0
or
1
View source
Bits can be combined into
groups
like
letters
into
words
View source
All
computer
commands and
data
consist of groups of
bits
View source
In any number system, the value of a
digit
is determined by its
place value
View source
Binary is a base
2
number system
View source
Binary numbers can be converted to
decimal
and
vice versa
View source
Binary additions
1001111 +
1011101
=
10101100
0111111 + 1011101 = 10001100 (
overflow
)
View source
How to multiply in binary
Shift to the left by the power
View source
Binary left shifts
00101101 left shift by 3 =
01010101000
10001101 left shift by 4 =
10011010000
10110111 left shift by 2 = 11011100
View source
How to divide in binary
Look at first
two
digits of
dividend
, compare to
divisor
, add
1
to
quotient
,
subtract divisor
,
repeat
until
remainder
is
0
View source
Binary right shifts
00101101
right shift by 3 = 00001010
10001101 right shift by 4 = 00001000
10110111
right shift by 2 =
00101101
View source
See all 48 cards