We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
Sarvajanik College of Engineering and Technology, Surat
Computer Engineering Department
B.E. I, Sem. V
PROGRESSIVE ASSESSMENT 1
Subject Code: 3150713 Date: 7/08/2021
Subject Name: Python for Data Science
Time: 9.15 AM to 10.30 AM Total Marks: 30
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. Which method is used to remove the last element from the list? tt]
OR
How many memory locations will be created for the following code in [1]
Python?
Ass
B=A
2. What is ETL? ity
OR
Mention any two distinguished properties of set in python. (1)
3. Givena tuple T. Write a python code to check whether Tis empty ornot. [1]
4. Which programming languages are preferred by data scientists? 2]
Q.1[B] Attempt ANY TWO questions, [6]
1. Which features of Python makes it most suitable for data science?
2. What is the use of Numpy in data science? Write a Python code to create a
Numpy array filled with ten fives.
3. List and explain different coding styles supported by python.
Q.1 [C] Briefly discuss the steps involved in data science pipeline. [4]
P.T.O.Q2 [A]
i
2
Q.2 |B]
Is
oy
3.
(B]
1,
3
P-T.O.
Attempt ANY THREE. 1)
What will be output of sum(range(4)).
Module is a directory which contains a special file_init_.py (I/F)
In python, there can be an else suite with in a loop. (T/F)
What will be the value of Ist_even in case of following:
Ist ~[10,20,23,24,37]
Ist_even=lisi(filter(lambda x: (x%2!=0). Ist))
Attempt ANY TWO, [4]
Create a lambda function to retum the product of corresponding elements of
two lists.
Demonstrate the working of statie method using a simple example.
What will be the sequence of
method calling in case all the
classes are having same method
name. Mention the method used
to display that.
Attempt ANY TWO. [8]
Demonstrate the use of four types of arguments with an appropriate
program.
Define an abstract class Shape with a parameterized constructor to initialize
the instance attributes dim! and dim? with default value of dim2 as 0 and
an abstract area method. Derive a class Circle from Shape class. Define its
constructor and initialize the value of dim] by calling the constructor of
super class. Compute its area and display the same.
‘Write a program to overload the addition operator (>) on two objects of a
time class having attributes hours and minutes.