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 need16 bits.
(c) You need 24 bits to represent a pixel's color.
(d) You need 10 bits.

Computer Science & Information Technology

You might also like to view...

You might say that a path that can never be traveled in a program is a(n) ____________________ path.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The ________: Show Markup view is the default view because it contains comments or other markup in the final revised document

Fill in the blank(s) with correct word

Computer Science & Information Technology

________ centers are central repositories for collecting intelligence at the state and local levels with the goal of preventing terrorist attacks

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

When a vertex is deleted, ____.

A. the graph becomes disjoint B. its outdegree is increased C. all connecting edges are transformed into loops D. all connecting edges are also removed

Computer Science & Information Technology