You are on page 1of 2

Sarvajanik College of Engineering and Technology, Surat

Computer Engineering Department


B.E. III, Sem. V
PROGRESSIVE ASSESSMENT 1

Subject Code: 3150713 Date: 23/08/2020


Subject Name: Python for Data Science
Time: 1.00 PM to 2.00 PM Total Marks: 20
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.

Q.1 [A] Do as directed. Marks

1. Describe additional arithmetic operators available only in Python language. [1]

2. Write a Python program to perform the following operations a, b and c on [3]


the given list L. Perform operations in the sequence given below. Take
elements of the list L = [‘PDS Course’, 2020, ‘Third Year’, 57] from the
user. Show the output of each operation.

Note: next operation must be applied on the list generated from the
previous operation.

a. Insert an element x = ‘Elective Subject’ into the list L at the position


equals to 1. Read position from the user.
b. Read a tuple T1= (‘Shift’, ‘1 & 2’) from the user. Append it at the end
of the list L.
c. Remove last element of the list L.

Q:1 [B] Attempt ANY TWO questions. [6]

1. What is data science? Enlist and explain the factors that affect the speed of
execution of a data science project.

2. Enlist and explain any three Python libraries used for data science.

3. Explain characteristics of Python that makes it suitable for data science.

P.T.O.

1
Q.2 [A] Short Questions [03]

1. Using a control structure, display your name, enrollment no, and DOB 01
stored in a list.

2. Explain the variable length arguments using a small example. 02

Q.2 [B] Answer the following questions [07]

1 Write a python program to find out the factorial of all numbers up to a 03


number taken from user (should be last digit of your enrollment number).
Output should be displayed as :

Factorial of 1 is 1

2 Define an abstract class Shape with an abstract area method. Derive a class 04
Square from Shape class. Define its constructor and the area method.
Derive another class Rectangle from the Square. Define its constructor and
pass on the value of the side to the square class. Display the area of one
square and one rectangle objects.

OR

2 Define a class having a class attribute counter which should count the 04
number of objects created. This class should have three instance attributes
one public, one private and one protected. Besides that it should have a
static method which will accept the name (your name) from the user and
greet the user by name.

*************

P.T.O.

You might also like