Set of multiple choice questions about programming with P11 prize

Instead of going to the centers to learn about programming, you can completely learn at home with extremely useful multiple-choice questions that the Network Administrator summarized below.
  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