Test on C programming P4

The C language is the most widely used computer language, along with the Java language, the leading popular programming languages, widely used in modern developers. Below, invite readers to test their knowledge on this topic through the multiple-choice questions below.
  1. Question 1: Character data included
    1. Digit digits
    2. Alphabetic characters '% ld'
    3. Special characters
    4. All answers above
  2. Question 2: Function used to allocate dynamic memory for dynamic memory type defined by programmers such as (union, struct):
    1. calloc ()
    2. malloc ()
    3. realloc ()
    4. All 3 plans on
  3. struct S1 * next;} * head; Know the pointer '* head' stores the address of the first element in the list. Which of the following statement groups adds an element to the top of the list:
    1. p-> next = head; head = p
    2. p-> next = head; head-> p; head = p-> next
    3. head-> next = p; p = head;
    4. No sentence correctly
  4. struct S1 * next;} * head; Know the pointer '* head' stores the address of the first element in the list. Which of the following statement groups deletes the first element from the list:
    1. head-> next = head;
    2. head = head-> next-> next;
    3. head = head-> next;
  5. Question 5: What is the wrong statement when talking about linked list:
    1. Each element in the linked list must have at least one field used to store the address.
    2. Using linked lists usually saves more memory than using arrays.
    3. Using linked lists often costs more memory than arrays.
    4. No idea right
  6. Question 6: Which sentence does not mention the advantages of using the structure:
    1. You can mix up data types in a unit
    2. You can store data of different length characters in a structure variable
    3. Data can be stored in a module and in a hierarchical form
    4. At least one memory is required for the same data
  7. Question 7: How can I represent the 'hoten' element of SV1:
     struct SV 

    {

    hoten char [20];

    } SV1, * p;

    p = & SV1;
    1. SV1.hoten;
    2. p-> hoten;
    3. & hoten;
    4. Answers a and b
  8. Question 8: Where is the wrong statement:
    1. You can pass a parameter as a struct variable to the function
    2. Can pass parameters as a pointer variable to the function
    3. Can pass a parameter as a pointer variable struct to the function
    4. Cannot pass parameters as elements of struct for functions
  9. Question 9: Let array A contain elements of type struct, which statement is true when accessing the fields of the elements:
    1. A [indicator]. School name;
    2. A. field name;
    3. & A. school name;
    4. & A [indicator]. School name;
  10. Question 10: The memory space used to store the nodes of the double linked list:
    1. Storage scattered in memory
    2. Always store continuously in memory
    3. Stored storage
    4. Store segmented style
4 ★ | 1 Vote