Unit 6: Artificial Intelligence and Data Science - Subjective Questions
CAP1007 — Fundamentals Of Information Technology • Practice Questions with Detailed Answers
20 questions
Define Artificial Intelligence (AI) and explain its scope in modern computing.
Artificial Intelligence (AI) is the branch of computer science concerned with building machines and software systems capable of performing tasks that normally require human intelligence, such as reasoning, learning, problem-solving, perception, and language understanding.
Scope of AI includes:
- Machine Learning: Systems that learn from data without being explicitly programmed.
- Natural Language Processing (NLP): Understanding and generating human language.
- Computer Vision: Interpreting images and video.
- Robotics: Physical machines that sense and act in the environment.
- Expert Systems: Rule-based systems that mimic human decision-making.
- Speech Recognition: Converting spoken language into text.
Key characteristics:
- Ability to learn and adapt from experience.
- Ability to reason and draw conclusions.
- Ability to perceive the environment through sensors or data.
AI spans across industries like healthcare, finance, transportation, and education, making it one of the most transformative technologies of the modern era.
Describe the history and evolution of AI from its origins to the present day.
The evolution of AI can be traced through several key phases:
1. Foundations (1940s–1950s):
- Alan Turing proposed the Turing Test (1950) to measure machine intelligence.
- The term Artificial Intelligence was coined at the Dartmouth Conference (1956) by John McCarthy.
2. Early Enthusiasm (1956–1974):
- Development of early programs like the Logic Theorist and General Problem Solver.
- Optimism about rapid progress.
3. First AI Winter (1974–1980):
- Reduced funding due to unmet expectations and limited computing power.
4. Expert Systems Boom (1980s):
- Rule-based systems like MYCIN gained commercial success.
5. Second AI Winter (late 1980s–1990s):
- Expert systems proved costly and hard to maintain.
6. Machine Learning Era (1997–2010):
- IBM Deep Blue defeated chess champion Garry Kasparov (1997).
- Rise of statistical and data-driven approaches.
7. Deep Learning & Modern AI (2010–present):
- Breakthroughs in neural networks, big data, and GPU computing.
- Emergence of generative AI (e.g., ChatGPT, image generators).
AI has evolved from theoretical concepts to practical, widely deployed systems.
What is Machine Learning? Explain its main types with examples.
Machine Learning (ML) is a subset of AI that enables systems to automatically learn and improve from experience (data) without being explicitly programmed for every task.
Main types of Machine Learning:
-
Supervised Learning:
- The model learns from labeled data (input-output pairs).
- Examples: Spam detection, house price prediction.
- Common algorithms: Linear Regression, Decision Trees, Support Vector Machines.
-
Unsupervised Learning:
- The model finds patterns in unlabeled data.
- Examples: Customer segmentation, market basket analysis.
- Common algorithms: K-Means Clustering, PCA.
-
Reinforcement Learning:
- An agent learns by interacting with an environment and receiving rewards or penalties.
- Examples: Game-playing AI, robotics, self-driving cars.
General workflow:
- Collect and prepare data.
- Choose and train a model.
- Evaluate performance.
- Deploy and improve.
ML powers recommendation systems, fraud detection, and image recognition.
Explain the concept of Neural Networks and describe their basic structure.
A Neural Network is a computing system inspired by the human brain, made up of interconnected units called neurons (or nodes) that process information collectively to solve complex problems.
Basic structure:
- Input Layer: Receives the raw input data (features).
- Hidden Layer(s): Perform computations and extract patterns. Networks with many hidden layers are called deep neural networks.
- Output Layer: Produces the final result (e.g., classification or prediction).
Working of a neuron:
Each neuron computes a weighted sum of inputs, adds a bias, and passes it through an activation function:
where:
- = inputs
- = weights
- = bias
- = activation function (e.g., sigmoid, ReLU)
Key points:
- Learning happens by adjusting weights through a process called backpropagation.
- Neural networks excel at image recognition, speech processing, and language tasks.
They form the foundation of deep learning.
What is Natural Language Processing (NLP)? Discuss its major applications.
Natural Language Processing (NLP) is a field of AI that enables computers to understand, interpret, generate, and respond to human language in a meaningful way.
Key tasks in NLP:
- Tokenization: Breaking text into words or sentences.
- Part-of-Speech Tagging: Identifying nouns, verbs, etc.
- Named Entity Recognition: Detecting names, dates, locations.
- Sentiment Analysis: Determining emotional tone.
- Machine Translation: Converting text between languages.
Major applications:
- Virtual Assistants: Siri, Alexa, Google Assistant.
- Chatbots: Customer service automation.
- Language Translation: Google Translate.
- Text Summarization: Condensing long documents.
- Spam Filtering: Classifying emails.
- Search Engines: Understanding user queries.
Challenges:
- Ambiguity in language.
- Sarcasm and context understanding.
- Multiple languages and dialects.
NLP bridges the gap between human communication and computer understanding.
Explain Generative AI and how it differs from traditional AI systems.
Generative AI refers to AI systems that can create new content — such as text, images, audio, video, or code — that resembles human-created content, rather than just analyzing or classifying existing data.
How it works:
- It learns patterns and structures from large datasets.
- It then generates new, original outputs based on learned patterns.
- Common models include Large Language Models (LLMs) and Generative Adversarial Networks (GANs).
Examples of Generative AI:
- ChatGPT: Generates human-like text.
- DALL·E / Midjourney: Generate images from text prompts.
- GitHub Copilot: Generates code.
Difference from traditional AI:
| Aspect | Traditional AI | Generative AI |
|---|---|---|
| Purpose | Analyze / classify / predict | Create new content |
| Output | Labels, decisions | Text, images, audio |
| Example | Spam detection | Writing an essay |
Applications: Content creation, design, drug discovery, and virtual assistants.
Concerns: Misinformation, copyright issues, and ethical use.
Define Data Science and explain its importance in the modern world.
Data Science is an interdisciplinary field that uses scientific methods, algorithms, statistics, and systems to extract meaningful insights and knowledge from structured and unstructured data.
Components of Data Science:
- Statistics & Mathematics: For analysis and modeling.
- Programming: Using languages like Python and R.
- Domain Knowledge: Understanding the business context.
- Machine Learning: For predictions and pattern discovery.
Importance of Data Science:
- Better Decision-Making: Provides data-driven insights.
- Business Growth: Identifies trends and customer behavior.
- Automation: Powers recommendation and prediction systems.
- Innovation: Enables research in healthcare, finance, and more.
- Risk Management: Detects fraud and anomalies.
Applications:
- Personalized recommendations (Netflix, Amazon).
- Healthcare diagnostics.
- Financial forecasting.
- Smart city planning.
Data Science turns raw data into actionable knowledge, making it a critical asset in the digital age.
What is Big Data? Explain its characteristics using the 5 V's.
Big Data refers to extremely large and complex datasets that cannot be effectively processed, stored, or analyzed using traditional data-processing tools.
Characteristics — The 5 V's of Big Data:
-
Volume:
- Refers to the enormous amount of data generated (terabytes, petabytes).
- Example: Social media posts, sensor data.
-
Velocity:
- The speed at which data is generated and processed.
- Example: Real-time stock trading data.
-
Variety:
- Different types of data — structured, semi-structured, unstructured.
- Example: Text, images, videos, logs.
-
Veracity:
- The quality and reliability of data.
- Deals with uncertainty and inconsistency.
-
Value:
- The usefulness of data in generating insights.
- Extracting meaningful information for decisions.
Technologies used: Hadoop, Spark, NoSQL databases.
Big Data drives analytics, AI, and business intelligence across industries.
Describe various data collection methods used in data science.
Data collection is the process of gathering information from various sources to be used for analysis. Choosing the right method ensures accurate and reliable results.
Common data collection methods:
-
Surveys and Questionnaires:
- Collect data through structured questions.
- Useful for opinions, feedback, and demographics.
-
Interviews:
- Direct interaction to gather detailed qualitative data.
-
Observation:
- Recording behavior or events as they occur.
-
Experiments:
- Collecting data under controlled conditions.
-
Web Scraping:
- Automatically extracting data from websites.
-
Sensors and IoT Devices:
- Collecting real-time data (temperature, motion, etc.).
-
Existing Databases and Records:
- Using organizational or public data repositories.
-
APIs:
- Fetching data from online services programmatically.
Considerations:
- Accuracy and reliability.
- Cost and time.
- Ethical and privacy concerns.
Effective data collection is the foundation of quality analysis.
Distinguish between Primary Data and Secondary Data with examples.
Primary Data is data collected firsthand by the researcher for a specific purpose, while Secondary Data is data that has already been collected by someone else and is reused.
Comparison:
| Aspect | Primary Data | Secondary Data |
|---|---|---|
| Definition | Collected firsthand | Already collected by others |
| Source | Surveys, experiments, interviews | Books, reports, databases |
| Cost | Expensive | Cheaper |
| Time | Time-consuming | Quick to obtain |
| Accuracy | High (specific to purpose) | May be outdated or generic |
| Control | Full control over collection | Limited control |
Examples:
- Primary Data: Data from a survey you conducted, sensor readings you recorded.
- Secondary Data: Government census reports, published research papers, company records.
Conclusion:
- Primary data is more accurate but costly; secondary data is convenient but may lack relevance or freshness. The choice depends on the research needs, budget, and time.
Explain the basics of Data Cleaning and why it is essential in data analysis.
Data Cleaning (also called data cleansing) is the process of detecting and correcting (or removing) errors, inconsistencies, and inaccuracies in a dataset to improve its quality.
Common data cleaning tasks:
-
Handling Missing Values:
- Filling with mean/median or removing incomplete records.
-
Removing Duplicates:
- Eliminating repeated records.
-
Correcting Errors:
- Fixing typos, wrong formats, or invalid entries.
-
Handling Outliers:
- Identifying and treating extreme values.
-
Standardizing Formats:
- Ensuring consistent units, dates, and text case.
Why data cleaning is essential:
- Accuracy: Clean data leads to reliable results.
- Better Decisions: Poor data leads to poor conclusions ("garbage in, garbage out").
- Efficiency: Reduces errors in later analysis.
- Model Performance: Improves accuracy of ML models.
Data cleaning often consumes the majority of a data scientist's time but is crucial for trustworthy insights.
What is Data Transformation? Describe common data transformation techniques.
Data Transformation is the process of converting data from one format or structure into another to make it suitable for analysis or modeling.
Common data transformation techniques:
-
Normalization:
- Scaling values to a range such as .
- Formula:
-
Standardization:
- Rescaling data to have mean and standard deviation .
- Formula:
-
Aggregation:
- Combining data (e.g., summing daily sales into monthly totals).
-
Encoding:
- Converting categorical data into numeric form (e.g., one-hot encoding).
-
Discretization:
- Converting continuous data into categories or bins.
-
Feature Construction:
- Creating new variables from existing ones.
Importance:
- Makes data consistent and comparable.
- Improves model performance.
- Prepares data for algorithms that require specific formats.
Transformation is a key step in the data preprocessing pipeline.
Introduce Data Analytics and explain its four main types.
Data Analytics is the process of examining, cleaning, and modeling data to discover useful information, draw conclusions, and support decision-making.
Four main types of Data Analytics:
-
Descriptive Analytics:
- Answers "What happened?"
- Summarizes past data using reports and dashboards.
- Example: Monthly sales report.
-
Diagnostic Analytics:
- Answers "Why did it happen?"
- Identifies causes of past outcomes.
- Example: Analyzing why sales dropped.
-
Predictive Analytics:
- Answers "What is likely to happen?"
- Uses statistical models and ML to forecast.
- Example: Predicting customer churn.
-
Prescriptive Analytics:
- Answers "What should we do?"
- Recommends actions based on predictions.
- Example: Suggesting optimal pricing.
Importance:
- Improves decision-making.
- Identifies opportunities and risks.
- Enhances efficiency and competitiveness.
Data analytics turns raw data into strategic insights.
Compare Artificial Intelligence, Machine Learning, and Deep Learning.
These three terms are related but represent different levels of a hierarchy, where Deep Learning ⊂ Machine Learning ⊂ Artificial Intelligence.
Artificial Intelligence (AI):
- The broadest concept: making machines simulate human intelligence.
- Includes reasoning, learning, and problem-solving.
Machine Learning (ML):
- A subset of AI where systems learn from data.
- Uses algorithms that improve automatically with experience.
Deep Learning (DL):
- A subset of ML based on neural networks with many layers.
- Excels with large data and complex patterns.
Comparison Table:
| Aspect | AI | ML | Deep Learning |
|---|---|---|---|
| Scope | Broadest | Subset of AI | Subset of ML |
| Data need | Varies | Moderate | Very large |
| Approach | Rules + learning | Statistical learning | Neural networks |
| Example | Chess robot | Spam filter | Image recognition |
Conclusion:
AI is the goal, ML is one way to achieve it, and DL is a powerful technique within ML.
Explain the concept of backpropagation in neural networks and derive the basic weight update rule.
Backpropagation is the core algorithm used to train neural networks by adjusting weights to minimize the error between predicted and actual outputs.
Working steps:
- Forward Pass: Input data passes through the network to produce an output.
- Calculate Error: Compare output with the actual target using a loss function.
- Backward Pass: Propagate the error backward and compute gradients.
- Update Weights: Adjust weights using gradient descent.
Loss function (example — Mean Squared Error):
Weight update rule (Gradient Descent):
The weight is updated in the opposite direction of the gradient:
where:
- = learning rate (controls step size)
- = gradient of error with respect to weight
Key points:
- Uses the chain rule of calculus to compute gradients layer by layer.
- Repeated over many epochs until error is minimized.
Backpropagation enables deep networks to learn complex mappings from data.
Discuss the applications of Artificial Intelligence across different industries.
AI has become integral to numerous industries, transforming operations and services.
Applications by industry:
-
Healthcare:
- Disease diagnosis, medical imaging, drug discovery, personalized treatment.
-
Finance:
- Fraud detection, algorithmic trading, credit scoring, chatbots.
-
Retail & E-commerce:
- Recommendation systems, inventory management, personalized marketing.
-
Transportation:
- Self-driving cars, route optimization, traffic prediction.
-
Manufacturing:
- Predictive maintenance, quality control, robotics automation.
-
Education:
- Personalized learning, automated grading, virtual tutors.
-
Agriculture:
- Crop monitoring, yield prediction, precision farming.
-
Entertainment:
- Content recommendation (Netflix, Spotify), game AI.
Benefits:
- Increased efficiency and accuracy.
- Cost reduction.
- Better customer experience.
Challenges:
- Job displacement, privacy concerns, ethical issues.
AI continues to reshape how industries operate and deliver value.
Explain the data science lifecycle and the stages involved in a data science project.
The data science lifecycle is a structured sequence of stages that guide a project from problem definition to deployment.
Stages of the data science lifecycle:
-
Problem Definition:
- Understand the business problem and set objectives.
-
Data Collection:
- Gather relevant data from various sources.
-
Data Cleaning & Preparation:
- Handle missing values, remove duplicates, and format data.
-
Exploratory Data Analysis (EDA):
- Analyze data patterns using statistics and visualization.
-
Feature Engineering:
- Select and create meaningful variables.
-
Model Building:
- Apply ML algorithms to build predictive models.
-
Model Evaluation:
- Assess accuracy using metrics (accuracy, precision, recall).
-
Deployment:
- Integrate the model into production systems.
-
Monitoring & Maintenance:
- Track performance and update as needed.
Importance:
- Provides a systematic approach.
- Ensures reliable and actionable results.
Each stage is iterative and may require revisiting earlier steps.
What are the challenges and ethical concerns associated with AI and data science?
As AI and data science grow in influence, they raise important challenges and ethical concerns.
Technical challenges:
- Data Quality: Incomplete or biased data leads to poor results.
- Scalability: Handling massive datasets efficiently.
- Interpretability: "Black box" models are hard to explain.
Ethical concerns:
-
Bias and Fairness:
- AI can reinforce existing biases if trained on biased data.
-
Privacy:
- Collection and use of personal data raise privacy issues.
-
Transparency:
- Difficulty in understanding how decisions are made.
-
Job Displacement:
- Automation may replace human jobs.
-
Security:
- Risk of misuse, hacking, and data breaches.
-
Accountability:
- Who is responsible when AI makes errors?
-
Misinformation:
- Generative AI can create fake content (deepfakes).
Solutions:
- Ethical guidelines, regulations (e.g., GDPR).
- Explainable AI and fairness audits.
- Human oversight.
Responsible AI ensures technology benefits society while minimizing harm.
Explain the different types of data (structured, semi-structured, and unstructured) with examples.
Data can be classified based on how it is organized and stored.
1. Structured Data:
- Highly organized and stored in a fixed format (rows and columns).
- Easily searchable using databases (SQL).
- Examples: Excel sheets, relational databases, transaction records.
2. Semi-Structured Data:
- Does not fit into rigid tables but has some organizational tags or markers.
- Partially organized.
- Examples: JSON, XML files, emails, log files.
3. Unstructured Data:
- Has no predefined format or structure.
- Difficult to store and analyze with traditional tools.
- Examples: Images, videos, audio, social media posts, text documents.
Comparison Table:
| Type | Organization | Storage | Example |
|---|---|---|---|
| Structured | High | Relational DB | Bank records |
| Semi-Structured | Partial | NoSQL / files | JSON, XML |
| Unstructured | None | Data lakes | Videos, images |
Note: A large portion of Big Data (around 80%) is unstructured, requiring advanced tools for analysis.
Describe the role of activation functions in neural networks and explain common examples.
An activation function determines whether a neuron should be activated (fire) by introducing non-linearity into the network, enabling it to learn complex patterns.
Why activation functions are needed:
- Without them, the network would behave like a simple linear model.
- They allow neural networks to approximate complex, non-linear functions.
Common activation functions:
-
Sigmoid:
- Squashes values between and .
- Formula:
- Used in binary classification.
-
Tanh (Hyperbolic Tangent):
- Outputs values between and .
- Formula:
-
ReLU (Rectified Linear Unit):
- Outputs for negatives, and the value itself for positives.
- Formula:
- Most widely used in deep learning.
-
Softmax:
- Converts outputs into probabilities that sum to .
- Used in multi-class classification.
Conclusion:
Activation functions are essential for the learning capability and performance of neural networks.
Define Artificial Intelligence (AI) and explain its scope in modern computing.
Artificial Intelligence (AI) is the branch of computer science concerned with building machines and software systems capable of performing tasks that normally require human intelligence, such as reasoning, learning, problem-solving, perception, and language understanding.
Scope of AI includes:
- Machine Learning: Systems that learn from data without being explicitly programmed.
- Natural Language Processing (NLP): Understanding and generating human language.
- Computer Vision: Interpreting images and video.
- Robotics: Physical machines that sense and act in the environment.
- Expert Systems: Rule-based systems that mimic human decision-making.
- Speech Recognition: Converting spoken language into text.
Key characteristics:
- Ability to learn and adapt from experience.
- Ability to reason and draw conclusions.
- Ability to perceive the environment through sensors or data.
AI spans across industries like healthcare, finance, transportation, and education, making it one of the most transformative technologies of the modern era.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill. The rest comes out of a student's own pocket: the domain, the storage, and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason. to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it. What it pays for →