The code segments are illustrations of file manipulations
When a new file is created, the default file mode is the write mode.
This in other words means that, we are writing to a file.
So, the character that completes the code to create a new file is W
To add texts to a file, is to append texts to the file.
This means that, the file is an existing file that needs to be updated.
So, the character that completes the code to add to a new file is A.
Read more about file manipulations at:
https://brainly.com/question/25324400