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

Python Question Bank

The document is a question bank for the Mar 2022 examination for the subject 'Python for Data Science' at Shivaji University, Kolhapur. It includes short answer questions, long answer questions, and short notes covering various topics such as Python programming, data structures, machine learning concepts, and libraries like Pandas, Numpy, and OpenCV. The questions are designed to assess knowledge in Python programming, data science techniques, and their applications.

Uploaded by

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

Python Question Bank

The document is a question bank for the Mar 2022 examination for the subject 'Python for Data Science' at Shivaji University, Kolhapur. It includes short answer questions, long answer questions, and short notes covering various topics such as Python programming, data structures, machine learning concepts, and libraries like Pandas, Numpy, and OpenCV. The questions are designed to assess knowledge in Python programming, data science techniques, and their applications.

Uploaded by

Patil Rutuja
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Shivaji University, Kolhapur

Question Bank for Mar 2022 (summer) Examination

Subject Code: 82939 Subject Name: Python for Data Science


Common subject Code (if any): Nil

Short answer questions (2 marks)


1 How to write comments in Python?
2 Discuss the relational operators in Python.
3 Discuss the rules for creating variable names in Python.
4 What are mutable and immutable data structures?
5 What is list comprehension?
6 Explain if –elif-else statement in Python.
7 Discuss for loop in Python.
8 Discuss while loop in Python.
9 How do you import CSV file in Python.
10 Discuss function in matplotlib library for generating scatter plot of two series.
11 Let X~N(0,1). Write Python commands to compute i) P(X>5) ii) To get number a such that
P(X≤a)=0.95
12 Let X~B(10,0.2). Write Python commands to compute i) P(X=5) ii) P(X<4)
13 Write Python commands to compute Karl Pearson correlation coefficient and Spearman rank
correlation coefficient.
14 Discuss Series object in Pandas Library.
15 What is deep learning?
16 Discuss Soft-max activation function used in ANN.
17 What is cross entropy loss function for multi-class classification problem?
18 What do you mean by optimizer?
19 What is the problem of vanishing gradient in neural network?
20 What is the problem of exploding gradient in neural network?
21 What is L1 and L2 regularization?
22 How do you install and load the tensorflow library in Python?
23 Define stride and zero-padding in CNN.
24 How is RNN different from other artificial neural network architectures?
25 Define the term Natural language processing.
26 What is meant by tokenization?
27 What is meant by stemming?
28 Discuss FreqDist( ) function in NLTK library of Python
29 Comment on the sentence “Two different sentences will definitely have different vector
representation”
30 Let be the number of documents in the collections, is the number of documents in which
term appears. What is the IDF of term ?
31 What is meant by word-cloud?
32 Define the term N-gram.
33 What is meant by sentiment analysis?
34 What is the meaning of following statement in Python?
from [Link] import SVC
35 What is computer vision?
36 How do you import image in Python?
37 How do you export image from Python?
38 What is an RGB color space?
39 Comment on the sentence “image with BGR color space can be converted to gray scale”.
40 Discuss the resize( ) function on Opencv library.

Long answer questions (8 marks)


1 Explain various operators in Python.
2 Discuss the following built-in functions in Python with suitable example.
i) divmod() ii) max() iii) pow() iv) sorted()
3 Discuss the following data structures in Python.
i) list ii) tuples iii) dictionaries iv) strings
4 What are list and dictionaries data structures in Python? Discuss about the indexing and slicing
of the same.
5 What are tuple and string data structures in Python? Discuss about the indexing and slicing of
the same.
6 Explain any six list methods with suitable example.
7 Explain any six string methods with suitable example.
8 What do you mean by Python module? Discuss the steps to create own module with suitable
example.
9 Discuss the various control structures in Python.
10 Write a program in Python to store given numbers and print the mean of even numbers and
mean of odd numbers separately.
11 Write a program in Python to store given numbers as one dimensional array and print the mean
and variance of the numbers which are divisible by 4 or 5 without using in-built function for
mean and variance.
12 Write a program in Python to store more than one integer numbers and print the mean of the
prime numbers among them without using in-built function for mean and prime numbers.
13 Discuss the procedure for generating following charts in Python using Matplotlib library.
i) Histogram ii) Pie chart iii) Boxplot iv) Barplot
14 Discuss the commands in Scipy library in Python for computing the PMF/PDF, CDF, Survival
function, quantiles of the Exponential and Poisson distribution.
15 Discuss the commands in Scipy library in Python for
i) Paired t-test
ii) One-sample Kolmogorov-Smirnov test for goodness of fit
iii) Two sample Wilcoxon signed-rank test
iv) Test for normality
16 Explain Pandas DataFrame data structure. Discuss the methods for detecting, removing, and
replacing null values in DataFrame.
17 Discuss following commands in Numpy library in Python.
i) array( ) ii) zeros( ) iii) full( ) iv) linspace( )
18 Discuss the concept of optimizer. Explain the gradient decent optimizer in detail.
19 Discuss the concept of optimizer. Explain the stochastic gradient decent optimizer in detail.
20 Discuss the concept of optimizer. Explain the mini-batch gradient decent optimizer in detail.
21 Discuss the need of adaptive learning rate while training neural network. Explain the Adagrad
optimizer.
22 What is convolutional neural network (CNN)? What are the components on CNN architecture?
Explain the process of convolution with suitable examples.
23 What is meant by convolution? Given the input matrix and the kernel, perform convolution
with stride 1.

0 1 1 0 1 0 1
0 1 0 1 0 1 0
1 1 1 0 0
1 0 0 1 0
1 1 0 1 1 Kernel
Input matrix
Also apply max-polling with 2x2 filters and stride 2 to the results from the above convolution.
24 Explain the following terms in connection with CNN
i) Convolutional layer
ii) Pooling layer
25 Explain the RNN architecture in details. Given one application of RNN.
26 What are the different RNN topologies, and why do we need them?
27 Explain the LSTM model in detail.
28 Discuss various commands in tensorflow/keras library in Python for building and training of
CNN.
29 Discuss various commands in tensorflow/keras library in Python for building and training of
RNN.
30 Explain back-propagation through time (BPTT) algorithm for training RNN
31 Explain the term Natural Language Processing. Discuss its application in various fields.
32 Discuss commands in NLTK for,
i) stop-word removals
ii) frequent words removals
iii) tokenization
iv) stemming
33 What are Word Embeddings? Explain the Count Vector and TF-IDF Vector type of word
embeddings with suitable example.
34 Explain prediction based word embedding techniques.
35 Explain word2vec algorithm.
36 Explain commands in Python for getting,
i) word count vectors as features
ii) TF-IDF vectors as features
37 Explain the term tokenization and stemming of the text. Discuss python commands for the
same.
38 Explain the term stemming and lemmatization of the text. Discuss python commands for the
same.
39 Explain the concept of N-grams with suitable example.
40 Discuss the functions in sklearn library of python for
a) Logistic Regression classifier
b) k-NN classifier
41 Discuss the functions in sklearn library of python for
a) Neural Network for classification
b) Random forest classifier
42 Discuss the functions in sklearn library of python for
a) Least square regression
b) Logistic regression
43 Discuss the functions in sklearn library of Python for k-means clustering, DBSCAN, clustering
using single linkage method.
44 What is mean by image preprocessing? Discuss any three functions available in OpenCv
library of Python for image preprocessing.
45 Discuss the commands in python for the following
i) Importing color image saved at D drive of the computer.
ii) Converting color image to black and white image
iii) Resizing black and white image to 10x10 pixel
iv) Exporting image and save it at D drive of the computer
46 Discuss the commands in python for the following
i) Extracting the RGB values of a pixel
ii) Rotating the Image
iii) Drawing a Rectangle
iv) Displaying text on the image
47 What are image thresholding and smoothing? Discuss commands in Python for the same.
48 Discuss various ways for building a model for classification of an image in two classes.
49 What are morphological transformations? Explain Erosion and Dilation operators.
50 Explain the following functions in Opencv library
i) add( ) ii) addWeighted( ) iii) subtract( ) iv)

Short notes (4 Marks each)


1 Numpy library in Python
2 Matplotlib library in Python
3 Optimize module in Scipy library
4 Writing user defined functions in Python
5 OOP using Python
6 Combining Datasets using Pandas
7 Looping using List Comprehension
8 Lambda function in python
9 Neural networks
10 Applications of CNN
11 Regularization methods for deep learning
12 Applications of RNN
13 Sentiment analysis
14 Word-cloud
15 Text data preparation using NLTK library
16 Neural networks for NLP.
17 Image segmentation with Watershed algorithm
18 Arithmetic operations on images
19 Geometric transformations on images
20 Opencv library in Python

You might also like