You are on page 1of 1

National University of Computer and Emerging Sciences, Lahore Campus

FAST School of Management


Final Exam
Course: Business Analytics Course Code: MG450
Program: BBA, BS A&F & MBA Semester:
Duration: 3 Hours Total Marks: 160
Section: All Weight 60%
Name: Pages: 1
Roll No.
Instruction/Notes:  All questions are mandatory and self-explanatory.
 Exam is open book, open notes and close internet.
 Students are allowed to bring their laptops with jupyter notebook installed and will solve
exam on that else sutdent will use lab's computer.
 Answer sheet will be collected through usb.
 Student is supposed to write his/her name , roll number and section on submission file.
1. Make a list “grocery” with following elements in it: milk, butter, pepsi, chair, detergent. 5 Marks
2. What is the difference between a list and a tuple? 5 Marks
3. What is the difference between Modulus and Quotient function? 5 Marks
4. Write an example of for loop and while loop. 5 Marks
5. What is the data type of numpy object? 5 Marks
6. Draw a two dimensional numpy array. 5 Marks
7. Draw a three dimensional numpy array. 5 Marks
8. Draw a numpy array ranging from 1 to 200 with step value of 5. 5 Marks
9. Draw a numpy array ranging from 1 to 200 with interval value of 5. 5 Marks
10. Calculate mean, median, standard deviation and variance of following list (Hint: Use Numpy
Library). 20 Marks
A = [2.5, 3.5, 5.5, 9, 10, 15,25]
11. Import given csv file “car.csv” and perform following operations: 5 x 9 = 45 Marks
a. Count the values of each “model” in the table.
b. Display the columns values of imported table/dataframe.
c. Display the information about imported table such as (Column, Non-Null, Count etc.)
d. Display descriptive statistics of imported table.
e. Display top 10 rows of the table.
f. Disply last 10 rows of the table.
g. Drop the column ‘ID’ from the table.
h. Drop 10th, 20th and 50th row from the table.
i. Display the value at 5th row and ‘power’ column of the table.

12. Import given csv file “car.csv” and perform following graphical operations: 5 x 3 = 15 Marks
a. Draw a scatter plot between ‘kms’ and ‘price’.
b. Draw a bar chart of ‘gear_type’.
c. Draw a 3D plot of ‘kms’, ‘price’ and ‘months_old’.

12. Import given csv file “car.csv” and peform simple linear regression with ‘price’ as dependent variable
and ‘kms’ as independent variable. 10 Marks
13. Import given csv file “car.csv” and peform multiple linear regression with ‘price’ as dependent
variable and ‘kms’, ‘age’ and ‘months_old’ as independent variables. 10 Marks
14. What is the difference between decision trees and random forest? 5 Marks
15. What are the two steps involved in random forest? 5 Marks
16. What is the difference between classification and clustering? 5 Marks

1| Page

You might also like