Python QB
Python QB
16. What is the difference between ‘w’ and ‘a’ mode? C116.2 U
17. What is an exception in python? C116.2 R
Introduction to Data Science- Applications of Data Science - Data Science Process: Overview, Defining
Research Goals, Retrieving Data - Data Preparation: Data Wrangling- Handling Missing Data- Data
Transformation, Outlier/Noise and Anomalies, Exploratory Data Analysis, Build the Model, Present
Findings, Data Mining, Data Warehousing.
PART - B
1. Define data science. C116.3 R
2. What is big data? C116.3 R
3. What is machine learning? C116.3 U
4. What is data mining? C116.3 R
5. What are the characteristics of big data? C116.3 R
6. List some of the application domains of data science? C116.3 U
7. State the importance of setting the research goal. C116.3 U
8. List the phases involved in the data science process. C116.3 U
9. What is meant by data cleaning? C116.3 U
10. What is project charter? C116.3 R
11. Identify the important contents of a project charter. C116.3 U
12. List the categories of data. C116.3 U
13. Define data. What are the types of data. C116.3 U
14. What is Qualitative data? Give example. C116.3 U
15. What is quantitative data? Give an example. C116.3 R
16. Compare Discrete and Continuous Variables. C116.3 U
17. Define approximate numbers. What is the approximate number of 7.2 and 8.8? C116.3 U
18. What is Frequency distribution? give the types. C116.3 R
PART – C
1. Illustrate the overview of the data science process. C116.3 U
4. Discuss the significance of setting the research goal for the data science project. C116.3 Az
Discuss the strategies involved in retrieving relevant data from different sources
5. C116.3 U
of data.
Elaborate the different ways to describe or represent data using tables with
6. C116.3 U
suitable examples.
Explain the various ways by which data can be represented or described using
7. C116.3 U
graphs with suitable examples and diagrams.
Explain the different measures of central tendency and describe the suitable
8. C116.3 U
measures for the different type of data distribution.
PART - C
Construct the frequency table and draw bar graph and leaf displays for the
1. C116.3 C
following data: 139, 145, 150, 145, 136, 150, 152, 144, 138, 138.
Construct the histogram and convert it to a frequency polygon for the following
2. data:138, 139, 139, 145, 150, 145, 136, 150, 152, 144, 138, 138, 150, 149, 133, C116.3 C
134, 155, 151.
UNIT IV Descriptive Analytics
Facets of Data, Types of Variables, Statistical Description of Data, Describing Data with Tables and Graphs,
Describing Data with Averages, Describing Variability, Normal Distributions and Standard (z) Scores,
Correlation, Scatter plots, correlation coefficient for quantitative data –computational formula for correlation
coefficient, Regression, Regression line, least squares regression line.
1. Define "Facets of Data" and list any four types. C116.4 R
State the difference between Discrete and Continuous variables with one
2. C116.4 R
example each.
3. Differentiate between Nominal and Ordinal scales of measurement. C116.4 U
Define the term "Skewness." What does a zero skewness indicate about the
4. C116.4 R
data?
Why is the Median considered a more "robust" measure of central tendency
5. C116.4 U
than the Mean in skewed distributions?
6. Define "Standard (z) Score." Write its formula. C116.4 R
7. What is the significance of the "Least Squares" principle in regression? C116.4 U
8. Define the Correlation Coefficient ($r$). What is its range of values? C116.4 R
9. Briefly explain the purpose of a Scatter Plot in bivariate data analysis. C116.4 U
10. Illustrate the difference between a Histogram and a Bar Graph. C116.4 U
11. Define Z-score and its significance in Data Science. C116.4 R
12. What is the "Empirical Rule" (68-95-99.7 Rule) for a Normal Distribution? C116.4 R
13. State the principle of "Least Squares" used in Linear Regression. C116.4 U
14. Differentiate between Correlation and Regression. C116.4 U
15. What is the difference between Discrete and Continuous variables? C116.4 R
PART - C
Discuss the various types of variables (Qualitative vs. Quantitative) and explain
1. the levels of measurement (Nominal, Ordinal, Interval, Ratio) with suitable C116.4 U
examples.
Explain the process of describing data with Tables and Graphs. Discuss the
2. specific scenarios where a Frequency Polygon and an Ogive curve would be C116.4 Ap
most appropriate.
Compare the three measures of central tendency (Mean, Median, Mode). Under
3. what conditions of variability and distribution shape would each be the C116.4 Az
preferred average?
Describe the various measures of variability (Range, Variance, and Standard
4. Deviation). Calculate the Standard Deviation for the following sample data: [12, C116.4 U
15, 18, 10, 22, 15, 13].
Elaborate on the properties of a Normal Distribution. Explain the "Empirical
5. C116.4 U
Rule" (68-95-99.7) and its importance in standardized testing.
6. Explain the computational formula for the Pearson Correlation Coefficient. C116.4 Ap
Demonstrate how to interpret different values of 'r'.
Discuss the concept of a Regression Line. Explain the relationship between the
7. independent variable (x̄ ) and the dependent variable (Ȳ) in a simple linear C116.4 Az
regression model.
PART - C
Comprehensive Calculation Case:
The following data represents the study hours ($X$) and exam scores ($Y$) of
10 students:
Justify the use of Standard (z) scores in comparing scores from two different
4. C116.4 E
distributions (e.g., comparing an SAT score to an ACT score). Explain the
transformation process and the role of the Standard Normal Table.
UNIT V Numpy and Pandas Libraries
Creating Arrays, attributes, Numpy Arrays objects, Basic operations (Array Join- split- search- sort), Indexing,
Slicing and Iterating, Copying Arrays, Arrays shape Manipulation, Identity Array, eye function. Exploring Data
using Series- Exploring Data using Data Frames, Index objects- reindex, Drop Entry, Selecting Entries- Data
Alignment, Rank and Sort, Summary Statistics, Index Hierarchy.
PART- B
1. What is NumPy? C116.5 R
2. How to C a NumPy array? C116.5 U
3. What are the attributes of a NumPy array? C116.5 R
4. What is the difference between a python list and a Numpy array? C116.5 U
5. What is a NumPy array object called? C116.5 R
6. How can arrays be joined in NumPy? C116.5 R
7. How can arrays be split in NumPy? C116.5 U
8. How to search for elements in a NumPy array? C116.5 U
9. How can arrays be sorted? C116.5 U
10. What does array broadcasting mean? C116.5 R
11. What is data visualization? C116.5 R
12. Mention any two features of data visualization. C116.5 U
13. What is Matplotlib? C116.5 R
14. What is the purpose of the [Link]() command? C116.5 R
15. Differentiate between Figure and Axes in Matplotlib. C116.5 U
16. What function is used to C subplots in Matplotlib? C116.5 U
17. What is the use of the labelpad parameter in axis labeling? C116.5 R
18. What is a legend in a plot? C116.5 R
19. How do you save a plot to a file in Matplotlib? C116.5 U
20. How do you load a CSV file in Pandas? C116.5 R
21. Explain the head() and tail() methods. C116.5 U
22. What is the purpose of [Link]()? C116.5 U
23. How do you handle missing values in a DataFrame? C116.5 R
24. Write the code to filter rows based on a condition. C116.5 R
25. Which function is used to annotate specific points in a plot? C116.5 U
26. What is the difference between loc and iloc? C116.5 U
PART – C
Explain the creation of arrays in NumPy with examples for different methods
1. C116.5 U
such as array(), arange(), linspace(), and Zeros(). Compare their use cases.
Describe in detail the important attributes of NumPy arrays. Write a python
2. C116.5 U
program to display the attributes ndim, shape, size, and typefor a given array.
Discuss on NumPy array objects? Explain the features and advantages of ndarray
3. C116.5 U
over traditional python lists with suitable examples.
Explain various basic operations that can be performed on NumPy arrays such as
4. C116.5 U
join, split, search, and sort with proper coding examples.
Discuss indexing, slicing and iterating operations in Numpy arrays. Demonstrate
5. C116.5 Az
how to access and manipulate elements using these techniques.
6. Explain the concept of subplots in Matplotlib with an example. C116.5 U
Describe how legends and annotations enhance the readability of data
7. C116.5 Az
visualization.
PART – C
Explain the difference between line plots, scatter plots, and bar plots with
1. C116.5 U
suitable examples.
Illustrate the significance of choosing appropriate visualization type for
2. C116.5 E
different kinds of data.
Explain the core data structures in the pandas library, Series and DataFrame.
Discuss their key features, how they differ from each other, and provide
3. examples of how each can be Cd. Furthermore, describe how pandas C116.5 Ap
facilitates efficient data loading from various file formats (e.g., CSV, Excel,
SQL databases).
Describe the essential steps involved in data cleaning and preprocessing
using pandas. Focus on methods for handling missing values (e.g., dropna(),
4. fillna(), interpolation), detecting and removing duplicate entries, and Aping C116.5 Ap
custom functions for data transformation. Provide explanations of relevant
pandas functions and when to use them.
Discuss the role of data aggregation in computing descriptive statistics for a
dataset using pandas. Explain the concepts of grouping data using groupby()
5. and Aping various aggregation functions (e.g., mean(), median(), describe()). C116.5 Ap
Use a hypothetical scenario (e.g., analyzing student scores by subject) to
illustrate the process and the insights gained.
UNIT VI Data Visualization
Introduction to Matplotlib, Plots, making subplots, Controlling axes, Ticks, Labels and legends, Annotations and
drawing on subplots, Saving plots to files, Seaborn library, Making sense of data through advanced visualization,
Controlling the properties of Chart, Scatter plot, Line plot, Bar plot, Histogram, Box plot, Pair plot, Styling your
plot, 3D plot of surface.
PART - B
Define the purpose of the %matplotlib inline magic command in Jupyter
1. C116.5 R
Notebooks.
2. Differentiate between [Link]() and [Link](). C116.5 U
3. List the parameters used in the [Link]() function to create a 2x2 grid. C116.5 R
4. How do you change the color and line style of a plot in Matplotlib? C116.5 U
9. What information does a Box Plot provide regarding data distribution? C116.5 U
10. Write the syntax to create a 3D surface plot using mplot3d. C116.5 U
PART – C
1. a) Explain the Matplotlib Object-Oriented interface in detail. Compare it C116.5 Ap
with the Pyplot state-machine interface.
b) Demonstrate how to customize Ticks, Labels, and Legends for a multi-line
graph.
Discuss the process of creating and managing subplots. Provide a Python
2. code snippet to draw four different types of charts in a single 2 × 2 figure C116.5 Ap
with a common title.
a) Explain the role of Annotations in data visualization. Write a script to
annotate the maximum value in a sine wave plot.
3. C116.5 Ap
b) Describe the various styling parameters available in Seaborn to enhance
plot aesthetics (set_style, set_context).
Compare and contrast Histogram and Bar Plot. Under what scenarios would
4. C116.5 Az
you choose a Pair Plot over a simple Scatter Plot? Justify with examples.
a) Explain how to visualize 3D surfaces using Matplotlib. Include the
5. importance of meshgrid in this process. C116.5 Ap
b) Write a program to generate a 3D surface plot