Top 5 Data Analytics MCQs ๐Ÿ”ฅ | SQL Python AI Interview Questions #1

CodeVisium ยท Beginner ยท๐Ÿ“Š Data Analytics & Business Intelligence ยท3mo ago

About this lesson

โœ… Q1 โ†’ A. Structured Query Language ๐Ÿ‘‰ SQL is used to interact with databases like MySQL, PostgreSQL, SQL Server. ๐Ÿ”น Real Example: Imagine a table employees id name salary 1 A 50000 2 B 70000 ๐Ÿ”น Query: SELECT name, salary FROM employees WHERE salary v 60000; ๐Ÿ‘‰ Output: B (70000) ๐Ÿ”น Tools: MySQL PostgreSQL SQL Server BigQuery โœ… Q2 โ†’ B. Pandas ๐Ÿ‘‰ Pandas is used for data manipulation and analysis. ๐Ÿ”น Real Dataset Example: import pandas as pd data = { "name": ["A", "B", "C"], "salary": [50000, 70000, 60000] } df = pd.DataFrame(data) # Filter high_salary = df[df["salary"] v 60000] print(high_salary) ๐Ÿ‘‰ Output: name salary 1 B 70000 ๐Ÿ”น Why not others? NumPy โ†’ numerical operations Matplotlib โ†’ visualization TensorFlow โ†’ machine learning โœ… Q3 โ†’ C. Data modeling and calculations (DAX) ๐Ÿ‘‰ DAX is used inside Power BI for creating measures & calculated columns. ๐Ÿ”น Real Example (Power BI DAX): Total_Sales = SUM(Sales[Amount]) ๐Ÿ‘‰ Calculates total sales from dataset Average_Sales = AVERAGE(Sales[Amount]) ๐Ÿ”น Use Case: Business dashboards KPI tracking Financial reporting ๐Ÿ”น Tool: Power BI โœ… Q4 โ†’ D. Predictive Loading ๐Ÿ‘‰ Not a real ML type. ๐Ÿ”น Real ML Types: 1. Supervised Learning from sklearn.linear_model import LinearRegression model = LinearRegression() ๐Ÿ‘‰ Used when labels are available (e.g., house price prediction) 2. Unsupervised Learning from sklearn.cluster import KMeans model = KMeans(n_clusters=3) ๐Ÿ‘‰ Used for clustering (customer segmentation) 3. Reinforcement Learning ๐Ÿ‘‰ Used in: Self-driving cars Game AI โœ… Q5 โ†’ B. Extract Transform Load (ETL) ๐Ÿ‘‰ Core Data Engineering pipeline ๐Ÿ”น Step 1: Extract import pandas as pd df = pd.read_csv("data.csv") ๐Ÿ”น Step 2: Transform df = df.dropna() df["salary"] = df["salary"] * 1.1 ๐Ÿ”น Step 3: Load df.to_csv("cleaned_data.csv", index=False) ๐Ÿ”น Real Tools: Apache Airflow Talend AWS Glue Azure Data Factory ๐Ÿš€ Real-World Insight (Important ๐Ÿ”ฅ) ๐Ÿ‘‰ In companies: SQL โ†’ data ex

Original Description

โœ… Q1 โ†’ A. Structured Query Language ๐Ÿ‘‰ SQL is used to interact with databases like MySQL, PostgreSQL, SQL Server. ๐Ÿ”น Real Example: Imagine a table employees id name salary 1 A 50000 2 B 70000 ๐Ÿ”น Query: SELECT name, salary FROM employees WHERE salary v 60000; ๐Ÿ‘‰ Output: B (70000) ๐Ÿ”น Tools: MySQL PostgreSQL SQL Server BigQuery โœ… Q2 โ†’ B. Pandas ๐Ÿ‘‰ Pandas is used for data manipulation and analysis. ๐Ÿ”น Real Dataset Example: import pandas as pd data = { "name": ["A", "B", "C"], "salary": [50000, 70000, 60000] } df = pd.DataFrame(data) # Filter high_salary = df[df["salary"] v 60000] print(high_salary) ๐Ÿ‘‰ Output: name salary 1 B 70000 ๐Ÿ”น Why not others? NumPy โ†’ numerical operations Matplotlib โ†’ visualization TensorFlow โ†’ machine learning โœ… Q3 โ†’ C. Data modeling and calculations (DAX) ๐Ÿ‘‰ DAX is used inside Power BI for creating measures & calculated columns. ๐Ÿ”น Real Example (Power BI DAX): Total_Sales = SUM(Sales[Amount]) ๐Ÿ‘‰ Calculates total sales from dataset Average_Sales = AVERAGE(Sales[Amount]) ๐Ÿ”น Use Case: Business dashboards KPI tracking Financial reporting ๐Ÿ”น Tool: Power BI โœ… Q4 โ†’ D. Predictive Loading ๐Ÿ‘‰ Not a real ML type. ๐Ÿ”น Real ML Types: 1. Supervised Learning from sklearn.linear_model import LinearRegression model = LinearRegression() ๐Ÿ‘‰ Used when labels are available (e.g., house price prediction) 2. Unsupervised Learning from sklearn.cluster import KMeans model = KMeans(n_clusters=3) ๐Ÿ‘‰ Used for clustering (customer segmentation) 3. Reinforcement Learning ๐Ÿ‘‰ Used in: Self-driving cars Game AI โœ… Q5 โ†’ B. Extract Transform Load (ETL) ๐Ÿ‘‰ Core Data Engineering pipeline ๐Ÿ”น Step 1: Extract import pandas as pd df = pd.read_csv("data.csv") ๐Ÿ”น Step 2: Transform df = df.dropna() df["salary"] = df["salary"] * 1.1 ๐Ÿ”น Step 3: Load df.to_csv("cleaned_data.csv", index=False) ๐Ÿ”น Real Tools: Apache Airflow Talend AWS Glue Azure Data Factory ๐Ÿš€ Real-World Insight (Important ๐Ÿ”ฅ) ๐Ÿ‘‰ In companies: SQL โ†’ data ex
Watch on YouTube โ†— (saves to browser)
Sign in to unlock AI tutor explanation ยท โšก30

Related AI Lessons

โšก
Surviving the Data Science Behavioral Interview
Learn to ace data science behavioral interviews with confidence using three key tips
Towards Data Science
โšก
Before I needed it, no one told me that "legacy tape management" was an entire industry.
Learn about legacy tape management and its importance in data migration, especially when dealing with large-scale tape collections
Reddit r/artificial
โšก
Top 5 DBMS Concepts (2026) | Perfectnotes
Learn the top 5 DBMS concepts to manage data efficiently in applications
Medium ยท Data Science
โšก
The Nervous System of the Telco: Unlocking the Real-Time Power of the Network Element Interfacesโ€ฆ
Unlock the power of network element interfaces to enable real-time insights in telco operations
Medium ยท Data Science
Up next
Spreadsheet Guy Meets the CFO: "Define How Much"
Digital Transformation with Eric Kimberling
Watch โ†’