What will happen when a file that doesnt exist is opened in I-O mode?

  1. The file will be created and will be opened for reading and writing

  2. The open fails and error occurs

  3. File will be created and opened for writing only

  4. The file will be created and opened for reading only


Correct Option: B

Find more quizzes: