Verityprep
Question Bank · Unit 3

AP® Computer Science Principles Data Analysis Practice Questions

Work through AP Computer Science Principles practice questions on Data Analysis, then check each answer against a worked solution.

Free · no sign-up Open questions need no account. Sign up or log in to open the rest.

Questions 1–10 of 43
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10

Question 1

Multiple choice Cleaning Data

In a certain computer program, two positive integers are added together, resulting in an overflow error. Which of the following best explains why the error occurs?

Pick an answer, then check it. The solution opens in a window.

Question 2

Multiple choice Cleaning Data

A color in a computing application is represented by an RGB triplet that describes the amount of red, green, and blue, respectively, used to create the desired color. A selection of colors and their corresponding RGB triplets are shown in the following table. Each value is represented in decimal (base 10).

Color NameRGB Triplet
indigo(75, 0, 130)
ivory(255, 255, 240)
light pink(255, 182, 193)
light yellow(255, 255, 224)
magenta(255, 0, 255)
neutral gray(127, 127, 112)
pale yellow(255, 255, 160)
vivid yellow(255, 255, 14)

According to information in the table, what color is represented by the binary RGB triplet (11111111, 11111111, 11110000) ?

Pick an answer, then check it. The solution opens in a window.

Question 3

Multiple choice Cleaning Data

A color in a computing application is represented by an RGB triplet that describes the amount of red, green, and blue, respectively, used to create the desired color. A selection of colors and their corresponding RGB triplets are shown in the following table. Each value is represented in decimal (base 10).

Color NameRGB Triplet
indigo(75, 0, 130)
ivory(255, 255, 240)
light pink(255, 182, 193)
light yellow(255, 255, 224)
magenta(255, 0, 255)
neutral gray(127, 127, 112)
pale yellow(255, 255, 160)
vivid yellow(255, 255, 14)

What is the binary RGB triplet for the color indigo?

Pick an answer, then check it. The solution opens in a window.

Question 4

Multiple choice Cleaning Data
Which of the following can be represented by a sequence of bits? I. An…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 5

Multiple choice Collecting Data
A file storage application allows users to save their files on cloud servers. A group of researchers gathered user data for the first eight years of the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 6

Multiple choice Collecting Data
A file storage application allows users to save their files on cloud servers. A group of researchers gathered user data for the first eight years of the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 7

Multiple choice Cleaning Data
Which of the following is an advantage to representing…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 8

Multiple choice Data Insights
A list of binary values (0 or 1) is used to represent a black-and-white image. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 9

Multiple choice Data Insights

A person wants to transmit an audio file from a device to a second device. Which of the following scenarios best demonstrates the use of lossless compression of the original file?

Pick an answer, then check it. The solution opens in a window.

Question 10

Multiple choice Collecting Data

A student's overall course grade in a certain class is based on the student's scores on individual assignments. The course grade is calculated by dropping the student's lowest individual assignment score and averaging the remaining scores.

For example, if a particular student has individual assignment scores of 85, 75, 90, and 95, the lowest score (75) is dropped. The calculated course grade is (85 + 90 + 95) / 3 = 90.

An administrator at the school has data about hundreds of students in a particular course. While the administrator does not know the values of each student's individual assignment scores, the administrator does have the following information for each student.

  • The student name
  • A unique student ID number
  • The number of assignments for the course
  • The average assignment score before the lowest score was dropped
  • The course grade after the lowest score was dropped

Which of the following CANNOT be determined from this data alone?

Pick an answer, then check it. The solution opens in a window.
Question 1 of 43
Page 1 of 5