AP Computer Science Principles Unit 2

AP Computer Science Principles Unit 2

Assessment

Quiz

Computers

10th - 12th Grade

Hard

Created by

Cecilia Milla

Used 529+ times

FREE Resource

Student preview

quiz-placeholder

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the best explanation for why digital data is represented in computers in binary?

The binary number system is the only system flexible enough to allow for representing data other than numbers.

It's easier, cheaper, and more reliable to build machines and devices that only have to distinguish between binary states.

It typically takes fewer digits to represent a number in binary when compared to other number systems (for example, the decimal number system)

It's impossible to build a computing machine that uses anything but binary to represent numbers

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is true about the way digital data is transmitted on the Internet?

Bit-rate (bandwidth) is the time elapsed between the transmission and receipt of a piece of digital data.

Latency is the amount of data (measured in bits) that can be sent in a fixed amount of time.

Digital data can only be transmitted between two devices when they are physically connected to one another (for example by a copper wire)

Two devices must communicate using the same bit-rate to successfully send and receive digital data.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Two students have developed a protocol in which they send 4-bit messages to each other. They decide to modify their protocol to start sending 8-bit messages instead. How many more values can be represented in an 8-bit message than a 4-bit message?

21 = 2 times as many values

22= 4 times as many values

23 = 8 times as many values

24 = 16 times as many values

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Under which of the following conditions is it most beneficial to use a heuristic approach to solve a problem?

When the problem can be solved in a reasonable time and an approximate solution is acceptable

When the problem can be solved in a reasonable time and an exact solution is needed

When the problem cannot be solved in a reasonable time and an approximate solution is acceptable

When the problem cannot be solved in a reasonable time and an exact solution is needed

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The colors of the pixels in a digital image are often represented by red, green, and blue values between 0 and 255 (an RGB triplet). A photographer is manipulating a digital image to lighten it because all of the RGB values in the image are less than 100, making it very dark. He does this by adding 20 to the R, G, and B values of each pixel, then overwriting the original image. What type of transformation is the photographer using on the digital image?

Lossless transformation

Lossy transformation

Multiband transformation

Chrome Sampling transformation

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is a true statement about data compression?

Data compression is only useful for files being transmitted over the Internet.

Regardless of the compression technique used, once a data file is compressed, it cannot be restored to its original state.

Sending a compressed version of a file ensures that the contents of the file cannot be intercepted by an unauthorized user.

There are trade-offs involved in choosing a compression technique for storing and transmitting data.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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?

2 times as many values can be represented.

32 times as many values can be represented.

2^32 times as many values can be represented.

32^2 times as many values can be represented.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?