Python Imp Programs For Unit Test 1 ( I scheme )
Python Imp Programs For Unit Test 1 ( I scheme )
Important Programs
Volume 1
Designed by :
Explore More -:
The logic building section challenges students to apply their knowledge of Python
syntax to solve more complex problems. This involves writing programs that require
thought processes such as decision making, loops, functions, and array manipulation.
Students will learn how to break down problems into logical steps and develop
solutions that are both efficient and effective. This category enhances problem-
solving skills and reinforces the application of core concepts learned in the first
section.
The advanced-level questions are designed for students who have a strong grasp of
basic Python concepts and are ready to tackle more intricate problems. These
assignments may include topics such as object-oriented programming (OOP), data
structures (arrays, linked lists, stacks, queues), algorithms, file handling, exception
handling, multi-threading, and more. These exercises will prepare students for real-
world applications by requiring them to implement more sophisticated solutions and
optimize performance.
23. Write a program that takes a number (1-12) as input and prints the corresponding
month name using a dictionary-based switch.
24. Write a program that takes a tuple of numbers and returns the minimum and
maximum values.
25. Write a program that takes two lists as input and finds the common elements
between them without using sets.
1. Problem: Movie Ticket Booking System
Scenario: You have two e-commerce websites, and each store maintains a set
of unique customers (user IDs).
You want to analyze:
Scenario: A company tracks employees logging into its system, but some
users attempt unauthorized access.
You have:
Scenario:
A city wants to simulate its traffic signal system. There are three signals:
Scenario:
A toll plaza uses an automated system to charge vehicles based on their type.
The charges are:
Car: ₹100
Truck: ₹250
Bike: ₹50
Electric Vehicles (EV): ₹0 (free)
Scenario:
A bank wants to automate its loan approval process based on three criteria:
1. If credit score > 750 AND income > ₹5,00,000 → Loan Approved ✅
2. If credit score between 600 and 750 AND income > ₹3,00,000 →
Loan Approved with Higher Interest.
3. If existing loans are too high, reject the loan.
Scenario:
Scenario:
The program should calculate the number of days left until the next
anniversary.
If today is the exact anniversary, print "Today is your anniversary!
Don't forget the gift! "
If the anniversary is within 7 days, print "Time to plan something
special! "
Rules:
Task:
A professor suspects that students are copying each other’s answers. The
system compares students' answers and checks if they are too similar (above
80% match).
Task:
14. A boyfriend wants to remember all the gifts his girlfriend mentioned wanting
for her birthday. Write a Python program that:
15. A haunted house is filled with ghosts, and each ghost has a name that must be
decoded. Write a Python program that: