- -first
- -3
- first
- Other results
Set of multiple choice questions about programming with P7 prize
Current programming is no longer strange to us. Programming work is becoming hot and more interested. Please join the Network Administrator to learn about programming skills through multiple-choice questions below.
- Question 1. What is the result of printing to the screen of the following expression: -3 + 4% 5/2.
- Question 2. There are the following declarations: int x = 15; int * p; Want to p is the pointer to x must execute any command:
- p = x;
-
p = & x;
- p = * x;
- All commands are correct
-
- Question 3. If there are the following statements:
char msg [10];
char value;
Which sentence is correct?- msg [2] = value;
- msg = value;
- Both sentences are wrong
- Both are true
-
- Question 4. If there are the following statements:
char msg [10];
Which sentence is correct
char * ptr; char value;- ptr = value;
- ptr = msg;
- Both are true
- Both are wrong
-
- Question 5. Any sign that is the pointer of the third element of a film has 4 characters:
- * (a + 3);
- * (a + 2);
- * a + 3;
- * (a + 4);
-
- Question 6. For the following statements:
void * tongquat;
Which assignment is invalid:
int * nguyen; char * kitu;- tongquat = nguyen;
-
- * nguyen = * tongquat;
-
- kitu = (char) tongquat;
-
tongquat = kitu;
-
- Question 7. Indicate the results of the following program section:
int p = 4;
p = 10 + ++ p;- 14
- 15
- 16
- Other results
-
- Question 8. There are the following declarations, which declaration is correct:
char tb, bearing [15];
-
tb = 'hello b n ';
-
- gets (bearing);
-
- bearing = 'chaoban';
-
- gets (tb);
-
- Question 9. Adding a pointer to an integer will be:
- A pointer has the same type
- An integer
- Both results are correct
-
- The two results are wrong
-
- Question 10. Subtraction of 2 pointers with the same type will be:
- A pointer has the same type
- An integer
- Other results
- Not possible
-
Update 24 May 2019
programmingprogramming exercisesweb programmingcomputer programmingmultiple choicemobile programmingprogramming languagesprogramming applicationsiodine programming
You should read it
- Set of multiple choice questions about programming with P12
- Set of multiple choice questions for programming with P15 prize
- Set of multiple choice questions about programming with P10 prize
- P13 programming set of multiple choice questions
- Set of multiple-choice questions on award-winning programming P5
- Set of multiple choice questions about programming with P6
- Set of multiple choice questions on programming with P16 prize
- A set of multiple choice questions for programming has a P2 prize
- Set of multiple choice questions for programming with P8 prizes
- Set of multiple choice questions on programming with P14 prize
- Set of multiple choice questions on programming with P3 prize
- Set of multiple choice questions about programming with P17 prize