Viva
Viva
• Interactive Mode
• Script Mode
• Script Mode: Executes a pre-written Python script. Useful for longer programs
saved as .py files.
4. In which mode do we get the result immediately after executing the command?
• Interactive Mode.
• Comments are used to explain code and make it more readable. They are
ignored by the Python interpreter.
6. Which symbols are used for single-line comments and multi-line comments?
• Single-line Comments: #
• Multi-line Comments: Triple quotes ''' or """ (though technically not comments
but docstrings).
10. Which data type stores the combination of real and imaginary numbers?
• Complex (complex).
• The break statement is used to exit a loop prematurely when a condition is met.
• Traversing refers to accessing each element of a data structure (e.g., list, string)
one by one.
• Scope defines where a variable can be accessed in the program (e.g., local or
global).
• A module is a file containing Python code (functions, classes, variables) that can
be imported and reused.
22. What is the difference between a Text file and Binary File?
24. What is the difference between the read() and read(n) methods?
25. What is the difference between the readline() and readlines() methods?
• Used in the pickle module to serialize (convert to a byte stream) Python objects.
• os and io.
• =: Assignment operator.
• A unique identifier for each row in a table. It cannot contain null values and must
be unique.
• A set of attributes that can uniquely identify a row in a table. One candidate key
is chosen as the primary key.
• An attribute in one table that references the primary key of another table to
establish a relationship between the two tables.
• Char: Fixed-length string. Always occupies the defined size, even if the string is
smaller.
• Single-line: -- or #.
• Multi-line: /* */.
10. Write a command to display all the existing databases in MySQL.
SHOW DATABASES;
DESCRIBE Stock;
12. What is the difference between Update and Alter command in MySQL?
• It is used to sort the result set in ascending (ASC) or descending (DESC) order
based on one or more columns.
16. Name two wildcard symbols which are used in MySQL for pattern matching.
17. Name the clause which is used to display unique values from a column.
• DISTINCT.
• Group by: Groups rows with the same values in specified columns and applies
aggregate functions.
21. Which function concatenates two strings in MySQL?
• CONCAT().
• Now(): Returns the current date and time when the query starts executing.
• Sysdate(): Returns the current date and time at the exact moment it is executed.
PROJECT
2. What are the software and minimum hardware required for your project?
Software:
• MySQL Server
• PyQt5 library
Minimum Hardware:
• Processor: Intel Core i3 or higher
• RAM: 4 GB or more
1. User Input: The user interacts with the GUI to input data such as service details,
vehicle details, or appointment booking.
2. Database Interaction: The input data is sent to the MySQL database using
queries.
4. Output: The results (e.g., available services, vehicle status, or receipts) are
displayed on the GUI.
5. What is your proposed system to overcome the problems faced in the existing
system?
• Centralized Database: Stores all data securely and makes it easily accessible.
8. Which books/study material/websites have you used while making this project?
• Books:
• Websites:
• Collected feedback from potential users like car owners and service center staff.
• Reviewed common features in similar systems for inspiration.
• Implementation:
• Use Cases:
o Appointment scheduling.
• Backend: MySQL for data storage and Python for logic processing.
Yes, the project has been developed entirely by me, including the design, coding,
database schema, and testing.
3. Vehicle Status Check Module: Lets users check the status of their vehicles.
4. Update Vehicle Status Module: Enables staff to update the status of vehicles.