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 Reads

๐Ÿ“ฐ
Nigeria Machinery: A Low-Resource Industrial Dataset with a Domain-Grounded Reasoning Layer
Learn about the Nigeria Machinery dataset, a low-resource industrial dataset for African economies, and how to apply it for domain-grounded reasoning and quantitative analysis
ArXiv cs.AI
๐Ÿ“ฐ
The Block Universe #3: Why Spacetime Must Be Static
Learn why spacetime must be static and how it relates to personal agency in a data science context
Medium ยท Data Science
๐Ÿ“ฐ
Python 3D Cone Chart and Line Chart Combination Plot
Create interactive 3D cone and line charts in Python using popular libraries
Medium ยท Data Science
๐Ÿ“ฐ
Automating Your First Trading Signal in a Few Lines of Python [Code Included]
Automate your trading signals using Python in just a few lines of code to save time and increase efficiency
Medium ยท Data Science
Up next
Data Don't Lie | Powered by the UFC Insight Engine from IBM watsonx
IBM
Watch โ†’