Test of programming C P5

  1. Question 1. Which of the following signs indicates the node p of a single linked list is the last right node:
    1. (p-> info! = NULL);
    2. (p-> info == NULL);
    3. (p-> next! = NULL);
    4. (p-> next == NULL);
  2. Question 2. When removing node x in the search binary tree, we only need to check that:
    1. x is the left leaf node of the binary search tree or not
    2. x is the right leaf node of the binary search tree
    3. The existence of x on the tree
    4. All 3 answers above
  3. Question 3. Which of the following mechanisms is installed for the queue:
    1. FIFO
    2. Round Robin
    3. Sequentially
    4. FILO
  4. Question 4. Which of the following signs indicates a single list of empty links:
    1. (p-> right == NULL);
    2. (p-> info == NULL);
    3. (p == NULL);
    4. (p-> next == NULL);
  5. Sentence 5. Which sign indicates that the right node of p has the right subtree:
    1. (p-> right! = NULL);
    2. (p-> left! = NULL);
    3. (p-> right! = NULL) && (p-> right-> right == NULL);
    4. (p-> right! = NULL) && (p-> right-> right! = NULL);
  6. Question 6. Which of the following mechanisms is installed for Stack:
    1. FILO
    2. Sequentially
    3. Round Robin
    4. FIFO
  7. Question 7. A binary tree is called true if:
    1. The original node and all intermediate nodes have 2 child nodes
    2. The key value of the root node is always greater than the value of the keys of the right sub-branch

    3. The key value of the root node is always greater than the value of the keys of the left sub-branch
    4. Both the root node and intermediate nodes have two child nodes and the leaf nodes have the same level
  8. Question 8. When performing the operation of adding a leaf node x to the right of node p of the normal binary tree, we need:
    1. Check for the existence of p and the right leaves p;
    2. Check the existence of leaf nodes on the right p
    3. Check for the existence of node p
    4. There is no need to perform all three conditions outlined in the question
  9. Question 9. For the following program section:
     int a, * p, * q; 

    float * t;

    a = 5; p = & a;

    p = q;

    t = p;

    printf ('% d% f', a, t);
    1. 5-12
    2. 5
    3. Program error
    4. Other results
  10. Question 10. The number of colors can be displayed in graphic mode due to what factors:
    1. The number of bits corresponds to 1 pixel
    2. Screen resolution
    3. Due to screen size
    4. Not the above 3 factors
5 ★ | 1 Vote

May be interested

  • What do you know about C # P3 programming language?Photo of What do you know about C # P3 programming language?
    c # is an object-oriented programming language developed by microsoft, the start of their .net plan. please invite the network administrator to learn about this topic through the quiz below.
  • What do you know about C # P2 programming language?Photo of What do you know about C # P2 programming language?
    please read the knowledge with multiple choice questions around our c # programming topic below. the question set will have 10 sentences, 4 answers each and you should choose the correct answer.
  • What do you know about programming language C # P1Photo of What do you know about programming language C # P1
    c # programming language is developed based on c and c ++ programming languages. in the article below, network administrator will go with you to learn about c # programming language through multiple choice questions. let's start.
  • Multiple choice questions P2 web designPhoto of Multiple choice questions P2 web design
    currently web design is more and more interested, because a beautiful and lively website can attract many interested people. in this article, network administrators will not give articles but instead multiple choice questions related to this topic, please consult.
  • PowerPoint informatics test P5Photo of PowerPoint informatics test P5
    to make your presentation more interesting and new, tools like powerpoint will help you a lot. in this article, network administrator will learn with you about this tool through the following extremely interesting multiple choice questions.
  • PowerPoint informatics test P6Photo of PowerPoint informatics test P6
    to create an impression for a presentation with listeners, in addition to good content, beautiful powerpoint slides will help you a lot. in this article, network administrator will send a set of multiple choice questions about powerpoint.