Set of multiple-choice questions on award-winning programming P5

  1. Question 1. Suppose there is a ch = 'A' statement. So how many bytes will it contain:
    1. first
    2. 2
    3. 3
    4. 4
  2. Question 2. Suppose there is a command ch [] = "A". How many bytes are included:
    1. first
    2. 2
    3. 3
    4. 4
  3. Question 3. Print results to the screen of the following program:
     #include void main () 

    {

    int ch = 'A'; printf ('% d', ch);

    }
    1. A
    2. a
    3. 65
    4. Other results
  4. Question 4. Result of the following program:
     #include 

    void main ()

    {

    int i = 98; printf ('% c', i);

    };
    1. B
    2. b
    3. 98
    4. Other results
  5. Question 5. Print results to the screen of the following program:
     #include 

    void main ()

    {

    int i = 5, j = 6; i = i- --j;

    printf ('% d', i);

    };
    1. 6
    2. 5
    3. first
    4. 0
  6. Question 6. The general form of printf () function is: printf ('array of specifications', sequence of expression code); In it, the code set will be:
    1. The range of data format codes displayed
    2. Cursor of string of characters
    3. Character strings are informative
    4. All 3 answers above
  7. Question 7. In the following functions, which function is an unformatted function to enter a character from the keyboard
    1. scanf ()
    2. getchar ()
    3. getch ()
    4. getche ()
  8. Question 8. In the following functions, which function to enter a character from the keyboard immediately after typing, do not wait press Enter and do not show the screen:
    1. scanf ()
    2. getchar ()
    3. getch ()
    4. getche ()
  9. Question 9. Which function reads the character from the keyboard immediately after typing, without waiting for pressing Enter. The characters appear on the screen:
    1. canf ()
    2. getchar ()
    3. getch ()
    4. getche ()
  10. Question 10. What is the following screen print result of the program:
     #include 

    void main ()

    {

    int i;

    for (i = 2; i <= 4; i + = 2) printf ('% 3d', i);

    };
    1. '1 2 3 4'
    2. '2 3'
    3. ' 2 '
    4. The program cannot run
5 ★ | 1 Vote

May be interested

  • Microsoft Access has a P2 answerPhoto of Microsoft Access has a P2 answer
    microsoft access is one of the most commonly used applications, has quite useful features for small databases. here, go with the network administrator to learn about this topic through multiple choice questions.
  • PowerPoint informatics test P4Photo of PowerPoint informatics test P4
    power point is an effective presentation tool, and in order to increase persuasiveness and attraction from slides, images are an indispensable part. to help readers have more useful knowledge about this topic, below the network administrator will send you reading extremely interesting questions about powerpoint.
  • Microsoft Excel Test P9Photo of Microsoft Excel Test P9
    the following network administrator will send you to read multiple choice questions about excel, invite you to test your knowledge. the set of questions consists of 10 sentences, 4 answers each to choose from.
  • The Microsoft Access test has a P3 answerPhoto of The Microsoft Access test has a P3 answer
    microsoft office access, often referred to as ms access or simply access, is a management software that is a relational database owned by microsoft. please join the network administrator to learn about this topic through multiple choice questions.
  • What do you know about P8 software technologyPhoto of What do you know about P8 software technology
    please read your knowledge and the following software technology quiz questions of network administrator. hopefully, these brief and concise questions will help you gain more useful knowledge about this topic.
  • The Linux Network Administration test has the answer P4Photo of The Linux Network Administration test has the answer P4
    invite readers to join the test with multiple choice questions with the following linux topic of network administrator. there will be 10 questions, each with 4 answers, please choose the most accurate answer.