nerdexam
National_Instruments

200-500 · Question #85

200-500 Question #85: Real Exam Question with Answer & Explanation

The correct answer is C. file_put_contents("file", "data", FILE_APPEND);. See the full explanation below for the reasoning.

Question

Which of the following commands will append data to an existing file?

Options

  • Afile_put_contents("file", "data", "a");
  • Bfile_put_contents("file", "a", "data");
  • Cfile_put_contents("file", "data", FILE_APPEND);
  • Dfile_put_contents("file", "a", NULL, FILE_APPEND);

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice