Week 10: 5.1 5.6 and AP CSP MC Test (Sanvi) - sanvi1855544/p3-avatar GitHub Wiki
Sanvi 5.1-5.6 Quizzes
Sanvi 5.1-5.6 Corrections:
5.2- Question 1
Correction/Reflection: A is not right because even though linking a social media account to a phone number may improve the security of the site, it does not improve access to devices and the Internet. B is right because one contributing factor to the digital divide is lack of access to the Internet. Deploying more satellites and network infrastructure would provide a way to allow Internet access in remote areas.
5.4- Question 2
Correction/Reflection: A is not correct since conversion formulas between units are well known, so they would not require updates or contributions from a large number of users. D is right because crowdsourcing is the practice of obtaining input or information from a large number of people via the Internet. This application would benefit from the use of crowdsourcing the most, as the application could allow users to contribute descriptions and photographs of landmarks.
Sanvi AP MCQ Test
Sanvi AP MCQ Test Corrections
Question 1
Correction/Reflection: C is not right because gaining remote access to a computer is not a phishing attack. D is correct because Phishing is a technique that attempts to trick a user into providing personal information. In this case, the user is tricked by a fraudulent e-mail.
Question 8
Correction/Reflection: A is not true because redundancy on the Internet allows packets to be transmitted along multiple paths, but does not reduce the number of packets needed to transmit a particular message. C is correct because if a particular device or connection on the Internet fails, subsequent data will be sent via a different route, if possible. This is supported by redundancy in the network.
Question 15
Correction/Reflection: C is wrong because that code segment draws five vertical line segments that are all 5 units long, starting with the segment from (5, 0) to (5, 5) and ending with the segment from (1, 0) to (1, 5). A is right because that code segment starts at the coordinate (1, 0). Inside the loop, a call to drawLine draws a vertical line segment of length len. By increasing xVal by 1 inside the loop, the next line segment will be drawn one position to the right. By increasing len by 1 inside the loop, the next line segment drawn will have its length increased by one. This has the effect of drawing the line segments shown in the figure from left to right.
Question 19
Correction/Reflection: B is wrong because keylogging can be used to get password regardless of the password length. D is right because a strong password is something that is easy for a user to remember but would be difficult for someone else to guess based on knowledge of that user. Weak passwords can often be guessed based on publicly available information about a user. Other weak passwords (such as "password" or "1234") can often be guessed because they are commonly used.
Question 25
Correction/Reflection: A is wrong because the procedure will run without error and return a value. D is correct because the procedure initially sets result to 1 and j to 2. In the REPEAT UNTIL loop, result is first assigned the sum of result and j, or 1 + 2. The value of j is then increased to 3. In each subsequent iteration of the loop, result is increased by each successive value of j (3, 4, 5, etc.) until j exceeds n. Therefore, the procedure returns the sum of the integers from 1 to n.
Question 29
Correction/Reflection: B is wrong since the value 9 represents the result that would be displayed if the loop iterated one less time. D is right because the algorithm represented in the flowchart calculates j * k by repeatedly adding j to result a total of k times. The value displayed is 12.
Question 40
Correction/Reflection: C is wrong because some individuals lack access to computing devices because the devices are prohibitively expensive. Offering low-cost devices may help reduce the digital divide for these individuals. B is correct since the digital divide describes the differences in access to computing devices and the Internet. Requiring job applicants to apply online serves only individuals who already have access to computing devices and the Internet. It does not help reduce the divide.
Question 46
Correction/Reflection: B is wrong since any ordering of the three steps will identify the correct restaurant. Sequence II will work. Filtering by number of ratings will remove restaurants without any ratings. Then sorting by rating will put the greatest customer rating at the top of the list. Then filtering by payment type will remove the restaurants that do not accept credit cards. D is right since the relative order of the rows is not changed when the filters are applied, the order in which the actions are performed does not matter. The filtering can occur either before or after the spreadsheet is sorted by rating.
Question 49
Correction/Reflection: A is wrong since even though some solutions benefit from being validated by a human, not all problems can be solved with an algorithm. D is right since an undecidable problem is one for which no algorithm can be constructed that is always capable of providing a correct yes-or-no answer. Some instances of an undecidable problem may have an algorithmic solution, but there is no algorithmic solution that could solve all instances of the problem.
Question 55
Correction/Reflection: A is wrong since this code segment assigns the value of the last element of the list to the variable temp, then removes the last element of the list, then appends temp to the end of the list. The resulting list is the same as the original list. C is right since this code segment assigns the value of the last element of the list to the variable temp, then removes the last element of the list, then inserts temp as the first element of the list.
Question 58
Correction/Reflection: A is wrong since information about available running routes would not need to be collected from the user’s device. In addition, the user may not be currently located near the user’s home. D is correct since in order to suggest a running route, the application needs to know the current location of the user. This information is collected from the user’s device.
Question 59
Correction/Reflection: B is wrong since while Adrianna’s preferred running distance is needed to recommend a running route, this information is provided directly by Adrianna. C is right since in order to share Adrianna’s running route with nearby users, the application needs to know the current locations of users other than Adrianna. This information is collected from other user’s devices, not Adrianna’s device.
Question 62
Correction/Reflection: A is wrong since any two users with a basic account can receive targeted advertisements, even if they appear on each other’s contact lists. Individuals who sign up for a premium account (C) is right since users with a premium account do not receive advertisements.