0% found this document useful (0 votes)
4 views2 pages

Question Paper

The document is a question paper for a Data Science & Machine Learning course, consisting of two sections worth a total of 50 marks. Section A includes practical programming tasks using Python, focusing on student marks, an object-oriented banking system, and sales data analysis with Pandas. Section B covers theoretical concepts in machine learning and requires the application of models on the Wine Quality dataset.

Uploaded by

24divya693
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Question Paper

The document is a question paper for a Data Science & Machine Learning course, consisting of two sections worth a total of 50 marks. Section A includes practical programming tasks using Python, focusing on student marks, an object-oriented banking system, and sales data analysis with Pandas. Section B covers theoretical concepts in machine learning and requires the application of models on the Wine Quality dataset.

Uploaded by

24divya693
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

QUESTION PAPER

Subject: Data Science & Machine Learning


Marks: 50
Time: 2 Hours

SECTION-A (Each Question carries 10 Marks)

1. List of student marks in Python:


Given a list of student marks:
marks = [45, 76, 89, 53, 67, 90, 82, 49, 33, 99]
Solve the following problems using list comprehension:
a) Filter out students who passed (marks ≥ 50).
b) Categorize grades: A (85+), B (70-84), C (50-69), F (<50).
c) Add 5 grace marks to students who failed (<50).
d) Identify the top 3 scorers.
e) Find the average marks of the class.

2. Object-Oriented Banking System


Write a Python program for a banking application using an object-oriented approach (class,
constructor, methods, and return values).
a) Initialize the account balance with ₹1000 and withdraw ₹600. Display the total balance.
b) If the total balance is less than ₹500, send a notification:
"Please deposit money, or ₹50 will be deducted as a penalty at the end of the month."

3. Sales Data Analysis using Pandas


Given sales data:

data = {
'Region': ['North', 'South', 'East', 'West', 'North', 'South', 'East',
'West'],
'Product': ['A', 'A', 'B', 'A', 'B', 'A', 'B', 'A'],
'Sales': [200, 300, 150, 400, 250, 100, 300, 500],
'Transactions': [2, 4, 3, 5, 1, 2, 6, 3]
}

Using pandas, solve the following:


a) Compute the total sales per region.
b) Find the number of transactions per region.
c) Calculate the average sales per region.
d) Determine the total number of transactions per region.
SECTION-B (Each Question carries 10 Marks)

4. Machine Learning Statistical Concepts


Explain the following concepts with examples and describe their relationship with Machine
Learning:
a) Correlation
b) R-Squared Value
c) Box Plot
d) Outliers

5. Machine Learning Model on Wine Quality Dataset


Train a machine learning model on the Wine Quality dataset using the following steps:
a) Load and explore the dataset.
b) Perform data preprocessing (handle missing values, encode categorical variables, scale
numerical features).
c) Train a model using Logistic Regression, Decision Tree, and Random Forest algorithms.
d) Apply cross-validation to assess generalization performance.

You might also like