🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

File object के कौन से attributes होते हैं?

Which are attributes related to file objects?

A
name, closed, mode
B
open, read, write
C
delete, copy, paste
D
save, load, close
Explanation
  • English:
    In Python, a file object has attributes like:

    • name → name of the file

    • closed → returns True if file is closed

    • mode → mode in which file was opened (e.g., 'r', 'w', 'a')

  • हिंदी:
    Python में file object के पास ये attributes होते हैं:

    • name → फाइल का नाम

    • closed → फाइल बंद है या नहीं (True/False)

    • mode → फाइल किस mode में खोली गई थी ('r', 'w', आदि)

Correct Answer: A) name, closed, mode

Latest Updates