0% found this document useful (0 votes)
15 views8 pages

Instructions For Candidates:: A10.1-R5-Data Science Using Python

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
15 views8 pages

Instructions For Candidates:: A10.1-R5-Data Science Using Python

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 8

No.

of Printed Pages : 8
A10.1-R5-Data Science Using Python
DURATION : 03 Hours MAXIMUM MARKS : 100

OMR Sheet No. :

Roll No. : Answer Sheet No. :

Name of Candidate : ________________________________________ ; Signature of Candidate : _______________________

INSTRUCTIONS FOR CANDIDATES :

• Carefully read the instructions given on Question Paper, OMR Sheet and Answer Sheet.

• Question Paper is in English language. Candidate has to answer in English language only.

• There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and
PART TWO contains FIVE questions.

• PART ONE is Objective type and carries 40 Marks. PART TWO is Subjective type and carries
60 Marks.

• PART ONE is to be answered in the OMR ANSWER SHEET only, supplied with the question paper,
as per the instructions contained therein. PART ONE is NOT to be answered in the answer book for
PART TWO.

• Maximum time allotted for PART ONE is ONE HOUR. Answer book for PART TWO will be supplied
at the table when the Answer Sheet for PART ONE is returned. However, Candidates who complete
PART ONE earlier than one hour, can collect the answer book for PART TWO immediately after
handing over the Answer Sheet for PART ONE to the Invigilator.

• Candidate cannot leave the examination hall/room without signing on the attendance sheet
and handing over his/her Answer Sheet to the invigilator. Failing in doing so, will amount to
disqualification of Candidate in this Module/Paper.

• After receiving the instruction to open the booklet and before answering the questions, the candidate
should ensure that the Question Booklet is complete in all respects.

DO NOT OPEN THE QUESTION BOOKLET UNTIL YOU ARE TOLD TO DO SO.
PART ONE 1.3 What will following code segment print ?
(Answer all the questions; each question a = True
carries ONE mark) b = False
1. Each question below gives a multiple choice c = False
of answers. Choose the most appropriate
one and enter in the "OMR" answer sheet if not a or b:
supplied with the question paper, following
print 1
instructions therein.
(1x10) elif not a or not b and c:
print 2
1.1 What will be the output for the following
code ? elif not a or b or not b and a:

a = list(range(10)) print 3
else:
del a[::2]
print 4
for i in a:
(A) 1
i+=1 (B) 2
print(a) (C) 3
(A) [2, 4, 6, 8, 10] (D) 4

(B) [0, 2, 4, 6, 8]

(C) [9, 7, 5, 3, 1] 1.4 What will be the output of the following ?

(D) [1, 3, 5, 7, 9] >>>t = (1, 2)


>>>2 * t
(A) (1, 2, 1, 2)

1.2 What is the output when following code is


(B) [1, 2, 1, 2]
executed ? (C) (1, 1, 2, 2)
>>>str1=”helloworld” (D) [1, 1, 2, 2]

>>>str1[::-1]
1.5 Which of the following is one of the key data
(A) dlrowolleh science skills ?
(A) Data Visualization
(B) hello
(B) Machine Learning
(C) world (C) Statistics
(D) helloworld (D) All of the mentioned

Page 2 SPACE FOR ROUGH WORK A10.1-R5/08-23


1.6 What does the eye( ) function in the NumPy 2. Each statement below is either TRUE or
package return ? FALSE. Choose the most appropriate one
(A) A diagonal matrix and enter your choice in the "OMR" answer
(B) An identity matrix sheet supplied with the question paper,
following instructions therein.
(C) A null matrix
(D) A symmetric matrix with only 1s and (1x10)
0s 2.1 The pass statement is helpful when you have
created a code block but it is no longer
1.7 Which of the following is the correct syntax required.
for pandas series ?
(A) pandas_Series( data, index,
2.2 By default numpy.sort() does sorting in
dtype, copy) descending order.
(B) pandas.Series( data, index,
dtype)
2.3 NumPy package is capable to do fast
(C) pandas.Series( data, index, operations on arrays.
dtype, copy)
(D) pandas_Series( data, index,
2.4 Using Pandas library, a series can be created
dtype)
using various inputs like Array, dictionary,
scalar value.

1.8 Which plot displays distribution of data based


on five-number summary ? 2.5 Two DataFrames cannot be merged on
(A) scatter plot Multiple Keys.
(B) box plot
(C) line plot 2.6 If data is an ndarray, index must be the same
(D) chart plot length as data.

1.9 config()in Tkinter is used for __________.


2.7 When you create a dataframe object, it never
(A) destroy the widget
gets its row numbers and column labels
(B) place the widget
automatically.
(C) change property of the widget
(D) configure the widget
2.8 The pie() function can plot multiple data
1.10 What is the correct way to draw a line in series.
tkinter ?
(A) line() 2.9 Linear Regression is a supervised machine
(B) canvas.create_line() learning algorithm.
(C) create_line(canvas)
(D) None 2.10 fg in tkinter widget stands for forgap.

Page 3 SPACE FOR ROUGH WORK A10.1-R5/08-23


3. Match words and phrases in column X with the closest related meaning / words(s) / phrase(s)
in column Y. Enter your selection in the "OMR" answer sheet supplied with the question
paper, following instructions therein.
(1x10)

No. X Y

Command to sort list1 in descending


3.1 A fit()
order
Function of numpy.extract() is to
3.2 B list1.sort(reverse=1)
__________
_______ function of Pandas library is to
3.3 apply some aggregation to one or more C dtype
column.
__________ identifies the datatype of a
3.4 D text
given NumPy array.
A panel is a __________ container of
3.5 E pyplot
data.
Function to compute variance of data
3.6 F 3D
along specified axis of an array.
Function invoked with
3.7 G std() function of Pandas
LinearRegression() to get OLS model

3.8 Widget used for user entry data is H dataFrame.aggregate()

Function to Calculate the standard


Return the elements of an array that
3.9 deviation of the given set of numbers, I
satisfy some condition.
DataFrame, column, and rows.
Name the module of matplotlib library
3.10 J matplot
required for plotting of graph.

K type

L numpy.var()

M 2D

Page 4 SPACE FOR ROUGH WORK A10.1-R5/08-23


4. Each statement below has a blank space to fit one of the word(s) or phrase(s) in the list below.
Choose the most appropriate option, enter your choice in the "OMR" answer sheet supplied
with the question paper, following instructions therein.
(1x10)

A Y ticks B GUI C np.all()

row-wise(i.e. on
D E resize, reshape F Y values
axis=1)

G loc() H arange I Three

J database K input() L stdev()

M reshape, resize

4.1 __________ function is used to read a string.

4.2 We can assign a multiline string to a variable by using __________ quotes.

4.3 To create sequences of numbers, NumPy provides a function __________ analogous to range that
returns arrays instead of lists.

4.4 In 2D array, by default, sorting is done __________.

4.5 The __________ function returns its argument with a modified shape, whereas the __________
method modifies the array itself.

4.6 The __________ function returns True when all the elements of ndarray passed to the first parameter
are True and returns False otherwise.

4.7 To access subset of a dataframe we can use __________ method.

4.8 Values that are displayed on y-axis are called as __________.

4.9 Statistics module in Python provides a function known as __________, which can be used to
calculate the standard deviation.

4.10 Tkinter library in python provides the __________.

Page 5 SPACE FOR ROUGH WORK A10.1-R5/08-23


PART TWO (b) Write a program that inputs the index
of an element of a string to be removed
(Answer any FOUR questions) and then print the rest of the string.

5. (a) What is data analytics ? Mention the (c) Write a program that extracts all tuples
steps involved in data analytics ? What having K digit elements from a list of
are its benefits ? tuples. The list of tuples should be hard
coded in the program.
(b) Differentiate supervised and
unsupervised machine learning

algorithms. Mention names of two (5+5+5)

algorithms for each of these.

(c) What do you mean by exploratory data 7. (a) What is NumPy in Python ? What are

analysis ? What types of graphs are its applications ? Why is NumPy Array

created in this analysis ? good compared to Python Lists ?

(5+5+5)
(b) Write a NumPy program to reverse an

array (first element becomes last).

6. (a) Write a program that rotates the

element of a list so that the element at (c) How is data visualization done in

the first index moves to the second Python ? What do you mean by scatter

index, the element in the second index plot, bar graph and histogram.

moves to the third index, etc., and the


element in the last index moves to the
(5+5+5)
first index.

Page 6 SPACE FOR ROUGH WORK A10.1-R5/08-23


8. Using given dataset (only few records are shown below for reference), write code for f o l l o w i n g
tasks to be done.

company num-of-cylinders horsepower average-mileage price


alfa-romero four 111 21 13495
audi five 110 19 15250
audi five 110 19 18920
bmw four 101 23 16430
bmw four 101 23 16925
bmw six 121 21 20970
bmw six 182 16 30760
chevrolet four 70 38 6295
chevrolet four 70 38 6575
honda four 101 24 12945
honda four 100 25 10345
isuzu four 78 24 6785
jaguar six 176 15 35550
jaguar twelve 262 13 36000
mazda four 68 30 5195
mazda four 68 31 6095

(i) Count total cars per company


(ii) Find each company's Highest price car
(iii) Find the average mileage of each car making company
(iv) Sort all cars by decreasing order of Price column
(v) Print All Toyota Cars details
(5x3)

9. (a) What is Probability Distribution ? What are the different types of Probability Distribution
used in Data Science ?
(b) What are the Measures of Central Tendency ? Name all python functions for the same.
Write small code to explain three of these functions.
(c) What are widgets in Tkinter ? Explain any five widgets.
(5+5+5)
-oOo-

Page 7 SPACE FOR ROUGH WORK A10.1-R5/08-23


SPACE FOR ROUGH WORK

Page 8 SPACE FOR ROUGH WORK A10.1-R5/08-23

You might also like