What are a bit and a byte?
A bit is one binary digit, either 0 or 1. A byte is a group of 8 bits.
Study 1 Binary Representation and Data with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.
What are a bit and a byte?
A bit is one binary digit, either 0 or 1. A byte is a group of 8 bits.
How do binary place values work?
Binary is base 2, so each position represents a power of 2. For example, 1011012=4510.
How does one hexadecimal digit relate to binary?
Each hexadecimal digit corresponds to exactly 4 bits, making hexadecimal a compact way to write binary.
Convert 110110102 to hexadecimal.
1101 is D16, and 1010 is A16. Therefore, 110110102=DA16.
What is the range of an unsigned n-bit integer?
An unsigned n-bit integer ranges from 0 to 2n−1, inclusive.
What values can an 8-bit unsigned integer represent?
An 8-bit unsigned integer ranges from 0 through 255.
What is the range of an n-bit two’s-complement integer?
An n-bit two’s-complement integer ranges from −2n−1 to 2n−1−1, inclusive.
How can you form a two’s-complement negative value?
Invert the bits of the positive value, then add 1. For example, 000001012 becomes 111110112.
What value does 111110112 represent as an 8-bit two’s-complement integer?
In 8-bit two’s complement, 111110112 equals −5: its leftmost bit contributes −128, and the other bits sum to 123.
How can 111111112 have two different integer values?
The same pattern has different values by convention: 111111112 is 255 unsigned and −1 as an 8-bit two’s-complement integer.
Do bit patterns have fixed meanings on their own?
Bits have no inherent meaning. A format or program determines whether a pattern represents a number, text, or another kind of data.
What ASCII value represents uppercase A?
ASCII assigns numeric values to a limited set of characters. Uppercase A has value 65, or 0x41.