Set of multiple choice questions about programming with P17 prize
- Question 1. What does the following statement mean:
FILE * fopen (tep1, 'r +');
- Open the allowable text file
- Open the readable text file
- Open the text file to allow both read and write
- Open an existing text file to read
-
- Question 2. What does the following statement mean:
int open (tep1, O_TRUNC);
- Open the binary file to write
- Delete the contents of the file
- Open the text file to read and write
- All the answers above
-
- Question 3. The component's structure can be accessed through the pointer as (with p being the structure pointer, a is the structure component):
- (* p) .a;
- * p-> a;
- 1 and 2 wrong
- 1 and 2 are correct
-
- Question 4. Which statement is invalid in the following declaration:
float y;} t, * p, a [10];
- p = & t;
- p = & t.x;
- p = & a [5];
- p = & a;
-
- Question 5. Please choose the best sentence:
struct immediately {int ng, th, n;} vaotruong, ratruong; typedef struct sinhvien {char hoten; ngay ngaysinh;}; immediately ngayinh;};
- No assignment: vaotruong = ratruong;
- 'sinhvien' is the structure name, 'vaotruong', 'ratruong' is the structure variable name
- You can write 'vaotruong.ng', 'ratruong.th', 'sinhvien.vaotruong.n' to access the corresponding components.
- 1, 2, 3 right
-
- Question 6. In value initializations for the following structures, select the correct sentence:
struct S1 {int immediately, ladder, male;}; S1 = (2, 1, 3);
struct S2 {char hoten [10]; struct S1 ngaysinh;}; struct S1 ngaysinh;}; S2 = {'Cups', {4, 5, 6}};- S1 correct
- S2 is correct
- Both S1 and S2 are correct
- Both S1 and S2 are wrong
-
- Question 7. For structured types, which of the following is not allowed:
- Assign variables to each other
- Assign two array elements (structure type) to each other.
- Assign an array element (structure type) to a variable or vice versa.
- Assign two structured arrays with the same number of elements.
-
- Question 8. Select the best sentence in the following sentences:
struct {int big; float soluong;} x[10]; float soluong;} x [10];
for (int i = 0; i <10; i ++) scanf ('% d% f', & x [i] .to, & x [i] .soluong);- The above program segment has a syntax error
- Addressing operators are not allowed for 'to' and 'soluong' components
- The address of the 'soluong' component leads to an improper operation
- All is wrong
-
- Question 9. To create a linked list, according to which of the following students is the correct declaration of the self-pointing structure to be used:
Student 1:
struct Sv * tiep;};
Student 2:
typedef
struct SV node;
node * tiep;};
Student 3:
typedef
struct struct * tiep;} node;- first
- 2
- 2 and 3
- All 3 declare above
-
- Question 10. To use the linked list, consider the following two statements (need 1KB to store information about a student):Declaration 1: struct SV {thongtin;struct SV *tiep;}; struct SV * tiep;};
Declaration 2: SV struct {thongtin}; struct DS *;;;; (With 'thongtin' is a data component of the structure);
Choose the best sentence in the following sentences:- Declaration 1 takes more memory than declaring 2
- Declaration 2 will help the program run faster when changing positions 2 students
- Declaration 1 will help save the command more when writing the function to change the position of 2 students
- Declaration 2 will help the program run faster when browsing the list
-
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
- Set of multiple choice questions on programming with P16 prize
- A set of multiple choice questions for programming has a P2 prize
- Set of multiple choice questions for programming with P8 prizes
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.