Set of multiple choice questions about programming with P12
The programming test questions below will provide you with useful knowledge on this topic. If you want to study programming, you should not ignore the series of programming tests of Network Administration.
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); }
122
123
255
377
Question 2. Which function is used to select the largest value in a range of cells
Count
Average
Max
Post
Question 3. A form is declared as follows: When sending information to the server, which of the following is set:
$ _GET []
$ _POST []
$ _SESSION
$ _COOKIE
Public void DoSomething (string someArgument). Which XML tag has used someArgument event in the above code?
method name = someArgument
function name = someArgument
argument name = someArgument
parameter name = someArgument
Question 5. What is the result of the following statement:
printf ('% 2f', 123.5678908);
123.56
123.567890
123,567
Other results
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');
1000
1005
1003
Other results
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, 2, 3, 4, 5, 6
1, 5, 4, 3, 2, 6
1, 2, 5, 3, 4, 6
1, 5, 3, 4, 2, 6
Question 8. Among the following formats, which format is used to print the address:
'% f'.
'%S'.
'% p'.
'%hour'.
Question 9. Declaring the function to find the largest value in a film of the following numbers, which declaration is correct:
void Max (long * a);
long Max (long * a []);
void Max (long a [], int n);
long Max (long * a, int n);
Question 10. Declaring the function to sum the elements below, which declaration is correct:
void Sum (int a []);
long Sum (int * a);
void Sum (int a [], int n);
All is wrong
You've just finished reading the article "Set of multiple choice questions about programming with P12" edited by the TipsMake team. You can save set-of-multiple-choice-questions-about-programming-with-p12.pdf to your computer here to read later or print it out. We hope this article has provided you with many useful tech tips and tricks. You can search for similar articles on tips and guides. Thank you for reading and for following us regularly.