2.3 Database and test corrections
Databases from 2.3 and college board mc test correctionss
import pandas as pd
df = pd.read_json('files/mine.json')
print(df)
print()
print(df.sort_values(by=['Time'], ascending=False))
print(df[df.Level == df.Level.max()])
print()
print(df[df.Level == df.Level.min()])
Which of the following has the greatest potential for compromising a user’s personal privacy?
Correct Answer: A group of cookies stored by the user’s Web browser
My Answer: The user’s public key used for encryptionOf the following potential benefits, which is LEAST likely to be provided by the upgraded system?
Correct Answer: The company will be able to provide a human representative for any incoming call.
My Answer: Human representatives will not be needed to respond to some inquiries.Which of the following code segments can be used to assign the intended string to newString?
Correct Answer: newString ← substring(oldString, 3, len(oldString) - 4)tempString ← substring(oldString, 3, len(oldString) - 2) newString ← substring(tempString, 1, len(tempString) - 2)
My Answer: newString ← substring(oldString, 3, len(oldString) - 4
When the robot reaches the gray square, it turns around and faces the bottom of the grid. Which of the following changes, if any, should be made to the code segment to move the robot back to its original position in the bottom-left square of the grid and facing toward the bottom of the grid?
Correct Answer: No change is needed; the algorithm is correct as is.
My Answer: Interchange the ROTATE_RIGHT and the ROTATE_LEFT blocks.A city planner is using simulation software to study crowd flow out of a large arena after an event has ended. The arena is located in an urban city. Which of the following best describes a limitation of using a simulation for this purpose?
Correct Answer: The model used by the simulation software often omits details so that it is easier to implement.
My Answer: Running a simulation requires more time to generate data from trials than observing the crowd exiting the arena at various events.Based on the values in the table, which of the algorithms appear to run in reasonable time?
Correct Answer: Algorithm AAlgorithm D
My Answer: Algorithm B
Algorithm D