Midterms Flashcards
what monoalphabetic cipher do computers use?
ASCII
American Standard Code for Info Interchange
in ASCII, how many bytes is in 1 character?
1 byte
how many bits in 1 byte?
8 bits of 1’s or 0’s
how many diff things can 1 byte represent?
max byte is 1111 1111 = 255 + “zero” = 256 possibilities (2^8)
is ASCII enough?
for English, yes but for Chinese (>10,000 characters), Syrillic, Japanese, Korean, etc. not enough
how to create more possibilities for each character?
add more bytes
how many possibilites does 2 bytes have?
2 bytes = 16 bits
2^16 = 65,536 possibilities (1111 1111 1111 1111 + “zero”)
what code do modern documents use?
Unicode
how many bytes for each character does Unicode have?
4 bytes = 32 bits
2^32 = around 4 billion possibilities (theory)
2^31 (reality)
bit map
black & white representation of something using bits as pixels
megabyte
1 million bytes
how can a large pic be more than 1 million bytes?
color, brightness, hue, etc.
how do u add color into a picture?
1 pixel = 3 bytes and each byte represents a primary color (red, green, blue)
in each byte, there are 256 possibilities of red, green, & blue which u can mix to create a wide array of colors
how come the primary colors in comp’s r diff than normal primary colors?
comp’s use light instead of paint
megapixel
1 million pixels
pixel
3 bytes
how many megabytes r in 1 megapixel?
3 million megabytes
what r the dimensions of a 1 MP square pic? a 2 MP pic? a 4 MP pic? 10 MP? 11 MP?
1,000 x 1,000, 1400x1400, 2000x2000, 3000x3000, 3300x3300
square root of how many pixels thr r in the pic
diminishing returns
the more MP’s we have, the less they “count” as
boolean logic
system for computers to make decisions
used in microchip design
gate
a single, physical design-making unit represented by diagrams/pic
OR gate
A + B
true when @ least one is true

AND gate
AB; true when both r true

NOT gate
reverses
’









