Set of multiple choice questions on programming with P16 prize
- Question 1. Which of the following statements is true when talking about transmission mode:
- In binary mode, the bytes used are different from the value on the peripheral and there is a conversion execution.
- In binary mode, the characters are organized into lines, ending with carriage return and conversion.
- 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.
- In binary mode, bytes are handled as the value on the peripheral and there is no conversion performed.
- 1 and 2
- 1 and 3
- 2 and 3
- 2 and 4
- Question 2. Which of the following statements is true when talking about fgets ():
- 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
- The function reads a sequence of characters from the file to save to the new device
- When using a function if it encounters a carriage return, the character code 10 will be added at the end of the read string
- 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.
-
- Question 3. Make the best statement about the command form (f is the file pointer): while ((ch = fgetc (f))! = EOF) .
- Select an element and check if EOF is not
- Reading the file's elements as long as the character is not a carriage return
- Write an element and check if it is EOF
- Reading the file's elements as long as the character is not the end character
-
- Question 4. Which statement is correct when talking about the fflush statement (FILE * f):
- The function cleans the buffer of file f, if successful, the value of the file is open, otherwise, returns EOF
- The function cleans the buffer value of file f, if the function succeeds the value of EOF, on the contrary, the return function 0
- The function cleans the buffer of file f, if successful returns 0, otherwise, returns EOF
- Erase the keyboard cache
-
- Question 5. Which signal is correct when using the fread () function;
- int fread (void * ptr, int size, FILE * f, int n);
- int fread (FILE * f, void * ptr, int size, int n);
- int fread (int size, void * ptr, int n, FILE * f);
- int fread (void * ptr, int size, int n, FILE * f);
-
- Question 6. Which sign is correct when using fputs ();
- int puts (const char * s, FILE * f);
- int puts (const char * s);
- int puts (FILE * f, const char * s);
- int puts (FILE * f);
-
- Question 7. Which is the correct sign when using fopen () function to open an existing file read in binary:
- f = fopen ('du_lieu', 'r');
- f = fopen ('du_lieu', 'w');
- f = fopen ('du_lieu', 'at');
- f = fopen ('du_lieu', 'rb');
-
- Sentence 8. Which function returns the size of an open file:
- double filelength (int the_file);
- long filelength (int the_file);
- int filelength (int the_file);
- There is no right answer
-
- Question 9. What does the following statement mean:
FILE * fopen (tep1, 'ab');
- Open the binary file to write
- Open an existing binary file and write more serial data to this file
- Open the binary file for new recording
- Open the binary file to read
-
- Question 10. Which function can change the size of the open file:
- double chsize (int handle, long size);
- long chsize (int handle, long size);
- int chsize (int handle, long size);
- All the answers above.
-
4 ★ | 2 Vote
You should read it
- Set of multiple choice questions about programming with P10 prize
- Set of multiple choice questions about programming with P7 prize
- P13 programming set of multiple choice questions
- Set of multiple-choice questions on award-winning programming P5
- Set of multiple choice questions about programming with P6
- A set of multiple choice questions for programming has a P2 prize
- Set of multiple choice questions for programming with P8 prizes
- Set of multiple choice questions on programming with P14 prize
May be interested
- Set of multiple choice questions on programming with P9multiple choice questions about programming help you gain more useful knowledge for yourself in the process of learning and working. there will be 10 questions for you to test your knowledge. let's start.
- Set of multiple choice questions about programming with P12the programming test questions below will provide you with useful knowledge on this topic. if you want to study programming, you should not ignore the series of programming tests of network administration.
- Set of multiple-choice questions on award-winning programming P5serializing programming tests, in the following article, readers will be able to expand their knowledge with more interesting questions. let's start.
- Set of multiple choice questions about programming with P6the following network administrators will continue to send you interesting questions about programming. if you love this topic, then try your knowledge.
- Multiple choice questions about programming with P1 prizeprogramming is the use of programming languages and tools and utilities to write code, build practical programs and applications on your computer to serve your life. the following is an invitation to test your knowledge with our following series of articles.
- Multiple choice questions about Javascript languageif you are a beginner of these programming languages, the following multiple-choice questions of network administrator will be very suitable for you to support knowledge.
- Guide to creating multiple choice questions on VnEduone of the outstanding features of vnedu is to create multiple choice questions quickly. using vnedu, teachers will not worry about test questions that are identical to multiple choice questions, can add and edit questions easily to make midterm or final exam questions, ...
- P13 programming set of multiple choice questionsyou are a fan of programming languages and want to learn more about this topic. to give you an interesting reading about programming, in this article, the network administrator will send you a good quiz about this topic. invite your reference.
- A set of JavaScript multiple-choice questions has P4 answersplease read your knowledge and multiple choice questions around the javascript topic that the network administrator has edited below. the set of questions includes 10 sentences to try.
- A set of JavaScript multiple-choice questions with P2 answerslocated in the series of tests on programming languages, in the basic knowledge test below network administrators will send you questions with javascript topics.