Table of Contents
This article presents Set of Multiple Choice Questions About Programming with P17 Prize in a clear, structured format. It helps readers review key concepts, test their understanding, and learn from the material.
Understanding 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 * 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.
FAQ
What is the main point of Set of Multiple Choice Questions About Programming with P17 Prize?
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 Open the allowable text file Open the readable text file Open the text.
Why is Set of Multiple Choice Questions About Programming with P17 Prize important?
Set of Multiple Choice Questions About Programming with P17 Prize matters because it can affect how readers understand, choose, use, or respond to the subject discussed in the article.
What should readers verify about Set of Multiple Choice Questions About Programming with P17 Prize?
Check the date, product or software version, compatibility, and any current guidance before acting, especially when technology, security, health, or pricing is involved.
Reader Comments 0
Sign in with email or Google to join the discussion.