4.4.1.PracticeQuiz - sj50179/IBM-Data-Science-Professional-Certificate GitHub Wiki

TOTAL POINTS 4

Question 1

What are the most common modes used when opening a file?

  • (a)ppend, (r)edline, (w)rite
  • (a)ppend, (c)lose, (w)rite
  • (a)ppend, (r)ead, (w)rite
  • (s)ave, (r)ead, (w)rite

Correct

Question 2

What is the data attribute that will return the title of the file?

  • File1.close()
  • File1.open()
  • File1.mode
  • File1.name

Correct

Question 3

What is the command that tells Python to begin a new line?

  • \q
  • \e
  • \b
  • \n

Correct

Question 4

What attribute is used to input data into a file?

  • File1.close()
  • File1.write()
  • File1.open()
  • File1.read()

Correct