Set of multiple choice questions about programming with P11 prize

  1. Question 1. What function clrscr () is:
    1. As a function to delete the entire screen, after deleting, the cursor will be on the left side of the screen
    2. Used to clear the keyboard cache
    3. A function to delete characters located on the left of the cursor
    4. A function to delete characters located to the right of the cursor
  2. Question 2. What are the results of the following program section:
     char c; int n; 

    scanf ('% c% d', & n, & c); If typing: 'r 45'.
    1. n = 45, c = ''.
    2. n = 45, c = 'r'.
    3. Error while building the program
    4. Other results
  3. Question 3. Function scanf ('% [^ n]', str); Similar to the following command:
    1. getch ();
    2. getche ();
    3. getchar () macro;
    4. gets (str);
  4. Question 4. For the following program section:
     #include 

    #include void main ()

    {

    char c; clrscr ();

    because c = getchar (); while (c! = '*'); getch ();

    };
    The requirements of the above paragraph are:
    1. Enter 1 character until you see the character '*'.
    2. Enter the characters until you see the '*' character.
    3. Enter the characters '*'.
    4. Error while building the program
  5. Question 5. What are the results of the following program:
     #include 

    void main ()

    {

    printf ('% d', 3 6);

    };
    1. 0
    2. first
    3. true
    4. Other results
  6. Question 6. The '++ n' operator is understood:
    1. The value of n decreases after its value is used
    2. The value of n decreases before its value is used
    3. The value of n is increased after its value is used
    4. The value of n is increased before its value is used
  7. Question 7. The 'n--' operator is understood:
    1. The value of n decreases after its value is used
    2. The value of n decreases before its value is used
    3. The value of n is increased after its value is used
    4. The value of n is increased before its value is used
  8. Question 8. Which one-sided operation is used to determine the value at the address of the pointer pointing to:
      1. !
      1. &;
      1. *;
    1. Other results
  9. Question 9. Subtracting 1 pointer with an integer will be:
    1. An integer
    2. A pointer of the same type
    3. Both results are correct
    4. Both results are wrong
  10. Question 10. What is the result of the following code:
     Employeestruct Employee struct {char Code [], name []; long Salary;};Employee e1= { 'E089', 'Hoang so', 12000}, e2=e1; long Salary;}; Employee e1 = {'E089', 'Hoang so', 12000}, e2 = e1; printf ('% ld', el.Salary + e2 -> Salary); 
    1. 24000
    2. 12000
    3. The code is broken
    4. Other results
5 ★ | 1 Vote

May be interested

  • What do you know about software technology P14Photo of What do you know about software technology P14
    the following set of software technology quiz questions will provide you with lots of useful information to apply to your work, which will bring about high efficiency.
  • What test you know about the P8 operating systemPhoto of What test you know about the P8 operating system
    you are learning about computer or mobile operating system. if you feel tired of reading lengthy articles, the multiple choice questions below will help you feel more excited. the following network administrator will send you a series of articles revolving around this topic.
  • What do you know about P15 software technologyPhoto of What do you know about P15 software technology
    as a professional software engineering engineer, you should master the theory of this issue before applying it to practice. the following quiz of network administrator will help you easily learn about this topic.
  • What test you know about operating system P9Photo of What test you know about operating system P9
    in previous posts network administrator has sent you to read the operating system questions to help you test your knowledge on this topic. the next section will continue to be multiple choice questions about the operating system. invite your reference.
  • PowerPoint informatics test P9Photo of PowerPoint informatics test P9
    powerpoint is one of the useful microsoft office applications when you need a presentation. if you are looking to learn about this application, the multiple choice questionnaire below will give you lots of useful information.
  • PowerPoint informatics test P10Photo of PowerPoint informatics test P10
    a set of multiple-choice questions about powerpoint 2010, invite readers to test their knowledge. the set of questions includes 10 sentences to try.