100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Tentamen (uitwerkingen)

AP Computer Science Principles Exam Latest Updated Graded A

Beoordeling
-
Verkocht
-
Pagina's
14
Cijfer
A+
Geüpload op
22-03-2024
Geschreven in
2023/2024

AP Computer Science Principles Exam Latest Updated Graded A+ Overflow - ANSWER-error that results when the number of bits is not enough to hold the number, like a car's odometer "rolling over" Round-off - ANSWER-error that results when the number of bits is not enough to represent the actual number, like 3 digits to represent π as 3.14 Lossy - ANSWER-Compressing data in a way that throws some data away and makes it almost impossible to recover the original, great compression, like JPEG images Lossless - ANSWER-Compressing data in a way that preserves all data away and allows full recovery of the original, good compression -- usually not as good as lossy, like PNG images Metadata - ANSWER-data about data, like a camera storing the location, aperture, shutter speed, etc. for a digital photo Sequencing - ANSWER-code flows line by line, one after another, like a recipe Selection - ANSWER-a boolean condition to determine which of two algorithmic paths are taken, aka if-then Iteration - ANSWER-using a looping control structure, like while, for, foreach, repeat, repeat-until, etc. Reasonable Time - ANSWER-polynomial in the number of steps an algorithm takes in the worst case based on the input size Not reasonable time - ANSWER-Usually exponential in the number of steps, like doubling every time your input grows by one Heuristic - ANSWER-using a "rule" to guide an algorithm, like always walking toward the north star if you were stuck in a forest Undecidable - ANSWER-A problem that is so difficult, we can't ever create an algorithm that would be able to answer yes or no for all inputs, like determining if a user's program run on some input would always stop and not run forever Linear Search - ANSWER-Going one by one vs starting in the middle and going left/right like looking for a word in the dictionary Binary Search - ANSWER-requires the list to be sorted in order and then cutting the list in half APIs - ANSWER-Application Programming Interface Citizen Science - ANSWER-Lots of people to help with a scientific project, like asking everyone around the world to count the butterflies they see one day Cloud Computing - ANSWER-Using distributed calculations and/or storage for big data or a web application Crowdsourcing - ANSWER-Asking lots of users online to help with something, like funding a project, or running SETI@Home to help look for extraterrestrial signals Creative Commons - ANSWER-An alternative to copyright that allows people to declare how they want their artistic creations to be shared, remixed, used in noncommercial contexts, and how the policy should propagate with remixed versions Open Access - ANSWER-A policy that allows people to have read access to things, e.g., libraries or online data Moore's Law - ANSWER-The # of transistors on a chip doubles every two years Peer-to-peer Networks - ANSWER-A system where one user's computer connects through the Internet to another user's computer without going through an intermediary "centralized" computer to manage the connection Digital Divide - ANSWER-The idea that some communities / populations have less access to computing than others ISP - ANSWER-Internet Service Provider How does internet communication arrive at its destination? - ANSWER-Speech on the Internet goes from the source to an ISP, into the cloud, out of the cloud to another ISP, and to its destination How can the government control speech on the Internet? - ANSWER-1) It can try to control the speaker or the speaker's ISP, by criminalizing certain kinds of speech. But that won't work if the speaker isn't in the same country as the listener. 2)It can try to control the listener, by prohibiting possession of certain kinds of materials. In the U.S., possession of copyrighted software without an appropriate license is illegal, as is possession of other copyrighted material with the intent to profit from redistributing it. 3) The government can try to control the intermediaries. How can Internet posters evaded being convicted for defamation/slander on the Web? - ANSWER-The posters could evade responsibility as long as they remained anonymous, as they easily could on the Internet. What has Congress given ISPs relating to an Internet Defamation case? - ANSWERCongress had given the ISPs a complete waiver of responsibility for the consequences of false and damag- ing statements, even when the ISP knew they were false. Internet Protocol Hourglass - ANSWER-Each protocol interfaces only to those in the layers immediately above and below it, and all data is turned into IP bit packets in order to pass from an application to one of the physical media that make up the network. -Email, Web, Phone -SMTP, HTTP -TCP, UDP -IP -Wire, Fiber, Radio TCP - ANSWER-Transmission Control Protocol Guarantees reliable transmission by breaking messages into packets, keeping track of which packets have been received successfully, resending any that have been lost, and specifying the order for reassembling the data on the other end. UDP - ANSWER-User Datagram Protocol provides timely but unreliable message delivery HTTP - ANSWER-HyperText Transport Protocol which is used for sending and receiving web pages SMTP - ANSWER-Simple Mail Transport Protocol used for sending email. What does "End to End" mean in regards to the Internet? - ANSWER-"End to End," in the Internet, means that the switches making up the core of the network should be dumb—optimized to carry out their single limited function of passing packets. RFC - ANSWER-Request for Comment Standards adopted through a remarkable process of consensus- building, nonhierarchical in the extreme. Someone posts a proposal, and a cycle of comment and revision, of buy-in and objection, eventually converges on something useful, if not universally regarded as perfect. Shortcut for going from binary to hexadecimal - ANSWER-To translate a binary numeral (like ) to hexadecimal, start by splitting it into groups of four bits, from right-to-left (like this: ). Then determine the value of each group and write the corresponding hex digit. Internet - ANSWER-A network of independent but connected devices all over the world. World Wide Web - ANSWER-The collection of interlinked website documents (such as HTML files) that you can view with a web browser by typing addresses like URL - ANSWER-Uniform Resource Locator An address for accessing specific web data located on a server Server - ANSWER-A computer hosting data for others to access Protocol - ANSWER-the standard for communication between browsers and servers (usually "http" or "https") Sometimes not visible in browsers like Google Chrome Domain Name - ANSWER-The name of the server that hosts the data () Path - ANSWER-the location of the data in a hierarchy of folders on the server (Website/) Protocols - ANSWER-Standards for communication IP - ANSWER-Internet Protocol An addressing system that finds paths to distant computers Specifies how a router handles a request for another IP address. Redundant - ANSWER-There are multiple pathways among the physical connections of the Internet to create redundancy. Even if one pathway is unavailable, there is still another way to transmit a message from sender to receiver Hiearchial - ANSWER-There are two Internet addressing systems, domain names and IP addresses. These address works much like the postal system, which locates people first by state, then city, then street, then house number, then apartment, and then finally person. Fault Tolerance - ANSWER-ability to work around problems Scalability - ANSWER-the ability of the net to keep working even as the size of the network and the amount of traffic over the network increase. HTML - ANSWER-Hypertext markup language Most web pages are written with Virus - ANSWER-A kind of malware that tries to spread itself over the network to other computers. Antivirus Software - ANSWER-Helps protect against virus attacks Phishing - ANSWER-An attacker sends you an email that appears to be from some official organization (such as your bank) and tricks you into giving information to the attackers (such as your bank password). DDoS - ANSWER-Distributed Denial of Service -Consists of sending a lot of requests to a server at the same time. This can overload the server's network bandwidth. -Causes a temporary inability to reach the targeted server so other users of that server are denied service. Which protocols are used to keep secure HTTP connections? - ANSWER-Transport Layer Security (TLS) or maybe an older version called Secure Sockets Layer (SSL) With these protocols, the site you are visiting sends its public key, and your browser uses it to encrypt the information you send. Certificate Authorities - ANSWER-Used by many websites for encryption to protect files and information that is transmitted over the Internet. They issue certificates to verify the identity of a user or computer. Public IP Address - ANSWER-The IP address that is logged by various servers/devices when you connect to them through your internet connection. Private IP Address - ANSWER-An IP address that's reserved for internal use behind a router or other Network Address Translation (NAT) device, apart from the public. IP v4 - ANSWER-This address is big enough to support 2^32 computers. That's about four billion (4 · 109), but there are more than seven billion people on Earth, so there aren't enough IP addresses to go around. Each of the four numbers in a typical IP address today is an eight-bit byte with a value between 0 and 255 IP v6 - ANSWER-The long-term solution is to increase the length of an IP address. The new IP addresses are 128 bits wide, which is enough to support 2^128 (about 1038) computers. Routers - ANSWER-The "connection points" of the Internet. Networking devices that route traffic between subnetworks on the Internet. Packets - ANSWER-When you send a message over the Internet, your computer divides it into small chunks called that it sends individually, each on its own path. A can include any kind of data: text, numbers, lists, etc. Packet Switching Network - ANSWER-A digital networking communications method that groups all transmitted data into suitably sized blocks, called packets, which are transmitted via a medium that may be shared by multiple simultaneous communication sessions. Example : Internet Hierarchy of Abstractions - ANSWER-Manages the complexity of the Internet by hiding the details of lower levels of the system. The highest level of abstraction includes the most general features of the Internet that have to work the same across all devices. At lowers levels of abstraction, things get more device-specific. Application Layer Protocols - ANSWER-The highest level of abstraction because they manage how data is interpreted and displayed to users. These protocols give meaning to the bits sent by lower-level protocols; user and server computers must agree on what the bits mean, and application protocols (like HTTP) offer this. Transport Layer Protocols - ANSWER-Manage the breakdown of a message into packets to be transmitted by lower level protocols and also the reconstruction of the message from the packets upon arrival. Internet Layer Protocols - ANSWER-Manage the pathways that the data packets travel across networks. These protocols treat the Internet like one large network even though the physical reality on the lower level is one of many tiny subnetworks. Network Interface Hardware - ANSWER-Also known as Link Layer All Internet devices connect through a physical interface that uses a protocol to manage the connection to the local network. These local protocols are the least abstract because they deal directly with your physical hardware. DNS - ANSWER-Domain Name System The hierarchical addressing protocol that is human-readable Who is in charge of the Internet? - ANSWER-The computers on the Internet and the connections among them don't belong to any one organization. ICANN - ANSWER-the Internet Corporation for Assigned Names and Numbers Controls the DNS hierarchy and the allocation of IP addresses. For how long has the U.S. dominated the Internet and why? - ANSWER-The U.S. has "controlled" the Internet up until 2009. The Advanced Research Project Agency (ARPA) first developed the Internet in 1969. Open Protocols - ANSWER-Standards that are not owned by a company IETF - ANSWER-(The Internet Engineering Task Force) and the Internet Society oversee Internet protocols What does the Internet rely on to operate properly? - ANSWER-The internet relies on the cooperation of many different elements. Firewall - ANSWER-Used to limit the kinds of connections (HTTP requests, incoming mail, etc.) outsiders can make to your computer. Cipher - ANSWER-The set of rules you are using to encode the information Deciphering - ANSWER-Analyzing the code and working back from it Monoalphabetic Cipher - ANSWER-A class of ciphers where the code is based on one letter of the alphabet standing for another letter consistently throughout the message Brute force - ANSWER-Trying all the possible ways to crack a code Frequency Analysis - ANSWER-Based on the idea that every language has its own specific patterns. The study of the frequency of letters or groups of letters in a ciphertext. Crib - ANSWER-Words, letters, and phrases that are so common that it is hard to form a sentence without them Examples: e and the Polyalphabetic Cipher - ANSWER-The way you scramble the alphabet actually changes throughout the message Example: Vigenère cipher Vigenère Square - ANSWER-Alphabet goes up on the top and also to the side in order to help write a code. How can you crack Vigenère cipher? - ANSWER-By using a type of frequency analysis developed by Charles Babbage. Babbage realized that some patterns in a long message may still show up and he counted how many letters separated those repeated patterns. One time pad encryption - ANSWER-Only way to create an unbreakable cipher. Uses the key that is as long as the message itself. Once a sheet is used for a message you destroy it. Then you use the next sheet for the next message so you never repeat a key. As long as you keep the pad safe, no one can ever decrypt the message. The Enigma Machine - ANSWER-An example of a one time pad encryption device. Key - ANSWER-What tells you how to arrange the cipher's rules. is applied using an algorithm to a string or block of unencrypted text to produce encrypted. The British Bombe - ANSWER-Device developed by Alan Turing used by the British military to crack the enigma machine. As long as this device knew 20 characters of the message it could crack the code. Prime number - ANSWER-Numbers only divisible by themselves and one. Very useful for internet security because of this trait. Public Key - ANSWER-A code that is available for anyone to use. Private Key - ANSWER-A code that must remain confidential to its respective owner. How does Public Key/Private Key Cryptography work? - ANSWER-Example: If Bob wants to send sensitive data to Alice, and wants to be sure that only Alice may be able to read it, he will encrypt the data with Alice's Public Key. Only Alice has access to her corresponding Private Key and as a result is the only person with the capability of decrypting the encrypted data back into its original form. As only Alice has access to her Private Key, it is possible that only Alice can decrypt the encrypted data. Even if someone else gains access to the encrypted data, it will remain confidential as they should not have access to Alice's Private Key. Encryption - ANSWER-Works by converting information or data into a language that cannot be understood in one glance. Usually, the information is sent to a person who can decrypt it using a key only they have access, keeping the information's privacy intact. Three principles of Encryption? - ANSWER-1) Authentication 2) Integrity 3) Non-repudation Authentication - ANSWER-Helps to verify that original author of the code is what he or she claims to be. Integrity - ANSWER-Essential towards maintaining the privacy of the message because it must be known that the message was not tampered with in any way, shape, or form. Non-repudiation - ANSWER-Where the user sends a message to another person but later denies he or she actually sent the message, causing confusion and bringing the integrity of the message into question. Three types of encryption? - ANSWER-1) secret key cryptography 2) public key cryptography 3) hash functions Secret key cryptography - ANSWER-Where a single key is sent with the message to another user for the receiver to decode the message. Public key cryptography - ANSWER-Where the user has a public key that he or she uses to encrypt the message to send to the receiver who will then use his or her private key to decode the message. Hash function - ANSWER-Types of systems where the user sends a plain text message to another user without a key. They are usually generated based on the message which helps determine whether the integrity of the message has been tampered. Diffie-Hellman-Merkle Method - ANSWER-A method of secret key agreement makes secret key distribution much easier. How does the Diffie-Hellman-Merkle Method work? - ANSWER-In Diffie-Hellman, Alice and Bob make the shared secret key, online, together, in full view of any other eavesdropper. The breakthrough allows Alice and Bob to openly exchange some DiffieHellman numbers. In private, they use each other's DH numbers, their secret random numbers, and the DH method to agree on the same secret key. Although the eavesdropper knows the DH method and copies Alice and Bob's conversation, he cannot figure out Alice and Bob's agreed-on secret key. What are some problems of the Diffie-Hellman-Merkle Method? - ANSWER-1) Lack of authentication 2) Failing to provide a versatile means for secret key exchange. Caesar Cipher - ANSWER-Also known as a shift cipher, is one of the simplest forms of encryption. It is a substitution cipher where each letter in the original message (called the plaintext) is replaced with a letter corresponding to a certain number of letters up or down in the alphabet. AND - ANSWER-a Boolean operator. *Both* have to be true in order for it to evaluate to true. OR - ANSWER-a Boolean operator. one or the other has to be true in order for it to evaluate to true. NOT - ANSWER-a Boolean operator. Everything except the entered input is true. Boolean Expression - ANSWER-an expression that results in a value, that is, in a value of either true or false . Composition of Functions - ANSWER-An act or mechanism to combine simple functions to build more complicated ones. Conditional Statement - ANSWER-Set of rules performed if a certain condition is met. Data Type - ANSWER-A classification of data which tells the compiler or interpreter how the programmer intends to use the data. Examples include : real, integer, float (decimal point number) Debugging - ANSWER-A multi-step process that involves identifying a problem, isolating the source of the problem, and then either correcting the problem or determining a way to work around it. The final step of is to test the correction or workaround and make sure it works. Default Value - ANSWER-What the code is set to when it is started. If () Clause - ANSWER-Keep Checking: If this is true Then do this If () . . . Else Clause - ANSWER-Keep Checking: If this is true . . . then do this . . . and if it is not true then do this Input Type - ANSWER-Set up different variables to take a specific . Lists - ANSWER-Reports a newly created with the given items. The items can be anything: text, numbers, blocks, scripts, and even other . Mathematical expression - ANSWER-Numbers, symbols and operators (such as + and ×) grouped together that show the value of something. Nested IFs - ANSWER-If you need to test for more than one condition, then take one of several actions, depending on the result of the tests, you can nest multiple IF statements together in one formula. Predicate - ANSWER-A is a special kind of reporter that *always reports true or false*. have a hexagonal shape. The special shape is a reminder that don't generally make sense in an input slot of blocks that are expecting a number or text. Reporter block - ANSWER-Has an oval shape. It is called a " " because when it's run, instead of carrying out an action, it reports a value that can be used as an input to another block. Predicate block - ANSWER-A is a special kind of reporter that always reports true or false. have a hexagonal shape. The special shape is a reminder that predicates don't generally make sense in an input slot of blocks that are expecting a number or text. Script variable - ANSWER-Used when you only need a variable temporarily, during the running of a particular script. You can use block to make the variable. Example : for loop, the (length) only works inside the for loop. () < () - ANSWER-an Operators block and a Boolean block. The block checks if the first value is less than the other value. If it is greater, the block returns true; if not, it returns false. () = () - ANSWER-an Operators block and a Boolean block. The block checks if the first value is equal to the other value. If the values are equal, the block returns true; if not, false. This block is not case-sensitive. () > () - ANSWER-an Operators block and a Boolean block. The block checks if the first value is greater than the other value. If it is less, the block returns true; if not, it returns false. () and () - ANSWER-an Operators block and a Boolean block. The block joins two boolean blocks so they both have to be true to return true. If they are both true, the block returns true; if they are not all true or none true, it returns false. () mod () - ANSWER-finds the remainder after division of one number by another () or () - ANSWER-an Operators block and a Boolean block. The block joins two boolean blocks so any one of them can be true to return true — if at least one of them is true, the block returns true; if neither of them are true, it returns false. This block can be stacked inside itself — this can be used to fit more booleans in. number is away from zero. It is always positive. Ceiling of () - ANSWER-Rounding up FALSE - ANSWER-reported input is false Floor of () - ANSWER-Rounding down If () - ANSWER-Keep Checking: If this is true Then do this If () . . . Else () - ANSWER-Keep Checking: If this is true . . . Abs () - ANSWER-Takes the of a number. The distance the then do this . . . and if it is not true then do this Join words () > - ANSWER-An Operators block and a Reporter block. The block concatenates, or "links" the two values together and reports the result Example : print "This is my" + " " + variable + " " + "class." Not () - ANSWER-an Operators block and a Boolean block. The block checks if the boolean inside it is false — if it is false, the block returns true; if the condition is true, it returns false. Report () - ANSWER-Reporters that report Boolean (true or false) values. Set (variable name) to (value) - ANSWER-Variables block and a Stack block. The block will set the specified variable to the given value: a string or number. Example : Set (score) to (0) Touching ()? - ANSWER-A Sensing block and a Boolean block. The block checks if its sprite is touching the mouse-pointer, edge, or another sprite (a Reporter block holding the sprite's name can be used). If the sprite is touching the selected object, the block returns true; if it is not, it returns false. TRUE - ANSWER-reported input is true Unicode () as letter - ANSWER-Reports the letter with a given code. Letters and other characters are represented inside the computer using a numeric code called Unicode. Unicode can represent the characters of all human languages, plus many non-letter symbols. Unicode of () - ANSWER-Reports the Unicode value of a letter. Letters and other characters are represented inside the computer using a numeric code called Unicode. Type or paste a single character into the input to get its Unicode number. T and T equals - ANSWER-T T and F equals - ANSWER-F F and T equals - ANSWER-F F and F equals - ANSWER-F Script Variables - ANSWER-Used when you only need a variable temporarily, during the running of a particular script. You can use block to make the variable. T or T equals - ANSWER-T T or F equals - ANSWER-T F or T equals - ANSWER-T F or F equals - ANSWER-F Why is the use of variables, script variables, and input variables important? - ANSWERBecause important information can be maintained and referenced. They can symbolically represent anything from numbers to words which can be helpful when programming in Snap. Why is abstraction important? - ANSWER-It eliminates the details and condenses it down to one line of code. Why is it useful to specify the type of input that a block is expected to receive? - ANSWER-So the function does not result in an error or does not work in the way the user intended it. Logical Error or Semantic Error - ANSWER-You are not logically setting up the program to process correctly. Algorithim - ANSWER-A standard way to perform an operation. Tip for debugging code - ANSWER-Put a wait after every command

Meer zien Lees minder
Instelling
AP Computer Science Principles
Vak
AP Computer Science Principles









Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
AP Computer Science Principles
Vak
AP Computer Science Principles

Documentinformatie

Geüpload op
22 maart 2024
Aantal pagina's
14
Geschreven in
2023/2024
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$11.49
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
slytutor

Maak kennis met de verkoper

Seller avatar
slytutor Teachme2-tutor
Bekijk profiel
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
0
Lid sinds
1 jaar
Aantal volgers
0
Documenten
9
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen