Bits and Bytes Flashcards
What is a byte?
It is a group of 8 bits that can be individually addressable.
What is a bit?
Holds 0 or 1
What is a word?
● It is a group of 4 bytes (32 bit architecture) or
● It is a group of 8 bytes (64 bit architectures)
● The address of a word is aligned to either 4 or 8 bytes respectively (multiple of 4 or 8 bytes).
What is memory mapped I/O?
When device registers are mapped to
memory.
A bit can represent the state of the device.
What are 3 examples of Character Encodings broken question
Who created Extended Binary Coded Decimal Interchange Format?
● It was created by IBM in the 1960s
● No longer in use except in some IBM
mainframes
What does ASCII stand for?
American Standard Code for Information
Exchange
How many bits/values does ASCII use?
It uses 7 bits or 128 values
What does ascii encode?
The English alphabet
How many bits does Unicode use?
16 bits (2 bytes)
What does unicode encode?
Languages from all around the world
What languages use unicode internally for strings?
Java and C#
How does Pascal represent strings?
The first byte is the length of the string
How do you perform math in binary? (Addition, Subtraction, Multiplication, Division)
Same as decimal, just with binary digits
What ways are Negative Binary numbers represented?
● Sign and Magnitude
● 1-complement
● 2-complement