Which of the following best describes how AI can help clean data in spreadsheets?
Think about how AI learns from data patterns to improve quality.
AI uses pattern recognition to find inconsistencies and can suggest or apply corrections, improving data quality automatically.
Given a spreadsheet with sales data, an AI tool generates this summary code snippet. What is the output?
sales = [120, 150, 100, 130, 170] summary = {'total_sales': sum(sales), 'average_sales': sum(sales)/len(sales)} print(summary)
Calculate the sum and average of the list values carefully.
The sum of the sales list is 670, and the average is 670 divided by 5, which is 134.0.
An AI model clusters customer data into groups based on spending. Given this code, what is the cluster assignment output?
import numpy as np from sklearn.cluster import KMeans X = np.array([[100, 200], [110, 210], [500, 600], [520, 610]]) model = KMeans(n_clusters=2, random_state=0).fit(X) print(model.labels_)
Look at how the points are grouped by proximity.
The first two points are close and assigned cluster 0, the last two are close and assigned cluster 1.
What error does this AI-powered spreadsheet data extraction code produce?
data = {'Name': ['Alice', 'Bob'], 'Age': [25, 30]}
ages = data['age']
print(ages)Check the exact spelling and case of dictionary keys.
The key 'age' does not exist because dictionary keys are case-sensitive; the correct key is 'Age'.
You want to detect unusual transactions in a large spreadsheet using AI. Which method is best suited for this task?
Consider if labeled anomaly data is available or not.
Unsupervised methods like Isolation Forest detect anomalies without needing labeled examples, ideal for unknown anomaly patterns.