Docsity

AP COMPUTER SCIENCE PRINCIPALS FINAL, Exams of Computer Science

Toggle sidebar
bg1
AP COMPUTER SCIENCE PRINCIPALS FINAL
Be able to recognize true statements about routers and routing on the Internet. -
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.
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. - Answers
-HTTP relies on TCP/IP
DNS relies on TCP/IP
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. - Answers -Which websites are most frequently visited before
and after school hours from a school computer
Which of the following BEST describes how protocols on the INternet (e.g. IP, TCP,
HTTP) make use of abstraction to accomplish their respective purposes? - Answers -
Low level protocols can provide functionality to high level protocols without revealing the
details of how this is accomplished.
According to the domain name system (DNS), which of the following is a subdomain of
the domain example.com? - Answers -Mail.example.com or maybe
moreabout.example.com
Which of the following is NOT true about TCP/IP packets? So--list below what IS
true....... - Answers -TCP sometimes makes mistakes and drops packets
The internet Engineering Task Force (IETF) defines the protocols and standards for
how the Internet works. The members of the IETF are: - Answers -A loosely organized
group of engineers and citizens
How does a computer resolve a domain name into an IP address? - Answers -It asks
the DNS server if the DNS server has that IP address
Packets being sent in order from one computer to another-- know how to read graph
about it. - Answers -Know how to count and know that data is rerouted through the
cheapest way possible
When sending a response to a question with four possible answers, the most efficient
method will require no more than what number of bits? - Answers -2 bits
pf3
pf4
pf5

Partial preview of the text

Download AP COMPUTER SCIENCE PRINCIPALS FINAL and more Exams Computer Science in PDF only on Docsity!

AP COMPUTER SCIENCE PRINCIPALS FINAL

Be able to recognize true statements about routers and routing on the Internet. - 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. 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. - Answers -HTTP relies on TCP/IP DNS relies on TCP/IP 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. - Answers -Which websites are most frequently visited before and after school hours from a school computer Which of the following BEST describes how protocols on the INternet (e.g. IP, TCP, HTTP) make use of abstraction to accomplish their respective purposes? - Answers - Low level protocols can provide functionality to high level protocols without revealing the details of how this is accomplished. According to the domain name system (DNS), which of the following is a subdomain of the domain example.com? - Answers -Mail.example.com or maybe moreabout.example.com Which of the following is NOT true about TCP/IP packets? So--list below what IS true....... - Answers -TCP sometimes makes mistakes and drops packets The internet Engineering Task Force (IETF) defines the protocols and standards for how the Internet works. The members of the IETF are: - Answers -A loosely organized group of engineers and citizens How does a computer resolve a domain name into an IP address? - Answers -It asks the DNS server if the DNS server has that IP address Packets being sent in order from one computer to another-- know how to read graph about it. - Answers -Know how to count and know that data is rerouted through the cheapest way possible When sending a response to a question with four possible answers, the most efficient method will require no more than what number of bits? - Answers -2 bits

You have a coordinate grid that is 96 x 96. Assuming that you encode the x and y coordinate as separate numbers, what is the minimum number of bits that you will need to encode a coordinate in that space? - Answers -14 bits 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? - Answers -7 bits ASCII has an encoding for every character of the alphabet as well as encodings for numbers -- that is, encodings for the symbols of the digits 0-9. So here is a trick question: How many bits are required to store the text of the number "150" in ASCII?' - Answers -24 bits The FINAL word "Apple" Unit 1 translated (Ch. 1-2) into its ASCII number (decimal) equivalent is - Answers -065 112 112 108 101 How many users would a fixed-length IP address system using 6 bits support? - Answers - Protocol - Answers -A well-known set of rules and standards used to communicate between machines. Packet - Answers -A message of data that includes information to route the message from the source to the destination computer. IP - Answers -The communication protocol that dictates a specific format and structure of a packet in order for it to be routed properly on the Internet. IPv4 - Answers -The current 32 bit communication protocol which also has many security vulnerabilities. Uncompressed Image - Answers -BMP Compressed Image-Lossless - Answers -PNG Compressed Sound-Lossy - Answers -MP Compressed Files-Lossless - Answers -ZIP Compressed image- Lossless (256 color limit) - Answers -GIF Uncompressed sound - Answers -WAV Compressed image- Lossy - Answers -JPEG

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

  1. 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? - 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. A 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 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? - Answers -232 times as many values can be represented. Basically it's 264-232which is 232. 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? - Answers -AABB 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 ( 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.) - Answers -3,753 bytes (30,034 bits) Approximately how much bigger (how many more bytes) is a megabyte than a kilobyte - Answers -1000 times more bytes An artist makes an RGB raster image in which each pixel color is encoded with 12-bits --- 4 bits each for red, green and blue. Which of the following correctly shows the hexadecimal value for Red as a 12-bit representation - Answers -#F Under which of the following conditions is it most beneficial to use a heuristic approach to solve a problem? - Answers -Where finding an optimal or exact solution is impractical or impossible 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? - Answers -Lossless compression?

Which of the following is a true statement about data compression? - Answers -Data compression is used to minimize the amount of information that must be transmitted. Select the answer that lists the units of bytes in ascending order (from smallest to largest) - Answers -byte, kilobyte, megabyte, gigabyte, terabyte, petabyte, and exabyte. 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?

  • Answers -Lossless Compression 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. - Answers -Lossy Compression 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"? - Answers -Metadata 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? - Answers -Do the movement of animals vary according to weather? 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? - Answers -Which customer buys the most bread.