0% found this document useful (0 votes)
21 views4 pages

Data Science & Python Exam Guide

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)
21 views4 pages

Data Science & Python Exam Guide

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

SCALABLE INSTITUTE OF COMPUTER EDUCATION

Subject: Data Science and Python Programming


Date: 23-07-2025
Marks: 70
Time: 1:30 Hours

Instructions
- All questions are compulsory.
- Attempt all sections.
- Answer all programming questions with proper syntax and comments.

Section A: Data Science Concepts (20 Marks)


Q1. Explain the 10 steps of a Data Science Project Life Cycle. (5 marks)
Q2. Answer the following: (5 marks)
a) Discrete vs Continuous Data (2 marks)
b) Descriptive vs Inferential Statistics (3 marks)
Q3. Write short notes: (5 marks)
a) Central Tendency (2 marks)
b) Standard Deviation & Variance (2 marks)
c) Importance of Spread (1 mark)
Q4. List any 5 visualization libraries or tools used in Data Science. (2 marks)
Q5. Differentiate between: (3 marks)
a) Histogram vs Bar Graph (1.5 marks)
b) Box Plot vs Scatter Plot (1.5 marks)

Section B: Visual Analysis (15 Marks)


Observe the given figures (Bar Graph, Histogram, Box Plot, Scatter Plot) and answer
accordingly.

Q6. Based on Figure 1 – Bar Graph: (5 marks)

1
a) Which subject had the highest score? (1 mark)
b) Which had the lowest score? (1 mark)
c) What type of data is displayed: categorical or continuous? (1 mark)
d) Find the average score from the graph. (2 marks)

Q7. Based on Figure 2 – Histogram: (6 marks)

2
a) What does the histogram represent? (1 mark)
b) Which age group had the highest frequency? (1 mark)
c) Is the data normally distributed or skewed? (1 mark)
d) Suggest one use-case of histogram in real-world analytics. (1 mark)
e) Mention the range of the most common age group. (2 marks)

Q8. Based on Figure 3 – Box Plot: (4 marks)

a) What is the median value in the data? (1 mark)


b) What are Q1 and Q3? (1 marks)
c) What is the Interquartile Range (IQR)? (1 mark)
d) Are there any outliers? Explain. (1 marks)

Section C: Python Programming (35 Marks)


Q10. Answer the following: (5 marks)
a) What is a variable in Python? Give an example. (1 mark)
b) List two differences between list and tuple (1 mark)
c) Define Boolean. Where is it used? (1 mark)
d) Write datatypes in Python? (1 mark)
e) Why is indentation important in Python? (1 mark)

Q11. Write Python Programs (30 marks)

3
a) Program to write a multiplication table of 13 × 1 = 13. (4 marks)
b) Program using if...else to check the largest of three numbers. (4 marks)
c) Program to create and display a dictionary of students. (4 marks)
d) Program using list comprehension to display squares of even numbers from 1 to 50. (4
marks)
e) Create a class Person and subclass Student with inheritance. (4 marks)
f) Program using lambda to multiply two numbers. (2 marks)
g) Write a Python program to create a base class Vehicle with a method info(). Derive two
subclasses Car and Bike that override the info() method to print specific information
about each vehicle.
h) Create a base class Employee with attributes name and salary. Create a subclass Manager
that adds a department attribute and a method display_details() to show all
information. Write a program to create a Manager object and display its details.

Common questions

Powered by AI

Inheritance in Python allows new classes to derive properties and methods from existing ones, promoting code reuse and better organization by reducing redundancy. For instance, a base class 'Vehicle' with a method 'info()' can be extended by 'Car' and 'Bike' subclasses, each overriding 'info()' to provide specific details. This not only streamlines code maintenance but also enhances modularity and scalability of applications .

Using improper data visualization tools can lead to misinterpretation of data, masking of critical insights, and inaccurate decision-making. For instance, using a bar graph for continuous data instead of a histogram may obscure data distribution patterns. Proper tool selection is crucial to accurately represent and interpret data characteristics, ensuring that stakeholders can rely on visualizations for informed decisions .

Lambda functions in Python are beneficial in scenarios requiring quick and concise function definitions, especially when functions are used briefly, like in callbacks or when passing small functions as arguments to higher-order functions such as map() or filter(). They improve script succinctness and are ideal for single-expression functionalities where function reuse is not a concern .

Descriptive statistics summarize data from a sample using measures such as mean or standard deviation, providing a way to present raw data in a meaningful way. Inferential statistics use a random sample of data taken from a population to describe and make inferences about the population. This distinction is crucial because descriptive statistics help in understanding and interpreting the dataset, whereas inferential statistics allow data scientists to draw conclusions and make predictions beyond the samples investigated .

Discrete data refers to countable values, usually representing distinct categories or events, such as the number of students in a class. Continuous data, on the other hand, represents measurements and can take any value within a given range, such as time or temperature. This distinction is significant because it influences the choice of statistical methods and visualizations; discrete data is often analyzed using bar charts, while continuous data might use histograms to illustrate frequency distributions .

Lists and tuples differ in mutability and syntax; lists are mutable and use square brackets, allowing data modification such as appending items, whereas tuples are immutable and use parentheses, providing the security of fixed data structures. For a programmer, this means lists are suitable for collections that require frequent modification, while tuples work best for constant data sets, improving performance as they can be used as keys in dictionaries due to immutability .

Indentation in Python signifies block structures for loops, conditionals, and function definitions, thus being essential for code readability and syntax correctness. Ignoring proper indentation leads to syntax errors and malfunctioning of code blocks, as Python does not use traditional braces or symbols to denote scopes, heavily relying on indentation for this purpose .

Box Plots visualize the summary statistics of a dataset, such as the median, quartiles, and outliers, offering insights into the distribution of data, while Scatter Plots display values for two variables per data point, illustrating the relationship between them. Box Plots are beneficial for statistical analysis of data spread and outliers, whereas Scatter Plots are useful for identifying potential correlations between variables. Each serves different purposes in exploratory data analysis .

Standard deviation and variance are measures of spread within a dataset. Variance quantifies the degree to which data points deviate from the mean, while the standard deviation, being the square root of variance, provides a measure of spread in the same units as the data. These metrics are vital in identifying the variability within a dataset, assessing risk, and comparing datasets. A higher variance or standard deviation indicates more spread out data, which can impact decisions made based on this data .

The Data Science Project Life Cycle involves ten steps: 1) Understanding the problem, 2) Data collection, 3) Data cleaning, 4) Data exploration and analysis, 5) Feature engineering, 6) Data modeling, 7) Model evaluation and optimization, 8) Model deployment, 9) Monitoring and maintenance, 10) Documentation and communication. These steps are crucial as they provide a structured approach to solving complex data-related problems, ensuring that each aspect of the project is methodically addressed, from problem formulation to deployment and maintenance .

You might also like