Practical Exam - MBA - A - Class

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Practical Exam

IMBA A Class

Q.1 Download the csv file sent with the mail named “data_file”. Read the csv file using file
handling process by importing csv and named as “data”. Find the average of the account_marks
and eco_marks. Append the total marks into the data_file. Copy and paste the data of csv file on
the notepad for showing the append.

Q.2 Use the “data” from above and find the dictionary named “marksheet” of students who has
achieved more than 50 in both subjects, account and economics. E.g. student 1, Math_mark = 78,
English_mark = 96, add this into dictionary. {1: [78,96]}

Q.3 tuple1 = (67, 55, 33, 12, 98). Convert each element of the list into float. Then, find the
remainder of the element when divided by element of the x = 7.0 respectvely. Save this on the
tuple named “new_tuple”. Explain the function of tuple on this tuple named as “new_tuple”

Q.4 Following is the list named “Stations_list”.

[“Jamshedpur”, “Delhi”, “Jaipur”, “Rajkot”, “Vadodara”, “Nagpur”, “Pune”, “Indore”]

Perform the following questions on the Stations_list defined above and display code of each
statement, and show the output.
a) Get the length of Stations_list
b) Print the items at the index at 0, 4 and 6
c) Use the slice function to get a list of [“Jaipur”,”Indore”]
d) Show the list of Country_list [-5:6:2]
e) Use the slice function to get a list of [“Indore”, “Rajkot”, “Jamshedpur”]
f) Insert Bengaluru at the 6th index
g) Add Chennai at the end
h) Count Jaipur the list
i) Add this list as per direction in the dictionary as east, west, south, north.

You might also like