Gate
Gate
2. File Handling:
Write a Python script to read data from a file and perform specific operations (e.g.,
counting words, calculating statistics).
Implement a program to write data to a file and then read and display the content.
3. String Manipulation:
Write a Python function to calculate the area of different shapes (e.g., circle, rectangle,
triangle) based on user input.
Implement a module containing various utility functions (e.g., math operations, string
manipulation) and demonstrate importing and using functions from the module.
6. Error Handling:
Write a Python script to handle exceptions for specific scenarios (e.g., division by zero,
file not found).
Create a Python class representing a simple entity (e.g., Car, Employee) with attributes
and methods.
8. Algorithmic Problems:
Depending on the specific role, recruiters might also ask candidates to demonstrate
their knowledge of web development using Python frameworks like Django or Flask.
This could involve tasks such as creating a basic web application, handling HTTP
requests, or interacting with databases.