222k views
1 vote
A video-streaming Web site uses 32-bit integers to count the number of times each video has been played. In anticipation of some videos being played more times than can be represented with 32 bits, the Web site is planning to change to 64-bit integers for the counter. Which of the following best describes the result of using 64-bit integers instead of 32-bit integers?a. 2 times as many values can be represented.b. 32 times as many values can be representedc. 2^32 times as many values can be represented.d. 32^2 times as many values can be represented.

2 Answers

4 votes

Answer:

C.

Step-by-step explanation:

User Zedfoxus
by
5.7k points
3 votes

Answer:

c. 2^32 times as many values can be represented.

Step-by-step explanation:

For 32 bit integers, there are
2^(32) possible values.

For 64 bit integers, there are
2^(64) possible values, or
(2^(64))/(2^(32)) = 2^(32) more values being represented.

So the correct answer is:

c. 2^32 times as many values can be represented.

User Alwinius
by
5.9k points