Set of multiple choice questions about programming with P12

  1. Question 1. With the above code, how much is the value of c?
     public void A () { 

    bytes a, b, c;

    a = 255;

    b = 122;

    c = (bytes) (a & b); }
    1. 122
    2. 123
    3. 255
    4. 377
  2. Question 2. Which function is used to select the largest value in a range of cells
    1. Count
    2. Average
    3. Max
    4. Post
  3. Question 3. A form is declared as follows: When sending information to the server, which of the following is set:
     
    1. $ _GET []
    2. $ _POST []
    3. $ _SESSION
    4. $ _COOKIE
  4. Public void DoSomething (string someArgument). Which XML tag has used someArgument event in the above code?
    1. method name = someArgument
    2. function name = someArgument
    3. argument name = someArgument
    4. parameter name = someArgument
  5. Question 5. What is the result of the following statement:
     printf ('% 2f', 123.5678908); 
    1. 123.56
    2. 123.567890
    3. 123,567
    4. Other results
  6. Question 6. If the address of S is 1000, then the value of p is how much:
     char S [20] = 'aaaaaea'; char * p = strstr (S, 'e'); 
    1. 1000
    2. 1005
    3. 1003
    4. Other results
  7. Question 7. Some of the following tasks will be applied to check whether an integer is odd or even:
    1. Begin (start).

    2. Enter an integer

    3. If the number is 0, display the string: 'This is an even number'.

    4. The opposite displays: 'This is an odd number'.

    5. Divide n by 2;

    6. End (end).

    In your opinion, which of the following steps is correct:
    1. 1, 2, 3, 4, 5, 6
    2. 1, 5, 4, 3, 2, 6
    3. 1, 2, 5, 3, 4, 6
    4. 1, 5, 3, 4, 2, 6
  8. Question 8. Among the following formats, which format is used to print the address:
    1. '% f'.
    2. '%S'.
    3. '% p'.
    4. '%hour'.
  9. Question 9. Declaring the function to find the largest value in a film of the following numbers, which declaration is correct:
    1. void Max (long * a);
    2. long Max (long * a []);
    3. void Max (long a [], int n);
    4. long Max (long * a, int n);
  10. Question 10. Declaring the function to sum the elements below, which declaration is correct:
    1. void Sum (int a []);
    2. long Sum (int * a);
    3. void Sum (int a [], int n);
    4. All is wrong
4 ★ | 1 Vote

May be interested