Show the use of fsafe_close.
fsafe_close.fsafe_close is used to safely close an opened file.fsafe_close is used to safely terminate file operations and release resources associated with the file.Arrange the following in correct order of exception handling in python:
(A) Write the code that may raise an exception inside a try block
(B) Execute some code regardless of whether the exception occurs or not using the finally block
(C) Handle the specific exception using the except block
(D) Raise the exception using the raise statement if necessary
Choose the correct answer from the options given below:
| List-I | List-II |
| (A) f.seek(-10,1) | (I) From beginning of file, move 10 bytes forward |
| (B) f.seek(10,1) | (II) From current position, move 10 bytes backward |
| (C) f.seek(10) | (III) From current position, move 10 bytes forward |
| (D) f.seek(-10,2) | (IV) From end of the file, move 10 bytes backward |
Almost all of us have some role model in our lives. We wish to follow her/him as she/he act as a continuous source of inspiration for us. Write a personality profile of the person who has become a role model for you and has greatly inspired you (200-250 words).
You have been invited to attend the wedding of your friend's sister next week. Respond to the invitation, regretting your inability to accept the invitation. Give a suitable reason (40-50 words).
The roads in your area in a very bad shape. Write a letter to the Editor of English daily highlighting the problem of the dilapidated roads in your area and asking the concerned authorities to improve these roads as soon as possible (120-150 words).
How did Dr. Sadao resolve the conflict in his mind between his loyalty to his country and his duty as a doctor?
Derry and Mr. Lamb both are victims of physical impairment, but their attitudes towards life are completely different. Explain.