Multiple choice technology mainframe

How many file open modes are there?

  1. 2

  2. 3

  3. 4

  4. 5

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In programming languages like COBOL, files can be opened in exactly four modes: INPUT, OUTPUT, I-O, and EXTEND. Similarly, Python defines four basic file open modes: read ('r'), write ('w'), append ('a'), and exclusive creation ('x'). Therefore, four is the standard correct answer.