All challenges
Multiple ChoiceBeginner 30s

File Read Methods

Choose the best answer for: file reading
Options
  1. 1.read() reads entire file, .readline() reads one line
  2. 2.read() and .readline() are identical and differ only in name
  3. 3.readline() reads the entire file into one big string value
  4. 4.read() returns a list of all lines split on newline characters

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