Answer To MCQ
Answer To MCQ
b) Improved quality
Explanation:
Continuous Integration (CI) enhances software quality by enabling frequent code integration,
automated testing, and immediate bug detection. While CI may indirectly lead to faster
deployment, reduced costs, and enhanced collaboration, its core benefit lies in consistently
improving code quality and reliability.
Requirements:
Develop a Library Management System (LMS) that allows:
1. Architecture:
2. Core Modules:
• User Management:
o Add, remove, and manage users.
o Assign roles (student or staff).
• Book Management:
o Add and remove books.
o Maintain book availability status.
• Transaction Management:
o Borrowing: Verify user, check availability, update status.
o Returning: Mark the book as available and update records.
• Search Functionality:
o Search books by title, author, or ISBN.
Classes:
1. User
- Attributes: user_id, name, role (student/staff)
- Methods: register(), login()
2. Book
- Attributes: book_id, title, author, is_available
- Methods: add_book(), remove_book()
3. Transaction
- Attributes: transaction_id, user_id, book_id, date_borrowed,
date_returned
- Methods: borrow_book(), return_book()
4. LibrarySystem
- Attributes: users, books, transactions
- Methods: search_books(), display_available_books()
4. Technology Stack:
1. Book Borrowing:
o User searches for a book.
o If available, the system records the transaction and updates the book's availability.
2. Book Returning:
o User provides the book ID.
o System updates the availability and closes the transaction record.
This simple design can be scaled based on future requirements and offers flexibility for
enhancements like mobile app integration.