Docsity

AP Computer Science Principals Final examination, Exams of Nursing

Toggle sidebar
bg1
AP Computer Science
Principals Final
examination
8 bits is enough to represent 256 different numbers. How many
total bits do you need to represent 512 (twice as many) numbers -
answer ✅✅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? - answer ✅✅Which
customer buys the most bread.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download AP Computer Science Principals Final examination and more Exams Nursing in PDF only on Docsity!

AP Computer Science

Principals Final

examination

8 bits is enough to represent 256 different numbers. How many total bits do you need to represent 512 (twice as many) numbers - answer ✅✅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? - answer ✅✅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? - answer ✅✅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? - answer ✅✅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?

  • answer ✅✅Adding one extra bit to the student IDs will allow the school to double the amount of unique ID codes.

According to the domain name system (DNS), which of the following is a subdomain of the domain example.com? - answer ✅✅Mail.example.com or maybe moreabout.example.com 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 - answer ✅✅#F Approximately how much bigger (how many more bytes) is a megabyte than a kilobyte - answer ✅✅1000 times more bytes 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?' - answer ✅✅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? - answer ✅✅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. - answer ✅✅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?

  • answer ✅✅Do the movement of animals vary according to weather? Compressed Files-Lossless - answer ✅✅ZIP Compressed image- Lossless (256 color limit) - answer ✅✅GIF Compressed image- Lossy - answer ✅✅JPEG

had 1 byte each for width, height and bits-per-pixel.) - answer ✅✅3,753 bytes (30,034 bits) How many users would a fixed-length IP address system using 6 bits support? - answer ✅✅ 64 IP - answer ✅✅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 - answer ✅✅The current 32 bit communication protocol which also has many security vulnerabilities. Number bases, including binary, decimal, and hexadecimal, are used to view and represent digital data. Which of the following is NOT true about representing digital data? - answer ✅✅There is a limit to the number of things that can be represented in binary data at which point switching to hexadecimal representation is necessary. Packet - answer ✅✅A message of data that includes information to route the message from the source to the destination computer.

Packets being sent in order from one computer to another-- know how to read graph about it. - answer ✅✅Know how to count and know that data is rerouted through the cheapest way possible Protocol - answer ✅✅A well-known set of rules and standards used to communicate between machines. Select the answer that lists the units of bytes in ascending order (from smallest to largest) - answer ✅✅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? - answer ✅✅Lossless compression? The FINAL word "Apple" Unit 1 translated (Ch. 1-2) into its ASCII number (decimal) equivalent is - answer ✅✅ 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

Uncompressed Image - answer ✅✅BMP Uncompressed sound - answer ✅✅WAV Under which of the following conditions is it most beneficial to use a heuristic approach to solve a problem? - answer ✅✅Where finding an optimal or exact solution is impractical or impossible What is the 4-bit binary number for the decimal number Ten (10) ? - answer ✅✅ 1010 What is the best explanation for why digital data is represented in computers in binary? - answer ✅✅It's easier, cheaper, and more reliable to build machines and devices that only have to distinguish between binary states. What is the minimum number of bits you would need to encode the 26 letters of the alphabet plus a space- a total of 27 characters? - answer ✅✅5 bits When sending a response to a question with four possible answers, the most efficient method will require no more than what number of bits? - answer ✅✅2 bits

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? - answer ✅✅Low level protocols can provide functionality to high level protocols without revealing the details of how this is accomplished. Which of the following is a true statement about data compression? - answer ✅✅Data compression is used to minimize the amount of information that must be transmitted. Which of the following is NOT true about TCP/IP packets? So--list below what IS true....... - answer ✅✅TCP sometimes makes mistakes and drops packets 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? - answer ✅✅14 bits