National_Instruments
200-500 · Question #186
200-500 Question #186: Real Exam Question with Answer & Explanation
Sign in or unlock 200-500 to reveal the answer and full explanation for question #186. The question stem and answer options stay visible for context.
Question
Which of the following code snippets writes the content of the file "source.txt" to "target.txt"? (Choose 3)
Options
- Afile_put_contents("target.txt", fopen("source.txt", "r"));
- Bfile_put_contents("target.txt", readfile("source.txt"));
- Cfile_put_contents("target.txt", join(file("source.txt"), ""));
- Dfile_put_contents("target.txt", file_get_contents("source.txt"));
- E$handle = fopen("target.txt", "w+"); fwrite($handle, file_get_contents("source.txt"));
Unlock 200-500 to see the answer
You've previewed enough free 200-500 questions. Unlock 200-500 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.