2021 Practice Exam 1 MCQ Corrections
- Q7 Move piece on game board:
- Q9 Digital representation of audio signal:
- Q19 Use of weak passwords:
- Q23 True statement about the Internet:
- Q25 Result of iteration statements:
- Q30 How data is transmitted on the Internet:
- Q41 Use of crowdsourcing in online games:
- Q42 Iterate over integerList:
- Q47 Expression to count restaurants:
- Q49 Ability of computers to solve problems:
- Q55 Move element from end of list to beginning:
- Q59 Data not provided by user device:
Final Score 58/70
Q7 Move piece on game board:
- A: C 4
- Correction: The counter is incremented once for each time the game piece moves. The game piece makes four moves rather than three before ending in the red space.
Q9 Digital representation of audio signal:
- A: B An analog audio signal is measured at regular intervals. Each measurement is stored as a sample, which is represented at the lowest level as a sequence of bits.
- Correction: While some programming languages can be used to manipulate audio data, this is not how audio data are represented digitally. At the lowest level, all digital data are represented as sequences of bits.
Q19 Use of weak passwords:
- A: D Unauthorized individuals can use data mining and other techniques to guess a user’s password.
- Correction: 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.
Q23 True statement about the Internet:
- A: B The Internet is designed to scale to support an increasing number of users.
- Correction: The Internet was designed to be scalable, using open protocols to easily connect additional computing devices to the network.
Q25 Result of iteration statements:
- A: D The procedure returns the sum of the integers from 1 to n.
- Correction: 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.
Q30 How data is transmitted on the Internet:
- A: B Data is broken into packets, which can be sent along different paths.
- Correction: Data transmitted on the Internet is broken into packets and then reassembled upon arrival. Packets may travel along different paths, arriving at the destination in order, out of order, or not at all.
Q41 Use of crowdsourcing in online games:
- A: A The company allows individual players to endorse fellow players based on courteous interactions. Once a player receives enough endorsements, the player is given free rewards that can be used during gameplay.
- Correction: Crowdsourcing is the practice of using input or information obtained from a large number of people via the Internet. In this case, input on a player is provided by other players of the game.
Q42 Iterate over integerList:
- A: A 3
- Correction: This result would be displayed if the code segment computed the sum of the even values in the list rather than counting the number of odd values in the list.
Q47 Expression to count restaurants:
- A: B (avgRating ≥ 4.0) AND ((prcRange = “lo”) OR (prcRange = “med”))
- Correction: This expression evaluates to true only for restaurants with the correct price range (when prcRange equals “lo” or “med”) and the correct customer rating (when avgRating ≥ 4.0).
Q49 Ability of computers to solve problems:
- A: D There exist some problems that cannot be solved algorithmically using any computer.
- Correction: 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.
Q55 Move element from end of list to beginning:
- A: A len ← LENGTH(utensils) temp ← utensils[len] REMOVE(utensils, len) APPEND(utensils, temp)
- Correction: 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.
Q59 Data not provided by user device:
- A: C The current locations of other RunRoutr users
- Correction: 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.