





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






AP Computer Science Principals Final 8 bits is enough to represent 256 different numbers. How many total bits do you need to represent 512 (twice as many) numbers Correct Answers 9 bits A bakery collects data on sales. Each sales record includes the date of the sale and some metadata about the items that were part of the sale. The data includes: the names of the items sold, the types of the items sold, the number of each item sold, and the prices of each item sold. Which of the following CANNOT be determined from the bakery's data set? Correct Answers Which customer buys the most bread. A binary message consisting of four bits was sent to you by a friend. The message was supposed to be ABAB. Unfortunately, your friend set the bit on the wire once every 2 seconds, but you read the wire once every second. Assuming that the first bit was sent and read at the same time, what message did you receive instead? Correct Answers AABB A compression scheme for long strings of bits called run-length encoding is described as follows: Rather than the 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 run of 0s must be followed by a run of 1s (even if the run is only 1-bit long) and vice versa. Thus, you can store a list of small numbers that represents the alternating runs of 0s and 1s. Example below. To uncompress the data back into its original binary state, you simply reverse the process. This technique is an
example of what type of compression? Correct Answers Lossless Compression A middle school is expanding to open a high school next year, doubling the total number of students. The school keeps a database in which each student's unique ID number is stored as an 8 bit number called studentID. Before the arrival of the new students almost every 8 bit number has already been assigned to a student. Which is the most accurate description of how the school could modify the way studentID is represented in the database to ensure each incoming student receives a unique ID? Correct Answers Adding one extra bit to the student IDs will allow the school to double the amount of unique ID codes. A 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 MPS 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 original. This technique results in a smaller audio file that sounds exactly the same to the human ear. Correct Answers Lossy Compression A school starts tracking which websites each computer in the school is visiting by monitoring the packets leaving the school. A sample of the information they have collected will be given. Correct Answers Which websites are most frequently visited before and after school hours from a school computer
bits are required to store the text of the number "150" in ASCII?' Correct Answers 24 bits ASCII is a character-encoding scheme that uses a numeric value to represent each character. For example, the uppercase letter "G" is represented by the decimal (base 10) value 71. A partial list of characters and their corresponding ASCII values are shown in the table below.ASCII characters can also be represented by hexadecimal numbers. According to ASCII character encoding, which of the following letters is represented by the hexadecimal (base 16) number 56? Correct Answers V: Because the first place value represents the decimal number being added while the second place represents the multiples of 16 and so on. Be able to recognize true statements about routers and routing on the Internet. Correct Answers A packet traveling between two computers on the Internet may be rerouted many times along the way or even lost or "dropped". Routers act independently and route packets as they see fit. Biologist often attach tracking collars to wild animals. For each animal, the following geolocation data is collected at frequent intervals. { The Time The date The location of the animal} Which of the following questions about a particular animal could NOT be answered using only the data collected from the tracking collars? Correct Answers Do the movement of animals vary according to weather? Compressed Files-Lossless Correct Answers ZIP
Compressed image- Lossless (256 color limit) Correct Answers GIF Compressed image- Lossy Correct Answers JPEG Compressed Image-Lossless Correct Answers PNG Compressed Sound-Lossy Correct Answers MP Condisder the following numbers given in Binary (BIN), Decimal (DEC), and Hexadecimal (HEX) representations: BIN: 1110= DEC: 13= HEX: F=15 Correct Answers Which of the following lists the numbers in order from least to greatest? DEC:13 (13) BIN:1110 (14) HEX:F (15) How does a computer resolve a domain name into an IP address? Correct Answers It asks the DNS server if the DNS server has that IP address How many bytes does it take...? How many bytes (or bits) are required to encode an image that is 25 pixels wide and 50 pixels tall, if you encode each pixel with 3 bytes (24 bits) of RGB data. (Don't forget to add in the metadata! -- you should assume that we are using the file format used in this lesson with metadata that had 1 byte each for width, height and bits-per-pixel.) Correct Answers 3,753 bytes (30,034 bits)
Select the answer that lists the units of bytes in ascending order (from smallest to largest) Correct Answers byte, kilobyte, megabyte, gigabyte, terabyte, petabyte, and exabyte. 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? Correct Answers Lossless compression? The FINAL word "Apple" Unit 1 translated (Ch. 1-2) into its ASCII number (decimal) equivalent is Correct Answers 065 112 112 108 101 The image below shows an encoding for a black and white pixel image. The first bytes of the data (circled in red) are used to encode the width and height of the image. What is the best term for this type of "data about the data"? Correct Answers Metadata The internet Engineering Task Force (IETF) defines the protocols and standards for how the Internet works. The members of the IETF are: Correct Answers A loosely organized group of engineers and citizens The standard QWERTY keyboard has 47 keys that can place characters on the screen. Each of these keys can also display a second character by holding the "SHIFT" key at the same time.
How many bits would you need to encode everything that could be typed on this keyboard? Correct Answers 7 bits The various protocols in use on the internet are said to operate in layers in which the protocol(s) at each layer solve one problem related to networked communication, and higher layers are built on top of, and rely on, the lower layers to do their jobs. Correct Answers HTTP relies on TCP/IP DNS relies on TCP/IP The world is currently in a transition to using IPv6, a newer version of the IP protocol that use 128-bit addresses instead of 32-bit addresses using by IPv4. What is the main problem that IPv6 created to solve? Correct Answers IPv6 increases the amount of available IP addresses while also addressing the security concerns of IPv4 like spoofing. Uncompressed Image Correct Answers BMP Uncompressed sound Correct Answers WAV Under which of the following conditions is it most beneficial to use a heuristic approach to solve a problem? Correct Answers Where finding an optimal or exact solution is impractical or impossible What is the 4-bit binary number for the decimal number Ten (10)? Correct Answers 1010 What is the best explanation for why digital data is represented in computers in binary? Correct Answers It's easier, cheaper,