🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Files and Preprocessor: all 10 questions

Quiz: Files and Preprocessor · Question 3 of 10

Which mode adds data to the end of an existing file?

Which mode adds data to the end of an existing file?

  1. A."w"
  2. B."r"
  3. C."a"
  4. D."x"
Answer & explanation

Correct answer: "a"

"a" (append) keeps the old content and writes at the end.

Can you get the rest right without peeking?

Take the timed Quiz: Files and Preprocessor quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →