GoConqr has a new look! Let us know what you think.

Quiz

AP Exploring Computer Science Final Study Guide

Miracle Bugs 28 questions

Take the quiz

Questions in this quiz (28)

  1. 1Under which of the following conditions is it most beneficial to use a heuristic approach to solve a problem?
    1. AWhen the problem can be solved in a reasonable time and an approximate solution is acceptable
    2. BWhen the problem can be solved in a reasonable time and an exact solution is needed.
    3. CWhen the problem cannot be solved in a reasonable time and an approximate solution is acceptable
    4. DWhen the problem cannot be solved in a reasonable time and an exact solution is needed.
  2. 2The colors of the pixels in a digital image are often represented by red, green, and blue values between 0 and 255 ( a RGB triplet). A photographer is manipulating a digital image to lighten it because all of the RGB values are less than 100, making it very dark. He does this by adding 20 to the R, G, and B values of each pixel, the overwriting the original image. What type of transformation is the photographer using on the digital image?
    1. ALossless transformation
    2. BLossy transformation
    3. CMultiband Transformation
    4. DChrome Sampling Transformation
  3. 3Which of the following is a true statement about data compression?
    1. AData compression is only useful for files being transmitted over the internet.
    2. BRegardless of the compression technique used, once a data file is compressed, it cannot be restored to its original state.
    3. CSending a compressed version of a file ensures that the contents of the file cannot be intercepted by an unauthorized user.
    4. DThere are trade-offs involved in choosing a compression technique for storing and transmitting data.
  4. 4A video streaming website 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 website 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?
    1. A2 times as many values can be represented.
    2. B32 times as many values can be represented.
    3. C2^32 times as many values can be represented.
    4. D32^2 times as many values can be represented.
  5. 5Select the answer that lists the units of bytes in ascending order(from smallest to largest).
    1. Agigabyte, megabyte, terabyte
    2. Bmegabyte, terabyte, kilobyte
    3. Cgigabyte, terabyte, megabyte
    4. Dkilobyte, gigabyte, terabyte
  6. 6An artist makes an RGB raster image in which each pixel color is encoded with 12-bits ---4 bits for red, green, and blue.
    Which of the following correctly shows the hexadecimal value for Red as a 12-bit representation?
    1. AF00
    2. B00F
    3. CFF00
    4. DFF0000
  7. 7A compression scheme for long strings of bits called run-length encoding is described as follows:
    Rather than record each 0 and 1 individually, instead record "runs" of bits by storing the number of consecutive 1s and 0s that appear.
    Since it's binary, any runs of 0s must be followed by a run of 1s (even if the run is only 1-bit long) and vise versa. Thus, you can store a list of small numbers that represents the alternating runs of 0s and 1s. Here is an example:
    Uncompressed bits: 000000000000000111111111101111111100000000001100000000000001111111
    Runs of bits: 15 10 1 8 10 2 13 7
    Run length encoding: [15, 10, 1, 8, 10, 2, 13, 7]
    To decompress the data back into its original binary state, you simply reverse the process. This technique is an example of what type of compression?
    1. ALossy compression
    2. BLossless compression
    3. CFast Fourier Transform compression
    4. DTailored Compression
  8. 8A raw digital sound file samples a sound wave at some interval and measures the height of the wave at each point. Thus, raw sound is recorded as a list of numbers. In very broad terms the MP3 audio compression algorithm identifies frequencies and volume levels - low and high - that are outside the range of human hearing and removes the data representing these frequencies from the original. This technique results in a smaller audio file that sounds exactly the same to the human ear.
    This technique is an example of what type of compression?
    1. ALossy compression
    2. BLossless compression
    3. CFast Fourier Transform compression
    4. DTailored compression
  9. 9Approximately how much bigger (how many more bytes) is a megabyte than a kilobyte?
    1. A1,000 times bigger
    2. B100,000 times bigger
    3. C1,000,000 times bigger
    4. D1,000,000,000 times bigger
  10. 10Which of the following is TRUE about while loops in JavaScript?
    1. AWhile loops terminate after a fixed number of loops that is pre-determined.
    2. BWhile loops terminate after a fixed number of loops that is determined after the loop executes once.
    3. CWhile loops run as long as a given boolean condition is true.
    4. DWhile loops run as long as a given boolean condition is false.
    5. EWhile loops are known as "forever loops" and never stop until the program is halted by the user.

Information

Description
Study Guide for AP ECS Final.
Language
English
Views
111
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?