1. Question 1. Which of the following statements is true when talking about transmission mode:
    1. In binary mode, the bytes used are different from the value on the peripheral and there is a conversion execution.
    2. In binary mode, the characters are organized into lines, ending with carriage return and conversion.
    3. In text mode, the characters are organized into lines, each line ends with a newline character, with the conversion of some characters required by the environment.
    4. In binary mode, bytes are handled as the value on the peripheral and there is no conversion performed.
    1. 1 and 2
    2. 1 and 3
    3. 2 and 3
    4. 2 and 4
  2. Question 2. Which of the following statements is true when talking about fgets ():
    1. The function reads 1 character from the file, if the function is successful for the code to read. If you encounter the end of the file or have an error, the function for the EOF character
    2. The function reads a sequence of characters from the file to save to the new device
    3. When using a function if it encounters a carriage return, the character code 10 will be added at the end of the read string
    4. When using a function, if you encounter a carriage return, the character codes 10 and 13 will be added at the end of the read string.
  3. Question 3. Make the best statement about the command form (f is the file pointer): while ((ch = fgetc (f))! = EOF) .
    1. Select an element and check if EOF is not
    2. Reading the file's elements as long as the character is not a carriage return
    3. Write an element and check if it is EOF
    4. Reading the file's elements as long as the character is not the end character
  4. Question 4. Which statement is correct when talking about the fflush statement (FILE * f):
    1. The function cleans the buffer of file f, if successful, the value of the file is open, otherwise, returns EOF
    2. The function cleans the buffer value of file f, if the function succeeds the value of EOF, on the contrary, the return function 0
    3. The function cleans the buffer of file f, if successful returns 0, otherwise, returns EOF
    4. Erase the keyboard cache
  5. Question 5. Which signal is correct when using the fread () function;
    1. int fread (void * ptr, int size, FILE * f, int n);
    2. int fread (FILE * f, void * ptr, int size, int n);
    3. int fread (int size, void * ptr, int n, FILE * f);
    4. int fread (void * ptr, int size, int n, FILE * f);
  6. Question 6. Which sign is correct when using fputs ();
    1. int puts (const char * s, FILE * f);
    2. int puts (const char * s);
    3. int puts (FILE * f, const char * s);
    4. int puts (FILE * f);
  7. Question 7. Which is the correct sign when using fopen () function to open an existing file read in binary:
    1. f = fopen ('du_lieu', 'r');
    2. f = fopen ('du_lieu', 'w');
    3. f = fopen ('du_lieu', 'at');
    4. f = fopen ('du_lieu', 'rb');
  8. Sentence 8. Which function returns the size of an open file:
    1. double filelength (int the_file);
    2. long filelength (int the_file);
    3. int filelength (int the_file);
    4. There is no right answer
  9. Question 9. What does the following statement mean:
     FILE * fopen (tep1, 'ab'); 
    1. Open the binary file to write
    2. Open an existing binary file and write more serial data to this file
    3. Open the binary file for new recording
    4. Open the binary file to read
  10. Question 10. Which function can change the size of the open file:
    1. double chsize (int handle, long size);
    2. long chsize (int handle, long size);
    3. int chsize (int handle, long size);
    4. All the answers above.