0% found this document useful (0 votes)
4 views2 pages

Python Programming

This document outlines the Mid Semester Examination for the MBA (BA) program at Jagran Lakecity University, focusing on Python with Business Analytics. It includes instructions, a breakdown of the exam structure into short answer and numerical questions, and specific tasks related to Python programming and data analysis. The exam is scheduled for March 2026, with a total of 50 marks available.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Python Programming

This document outlines the Mid Semester Examination for the MBA (BA) program at Jagran Lakecity University, focusing on Python with Business Analytics. It includes instructions, a breakdown of the exam structure into short answer and numerical questions, and specific tasks related to Python programming and data analysis. The exam is scheduled for March 2026, with a total of 50 marks available.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

BS

JAGRAN LAKECITY UNIVERSITY, BHOPAL


MBA (BA) - SECOND SEMESTER 2025-26
Mid Semester Examination (MARCH – 2026)

Course Code: BSP2008, Course Name: Python with Business Analytics


Time: 90 Minutes
Date of Exam: XX/XX/2026 Maximum Marks: 50
Important Instructions
1. All questions are compulsory.
2. Use of electronic gadgets and mobile phones during the examination is strictly prohibited unless
explicitly mentioned.
3. Simple Calculator is allowed in the examination.

SECTION – A

Short answer type questions (Not more than 200 words) (Attempt any 2)

(2 x 5 = 10 marks)

1. Create a list of 5 city names (e.g., "New York", "London", etc.).


a. Add a new city to the end of the list using.
b. Remove the second city from the list.
c. Sort the list in alphabetical order and print it.
2. Create a dictionary called product with three keys: name, stock, and price.
a. Print only the price of the product.
b. Update the stock value to a new number.
c. Add a new key called rating and give it a value of 4.5. Print the updated dictionary.
3. Create a tuple and list with different random numbers.
a. Extract and print the middle three elements from scores_list using list slicing.
b. Extract and print the last two elements from scores_tuple using tuple slicing.
c. Print both results clearly with appropriate labels.

SECTION – B

Numerical answer type questions (Use R) (Attempt All) (5 x 8 = 40 marks)

1. Write a script that asks the user to input the Price of an item and the Quantity purchased,
Calculate the total bill. If the total bill is more than 500, give a 10% discount. Print the
final amount.
2. Create a program that asks for a student's Marks (out of 100).
a) Instruction: * If marks are 90 or above, print "Grade A".
b) If marks are between 70 and 89, print "Grade B".
c) If marks are below 70, print "Grade C".
3. Create a list of numbers: [10, 20, 30, 40, 50]. Use a for loop to calculate the sum of all
numbers in the list and print the result. Then, use another for loop to print each number
multiplied by 2.
4. Define a function called greet_user(name). The function should return a string like "Hello
[name], welcome to Python!". Call this function by passing your own name as the
argument and print the output.
5. Create two lists: categories = ['Sales', 'Marketing', 'HR'], values = [400, 300, 200],
Instruction: Use the matplotlib library to create a basic bar graph using these lists. Add a
title "Department Expenses" and labels for the X and Y axes.

You might also like