×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

Amongst which of the following is / are needed to open an existing file?

63. Amongst which of the following is / are needed to open an existing file?

  1. filename
  2. mode
  3. Both A and B
  4. None of the mentioned above

Answer: C) Both A and B

Explanation:

In most cases, only the filename and mode parameters are required, with the rest of the parameters implicitly set to their default values.

Following code demonstrates the example of how to open a file -

f = open ("file.txt") 

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.