Professional Documents
Culture Documents
Sr.
No CHAPTER NO - 1: Overview of Python and Data Structures Marks
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)
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]
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
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]
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]
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]