You are on page 1of 6

L.J.

Institute of Engineering & Technology Semester: V (2020)

Subject Name: Python for Data Science


Subject Code: 3150713

Faculty Name: Vishal Parikh, Alpa Rupala

Sr.
No CHAPTER NO - 1: Overview of Python and Data Structures Marks

TOPIC:1 Basics of Python including data types, variables, expressions,


objects and functions

1 What are the differences between C and Python? [Old_May_2017][LJIET] 07


2 What are the differences between Java and Python? [LJIET] 03
3 Explain all the features of python language. [LJIET] 07
4 Explain built-in data types of python. [Old_May_2017][LJIET] 04
How to comment specific line(s) in Python program? [Old_Nov_2017][
5 03, 03
Old_May_2018][LJIET]
Give the syntax and significance of raw_input() and input() methods. [ Old_Nov_2017][LJIET]
OR
04, 04,
6 Explain raw_input() and input() in Python. [ Old_Nov_2018] [LJIET] OR
03
Give syntax of the methods which can be used to take input from the user in python program. [
Old_May_2018][LJIET]
7 Explain in operator in Python with an example. [Old_May_2018][LJIET] 03
8 What is the difference between = = and is operator in Python? [Old_May_2018][LJIET] 03
9 Write a Python Program to Find the Sum of Natural Numbers. [LJIET] 04
10 Write a Python Program to Print all Prime Numbers between an Intervals. [LJIET] 04
11 Write a Python Program to Check Leap Year. [LJIET] 04
12 Write a Python Program to Find the Factorial of a Number. [LJIET] 04
13 Write a Python program to print Fibonacci series up to n terms. [Old_Nov_2017][LJIET] 04
Define function and explain types of function arguments & function definition in detail.
14 07
[LJIET]
Write a Python program to check whether the given no is Armstrong or not using user defined
15 07
function. [ Old_Nov_2017][LJIET]
Write a Python program to find reverse of given number using user defined function. [
16 07
Old_May_2018] [LJIET]
Create a calculator application. Write code that will take two numbers and an operator in the
format: N1 OP N2, where N1 and N2 are floating point or integer values, and OP is one of the
17 following: +, -, *, /, %, **, representing addition, subtraction, multiplication, division, 07
modulus/remainder, and exponentiation, respectively, and displays the result of carrying out that
operation on the input operands. Hint: You may use the string split() method. [LJIET]
What is lambda function in python? Explain with any one example.
03,07,
18 [Old_May_2017][Old_Nov_2017][LJIET] OR Explain lambda in python with example.
03
[Old_Nov_2018][LJIET]
19 Define recursion and explain it by implementing factorial of a given number. [LJIET] 07
20 Write a Python program to generate Fibonacci series using recursion. [ Old_Nov_2018][LJIET] 04
21 Write a python program to find whether the entered string is Palindrome or not. [LJIET] 04
Write a Python program that counts the number of occurrences of the character in the given
22 05
string. Provide two implementations: recursive and iterative. [ Old_May_2017][LJIET]
23 Write the differences between Global V/s Local Variables. [LJIET] 04
24 Explain namespaces in Python. [ Old_Nov_2018] [LJIET] 03
Python for Data Science (3150713) 2020 Page 1
L.J. Institute of Engineering & Technology Semester: V (2020)

TOPIC:2 Python data structures including String, Array, List, Tuple, Set,
Dictionary and operations them

What is list in Python? Demonstrate use of any three methods of list. [ Old_Nov_2017][LJIET]
1 OR 07 , 03
Explain List in Python. [ Old_Nov_2018][LJIET]
2 Show the difference between List and Tuple by an example. [LJIET] 04
3 Define: 1) String 2) List 3) Tuple 4) Dictionary [LJIET] 04
4 Explain string Built-In-Functions in detail. [LJIET] 07
5 Write a python program to compute an average by using a given list. [LJIET] 04
6 What is the use of islower() and isupper() method? [ Old_Nov_2017][LJIET] 03
7 Explain Tuples in Python with example. [ Old_Nov_2018][LJIET] 07
Write a program that reads the words in words.txt and stores them as keys in a dictionary and
8 07
count the frequency of it as a value and print 10 records with highest. [LJIET]
9 Discuss common operations on dictionary. [LJIET] 07
Give the syntax and significance of string functions: title() and capitalize().[ Old_Nov_2017]
10 [LJIET] 04, 03
Explain title() and capitalize() method. [ Old_Nov_2018] [LJIET]
11 What is dictionary in Python? Explain with an example. [ Old_Nov_2017][LJIET] 04
Give the output of following Python code [ Old_Nov_2017][LJIET]:
12 l=[(x, y) for x in [1,2,3] for y in [3,1,4] if x != y] 03
print l
Give the output of following Python code [ Old_Nov_2017][LJIET]:
str1 = ‘This is Pyhton’
13 04
print "Slice of String : ", str1[1 : 4 : 1]
print "Slice of String : ", str1[0 : -1 : 2]
How map can be used in Python program? Explain with a suitable example.
14 03
[Old_Nov_2017][LJIET]
15 Explain Dictionary in Python with example. [ Old_Nov_2018][LJIET] 07
16 Give the syntax and significance of string functions: title() and strip(). [Old_May_2018][LJIET] 04
How append() and extend() are different with reference to list in Python?
17 04
[Old_May_2018][LJIET]
Give the output of following Python code:
myStr = ‘GTU is the best University’
18 04
print myStr [15 : : 1]
print myStr [-10 : -1 : 2] [ Old_May_2018][LJIET]
Write a Python program which will return the sum of the numbers in the array, returning 0 for
an empty array. Except the number 13 is very unlucky, so it does not count and number that
19 come immediately after 13 also do not count. Example : [1, 2, 3, 4] = 10 07
[1, 2, 3, 4, 13] = 10
[13, 1, 2, 3, 13] = 5 [ Old_May_2018][LJIET]
Write a Python program to remove the first occurrence of a specified element from an array.
20 04
[Old_Nov_2018] [LJIET]
Give the output of following Python code:
t = (1, 2, 3, (4, ), [ 5, 6] )
21 print t[ 3 ] 04
t[4][0] = 7
print t [Old_May_2018][LJIET]
Write a Python program which takes a list and returns a list with the elements "shifted left by
22 07
one position" so [1, 2, 3] yields [2, 3, 1].
Python for Data Science (3150713) 2020 Page 2
L.J. Institute of Engineering & Technology Semester: V (2020)

Example: [1, 2, 3] → [2, 3, 1]


[11, 12, 13] → [12, 13, 11] [Old_May_2018][LJIET]
23 Explain sort () with an example. [Old_May_2018][LJIET] 03
24 How sorted () can be used with list in Python? Give an example. [Old_May_2018][LJIET] 03
25 Write a Python Program to multiply two matrices. [Old_Nov_2018] [LJIET] 04
26 Is tuple mutable? Demonstrate any two methods of tuple. [Old_Nov_2017][LJIET] 03

CHAPTER NO - 2: Data Science and Python


TOPIC:1 : Discovering the match between data science and python

1 What is Data Science? What are the core Competencies of data science? [LJIET] 05
2 How the big data and AI are correlated with data science? [LJIET] 03
3 Distinguish between Data Science, Big Data and AI. [LJIET] 05
4 How to create data science pipeline? [LJIET] 03
5 How to Prepare the data? [LJIET] 03
6 What is data analysis and Exploratory data analysis?[LJIET] 05
7 How we can learn from the data? [LJIET] 03
8 What is data visualization? [LJIET] 03
9 How to obtain insight and data products?[LJIET] 03
10 What is the Role of Python in Data Science? [LJIET] 03
How to Load data, create and training and view of result of model is done in Python? Give an
11 07
example for loading, creating and training and viewing the result. [LJIET]

TOPIC:2 : Introducing Python's Capabilities and Wonders

What is the need of indentation in Python? [LJIET] OR


1 03,05
Explain importance of indentation in Python with help of an example. [LJIET]
2 Explain Rapid Prototyping and Experimentation in Python. [LJIET] 05
3 How to use Python Ecosystem for Data Science? [LJIET] 03
4 List different libraries available in Python also provide short description of libraries. [LJIET] 07

CHAPTER NO - 3: Getting Your Hands Dirty With Data


TOPIC:1 : Understanding the tools

1 How we can get help from Python? Explain it with an example. [LJIET] 03
2 List different Magic functions. Explain Cell magic functions with appropriate examples. [LJIET] 07
List different Magic functions. Explain Line magic functions with appropriate examples.
3 07
[LJIET]
4 Explain how we can work with styles in Jupyter Notebook with an example. [LJIET] 05
What is Kernel? What are the different options available for working with Kernel? Explain them
5 05
in brief. [LJIET]
6 Define Checkpoint. What is the use of checkpoint in Jupyter notebook? [LJIET] 03
Explain how we can integrate multimedia and Graphics in Jupyter notebook with an example.
7 05
[LJIET]
8 Explain how we can embed plots in Jupyter notebook with an example. [LJIET] 05
9 Explain how we can load images in Jupyter notebook with an example. [LJIET] 05
10 Write a sample code for loading the data from online sites. [LJIET] 03
11 Write a sample code for loading graphics and multimedia from online media. [LJIET] 05

Python for Data Science (3150713) 2020 Page 3


L.J. Institute of Engineering & Technology Semester: V (2020)

TOPIC:2 : Working with Real Data

1 What do you mean by uploading, streaming and sampling data? [LJIET] 03


2 How we can generate variations on an image data? Write a sample for the same. [LJIET] 05
What is structured data and unstructured data? List different Structured data and unstructured
3 03
data. [LJIET]
4 Difference between Structured data and Unstructured data [LJIET] 03
What are the different ways of reading a text file? Write a Python code to read data from text file.
5 07
[LJIET]
Write a python program to append data to an existing file 'python.py'. Read data to be appended
6 04
from the user. Then display the contents of entire file. [Old_May-2017][LJIET]
Read a text file in Python and print no. of lines and no. of unique words. [Old_Nov-
7 07
2017][LJIET]
Create a Python program to read a text file and do following:
1. Print no. of lines
8 07
2. Print no. of unique words
3. Store each word with its occurrence in dictionary. [Old_May-2018][LJIET]
Write a Python program to read a text file and do following:
9 1. Print no. of words 04
2. Print no. statements [Old_May-2018][LJIET]
Write a Python program to count words, characters and spaces from text file. [Old_Nov-2018]
10 07
[LJIET]
How we can read data from a CSV file in Python? Which library is used for reading csv file?
11 Write a Python program to read CSV file and make use of suitable parameters if required. 07
[LJIET]
How we can read data from an Excel file in Python? Which library is used for reading excel file?
12 Write a Python program to read an Excel file and make use of suitable parameters if required. 07
[LJIET]
How we can read data from unstructured data? Write a program for reading the data from
13 07
unstructured file? [LJIET]
14 Write a program for performing basic database operations using MySQL database. [LJIET] 07
15 Write a program for performing basic database operations using NoSQL database. [LJIET] 07
16 Write a program for accessing data from web. [LJIET] 07

TOPIC:3 : Conditioning Your Data

1 Elaborate when can we use Numpy and Pandas [LJIET] 03


2 Explain how we can validate our data with sample code. [LJIET] 03
How we can remove duplicates from our data write a program to illustrate the removal of
3 05
redundant data. [LJIET]
4 How we can create a data map and data plan? [LJIET] 05
5 How we can create a categorical variable? [LJIET] 03
6 Write a program to format date and time. [LJIET] 05
How we can deal with missing values in our data? How we can represent missing data using
7 07
Pandas? Also write a sample for dealing with missing values. [LJIET]
How we can slice data from the available data frame? What are the ways we can slice our data?
8 07
Explain any one way with suitable sample program. [LJIET]
9 Explain loc() function with help of sample code. [LJIET] 05
10 Explain iloc() function with help of sample code. [LJIET] 05

Python for Data Science (3150713) 2020 Page 4


L.J. Institute of Engineering & Technology Semester: V (2020)

Why do we need to filter the data? How we can filter data using pandas? Write a sample code to
11 07
illustrate the filtering concept. [LJIET]
Explain transformation of data. Write a program to perform transformation on a given data.
12 07
[LJIET]
List the ways you can add new columns in your data frame. Explain the different ways with the
13 07
help of a program. [LJIET]
14 Write a program to show how we can remove data from data frame. [LJIET] 05
List the ways we can sort data using Pandas. Illustrate sorting concept with the help of an
15 07
example. [LJIET]
What is Aggregation? How we can perform aggregation? Write a sample code showing use of
16 07
aggregation. [LJIET]

TOPIC:4 : Shaping Data

1 Explain data extraction using XPath. [LJIET] 03


Briefly describe the methods of regular expression. [Old_May-2017] [Old_Nov-2017] 02/03/
2
[Old_May-2018][LJIET] 03
Write a Python program to match a string that contains only upper and lowercase letters, numbers,
3 07
and underscores using Regular Expression. [Old_Nov-2018][LJIET]
Write a Python program to find the substrings within a string using Regular Expression.
4 07
[Old_Nov-2018] [LJIET]
Write a python program to retrieve strings starting with m and having 5 characters.[Old_May-
5 03
2017] [LJIET]
6 Develop a program to implement stemming. [LJIET] 05
7 Define Graph. What is the use of graph? What is adjacency matrix in graph? [LJIET] 05
8 Find the TF and IDF count for “The” “brown” “cow”. [LJIET] 07

CHAPTER NO - 4: Data Visualization


TOPIC:1 : Visualizing Information

1 Defining the plot how to draw Drawing multiple lines and plots. [LJIET] 07
2 Explain the process of Setting the Axis, Getting the axes, Formatting the axes with example. [LJIET] 07
3 Defining the Line Appearance with example of Working with line style, Using colors. [LJIET] 05
Write an example for Adding markers, Using Labels, Annotations, and Legends, Adding labels,
4 05
Annotating the chart, Creating a legend. [LJIET]

TOPIC:2 : Visualizing the Data

1 Explain process of Choosing the Right Graph, Showing parts of a whole with pie charts. [LJIET] 07
Write a demo of Creating comparisons with bar charts, Showing distributions using histograms.
2 05
[LJIET]
3 Explain Depicting groups using boxplots, Seeing data patterns using scatterplots. [LJIET] 07
How to Create Advanced Scatterplots, Depicting groups, Showing correlations, Plotting Time Series?
4 07
[LJIET]
Show and example of Visualizing Graphs, Developing undirected graphs, Developing directed graphs.
5 07
[LJIET]

CHAPTER NO - 5: Data Wrangling

Python for Data Science (3150713) 2020 Page 5


L.J. Institute of Engineering & Technology Semester: V (2020)

TOPIC:1 : Wrangling Data

1 What is Wrangling Data explain in detail? [LJIET] 05


2 What is Scikit-learn? Explain classes in Scikit-learn. [LJIET] 07
3 Defining applications for data science, Performing the Hashing Trick, Using hash functions. [LJIET] 07
4 Demonstrating the hashing trick with example. [LJIET] 05
5 What is deterministic selection explain with example? [LJIET] 05
6 Explain Benchmarkin, with,time it . [LJIET] 05
7 Define the process of Working with the memory profiler with example. [LJIET] 05
8 Explain Performing multicore parallelism. [LJIET] 05

TOPIC:2 : Exploring Data Analysis

1 Explain The EDA Approach. [LJIET] 03


2 Defining Descriptive Statistics for Numeric Data. [LJIET] 03
3 Explain process of Measuring central tendency, Measuring variance and range. [LJIET] 07
4 Defining measures of normality and Counting for Categorical Data. [LJIET] 07
5 Explain Process of Creating contingency tables, Creating Applied Visualization for EDA. [LJIET] 07

Python for Data Science (3150713) 2020 Page 6

You might also like