CIW
1D0-437 · Question #14
Which statement will open the /etc/passwd file for reading only?
The correct answer is B. open(PASSFILE, "/etc/passwd"). See the full explanation below for the reasoning.
Question
Which statement will open the /etc/passwd file for reading only?
Options
- Aopen(PASSFILE "+>/etc/passwd");
- Bopen(PASSFILE, "/etc/passwd");
- Copen(PASSFILE "+</etc/passwd");
- Dopen(PASSFILE, ">/etc/passwd");
How the community answered
(39 responses)- A3% (1)
- B85% (33)
- C3% (1)
- D10% (4)
Community Discussion
No community discussion yet for this question.