All challenges
Multiple ChoiceBeginner 30s

open Modes

Choose the best answer for: file open modes
Options
  1. 1'w' preserves existing content and appends onto the end
  2. 2'r' creates the file when it does not already exist
  3. 3'r' is read, 'w' is write (truncate), 'a' is append
  4. 4'a' truncates the existing file before writing new data

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle