For each of the below, see if you can figure out the representation in terms of bits and bytes.
(a) Internet addresses are four numbers, each between 0 and 255. How many bits are in an Internet address?
(b) In the programming language Basic, lines can be numbered, each one between 0 and 65535. How many bits are needed to represent a line number?
(c) Each pixel’s color has three components: Red, green, and blue, each of which can be between 0 and 255. How many bits are needed to represent a pixel’s color?
(d) A string in some languages can only be up to 1024 characters. How many bits are needed to represent the length of a string?
(a) There are 32 bits in an Internet address.
(b) You need 16 bits.
(c) You need 24 bits to represent a pixel’s color.
(d) You need 10 bits.
You might also like to view...
In a calculated control, a combination of field names, properties, constants, or operators is called a(n) ________
Fill in the blank(s) with correct word
When adjusting curves, is the color saturation affected?
What will be an ideal response?