Multiple choice technology programming languages

What is the outcome of the scenario on Unix platform: open(FH, ">c:\temp\notes.txt") ?

  1. Opens a file notes.txt

  2. fails to create a file and displays error

  3. fails to open a file but doesn't display error

  4. Opens a file but not notes.txt

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

On Unix, the path c:\temp\notes.txt is interpreted as a relative filename with literal backslashes - not as a Windows path. The file open call succeeds but creates a file with backslashes in its name, not 'notes.txt' in a temp folder.